|
AGX Dynamics
2.35.0.1
|
Class to allocate an array of elements where some other structure works on pointer. More...
#include <MLCP.h>
Public Member Functions | |
| RowAllocator () | |
| Constructor. More... | |
| ~RowAllocator () | |
| void | allocate () |
| void | allocate (size_t size) |
| Allocate buffer of given size. More... | |
| void | allocate (size_t size, int val) |
| Allocate a buffer of given size with initial value val. More... | |
| size_t & | count () |
| void | deallocate () |
| Deallocates the buffer and resets internal parameters. More... | |
| T * | get (size_t numElements) |
Class to allocate an array of elements where some other structure works on pointer.
Suitable for solvers.
|
inline |
|
inline |
Definition at line 50 of file MLCP.h.
References agx::RowAllocator< T >::deallocate().
|
inline |
Definition at line 84 of file MLCP.h.
Referenced by agx::RowAllocator< T >::allocate().
|
inline |
Allocate buffer of given size.
The elements are not initialized.
| size | - size of the buffer |
Definition at line 68 of file MLCP.h.
References agxAssert, agx::RowAllocator< T >::deallocate(), and m_size.
|
inline |
Allocate a buffer of given size with initial value val.
| size | - size of the buffer |
| val | - initial value to all elements (integer) |
Definition at line 57 of file MLCP.h.
References agx::RowAllocator< T >::allocate().
|
inline |
|
inline |
Deallocates the buffer and resets internal parameters.
Definition at line 92 of file MLCP.h.
Referenced by agx::RowAllocator< T >::~RowAllocator(), and agx::RowAllocator< T >::allocate().
|
inline |