buffer object mapping helper class. More...
#include <Inventor/devices/SoAutoMap.h>
Public Member Functions | |
SoAutoMap (SoBufferObject *bufferObject, SoBufferObject::AccessMode accessMode) | |
Constructor. | |
~SoAutoMap () | |
Destructor. | |
T & | operator[] (const size_t i) |
accessor to T element at index i | |
const T & | operator[] (const size_t i) const |
const accessor to T element at index i | |
size_t | getSize () const |
return the number of T element in the mapped array | |
buffer object mapping helper class.
This class provides an safe and simplified way to access data through typed a cpu array. It allows to use the following syntax while app wants to read or write some data from an SoBufferObject. Example:
Definition at line 49 of file SoAutoMap.h.
|
inline |
|
inline |
return the number of T element in the mapped array
Definition at line 84 of file SoAutoMap.h.
|
inline |
accessor to T element at index i
Definition at line 70 of file SoAutoMap.h.
|
inline |
const accessor to T element at index i
Definition at line 77 of file SoAutoMap.h.