libuav original

Dependents:   UAVCAN UAVCAN_Subscriber

Embed: (wiki syntax)

« Back to documentation index

ArrayImpl< T, ArrayMode, MaxSize > Class Template Reference

ArrayImpl< T, ArrayMode, MaxSize > Class Template Reference

Common functionality for both static and dynamic arrays. More...

#include <array.hpp>

Inherits Select::Result< ArrayMode==ArrayModeDynamic, DynamicArrayBase< MaxSize >, StaticArrayBase< MaxSize > >.

Public Types

enum  { IsStringLike }

Detailed Description

template<typename T, ArrayMode ArrayMode, unsigned MaxSize>
class uavcan::ArrayImpl< T, ArrayMode, MaxSize >

Common functionality for both static and dynamic arrays.

Static arrays are of fixed size; methods that can alter the size (e.g. push_back() and such) will fail to compile. Dynamic arrays contain a fixed-size buffer (it's size is enough to fit maximum number of elements) plus the currently allocated number of elements.

Definition at line 276 of file array.hpp.


Member Enumeration Documentation

anonymous enum
Enumerator:
IsStringLike 

True if the array contents can be interpreted as a 8-bit string (ASCII or UTF8).

Definition at line 284 of file array.hpp.