The MaxSizeVector class. More...
Public Member Functions | |
T & | back () |
const T & | back () const |
T * | begin () |
const T * | begin () const |
T * | data () |
const T * | data () const |
template<class X > | |
void | emplace_back (const X &x) |
bool | empty () const |
T * | end () |
const T * | end () const |
MaxSizeVector (size_t n) | |
MaxSizeVector (size_t n, const T &init) | |
T & | operator[] (size_t i) |
const T & | operator[] (size_t i) const |
void | pop_back () |
void | push_back (const T &t) |
void | resize (size_t n) |
size_t | size () const |
~MaxSizeVector () | |
Private Attributes | |
T * | data_ |
size_t | reserve_ |
size_t | size_ |
Static Private Attributes | |
static const size_t | alignment |
The MaxSizeVector class.
The MaxSizeVector provides a subset of std::vector functionality.
The goal is to provide basic std::vector operations when using std::vector is not an option (e.g. on GPU or when compiling using FMA/AVX, as this can cause either compilation failures or illegal instruction failures).
Beware: The constructors are not API compatible with these of std::vector.
Definition at line 31 of file MaxSizeVector.h.
|
inlineexplicit |
Definition at line 36 of file MaxSizeVector.h.
|
inline |
Definition at line 44 of file MaxSizeVector.h.
|
inline |
Definition at line 62 of file MaxSizeVector.h.
|
inline |
Definition at line 109 of file MaxSizeVector.h.
|
inline |
Definition at line 115 of file MaxSizeVector.h.
|
inline |
Definition at line 139 of file MaxSizeVector.h.
|
inline |
Definition at line 145 of file MaxSizeVector.h.
|
inline |
Definition at line 133 of file MaxSizeVector.h.
|
inline |
Definition at line 136 of file MaxSizeVector.h.
|
inline |
Definition at line 90 of file MaxSizeVector.h.
|
inline |
Definition at line 130 of file MaxSizeVector.h.
|
inline |
Definition at line 142 of file MaxSizeVector.h.
|
inline |
Definition at line 148 of file MaxSizeVector.h.
|
inline |
Definition at line 103 of file MaxSizeVector.h.
|
inline |
Definition at line 97 of file MaxSizeVector.h.
|
inline |
Definition at line 121 of file MaxSizeVector.h.
|
inline |
Definition at line 82 of file MaxSizeVector.h.
|
inline |
|
inline |
Definition at line 127 of file MaxSizeVector.h.
|
staticprivate |
Definition at line 32 of file MaxSizeVector.h.
|
private |
Definition at line 153 of file MaxSizeVector.h.
|
private |
Definition at line 151 of file MaxSizeVector.h.
|
private |
Definition at line 152 of file MaxSizeVector.h.