|
Proto
3.2
|
Data Index. More...
#include <Proto_DataIndex.H>

Public Member Functions | |
| DataIndex () | |
| Default Constructor. More... | |
| DataIndex (const std::shared_ptr< P > a_partition, unsigned int a_index) | |
| Explicit Constructor. More... | |
| DataIndex (const DataIndex &other) | |
| Copy constructor. More... | |
| DataIndex & | operator= (const DataIndex &other) |
| Copy assignment. More... | |
| ~DataIndex () | |
| Destructor. More... | |
| bool | operator== (const DataIndex< P > &a_di) const |
| Equality Operator. More... | |
| bool | operator== (const DataIterator< P > &a_iter) const |
| Equality Operator (Overload) More... | |
| bool | operator!= (const DataIndex< P > &a_di) const |
| Inequality Operator. More... | |
| bool | operator!= (const DataIterator< P > &a_iter) const |
| Inequality Operator (Overload) More... | |
| operator int () const | |
| Integer Cast. More... | |
| int | local () const |
| Local Value. More... | |
| int | global () const |
| Local Value. More... | |
| bool | compatible (const DataIndex< P > &a_index) const |
| Compatibility Query. More... | |
| bool | compatible (const P &a_partition) const |
| Compatibility Query. More... | |
| const P & | partition () const |
Protected Attributes | |
| shared_ptr< P > | m_partition |
| int | m_currentInt |
Friends | |
| class | DisjointBoxLayout |
| template<typename PP > | |
| class | DataIterator |
| template<typename PP > | |
| std::ostream & | operator<< (std::ostream &a_os, const DataIndex< PP > &a_index) |
Data Index.
Data Index is a special object used in tandem with DataIterator. See DataIterator for further documentation.
| P | A "Partition" object which defines "layoutness" of the iterable object (see BoxPartition) |
|
inline |
Default Constructor.
|
inline |
Explicit Constructor.
|
inline |
Copy constructor.
|
inline |
Destructor.
|
inline |
Copy assignment.
|
inline |
Equality Operator.
Referenced by Proto::DataIndex< BoxPartition >::operator==().
|
inline |
Equality Operator (Overload)
Provided to increase expressiveness and backwards compatibility
|
inline |
Inequality Operator.
Referenced by Proto::DataIndex< BoxPartition >::operator!=().
|
inline |
Inequality Operator (Overload)
Provided to increase expressiveness and backwards compatibility
|
inline |
Integer Cast.
Data Index implicitly casts to the LOCAL index of the iterable. This behavior is used internally to increase code clarity.
|
inline |
Local Value.
Returns the integer value associated with the LOCAL (in the sense of MPI process) index of the iterate.
Referenced by Proto::DataIndex< BoxPartition >::operator int().
|
inline |
Local Value.
Returns the integer value associated with the GLOBAL (in the sense of MPI process) index of the iterate.
|
inline |
Compatibility Query.
Returns true if the partition associated with *this is compatible with that associated with another index.
Referenced by Proto::CoarseFineBoundary< P >::onCoarseBoundary(), and Proto::CoarseFineBoundary< P >::onFineBoundary().
|
inline |
Compatibility Query.
Returns true if the partition associated with *this is compatible with another partition.
|
inline |
|
friend |
|
friend |
|
protected |
|
protected |
1.8.13