WARPXM v1.10.0
|
#include <array.h>
Public Member Functions | |
array_allocation_t ()=default | |
Default Constructor. | |
array_allocation_t (const WxRange &range) | |
Allocate the array for a given range. | |
array_allocation_t (const array_allocation_t &other)=default | |
Copy Constructor. | |
virtual | ~array_allocation_t () |
Destructor. | |
array_allocation_t & | operator= (const array_allocation_t &other) |
Assignment operator - makes a shallow copy. | |
void | fill (const T &value) |
Fill array with a value. | |
T * | data () |
Access the underlying data array. | |
const T * | data () const |
virtual T & | operator[] (int index) |
virtual const T & | operator[] (int index) const |
T & | operator() (size_t i, size_t j) |
2D array access | |
const T & | operator() (size_t i, size_t j) const |
2D array access | |
const T & | operator() (size_t i, size_t j, size_t k) const |
3D array access | |
T & | operator() (size_t i, size_t j, size_t k) |
3D array access | |
const WxRange & | range () const |
Protected Member Functions | |
void | copy (const array_allocation_t &other) |
void | link (const array_allocation_t &other) |
void | allocate () |
void | terminate () |
Protected Attributes | |
WxRange | _range |
Range of data. | |
std::shared_ptr< std::vector< T > > | _data |
Shared pointer containing data. | |
Friends | |
std::ostream & | operator<< (std::ostream &stream, const array_allocation_t &array) |
|
default |
Default Constructor.
|
inline |
Allocate the array for a given range.
range | Range of array |
|
default |
Copy Constructor.
|
inlinevirtual |
Destructor.
|
inlineprotected |
|
inlineprotected |
|
inline |
Access the underlying data array.
|
inline |
|
inline |
Fill array with a value.
value | Value to fill with |
|
inlineprotected |
|
inline |
2D array access
|
inline |
2D array access
|
inline |
3D array access
|
inline |
3D array access
|
inline |
Assignment operator - makes a shallow copy.
other | Other array |
|
inlinevirtual |
Reimplemented in wxm::dfem::array::UniquePatchArray.
|
inlinevirtual |
Reimplemented in wxm::dfem::array::UniquePatchArray.
|
inline |
|
inlineprotected |
|
friend |
|
protected |
Shared pointer containing data.
|
protected |
Range of data.