|
AGX Dynamics 2.42.2.1
|
Buffer used for sensor output of a wide range of output element types. More...
#include <BinaryOutputView.h>
Public Member Functions | |
| size_t | elementSize () const |
| bool | empty () const |
| template<typename T > | |
| const T * | ptr () const |
| void | resize (size_t size, size_t elementSize) |
| Resize the buffer to fit the given number of elements of the given size. | |
| void * | rwPtr () |
| const void * | rwPtr () const |
| size_t | size () const |
| template<typename T > | |
| BinaryOutputView< T > | view (size_t startIndex=0u, size_t numElements=agx::InvalidIndex) const |
| Create a view into a section of the buffer. | |
Buffer used for sensor output of a wide range of output element types.
Definition at line 96 of file BinaryOutputView.h.
|
inline |
Definition at line 205 of file BinaryOutputView.h.
Referenced by resize().
|
inline |
Definition at line 210 of file BinaryOutputView.h.
References m_size.
|
inline |
Definition at line 239 of file BinaryOutputView.h.
References agxAssert1.
|
inline |
Resize the buffer to fit the given number of elements of the given size.
| size | - number of elements to fit in the buffer |
| elementSize | - size of one element in bytes |
Definition at line 215 of file BinaryOutputView.h.
References elementSize(), m_size, and size().
|
inline |
Definition at line 228 of file BinaryOutputView.h.
|
inline |
Definition at line 233 of file BinaryOutputView.h.
|
inline |
Definition at line 200 of file BinaryOutputView.h.
References m_size.
Referenced by resize().
|
inline |
Create a view into a section of the buffer.
| startIndex | - starting index position within the buffer in number of elements |
| numElements | - size of the view section in number of elements |
Definition at line 246 of file BinaryOutputView.h.
References agx::InvalidIndex, and m_size.