BEM++
2.0
|
Simple implementation of a 2D Fortran-ordered array. More...
#include </home/wojtek/Projects/BEM/bempp-sven/bempp/lib/fiber/_2d_array.hpp>
Public Types | |
typedef T * | iterator |
typedef const T * | const_iterator |
Public Member Functions | |
_2dArray (size_t extent0, size_t extent1) | |
_2dArray (size_t extent0, size_t extent1, T *data) | |
_2dArray (const _2dArray &other) | |
_2dArray & | operator= (const _2dArray &rhs) |
T & | operator() (size_t index0, size_t index1) |
const T & | operator() (size_t index0, size_t index1) const |
_2dArray< T > & | operator+= (const _2dArray< T > &other) |
_2dArray< T > & | operator*= (const T &other) |
size_t | extent (size_t dimension) const |
void | set_size (size_t extent0, size_t extent1) |
iterator | begin () |
const_iterator | begin () const |
iterator | end () |
const_iterator | end () const |
Private Attributes | |
size_t | m_extents [2] |
bool | m_owns |
T * | m_storage |
Simple implementation of a 2D Fortran-ordered array.
Bound checking can optionally be activated by defining the symbol FIBER_CHECK_ARRAY_BOUNDS.