#include <source/mathops/side/PatchSideDataOpsInteger.h>
Inheritance diagram for SAMRAI::math::PatchSideDataOpsInteger< DIM >:
Public Member Functions | |
PatchSideDataOpsInteger () | |
virtual | ~PatchSideDataOpsInteger () |
int | numberOfEntries (const tbox::Pointer< pdat::SideData< DIM, int > > &data, const hier::Box< DIM > &box) const |
void | copyData (tbox::Pointer< pdat::SideData< DIM, int > > &dst, const tbox::Pointer< pdat::SideData< DIM, int > > &src, const hier::Box< DIM > &box) const |
void | swapData (tbox::Pointer< hier::Patch< DIM > > patch, const int data1_id, const int data2_id) const |
void | printData (const tbox::Pointer< pdat::SideData< DIM, int > > &data, const hier::Box< DIM > &box, std::ostream &s=tbox::plog) const |
void | setToScalar (tbox::Pointer< pdat::SideData< DIM, int > > &dst, const int &alpha, const hier::Box< DIM > &box) const |
void | abs (tbox::Pointer< pdat::SideData< DIM, int > > &dst, const tbox::Pointer< pdat::SideData< DIM, int > > &src, const hier::Box< DIM > &box) const |
A more extensive set of operations is implemented for real (double and float) and complex patch data in the classes PatchSideDataOpsReal<DIM> and PatchSideDataOpsComplex<DIM>, repsectively.
SAMRAI::math::PatchSideDataOpsInteger< DIM >::PatchSideDataOpsInteger | ( | ) |
Empty constructor and destructor.
SAMRAI::math::PatchSideDataOpsInteger< DIM >::~PatchSideDataOpsInteger | ( | ) | [virtual] |
int SAMRAI::math::PatchSideDataOpsInteger< DIM >::numberOfEntries | ( | const tbox::Pointer< pdat::SideData< DIM, int > > & | data, | |
const hier::Box< DIM > & | box | |||
) | const |
Return the number of data values for the side-centered data object in the given box. Note that it is assumed that the box refers to the cell-centered index space corresponding to the patch hierarchy.
void SAMRAI::math::PatchSideDataOpsInteger< DIM >::copyData | ( | tbox::Pointer< pdat::SideData< DIM, int > > & | dst, | |
const tbox::Pointer< pdat::SideData< DIM, int > > & | src, | |||
const hier::Box< DIM > & | box | |||
) | const |
Copy dst data to src data over given box.
void SAMRAI::math::PatchSideDataOpsInteger< DIM >::swapData | ( | tbox::Pointer< hier::Patch< DIM > > | patch, | |
const int | data1_id, | |||
const int | data2_id | |||
) | const |
Swap pointers for patch data objects. Objects are checked for consistency of depth, box, and ghost box.
void SAMRAI::math::PatchSideDataOpsInteger< DIM >::printData | ( | const tbox::Pointer< pdat::SideData< DIM, int > > & | data, | |
const hier::Box< DIM > & | box, | |||
std::ostream & | s = tbox::plog | |||
) | const |
Print data entries over given box to given output stream.
void SAMRAI::math::PatchSideDataOpsInteger< DIM >::setToScalar | ( | tbox::Pointer< pdat::SideData< DIM, int > > & | dst, | |
const int & | alpha, | |||
const hier::Box< DIM > & | box | |||
) | const |
Initialize data to given scalar over given box.
void SAMRAI::math::PatchSideDataOpsInteger< DIM >::abs | ( | tbox::Pointer< pdat::SideData< DIM, int > > & | dst, | |
const tbox::Pointer< pdat::SideData< DIM, int > > & | src, | |||
const hier::Box< DIM > & | box | |||
) | const |
Set destination component to absolute value of source component. That is, each destination entry is set to .