|
cppcore
A small, portable C++ core library
|
#include <TStaticArray.h>
Public Member Functions | |
| TStaticArray () | |
| The default class constructor. | |
| TStaticArray (T initValue) | |
| The class constructor with the initial value. | |
| TStaticArray (const TStaticArray< T, len > &rhs) | |
| The copy constructor. | |
| ~TStaticArray ()=default | |
| The class destructor. | |
| size_t | size () const |
| Returns the number of items in the array. | |
| void | set (size_t index, T value) |
| Will set the item at the given index. | |
| void | memset (T value) |
| Will set all values to the same value. | |
| T | operator[] (size_t index) const |
| The index op. | |
| T & | operator[] (size_t index) |
| The index op. | |
| bool | operator== (const TStaticArray< T, len > &rhs) const |
| TStaticArray< T, len > & | operator= (const TStaticArray< T, len > &rhs) |
Definition at line 40 of file TStaticArray.h.
|
inline |
The default class constructor.
Definition at line 83 of file TStaticArray.h.
Referenced by operator=(), operator==(), TStaticArray(), and ~TStaticArray().
|
inlineexplicit |
The class constructor with the initial value.
| [in] | initValue | The initial value. |
Definition at line 88 of file TStaticArray.h.
References memset().
|
inline |
The copy constructor.
| rhs | [in] The array to copy from. |
Definition at line 93 of file TStaticArray.h.
References TStaticArray().
|
default |
The class destructor.
References TStaticArray().
|
inline |
Will set all values to the same value.
| [in] | value | The value to set. |
Definition at line 107 of file TStaticArray.h.
Referenced by TStaticArray().
|
inline |
Definition at line 142 of file TStaticArray.h.
References TStaticArray().
|
inline |
Definition at line 131 of file TStaticArray.h.
References TStaticArray().
|
inline |
The index op.
Definition at line 126 of file TStaticArray.h.
|
inline |
The index op.
Definition at line 119 of file TStaticArray.h.
|
inline |
Will set the item at the given index.
| [in] | index | The requested index. |
| [in] | value | The new value. |
Definition at line 100 of file TStaticArray.h.
|
inline |
Returns the number of items in the array.
Definition at line 114 of file TStaticArray.h.