#include <source/hierarchy/dlbg/LayerNode.h>
Inheritance diagram for SAMRAI::hier::LayerNode< DIM >:
Public Types | |
typedef int | LocalIndex |
Public Member Functions | |
LayerNode () | |
Constructor. | |
LayerNode (const hier::Box< DIM > &box, const LocalIndex index=-1, const int owner_rank=-1) | |
Constructor. | |
virtual | ~LayerNode (void) |
Destructor. | |
int | getOwnerRank () const |
LocalIndex | getLocalIndex () const |
hier::Box< DIM > & | getBox () |
const hier::Box< DIM > & | getBox () const |
bool | operator== (const LayerNode &r) const |
Equality operator. | |
bool | operator!= (const LayerNode &r) const |
Inequality operator. | |
bool | operator< (const LayerNode &r) const |
Less-than operator. | |
bool | operator> (const LayerNode &r) const |
Greater-than operator. | |
bool | operator<= (const LayerNode &r) const |
Less-than-or-equal-to operator. | |
bool | operator>= (const LayerNode &r) const |
Greater-thanor-equal-to operator. | |
void | putToIntBuffer (int *buffer) const |
Put self into a int buffer. | |
void | getFromIntBuffer (const int *buffer) |
Set self according to data in int buffer. | |
Static Public Member Functions | |
static int | commBufferSize () |
Give number of ints required in message passing buffer. | |
Friends | |
template<int D> | |
std::ostream & | operator<< (std::ostream &co, const LayerNode< D > &r) |
A DLBG node is basically a box with a specific owner process and an index on that process.
Comparison operators are implemented for sorting nodes and instantiating (STL) sets of LayerNode's. The owners and local indices are used for all comparisons The owners ranks are compared first, followed by the local indices. Less-than and greater-than comparisons are primarily used for sorting nodes.
|
|
|
Constructor.
|
|
Constructor.
|
|
Destructor. Deallocate internal data. |
|
|
|
|
|
|
|
|
|
Equality operator. For the equality operator, The box should be the same if data is consistent. If debug is turned on and the boxes do not match while the owners and indices match, then an unrecoverable exception is thrown. |
|
Inequality operator. See note on comparison for operator==(const LayerNode&); |
|
Less-than operator. See note on comparison for operator==(const LayerNode&); |
|
Greater-than operator. See note on comparison for operator==(const LayerNode&); |
|
Less-than-or-equal-to operator. See note on comparison for operator==(const LayerNode&); |
|
Greater-thanor-equal-to operator. See note on comparison for operator==(const LayerNode&); |
|
Give number of ints required in message passing buffer. This number is independent of instance (but dependent on dimension).
|
|
Put self into a int buffer. Number of ints written is given by communicationSize(). |
|
Set self according to data in int buffer. Number of ints read is given by communicationSize(). |
|
|