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;
Abstract representation of a data buffer.
The Container is the base class for several of the container classes proided by AGX,...
ClearPolicy
agxData::Values from this enumeration is passed to the subclasses' 'clear' method in order to control...
@ SHRINK_BUFFER
Buffer is deallocated and replaced by an newly allocated empty buffer.
@ SHRINK_BUFFER_AVERAGED
Buffer is shrunk if a smoothing average (which is updated each clear call) goes below a threshold.
size_t capacity() const
Returns the size of the memory are used by the container to store its elements.
agx::Thread is a representation of an OS specific implementation of a computational thread.
#define DOXYGEN_END_INTERNAL_BLOCK()
#define DOXYGEN_START_INTERNAL_BLOCK()
Contains classes for low level data storage for AGX.
The agx namespace contains the dynamics/math part of the AGX Dynamics API.