34 #ifndef __H__UG__COMMON__VARIABLE_ARRAY_H__
35 #define __H__UG__COMMON__VARIABLE_ARRAY_H__
113 template<
typename _T>
137 template<
typename T, eMatrixOrdering T_ordering=ColMajor>
202 template<
typename _T, eMatrixOrdering _T_Ordering>
Definition: variable_array.h:59
T * values
Definition: variable_array.h:117
size_type n
Definition: variable_array.h:118
~VariableArray1()
Definition: variable_array_impl.h:74
bool reserve(size_type n) const
Definition: variable_array_impl.h:141
size_t size_type
Definition: variable_array.h:62
friend std::ostream & operator<<(std::ostream &out, const VariableArray1< _T > &arr)
T & at(size_type i)
Definition: variable_array.h:99
size_type size() const
Definition: variable_array_impl.h:85
const T & at(size_type i) const
Definition: variable_array.h:92
T value_type
Definition: variable_array.h:61
VariableArray1()
Definition: variable_array_impl.h:47
const T & operator[](size_type i) const
Definition: variable_array_impl.h:160
variable_type storage_type
Definition: variable_array.h:63
bool resize(size_type n, bool bCopyValues=true)
Definition: variable_array_impl.h:92
size_type capacity() const
Definition: variable_array_impl.h:132
Definition: variable_array.h:139
static const eMatrixOrdering ordering
Definition: variable_array.h:143
T value_type
Definition: variable_array.h:141
T * values
Definition: variable_array.h:206
size_type capacity_num_rows() const
Definition: variable_array.h:170
variable_type storage_type
Definition: variable_array.h:147
void reserve(size_type nrRows, size_type nrCols) const
Definition: variable_array.h:176
VariableArray2()
Definition: variable_array_impl.h:182
bool resize(size_type newRows, size_type newCols, bool bCopyValues=true)
Definition: variable_array_impl.h:237
size_type num_rows() const
Definition: variable_array_impl.h:222
@ is_static
Definition: variable_array.h:144
const T & at(size_type r, size_type c) const
Definition: variable_array.h:181
friend std::ostream & operator<<(std::ostream &out, const VariableArray2< _T, _T_Ordering > &arr)
size_type cols
Definition: variable_array.h:208
size_type rows
Definition: variable_array.h:207
size_type num_cols() const
Definition: variable_array_impl.h:229
const T & operator()(size_type r, size_type c) const
Definition: variable_array_impl.h:299
size_t size_type
Definition: variable_array.h:142
T & at(size_type r, size_type c)
Definition: variable_array.h:188
~VariableArray2()
Definition: variable_array_impl.h:212
@ static_num_rows
Definition: variable_array.h:145
@ static_num_cols
Definition: variable_array.h:146
size_type capacity_num_cols() const
Definition: variable_array.h:173
eMatrixOrdering
Definition: storage.h:47
@ is_static
Definition: storage.h:59
@ static_size
Definition: storage.h:60