34#ifndef __H__UG__COMMON__FIXED_ARRAY_H__
35#define __H__UG__COMMON__FIXED_ARRAY_H__
54template<
typename T,
size_t n>
105 template<
typename _T,
size_type _n>
114template<
typename T,
size_t N>
133template<
typename T,
size_t rowsT,
size_t colsT, eMatrixOrdering T_ordering=ColMajor>
177 assert(nrRows == rowsT && nrCols == colsT);
178 return nrRows == rowsT && nrCols == colsT;
204 template<
typename a,
size_type b,
size_type c, eMatrixOrdering d>
Definition fixed_array.h:56
T value_type
Definition fixed_array.h:58
T & at(size_type i)
Definition fixed_array.h:93
bool resize(size_type newN, bool bCopyValues=true)
Definition fixed_array_impl.h:79
bool reserve(size_type newN) const
Definition fixed_array_impl.h:88
T values[n]
Definition fixed_array.h:111
size_type capacity() const
const T & operator[](size_type i) const
Definition fixed_array_impl.h:106
friend std::ostream & operator<<(std::ostream &out, const FixedArray1< _T, _n > &arr)
const T & at(size_type i) const
Definition fixed_array.h:87
static_type storage_type
Definition fixed_array.h:60
size_t size_type
Definition fixed_array.h:59
size_type size() const
Definition fixed_array_impl.h:71
FixedArray1()
Definition fixed_array_impl.h:44
~FixedArray1()
Definition fixed_array_impl.h:63
Definition fixed_array.h:135
@ static_num_rows
Definition fixed_array.h:141
FixedArray2()
Definition fixed_array_impl.h:130
@ is_static
Definition fixed_array.h:140
size_type num_rows() const
Definition fixed_array_impl.h:157
bool resize(size_type newRows, size_type newCols, bool bCopyValues=true)
Definition fixed_array_impl.h:172
T & at(size_type r, size_type c)
Definition fixed_array.h:191
friend std::ostream & operator<<(std::ostream &out, const FixedArray2< a, b, c, d > &arr)
static const eMatrixOrdering ordering
Definition fixed_array.h:139
const T & at(size_type r, size_type c) const
Definition fixed_array.h:184
~FixedArray2()
Definition fixed_array_impl.h:149
T value_type
Definition fixed_array.h:137
size_t size_type
Definition fixed_array.h:138
const T & operator()(size_type r, size_type c) const
Definition fixed_array_impl.h:196
@ static_num_cols
Definition fixed_array.h:142
static_type storage_type
Definition fixed_array.h:143
size_type num_cols() const
Definition fixed_array_impl.h:164
T values[rowsT *colsT]
Definition fixed_array.h:210
bool reserve(size_type nrRows, size_type nrCols) const
Definition fixed_array.h:175
size_type capacity_num_cols() const
Definition fixed_array.h:169
size_type capacity_num_rows() const
Definition fixed_array.h:166
eMatrixOrdering
Definition storage.h:47
@ is_static
Definition storage.h:59
@ static_size
Definition storage.h:60