Templated container for objects inheriting from gpu::Object.
More...
#include <Batch.h>
|
| size_t | size () const |
| | Get the current size of the container. More...
|
| |
| size_t | cache (const Data &data) |
| | Adds a new object to the container. More...
|
| |
| const Data & | get (uint32 offset) const |
| | Retrieve object with given index. More...
|
| |
|
void | clear () |
| | Clear contents of this container.
|
| |
template<typename T>
class gpu::Batch::Cache< T >::Vector
Templated container for objects inheriting from gpu::Object.
◆ cache()
Adds a new object to the container.
- Parameters
-
- Returns
- Index of the added object in the container.
◆ get()
Retrieve object with given index.
- Parameters
-
| offset | Index of the object to be retrieved. |
- Returns
- Reference to the object with a given index.
◆ size()
Get the current size of the container.
- Returns
- Current size of the container.
The documentation for this class was generated from the following file: