WARPXM v1.10.0
Loading...
Searching...
No Matches
wxm::array::patch_array_t Class Reference

#include <array.h>

Inheritance diagram for wxm::array::patch_array_t:
wxm::array::array_allocation_t< real > wxm::dfem::array::UniquePatchArray wxm::dfem::array::patch_array_t

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_toperator= (const patch_array_t &other)
 Assignment operator - makes a shallow copy.
 
const WxRangeinterior_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_toperator= (const array_allocation_t &other)
 Assignment operator - makes a shallow copy.
 
void fill (const real &value)
 Fill array with a value.
 
realdata ()
 Access the underlying data array.
 
const realdata () const
 
virtual realoperator[] (int index)
 
virtual const realoperator[] (int index) const
 
realoperator() (size_t i, size_t j)
 2D array access
 
const realoperator() (size_t i, size_t j) const
 2D array access
 
const realoperator() (size_t i, size_t j, size_t k) const
 3D array access
 
realoperator() (size_t i, size_t j, size_t k)
 3D array access
 
const WxRangerange () 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 ()
 

Constructor & Destructor Documentation

◆ patch_array_t() [1/3]

wxm::array::patch_array_t::patch_array_t ( )
default

Default Constructor.

◆ patch_array_t() [2/3]

wxm::array::patch_array_t::patch_array_t ( const WxRange range)
inline

Allocate the array for a given range.

Parameters
rangeRange of array

◆ patch_array_t() [3/3]

wxm::array::patch_array_t::patch_array_t ( const patch_array_t other)
default

Copy Constructor.

◆ ~patch_array_t()

virtual wxm::array::patch_array_t::~patch_array_t ( )
inlinevirtual

Destructor.

Reimplemented in wxm::dfem::array::patch_array_t.

Member Function Documentation

◆ interior_range()

const WxRange & wxm::array::patch_array_t::interior_range ( ) const
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

Returns
Interior range

◆ operator=()

patch_array_t & wxm::array::patch_array_t::operator= ( const patch_array_t other)
inline

Assignment operator - makes a shallow copy.

Parameters
otherOther array
Returns
Reference to this object

Member Data Documentation

◆ _interior_range

WxRange wxm::array::patch_array_t::_interior_range
protected

Range describing interior range of dataset.


The documentation for this class was generated from the following file: