 |
AGX Dynamics
2.38.0.2
|
Go to the documentation of this file.
17 #ifndef AGX_CONTAINER_H
18 #define AGX_CONTAINER_H
27 class ThreadScopeAllocator;
63 size_t capacity()
const;
70 const void* ptr()
const;
80 void _setBuffer(
void* buffer) { m_buffer = buffer; }
81 void _setCapacity(
size_t capacity) {
m_capacity = capacity; }
82 void _setSize(
size_t size) {
m_size = size; }
87 Container(Container&& other);
88 Container(const Container& other);
122 other.m_buffer =
nullptr;
123 other.m_capacity = 0;
#define DOXYGEN_END_INTERNAL_BLOCK()
#define DOXYGEN_START_INTERNAL_BLOCK()
size_t capacity() const
Returns the size of the memory are used by the container to store its elements.
@ SHRINK_BUFFER_AVERAGED
Buffer is shrunk if a smoothing average (which is updated each clear call) goes below a threshold.
@ SHRINK_BUFFER
Buffer is deallocated and replaced by an newly allocated empty buffer.
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
Contains classes for low level data storage for AGX.
Abstract representation of a data buffer.
ClearPolicy
agxData::Values from this enumeration is passed to the subclasses' 'clear' method in order to control...
The Container is the base class for several of the container classes proided by AGX,...
agx::Thread is a representation of an OS specific implementation of a computational thread.