|
ug4
|
#include <fixed_array.h>
Public Types | |
| enum | { is_static =true } |
| enum | { static_num_rows =rowsT } |
| enum | { static_num_cols =colsT } |
| typedef size_t | size_type |
| typedef static_type | storage_type |
| typedef T | value_type |
Public Member Functions | |
| T & | at (size_type r, size_type c) |
| const T & | at (size_type r, size_type c) const |
| size_type | capacity_num_cols () const |
| size_type | capacity_num_rows () const |
| bool | empty () const |
| FixedArray2 () | |
| FixedArray2 (const FixedArray2< T, rowsT, colsT, T_ordering > &other) | |
| FixedArray2 (size_type rows, size_type cols) | |
| size_type | num_cols () const |
| size_type | num_rows () const |
| T & | operator() (size_type r, size_type c) |
| const T & | operator() (size_type r, size_type c) const |
| bool | reserve (size_type nrRows, size_type nrCols) const |
| bool | resize (size_type newRows, size_type newCols, bool bCopyValues=true) |
| ~FixedArray2 () | |
Static Public Attributes | |
| static const eMatrixOrdering | ordering = T_ordering |
Protected Attributes | |
| T | values [rowsT *colsT] |
Friends | |
| template<typename a , size_type b, size_type c, eMatrixOrdering d> | |
| std::ostream & | operator<< (std::ostream &out, const FixedArray2< a, b, c, d > &arr) |
FixedArray2 is a two-dimensional array which supports a similar interface like stl::vector. You can use FixedArray2 in GeMatrix to get a fixed size Matrix. Use is_static to distinguish between fixed and variable arrays.
| T | type of object in Array (i.e. double) |
| colsT | fixed number of columns |
| rowsT | fixed number of rows |
| T_ordering | Ordering of columns/rows. Default is ColMajor. |
| typedef size_t ug::FixedArray2< T, rowsT, colsT, T_ordering >::size_type |
| typedef static_type ug::FixedArray2< T, rowsT, colsT, T_ordering >::storage_type |
| typedef T ug::FixedArray2< T, rowsT, colsT, T_ordering >::value_type |
| anonymous enum |
| anonymous enum |
| anonymous enum |
| ug::FixedArray2< T, rowsT, colsT, T_ordering >::FixedArray2 | ( | ) |
| ug::FixedArray2< T, rowsT, colsT, T_ordering >::FixedArray2 | ( | size_type | rows, |
| size_type | cols | ||
| ) |
| ug::FixedArray2< T, rowsT, colsT, T_ordering >::FixedArray2 | ( | const FixedArray2< T, rowsT, colsT, T_ordering > & | other | ) |
| ug::FixedArray2< T, rowsT, colsT, T_ordering >::~FixedArray2 | ( | ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Referenced by ug::operator<<().
|
inline |
Referenced by ug::operator<<().
|
inline |
References ug::RowMajor.
|
inline |
|
inline |
|
inline |
|
friend |
|
static |
|
protected |