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