ug4
|
#include <reservable_array.h>
Public Types | |
enum | { is_static =false } |
enum | { static_num_rows =0 } |
enum | { static_num_cols =0 } |
typedef size_t | size_type |
typedef variable_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 |
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 |
ReservableArray2 () | |
ReservableArray2 (const VariableArray2< T, T_ordering > &other) | |
ReservableArray2 (size_type rows_, size_type cols_) | |
bool | reserve (size_type nrRows, size_type nrCols) const |
bool | resize (size_type newRows, size_type newCols, bool bCopyValues=true) |
~ReservableArray2 () | |
Static Public Attributes | |
static const eMatrixOrdering | ordering = T_ordering |
Protected Attributes | |
size_type | arraySize |
size_type | cols |
size_type | rows |
T * | values |
Friends | |
template<typename _T , eMatrixOrdering _T_Ordering> | |
std::ostream & | operator<< (std::ostream &out, const ReservableArray2< _T, _T_Ordering > &arr) |
ReservableArray2 is a two-dimensional array which supports a similar interface like stl::vector. You can use FixedArray2 in GeMatrix to get a variable size Matrix. Use is_static to distinguish between fixed and variable arrays.
T | type of object in Array (i.e. double) |
T_ordering | Ordering of columns/rows. Default is ColMajor. |
typedef size_t ug::ReservableArray2< T, T_ordering >::size_type |
typedef variable_type ug::ReservableArray2< T, T_ordering >::storage_type |
typedef T ug::ReservableArray2< T, T_ordering >::value_type |
anonymous enum |
anonymous enum |
ug::ReservableArray2< T, T_ordering >::ReservableArray2 |
ug::ReservableArray2< T, T_ordering >::ReservableArray2 | ( | size_type | rows_, |
size_type | cols_ | ||
) |
References resize().
ug::ReservableArray2< T, T_ordering >::ReservableArray2 | ( | const VariableArray2< T, T_ordering > & | other | ) |
ug::ReservableArray2< T, T_ordering >::~ReservableArray2 |
|
inline |
|
inline |
|
inline |
References ug::ReservableArray2< T, T_ordering >::cols.
|
inline |
References ug::ReservableArray2< T, T_ordering >::rows.
|
inline |
Referenced by ug::operator<<().
|
inline |
Referenced by ug::operator<<().
|
inline |
References ug::RowMajor.
|
inline |
References ug::RowMajor.
Referenced by ug::ReservableArray2< T, T_ordering >::at().
|
inline |
|
inline |
References ug::RowMajor, and UG_ASSERT.
|
friend |
|
protected |
|
protected |
Referenced by ug::ReservableArray2< T, T_ordering >::capacity_num_cols().
|
static |
|
protected |
Referenced by ug::ReservableArray2< T, T_ordering >::capacity_num_rows().
|
protected |