Arduino Libraries
|
basically just a wrap for an cpp-array More...
#include <array.hpp>
Public Types | |
typedef T | value_type |
typedef uint16_t | size_type |
Public Member Functions | |
array () | |
just initialises all with "zeros" More... | |
array (T const &init) | |
initialises all with init More... | |
array (array const &arg) | |
copy constructor More... | |
array & | operator= (array const &rhs) |
asignment operator More... | |
T & | operator[] (size_type const &pos) |
returns element at a position More... | |
T const & | operator[] (size_type const &pos) const |
returns element at a position (const version) More... | |
T * | data () |
just return the internal cpp-array More... | |
constexpr size_type | size () |
retuns the size (equal to N) More... | |
template<typename S > | |
void | print (S &os) const |
print to any stream-concept More... | |
template<typename Archive > | |
void | serialize (Archive &ar) |
serializes to or from archive More... | |
void | clear () |
set all elements to "zero" More... | |
basically just a wrap for an cpp-array
T | is the type in the container |
N | is the size of the array |
typedef uint16_t ustd::array< T, N >::size_type |
typedef T ustd::array< T, N >::value_type |
|
inline |
just initialises all with "zeros"
|
inline |
initialises all with init
init | all positions are set to this parameter |
|
inline |
copy constructor
|
inline |
set all elements to "zero"
|
inline |
just return the internal cpp-array
|
inline |
asignment operator
|
inline |
returns element at a position
pos | is the position of interest |
bounds are checked if debug is active, else no bound check
|
inline |
returns element at a position (const version)
pos | is the position of interest |
bounds are checked if debug is active, else no bound check
|
inline |
print to any stream-concept
stream-concept |
os | is an instance of a stream-concept |
|
inline |
serializes to or from archive
archive-concept |
ar | is the archive |
|
inline |
retuns the size (equal to N)