NumeRe v1.1.4
NumeRe: Framework für Numerische Rechnungen
|
This class extends the std::vector for endlessness. More...
#include <structures.hpp>
Public Member Functions | |
EndlessVector () | |
Default constructor. More... | |
EndlessVector (const EndlessVector &vec) | |
Copy constructor from same. More... | |
EndlessVector & | operator= (const EndlessVector &vec) |
Assignment operator overload from same. More... | |
T & | operator[] (size_t n) |
Access operator overload. Will return default constructed instances of the template type T, if the position n points to a position beyond the internal array. More... | |
Private Attributes | |
T | m_fallback |
This class extends the std::vector for endlessness.
This class template automatically creates empty elements, if the index operator access elements beyond its size.
Definition at line 837 of file structures.hpp.
|
inline |
Default constructor.
Definition at line 845 of file structures.hpp.
|
inline |
Copy constructor from same.
vec | const EndlessVector& |
Definition at line 853 of file structures.hpp.
|
inline |
Assignment operator overload from same.
vec | const EndlessVector& |
Definition at line 863 of file structures.hpp.
|
inline |
Access operator overload. Will return default constructed instances of the template type T, if the position n points to a position beyond the internal array.
n | size_t |
Definition at line 879 of file structures.hpp.
References EndlessVector< T >::m_fallback.
|
private |
Definition at line 840 of file structures.hpp.
Referenced by EndlessVector< T >::operator[]().