LTL
2.0.x
|
Vector with known length at compile time, 1-based, STL-compatible. More...
Public Types | |
enum | { static_size = N } |
typedef T | value_type |
typedef T * | iterator |
typedef const T * | const_iterator |
typedef T & | reference |
typedef const T & | const_reference |
typedef std::size_t | size_type |
typedef std::ptrdiff_t | difference_type |
typedef std::reverse_iterator < iterator > | reverse_iterator |
typedef std::reverse_iterator < const_iterator > | const_reverse_iterator |
Public Member Functions | |
FixedVector () | |
FixedVector (const FixedVector< T, N > &other) | |
FixedVector< T, N > & | operator= (const FixedVector< T, N > &o) |
FixedVector< T, N > & | operator= (const T &v) |
int | length () const |
int | minIndex () const |
int | maxIndex () const |
T | operator() (int i) const |
Access the i-th element. Indexing is 1-based. More... | |
T & | operator() (int i) |
Access the i-th element. Indexing is 1-based. More... | |
T | operator[] (int i) const |
T & | operator[] (int i) |
const T * | data () const |
Direct access to data. More... | |
iterator | begin () |
Return begin iterator. More... | |
const_iterator | begin () const |
Return begin const_iterator. More... | |
iterator | end () |
Return end iterator. More... | |
const_iterator | end () const |
Return end const_iterator. More... | |
reverse_iterator | rbegin () |
const_reverse_iterator | rbegin () const |
reverse_iterator | rend () |
const_reverse_iterator | rend () const |
Static Public Member Functions | |
static size_type | size () |
static bool | empty () |
static size_type | max_size () |
Protected Attributes | |
T | data_ [N+1] |
Vector with known length at compile time, 1-based, STL-compatible.
This simple class in its T = int
instantiation is used to represent the index or indices of a particular element of an ltl::MArray. The second template parameter, namely the length N
of the vector then is equal to the rank of the ltl::MArray this index refers to. This class is used to hold lists of indices for referencing arbitrary sets of elements of an ltl::MArray, e.g. the list of elements of a matrix which are ==0
.
typedef T ltl::ltl::FixedVector< T, N >::value_type |
typedef T* ltl::ltl::FixedVector< T, N >::iterator |
typedef const T* ltl::ltl::FixedVector< T, N >::const_iterator |
typedef T& ltl::ltl::FixedVector< T, N >::reference |
typedef const T& ltl::ltl::FixedVector< T, N >::const_reference |
typedef std::size_t ltl::ltl::FixedVector< T, N >::size_type |
typedef std::ptrdiff_t ltl::ltl::FixedVector< T, N >::difference_type |
typedef std::reverse_iterator<iterator> ltl::ltl::FixedVector< T, N >::reverse_iterator |
typedef std::reverse_iterator<const_iterator> ltl::ltl::FixedVector< T, N >::const_reverse_iterator |
|
inline |
|
inline |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Access the i-th element. Indexing is 1-based.
|
inline |
Access the i-th element. Indexing is 1-based.
|
inline |
|
inline |
|
inline |
Direct access to data.
|
inline |
Return begin iterator.
|
inline |
Return begin const_iterator.
|
inline |
Return end iterator.
|
inline |
Return end const_iterator.
|
inline |
|
inline |
|
inline |
|
inline |
|
protected |