Robot Raconteur Core C++ Library
Loading...
Searching...
No Matches
RobotRaconteur::pod_field_array< T, N, varlength > Class Template Reference

Storage for pod array fields. More...

#include <ServiceStructure.h>

Detailed Description

template<typename T, size_t N, bool varlength>
class RobotRaconteur::pod_field_array< T, N, varlength >

Storage for pod array fields.

Storage for pod array fields. It is used by the thunk source generators for arrays. The array can either be fixed length, for example double[8] for an 8 element double array, or double[8-] for an array that may be 8 elements or fewer. The varlength template parameter is true for variable length with max size, or false for a fixed size array.

pod_field_array extends boost::array<T,N>, and implements all the standard container function. The main differenc is that for variable length arrays, the resize() and size() function can be used to change the length of the array.

Template Parameters
TThe element type stored in the pod_field_array
NThe size of the array, or the maximum size for variable length
varlengthtrue if the array is variable length, or false

The documentation for this class was generated from the following file: