|
| RR_OVIRTUAL void * | void_ptr () RR_OVERRIDE |
| | Get a void pointer to the contained array.
|
| RR_OVIRTUAL size_t | size () RR_OVERRIDE |
| | Get the number of elements in the array.
|
| RR_OVIRTUAL size_t | ElementSize () RR_OVERRIDE |
| | Get the number of bytes per element of the array.
|
|
iterator | begin () |
| | returns an iterator to the beginning
|
|
const_iterator | begin () const |
| | returns an iterator to the beginning
|
|
const_iterator | cbegin () const |
| | returns a const iterator to the beginning
|
|
iterator | end () |
| | returns an iterator to the end
|
|
const_iterator | end () const |
| | returns an iterator to the end
|
|
const_iterator | cend () const |
| | returns a const iterator to the end
|
|
reverse_iterator | rbegin () |
| | returns a reverse iterator to the beginning
|
|
const_reverse_iterator | rbegin () const |
| | returns a reverse iterator to the beginning
|
|
const_reverse_iterator | crbegin () const |
| | returns a reverse iterator to the beginning
|
|
reverse_iterator | rend () |
| | returns a reverse iterator to the end
|
|
const_reverse_iterator | rend () const |
| | returns a reverse iterator to the end
|
|
const_reverse_iterator | crend () const |
| | returns a reverse iterator to the end
|
|
reference | operator[] (size_type i) |
| | access specified element
|
|
const_reference | operator[] (size_type i) const |
| | access specified element
|
|
reference | at (size_type i) |
| | access specified element with bounds checking
|
|
const_reference | at (size_type i) const |
| | access specified element with bounds checking
|
|
reference | front () |
| | access the first element
|
|
const_reference | front () const |
| | access the first element
|
|
reference | back () |
| | access the last element
|
|
const_reference | back () const |
| | access the last element
|
|
bool | empty () |
| | checks whether the container is empty
|
|
size_type | max_size () |
| | returns the maximum possible number of elements
|
|
const T * | data () const |
| | direct access to the underlying array
|
|
T * | data () |
| | direct access to the underlying array
|
| template<typename T2> |
| RRArray< T > & | operator= (const RRArray< T2 > &rhs) |
| | assignment with type conversion
|
| void | assign (const T &value) |
| | Assign one value to all elements.
|
| void | fill (const T &value) |
| | Fill array with value.
|
template<typename T>
class RobotRaconteur::RRArray< T >
Numeric primitive or character array value type.
This class stores a numeric primitive or character array. Arrays should always be allocated using AllocateRRArray<T>(), AttachRRArray<T>(), AttachRRArrayCopy<T>(), AllocateRRArrayByType<T>(), or AllocateEmptyRRArray<T>()
Valid values for T are rr_bool, double, float, int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t, uint64_t, cdouble, csingle, or char. Attempts to use any other types will result in a compiler error.
RRArray must be stored in RR_INTRUSIVE_PTR. It will be deleted automatically when the reference count goes to zero.
- Template Parameters
-
| T | The type of the array elements |