|
ug4
|
#include <fixed_array.h>
Public Types | |
| typedef size_t | size_type |
| typedef static_type | storage_type |
| typedef T | value_type |
Public Member Functions | |
| T & | at (size_type i) |
| const T & | at (size_type i) const |
| size_type | capacity () const |
| FixedArray1 () | |
| FixedArray1 (const FixedArray1< T, n > &other) | |
| FixedArray1 (size_type n_) | |
| T & | operator[] (size_type i) |
| const T & | operator[] (size_type i) const |
| bool | reserve (size_type newN) const |
| bool | resize (size_type newN, bool bCopyValues=true) |
| size_type | size () const |
| ~FixedArray1 () | |
Protected Attributes | |
| T | values [n] |
Friends | |
| template<typename _T , size_type _n> | |
| std::ostream & | operator<< (std::ostream &out, const FixedArray1< _T, _n > &arr) |
FixedArray1 is a one-dimensional array which supports most of the interface of std::vector. (some functions and iterators have to be added). You can use FixedArray1 in DenseVector to get a fixed size mathematical Vector. Use storage_traits<type>::is_static to distinguish between fixed and variable vectors. Functions like resize(newN) assert N == newN. So FixedArray1<T, N>::size is always N.
| T | type of object in Array (i.e. double) |
| n | number of elements in the fixed array (T values[n]; ) |
| typedef size_t ug::FixedArray1< T, n >::size_type |
| typedef static_type ug::FixedArray1< T, n >::storage_type |
| typedef T ug::FixedArray1< T, n >::value_type |
| ug::FixedArray1< T, n >::FixedArray1 | ( | ) |
| ug::FixedArray1< T, nT >::FixedArray1 | ( | size_type | n_ | ) |
| ug::FixedArray1< T, n >::FixedArray1 | ( | const FixedArray1< T, n > & | other | ) |
| ug::FixedArray1< T, n >::~FixedArray1 | ( | ) |
|
inline |
References ug::FixedArray1< T, n >::operator[]().
|
inline |
References ug::FixedArray1< T, n >::operator[]().
Referenced by ug::FixedArray1< T, 1 >::operator[](), ug::FixedArray1< T, 2 >::operator[](), ug::FixedArray1< T, 3 >::operator[](), ug::FixedArray1< T, 4 >::operator[](), ug::FixedArray1< T, 1 >::operator[](), ug::FixedArray1< T, 2 >::operator[](), ug::FixedArray1< T, 3 >::operator[](), and ug::FixedArray1< T, 4 >::operator[]().
|
inline |
|
inline |
|
inline |
Referenced by ug::FixedArray1< T, n >::at(), and ug::FixedArray1< T, n >::at().
|
inline |
|
inline |
|
inline |
Referenced by ug::operator<<().
|
friend |
|
protected |
Referenced by ug::FixedArray1< T, 1 >::at(), ug::FixedArray1< T, 2 >::at(), ug::FixedArray1< T, 3 >::at(), ug::FixedArray1< T, 4 >::at(), ug::FixedArray1< T, 1 >::at(), ug::FixedArray1< T, 2 >::at(), ug::FixedArray1< T, 3 >::at(), ug::FixedArray1< T, 4 >::at(), ug::FixedArray1< T, 1 >::FixedArray1(), ug::FixedArray1< T, 2 >::FixedArray1(), ug::FixedArray1< T, 3 >::FixedArray1(), ug::FixedArray1< T, 4 >::FixedArray1(), ug::FixedArray1< T, 1 >::FixedArray1(), ug::FixedArray1< T, 2 >::FixedArray1(), ug::FixedArray1< T, 3 >::FixedArray1(), and ug::FixedArray1< T, 4 >::FixedArray1().