BioDynaMo
v1.05.120-25dc9790
|
#include <fixed_size_vector.h>
Public Member Functions | |
FixedSizeVector ()=default | |
constexpr | FixedSizeVector (const std::initializer_list< T > &l) |
size_t | size () const |
const T & | operator[] (size_t idx) const |
T & | operator[] (size_t idx) |
bool | operator== (const FixedSizeVector &other) const |
FixedSizeVector & | operator++ () |
void | clear () |
void | push_back (const T &value) |
const T * | data () const |
const T * | begin () const |
const T * | end () const |
T * | begin () |
T * | end () |
Private Attributes | |
T | data_ [N] |
std::size_t | size_ = 0 |
Vector with fixed number of elements == Array with push_back function that keeps track of its size NB: No bounds checking. Do not push_back more often than the number of maximum elements given by the template parameter N
Definition at line 30 of file fixed_size_vector.h.
|
default |
|
inlineconstexpr |
Constructor which accepts an std::initiliazer_list to set the array's content.
l | an initializer list |
Definition at line 37 of file fixed_size_vector.h.
|
inline |
Definition at line 83 of file fixed_size_vector.h.
|
inline |
Definition at line 81 of file fixed_size_vector.h.
|
inline |
Definition at line 72 of file fixed_size_vector.h.
|
inline |
Definition at line 79 of file fixed_size_vector.h.
|
inline |
Definition at line 84 of file fixed_size_vector.h.
|
inline |
Definition at line 82 of file fixed_size_vector.h.
|
inline |
Definition at line 64 of file fixed_size_vector.h.
|
inline |
Definition at line 52 of file fixed_size_vector.h.
|
inline |
Definition at line 50 of file fixed_size_vector.h.
|
inline |
Definition at line 48 of file fixed_size_vector.h.
|
inline |
Definition at line 74 of file fixed_size_vector.h.
|
inline |
Definition at line 46 of file fixed_size_vector.h.
|
private |
Definition at line 87 of file fixed_size_vector.h.
|
private |
Definition at line 88 of file fixed_size_vector.h.