|
WARPXM v1.10.0
|
#include <array.h>
Public Member Functions | |
| patch_array_t ()=default | |
| Default Constructor. | |
| patch_array_t (const WxRange &range) | |
| Allocate the array for a given range. | |
| patch_array_t (const patch_array_t &other)=default | |
| Copy Constructor. | |
| virtual | ~patch_array_t () |
| Destructor. | |
| patch_array_t & | operator= (const patch_array_t &other) |
| Assignment operator - makes a shallow copy. | |
| const WxRange & | interior_range () const |
| Returns range of interior of dataset. | |
Public Member Functions inherited from wxm::array::array_allocation_t< real > | |
| 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 real &value) |
| Fill array with a value. | |
| real * | data () |
| Access the underlying data array. | |
| const real * | data () const |
| virtual real & | operator[] (int index) |
| virtual const real & | operator[] (int index) const |
| real & | operator() (size_t i, size_t j) |
| 2D array access | |
| const real & | operator() (size_t i, size_t j) const |
| 2D array access | |
| const real & | operator() (size_t i, size_t j, size_t k) const |
| 3D array access | |
| real & | operator() (size_t i, size_t j, size_t k) |
| 3D array access | |
| const WxRange & | range () const |
Protected Attributes | |
| WxRange | _interior_range |
| Range describing interior range of dataset. | |
Protected Attributes inherited from wxm::array::array_allocation_t< real > | |
| WxRange | _range |
| Range of data. | |
| std::shared_ptr< std::vector< real > > | _data |
| Shared pointer containing data. | |
Additional Inherited Members | |
Protected Member Functions inherited from wxm::array::array_allocation_t< real > | |
| void | copy (const array_allocation_t &other) |
| void | link (const array_allocation_t &other) |
| void | allocate () |
| void | terminate () |
|
default |
Default Constructor.
|
inline |
Allocate the array for a given range.
| range | Range of array |
|
default |
Copy Constructor.
|
inlinevirtual |
Destructor.
Reimplemented in wxm::dfem::array::patch_array_t.
|
inline |
Returns range of interior of dataset.
At the time of this definition we did not have cfem arrays yet. I don't know if this function will be required for cfem. If not then it should be moved to dfem, and the underlying _range object will assume control over the patch range
|
inline |
Assignment operator - makes a shallow copy.
| other | Other array |
|
protected |
Range describing interior range of dataset.