|
Robot Raconteur Core C++ Library
|
namedarray multidimensional array value type More...
#include <DataTypes.h>
Public Member Functions | |
| virtual void | RetrieveSubArray (const std::vector< uint32_t > &memorypos, const boost::intrusive_ptr< RRNamedMultiDimArray< T > > &buffer, const std::vector< uint32_t > &bufferpos, const std::vector< uint32_t > &count) |
| Retrieve a subset of an array. | |
| virtual void | AssignSubArray (const std::vector< uint32_t > &memorypos, const boost::intrusive_ptr< RRNamedMultiDimArray< T > > &buffer, const std::vector< uint32_t > &bufferpos, const std::vector< uint32_t > &count) |
| Assign a subset of an array. | |
namedarray multidimensional array value type
This class stores a namedarray multidimensional array. Multidimensional arrays are stored as a uint32_t array of dimensions, and an array of the flattened elements. Arrays are stored in column major, or "Fortran" order.
Multidimensional arrays should be allocated using AllocateEmptyRRNamedMultiDimArray()
T must be a namedarray type that has been generated as part of the thunk source.
RRNamedMultiDimArray must be stored in RR_INTRUSIVE_PTR. It will be deleted automatically when the reference count goes to zero.
| T | The type of the array elements |
|
inlinevirtual |
Assign a subset of an array.
| memorypos | Position within array to store data |
| buffer | Buffer to assign data from |
| bufferpos | Position within buffer to assign from |
| count | Count of data to assign |
|
inlinevirtual |
Retrieve a subset of an array.
| memorypos | Position in array to read |
| buffer | Buffer to store retrieved data |
| bufferpos | Position within buffer to store data |
| count | Count of data to retrieve |