ug4
|
#include <variable_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 |
void | reserve (size_type nrRows, size_type nrCols) const |
bool | resize (size_type newRows, size_type newCols, bool bCopyValues=true) |
VariableArray2 () | |
VariableArray2 (const VariableArray2< T, T_ordering > &other) | |
VariableArray2 (size_type rows_, size_type cols_) | |
~VariableArray2 () | |
Static Public Attributes | |
static const eMatrixOrdering | ordering = T_ordering |
Protected Attributes | |
size_type | cols |
size_type | rows |
T * | values |
Friends | |
template<typename _T , eMatrixOrdering _T_Ordering> | |
std::ostream & | operator<< (std::ostream &out, const VariableArray2< _T, _T_Ordering > &arr) |
VariableArray2 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::VariableArray2< T, T_ordering >::size_type |
typedef variable_type ug::VariableArray2< T, T_ordering >::storage_type |
typedef T ug::VariableArray2< T, T_ordering >::value_type |
anonymous enum |
anonymous enum |
ug::VariableArray2< T, T_ordering >::VariableArray2 |
ug::VariableArray2< T, T_ordering >::VariableArray2 | ( | size_type | rows_, |
size_type | cols_ | ||
) |
References resize().
ug::VariableArray2< T, T_ordering >::VariableArray2 | ( | const VariableArray2< T, T_ordering > & | other | ) |
ug::VariableArray2< T, T_ordering >::~VariableArray2 |
|
inline |
|
inline |
|
inline |
References ug::VariableArray2< T, T_ordering >::cols.
|
inline |
References ug::VariableArray2< T, T_ordering >::rows.
|
inline |
Referenced by ug::LocalMatrix::num_all_col_dof(), ug::LocalMatrix::num_all_col_fct(), ug::LocalMatrix::num_col_dof(), ug::LocalMatrix::num_col_fct(), ug::LocalMatrix::operator*=(), ug::LocalMatrix::operator+=(), ug::LocalMatrix::operator-=(), ug::operator<<(), ug::LocalMatrix::operator=(), ug::LocalMatrix::resize(), ug::LocalMatrix::scale_append(), and ug::VariableArray2< T, T_ordering >::VariableArray2().
|
inline |
Referenced by ug::LocalMatrix::num_all_row_dof(), ug::LocalMatrix::num_all_row_fct(), ug::LocalMatrix::num_row_dof(), ug::LocalMatrix::num_row_fct(), ug::LocalMatrix::operator*=(), ug::LocalMatrix::operator+=(), ug::LocalMatrix::operator-=(), ug::operator<<(), ug::LocalMatrix::operator=(), ug::LocalMatrix::resize(), ug::LocalMatrix::scale_append(), and ug::VariableArray2< T, T_ordering >::VariableArray2().
|
inline |
References ug::RowMajor, and UG_ASSERT.
|
inline |
References ug::RowMajor, and UG_ASSERT.
Referenced by ug::VariableArray2< T, T_ordering >::at().
|
inline |
|
inline |
|
friend |
|
protected |
Referenced by ug::VariableArray2< T, T_ordering >::capacity_num_cols().
|
static |
|
protected |
Referenced by ug::VariableArray2< T, T_ordering >::capacity_num_rows().
|
protected |
Referenced by ug::VariableArray2< T, T_ordering >::VariableArray2().