#include <source/mathops/side/PatchSideDataOpsReal.h>
Inheritance diagram for SAMRAI::math::PatchSideDataOpsReal< DIM, TYPE >:
Public Member Functions | |
PatchSideDataOpsReal () | |
virtual | ~PatchSideDataOpsReal () |
void | copyData (tbox::Pointer< pdat::SideData< DIM, TYPE > > &dst, const tbox::Pointer< pdat::SideData< DIM, TYPE > > &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, TYPE > > &data, const hier::Box< DIM > &box, std::ostream &s=tbox::plog) const |
void | setToScalar (tbox::Pointer< pdat::SideData< DIM, TYPE > > &dst, const TYPE &alpha, const hier::Box< DIM > &box) const |
Note that this templated class should only be used to instantiate objects with double or float as the template parameter. A similar set of operations is implemented for complex and integer patch data in the classes PatchSideDataOpsComplex<DIM> and PatchSideDataOpsInteger<DIM>, repsectively.
SAMRAI::math::PatchSideDataOpsReal< DIM, TYPE >::PatchSideDataOpsReal | ( | ) |
Empty constructor and destructor.
SAMRAI::math::PatchSideDataOpsReal< DIM, TYPE >::~PatchSideDataOpsReal | ( | ) | [virtual] |
void SAMRAI::math::PatchSideDataOpsReal< DIM, TYPE >::copyData | ( | tbox::Pointer< pdat::SideData< DIM, TYPE > > & | dst, | |
const tbox::Pointer< pdat::SideData< DIM, TYPE > > & | src, | |||
const hier::Box< DIM > & | box | |||
) | const |
Copy dst data to src data over given box.
void SAMRAI::math::PatchSideDataOpsReal< DIM, TYPE >::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::PatchSideDataOpsReal< DIM, TYPE >::printData | ( | const tbox::Pointer< pdat::SideData< DIM, TYPE > > & | 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::PatchSideDataOpsReal< DIM, TYPE >::setToScalar | ( | tbox::Pointer< pdat::SideData< DIM, TYPE > > & | dst, | |
const TYPE & | alpha, | |||
const hier::Box< DIM > & | box | |||
) | const |
Initialize data to given scalar over given box.