libuav original

Dependents:   UAVCAN UAVCAN_Subscriber

Embed: (wiki syntax)

« Back to documentation index

ArrayImpl< IntegerSpec< 1, SignednessUnsigned, CastMode >, ArrayMode, MaxSize > Class Template Reference

ArrayImpl< IntegerSpec< 1, SignednessUnsigned, CastMode >, ArrayMode, MaxSize > Class Template Reference

Memory-efficient specialization for bit arrays (each element maps to a single bit rather than single byte). More...

#include <array.hpp>

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

Public Member Functions

Reference at (SizeType pos)
 Range-checking subscript.
Reference operator[] (SizeType pos)
 at()

Detailed Description

template<unsigned MaxSize, ArrayMode ArrayMode, CastMode CastMode>
class uavcan::ArrayImpl< IntegerSpec< 1, SignednessUnsigned, CastMode >, ArrayMode, MaxSize >

Memory-efficient specialization for bit arrays (each element maps to a single bit rather than single byte).

This should be compatible with std::bitset.

Definition at line 379 of file array.hpp.


Member Function Documentation

Reference at ( SizeType  pos )

Range-checking subscript.

Throws if enabled; UAVCAN_ASSERT() if enabled; else constraints the position.

Definition at line 398 of file array.hpp.

Reference operator[] ( SizeType  pos )

at()

Definition at line 404 of file array.hpp.