#include <source/patchdata/index/IndexData.h>
Inheritance diagram for SAMRAI::pdat::IndexData< DIM, TYPE >:
Public Types | |
typedef IndexIterator< DIM, TYPE > | Iterator |
Public Member Functions | |
IndexData (const hier::Box< DIM > &box, const hier::IntVector< DIM > &ghosts) | |
virtual | ~IndexData () |
virtual void | copy (const hier::PatchData< DIM > &src) |
virtual void | copy2 (hier::PatchData< DIM > &dst) const |
virtual void | copy (const hier::PatchData< DIM > &src, const hier::BoxOverlap< DIM > &overlap) |
virtual void | copy2 (hier::PatchData< DIM > &dst, const hier::BoxOverlap< DIM > &overlap) const |
virtual bool | canEstimateStreamSizeFromBox () const |
virtual int | getDataStreamSize (const hier::BoxOverlap< DIM > &overlap) const |
virtual void | packStream (tbox::AbstractStream &stream, const hier::BoxOverlap< DIM > &overlap) const |
virtual void | unpackStream (tbox::AbstractStream &stream, const hier::BoxOverlap< DIM > &overlap) |
void | appendItem (const hier::Index< DIM > &index, const TYPE &item) |
void | addItem (const hier::Index< DIM > &index, const TYPE &item) |
void | removeItem (const hier::Index< DIM > &index) |
int | getNumberItems () const |
void | removeInsideBox (const hier::Box< DIM > &box) |
void | removeOutsideBox (const hier::Box< DIM > &box) |
void | removeGhostItems () |
void | removeAllItems () |
bool | isElement (const hier::Index< DIM > &index) const |
TYPE * | getItem (const hier::Index< DIM > &index) const |
virtual void | getSpecializedFromDatabase (tbox::Pointer< tbox::Database > database) |
virtual void | putSpecializedToDatabase (tbox::Pointer< tbox::Database > database) |
Friends | |
class | IndexIterator< DIM, TYPE > |
The data type TYPE must define the following five methods which are require by this class:
More information about the templated TYPE is provided in the IndexData README file.
IndexData<DIM> objects are created by the IndexDataFactory<DIM> factory object just as all other patch data types.
|
Define the iterator. |
|
The constructor for an IndexData object. The box describes the interior of the index space and the ghosts vector describes the ghost nodes in each coordinate direction. |
|
The virtual destructor for an IndexData object. |
|
A fast copy between the source and destination. All data is copied from the source into the destination where there is overlap in the index space. |
|
|
|
Copy data from the source into the destination using the designated overlap descriptor. The overlap description should have been computed previously from computeIntersection(). |
|
|
|
Determines whether the hier::PatchData subclass can estinate the necessary stream size using only index space information. Implements SAMRAI::hier::PatchData< DIM >. |
|
Calculate the number of bytes needed to stream the data lying in the specified box domain. |
|
Pack data lying on the specified index set into the output stream. |
|
Unpack data from the message stream into the specified index set. |
|
Add a new item to the tail of the irregular index set |
|
Add a new item to the head of the irregular index set |
|
Remove (deallocate) the item in the irregular index set located at the specified hier::Index. |
|
Return the number of data items (i.e. the number of indices) in the index data list. |
|
Remove (deallocate) any items in the irregular index set located in the index space of the hier::Box. |
|
Remove (deallocate) any items in the irregular index set located outside of the index space of the hier::Box. |
|
Remove (deallocate) the items in the irregular index set located in the ghost region of the patch. |
|
Remove (deallocate) all items in the irregular index set. |
|
Returns true if there is an element of the irregular index set at the specified hier::Index. |
|
Given an index, return a pointer to the item located at that index. If there is no item at the index, null is returned. |
|
Check to make sure that the class version number is the same as the restart file version number. Assertions: database must be a non-null pointer. Implements SAMRAI::hier::PatchData< DIM >. |
|
Write out the class version number to the database. Assertions: database must be a non-null pointer. Implements SAMRAI::hier::PatchData< DIM >. |
|
|