#include <source/mathops/hierarchy/HierarchyDataOpsInteger.h>
Inheritance diagram for SAMRAI::math::HierarchyDataOpsInteger< DIM >:
Public Member Functions | |
HierarchyDataOpsInteger () | |
virtual | ~HierarchyDataOpsInteger () |
virtual void | setPatchHierarchy (tbox::Pointer< hier::PatchHierarchy< DIM > > hierarchy)=0 |
virtual void | resetLevels (const int coarsest_level, const int finest_level)=0 |
virtual const tbox::Pointer< hier::PatchHierarchy< DIM > > | getPatchHierarchy () const=0 |
virtual int | numberOfEntries (const int data_id, const bool interior_only=true) const =0 |
virtual void | copyData (const int dst_id, const int src_id, const bool interior_only=true) const =0 |
virtual void | swapData (const int data1_id, const int data2_id) const=0 |
virtual void | printData (const int data_id, std::ostream &s, const bool interior_only=true) const =0 |
virtual void | setToScalar (const int data_id, const int &alpha, const bool interior_only=true) const=0 |
virtual void | scale (const int dst_id, const int &alpha, const int src_id, const bool interior_only=true) const =0 |
virtual void | addScalar (const int dst_id, const int src_id, const int &alpha, const bool interior_only=true) const =0 |
virtual void | add (const int dst_id, const int src1_id, const int src2_id, const bool interior_only=true) const =0 |
virtual void | subtract (const int dst_id, const int src1_id, const int src2_id, const bool interior_only=true) const =0 |
virtual void | multiply (const int dst_id, const int src1_id, const int src2_id, const bool interior_only=true) const =0 |
virtual void | divide (const int dst_id, const int src1_id, const int src2_id, const bool interior_only=true) const =0 |
virtual void | reciprocal (const int dst_id, const int src_id, const bool interior_only=true) const =0 |
virtual void | linearSum (const int dst_id, const int &alpha, const int src1_id, const int &beta, const int src2_id, const bool interior_only=true) const =0 |
virtual void | axpy (const int dst_id, const int &alpha, const int src1_id, const int src2_id, const bool interior_only=true) const =0 |
virtual void | axmy (const int dst_id, const int &alpha, const int src1_id, const int src2_id, const bool interior_only=true) const =0 |
virtual void | abs (const int dst_id, const int src_id, const bool interior_only=true) const =0 |
virtual int | min (const int data_id, const bool interior_only=true) const =0 |
virtual int | max (const int data_id, const bool interior_only=true) const =0 |
virtual void | setRandomValues (const int data_id, const int &width, const int &low, const bool interior_only=true) const=0 |
Note that, when it makes sense, an operation accept a boolean argument which indicates whether the operation should be performed on all of the data or just those data elements corresponding to the patch interiors. If no boolean argument is provided, the default behavior is to treat only the patch interiors. Also, interfaces for similar sets of operations for real (double and float) and complex hierarchy data are defined in the classes HierarchyDataOpsReal<DIM> and HierarchyDataOpsComplex<DIM>, respectively.
SAMRAI::math::HierarchyDataOpsInteger< DIM >::HierarchyDataOpsInteger | ( | ) |
The constructor for the HierarchyDataOpsInteger<DIM> class.
SAMRAI::math::HierarchyDataOpsInteger< DIM >::~HierarchyDataOpsInteger | ( | ) | [virtual] |
Virtual destructor for the HierarchyDataOpsInteger<DIM> class.
virtual void SAMRAI::math::HierarchyDataOpsInteger< DIM >::setPatchHierarchy | ( | tbox::Pointer< hier::PatchHierarchy< DIM > > | hierarchy | ) | [pure virtual] |
Reset patch hierarchy over which operations occur.
Implemented in SAMRAI::math::HierarchyCellDataOpsInteger< DIM >, SAMRAI::math::HierarchyEdgeDataOpsInteger< DIM >, SAMRAI::math::HierarchyFaceDataOpsInteger< DIM >, SAMRAI::math::HierarchyNodeDataOpsInteger< DIM >, and SAMRAI::math::HierarchySideDataOpsInteger< DIM >.
virtual void SAMRAI::math::HierarchyDataOpsInteger< DIM >::resetLevels | ( | const int | coarsest_level, | |
const int | finest_level | |||
) | [pure virtual] |
Reset range of patch levels over which operations occur. Typically, levels must exist in hierarchy or an assertion will result.
Implemented in SAMRAI::math::HierarchyCellDataOpsInteger< DIM >, SAMRAI::math::HierarchyEdgeDataOpsInteger< DIM >, SAMRAI::math::HierarchyFaceDataOpsInteger< DIM >, SAMRAI::math::HierarchyNodeDataOpsInteger< DIM >, and SAMRAI::math::HierarchySideDataOpsInteger< DIM >.
virtual const tbox::Pointer< hier::PatchHierarchy<DIM> > SAMRAI::math::HierarchyDataOpsInteger< DIM >::getPatchHierarchy | ( | ) | const [pure virtual] |
Return const pointer to patch hierarchy associated with operations.
Implemented in SAMRAI::math::HierarchyCellDataOpsInteger< DIM >, SAMRAI::math::HierarchyEdgeDataOpsInteger< DIM >, SAMRAI::math::HierarchyFaceDataOpsInteger< DIM >, SAMRAI::math::HierarchyNodeDataOpsInteger< DIM >, and SAMRAI::math::HierarchySideDataOpsInteger< DIM >.
virtual int SAMRAI::math::HierarchyDataOpsInteger< DIM >::numberOfEntries | ( | const int | data_id, | |
const bool | interior_only = true | |||
) | const [pure virtual] |
Return the total number of data values for the component on the set of hierarchy levels. If the boolean argument is true, the number of elements will be summed over patch interiors. If the boolean argument is false, all elements will be counted (including ghost values) over all patches.
Implemented in SAMRAI::math::HierarchyCellDataOpsInteger< DIM >, SAMRAI::math::HierarchyEdgeDataOpsInteger< DIM >, SAMRAI::math::HierarchyFaceDataOpsInteger< DIM >, SAMRAI::math::HierarchyNodeDataOpsInteger< DIM >, and SAMRAI::math::HierarchySideDataOpsInteger< DIM >.
virtual void SAMRAI::math::HierarchyDataOpsInteger< DIM >::copyData | ( | const int | dst_id, | |
const int | src_id, | |||
const bool | interior_only = true | |||
) | const [pure virtual] |
Copy source data to destination data.
Implemented in SAMRAI::math::HierarchyCellDataOpsInteger< DIM >, SAMRAI::math::HierarchyEdgeDataOpsInteger< DIM >, SAMRAI::math::HierarchyFaceDataOpsInteger< DIM >, SAMRAI::math::HierarchyNodeDataOpsInteger< DIM >, and SAMRAI::math::HierarchySideDataOpsInteger< DIM >.
virtual void SAMRAI::math::HierarchyDataOpsInteger< DIM >::swapData | ( | const int | data1_id, | |
const int | data2_id | |||
) | const [pure virtual] |
Swap data pointers (i.e., storage) between two data components.
Implemented in SAMRAI::math::HierarchyCellDataOpsInteger< DIM >, SAMRAI::math::HierarchyEdgeDataOpsInteger< DIM >, SAMRAI::math::HierarchyFaceDataOpsInteger< DIM >, SAMRAI::math::HierarchyNodeDataOpsInteger< DIM >, and SAMRAI::math::HierarchySideDataOpsInteger< DIM >.
virtual void SAMRAI::math::HierarchyDataOpsInteger< DIM >::printData | ( | const int | data_id, | |
std::ostream & | s, | |||
const bool | interior_only = true | |||
) | const [pure virtual] |
Print data over multiple levels to specified output stream.
Implemented in SAMRAI::math::HierarchyCellDataOpsInteger< DIM >, SAMRAI::math::HierarchyEdgeDataOpsInteger< DIM >, SAMRAI::math::HierarchyFaceDataOpsInteger< DIM >, SAMRAI::math::HierarchyNodeDataOpsInteger< DIM >, and SAMRAI::math::HierarchySideDataOpsInteger< DIM >.
virtual void SAMRAI::math::HierarchyDataOpsInteger< DIM >::setToScalar | ( | const int | data_id, | |
const int & | alpha, | |||
const bool | interior_only = true | |||
) | const [pure virtual] |
Set data component to given scalar.
Implemented in SAMRAI::math::HierarchyCellDataOpsInteger< DIM >, SAMRAI::math::HierarchyEdgeDataOpsInteger< DIM >, SAMRAI::math::HierarchyFaceDataOpsInteger< DIM >, SAMRAI::math::HierarchyNodeDataOpsInteger< DIM >, and SAMRAI::math::HierarchySideDataOpsInteger< DIM >.
virtual void SAMRAI::math::HierarchyDataOpsInteger< DIM >::scale | ( | const int | dst_id, | |
const int & | alpha, | |||
const int | src_id, | |||
const bool | interior_only = true | |||
) | const [pure virtual] |
Set destination to source multiplied by given scalar, pointwise.
Implemented in SAMRAI::math::HierarchyCellDataOpsInteger< DIM >, SAMRAI::math::HierarchyEdgeDataOpsInteger< DIM >, SAMRAI::math::HierarchyFaceDataOpsInteger< DIM >, SAMRAI::math::HierarchyNodeDataOpsInteger< DIM >, and SAMRAI::math::HierarchySideDataOpsInteger< DIM >.
virtual void SAMRAI::math::HierarchyDataOpsInteger< DIM >::addScalar | ( | const int | dst_id, | |
const int | src_id, | |||
const int & | alpha, | |||
const bool | interior_only = true | |||
) | const [pure virtual] |
Add scalar to each entry in source data and set destination to result.
Implemented in SAMRAI::math::HierarchyCellDataOpsInteger< DIM >, SAMRAI::math::HierarchyEdgeDataOpsInteger< DIM >, SAMRAI::math::HierarchyFaceDataOpsInteger< DIM >, SAMRAI::math::HierarchyNodeDataOpsInteger< DIM >, and SAMRAI::math::HierarchySideDataOpsInteger< DIM >.
virtual void SAMRAI::math::HierarchyDataOpsInteger< DIM >::add | ( | const int | dst_id, | |
const int | src1_id, | |||
const int | src2_id, | |||
const bool | interior_only = true | |||
) | const [pure virtual] |
Set destination to sum of two source components, pointwise.
Implemented in SAMRAI::math::HierarchyCellDataOpsInteger< DIM >, SAMRAI::math::HierarchyEdgeDataOpsInteger< DIM >, SAMRAI::math::HierarchyFaceDataOpsInteger< DIM >, SAMRAI::math::HierarchyNodeDataOpsInteger< DIM >, and SAMRAI::math::HierarchySideDataOpsInteger< DIM >.
virtual void SAMRAI::math::HierarchyDataOpsInteger< DIM >::subtract | ( | const int | dst_id, | |
const int | src1_id, | |||
const int | src2_id, | |||
const bool | interior_only = true | |||
) | const [pure virtual] |
Subtract second source component from first source component pointwise and set destination data component to result.
Implemented in SAMRAI::math::HierarchyCellDataOpsInteger< DIM >, SAMRAI::math::HierarchyEdgeDataOpsInteger< DIM >, SAMRAI::math::HierarchyFaceDataOpsInteger< DIM >, SAMRAI::math::HierarchyNodeDataOpsInteger< DIM >, and SAMRAI::math::HierarchySideDataOpsInteger< DIM >.
virtual void SAMRAI::math::HierarchyDataOpsInteger< DIM >::multiply | ( | const int | dst_id, | |
const int | src1_id, | |||
const int | src2_id, | |||
const bool | interior_only = true | |||
) | const [pure virtual] |
Set destination component to product of two source components, pointwise.
Implemented in SAMRAI::math::HierarchyCellDataOpsInteger< DIM >, SAMRAI::math::HierarchyEdgeDataOpsInteger< DIM >, SAMRAI::math::HierarchyFaceDataOpsInteger< DIM >, SAMRAI::math::HierarchyNodeDataOpsInteger< DIM >, and SAMRAI::math::HierarchySideDataOpsInteger< DIM >.
virtual void SAMRAI::math::HierarchyDataOpsInteger< DIM >::divide | ( | const int | dst_id, | |
const int | src1_id, | |||
const int | src2_id, | |||
const bool | interior_only = true | |||
) | const [pure virtual] |
Divide first data component by second source component pointwise and set destination data component to result.
Implemented in SAMRAI::math::HierarchyCellDataOpsInteger< DIM >, SAMRAI::math::HierarchyEdgeDataOpsInteger< DIM >, SAMRAI::math::HierarchyFaceDataOpsInteger< DIM >, SAMRAI::math::HierarchyNodeDataOpsInteger< DIM >, and SAMRAI::math::HierarchySideDataOpsInteger< DIM >.
virtual void SAMRAI::math::HierarchyDataOpsInteger< DIM >::reciprocal | ( | const int | dst_id, | |
const int | src_id, | |||
const bool | interior_only = true | |||
) | const [pure virtual] |
Set each entry of destination component to reciprocal of corresponding source data component entry.
Implemented in SAMRAI::math::HierarchyCellDataOpsInteger< DIM >, SAMRAI::math::HierarchyEdgeDataOpsInteger< DIM >, SAMRAI::math::HierarchyFaceDataOpsInteger< DIM >, SAMRAI::math::HierarchyNodeDataOpsInteger< DIM >, and SAMRAI::math::HierarchySideDataOpsInteger< DIM >.
virtual void SAMRAI::math::HierarchyDataOpsInteger< DIM >::linearSum | ( | const int | dst_id, | |
const int & | alpha, | |||
const int | src1_id, | |||
const int & | beta, | |||
const int | src2_id, | |||
const bool | interior_only = true | |||
) | const [pure virtual] |
Set , where is the destination patch data component and are the first and second source components, respectively. Here are scalar values.
Implemented in SAMRAI::math::HierarchyCellDataOpsInteger< DIM >, SAMRAI::math::HierarchyEdgeDataOpsInteger< DIM >, SAMRAI::math::HierarchyFaceDataOpsInteger< DIM >, SAMRAI::math::HierarchyNodeDataOpsInteger< DIM >, and SAMRAI::math::HierarchySideDataOpsInteger< DIM >.
virtual void SAMRAI::math::HierarchyDataOpsInteger< DIM >::axpy | ( | const int | dst_id, | |
const int & | alpha, | |||
const int | src1_id, | |||
const int | src2_id, | |||
const bool | interior_only = true | |||
) | const [pure virtual] |
Set , where is the destination patch data component and are the first and second source components, respectively. Here is a scalar.
Implemented in SAMRAI::math::HierarchyCellDataOpsInteger< DIM >, SAMRAI::math::HierarchyEdgeDataOpsInteger< DIM >, SAMRAI::math::HierarchyFaceDataOpsInteger< DIM >, SAMRAI::math::HierarchyNodeDataOpsInteger< DIM >, and SAMRAI::math::HierarchySideDataOpsInteger< DIM >.
virtual void SAMRAI::math::HierarchyDataOpsInteger< DIM >::axmy | ( | const int | dst_id, | |
const int & | alpha, | |||
const int | src1_id, | |||
const int | src2_id, | |||
const bool | interior_only = true | |||
) | const [pure virtual] |
Set , where is the destination patch data component and are the first and second source components, respectively. Here is a scalar.
Implemented in SAMRAI::math::HierarchyCellDataOpsInteger< DIM >, SAMRAI::math::HierarchyEdgeDataOpsInteger< DIM >, SAMRAI::math::HierarchyFaceDataOpsInteger< DIM >, SAMRAI::math::HierarchyNodeDataOpsInteger< DIM >, and SAMRAI::math::HierarchySideDataOpsInteger< DIM >.
virtual void SAMRAI::math::HierarchyDataOpsInteger< DIM >::abs | ( | const int | dst_id, | |
const int | src_id, | |||
const bool | interior_only = true | |||
) | const [pure virtual] |
Set destination data to absolute value of source data, pointwise.
Implemented in SAMRAI::math::HierarchyCellDataOpsInteger< DIM >, SAMRAI::math::HierarchyEdgeDataOpsInteger< DIM >, SAMRAI::math::HierarchyFaceDataOpsInteger< DIM >, SAMRAI::math::HierarchyNodeDataOpsInteger< DIM >, and SAMRAI::math::HierarchySideDataOpsInteger< DIM >.
virtual int SAMRAI::math::HierarchyDataOpsInteger< DIM >::min | ( | const int | data_id, | |
const bool | interior_only = true | |||
) | const [pure virtual] |
Return minimum data value over all patches in the collection of levels.
Implemented in SAMRAI::math::HierarchyCellDataOpsInteger< DIM >, SAMRAI::math::HierarchyEdgeDataOpsInteger< DIM >, SAMRAI::math::HierarchyFaceDataOpsInteger< DIM >, SAMRAI::math::HierarchyNodeDataOpsInteger< DIM >, and SAMRAI::math::HierarchySideDataOpsInteger< DIM >.
virtual int SAMRAI::math::HierarchyDataOpsInteger< DIM >::max | ( | const int | data_id, | |
const bool | interior_only = true | |||
) | const [pure virtual] |
Return maximum data value over all patches in the collection of levels.
Implemented in SAMRAI::math::HierarchyCellDataOpsInteger< DIM >, SAMRAI::math::HierarchyEdgeDataOpsInteger< DIM >, SAMRAI::math::HierarchyFaceDataOpsInteger< DIM >, SAMRAI::math::HierarchyNodeDataOpsInteger< DIM >, and SAMRAI::math::HierarchySideDataOpsInteger< DIM >.
virtual void SAMRAI::math::HierarchyDataOpsInteger< DIM >::setRandomValues | ( | const int | data_id, | |
const int & | width, | |||
const int & | low, | |||
const bool | interior_only = true | |||
) | const [pure virtual] |
Set data entries to random values. See the operations in the array data operation classes for each data type for details on the generation of the random values.
Implemented in SAMRAI::math::HierarchyCellDataOpsInteger< DIM >, SAMRAI::math::HierarchyEdgeDataOpsInteger< DIM >, SAMRAI::math::HierarchyFaceDataOpsInteger< DIM >, SAMRAI::math::HierarchyNodeDataOpsInteger< DIM >, and SAMRAI::math::HierarchySideDataOpsInteger< DIM >.