Robot Raconteur Core C++ Library
Loading...
Searching...
No Matches
RobotRaconteur::RRBaseArray Class Referenceabstract

Base class for numeric and character array value types. More...

#include <DataTypes.h>

Inheritance diagram for RobotRaconteur::RRBaseArray:
RobotRaconteur::MessageElementData RobotRaconteur::RRValue RobotRaconteur::RRArray< T >

Public Member Functions

virtual size_t size ()=0
 Get the number of elements in the array.
virtual void * void_ptr ()=0
 Get a void pointer to the contained array.
virtual size_t ElementSize ()=0
 Get the number of bytes per element of the array.

Detailed Description

Base class for numeric and character array value types.

Arrays should be allocated using AllocateRRArray<T>(), AttachRRArray<T>(), AttachRRArrayCopy<T>(), AllocateRRArrayByType<T>(), or AllocateEmptyRRArray<T>()

Member Function Documentation

◆ ElementSize()

virtual size_t RobotRaconteur::RRBaseArray::ElementSize ( )
pure virtual

Get the number of bytes per element of the array.

Returns
size_t

Implemented in RobotRaconteur::RRArray< T >.

◆ size()

virtual size_t RobotRaconteur::RRBaseArray::size ( )
pure virtual

Get the number of elements in the array.

Returns
size_t

Implemented in RobotRaconteur::RRArray< T >.

◆ void_ptr()

virtual void * RobotRaconteur::RRBaseArray::void_ptr ( )
pure virtual

Get a void pointer to the contained array.

Returns
void*

Implemented in RobotRaconteur::RRArray< T >.


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