6#ifndef DUNE_PLOCALINDEX_HH
7#define DUNE_PLOCALINDEX_HH
29 template<
class T>
class ParallelLocalIndex;
39 os<<
"{local="<<index.localIndex_<<
", attr="<<T(index.attribute_)<<
", public="
40 <<(index.public_ ?
true :
false)<<
"}";
120 inline size_t local()
const;
125 inline operator size_t()
const;
176 if(
p1.local()!=
p2.local())
178 if(
p1.attribute()!=
p2.attribute())
180 if(
p1.isPublic()!=
p2.isPublic())
197 return t1.attribute()<
t2.attribute();
239 return T(attribute_);
246 attribute_ = attribute;
272 return static_cast<bool>(public_);
284 state_=
static_cast<char>(state);
Provides classes for use as the local index in ParallelIndexSet.
Traits classes for mapping types onto MPI_Datatype.
Provides a map between global and local indices.
std::ostream & operator<<(std::ostream &s, const bigunsignedint< k > &x)
Definition bigunsignedint.hh:278
EnableIfInterOperable< T1, T2, bool >::type operator==(const ForwardIteratorFacade< T1, V1, R1, D > &lhs, const ForwardIteratorFacade< T2, V2, R2, D > &rhs)
Checks for equality.
Definition iteratorfacades.hh:237
EnableIfInterOperable< T1, T2, bool >::type operator!=(const ForwardIteratorFacade< T1, V1, R1, D > &lhs, const ForwardIteratorFacade< T2, V2, R2, D > &rhs)
Checks for inequality.
Definition iteratorfacades.hh:259
bool isPublic() const
Check whether the index might also be known other processes.
Definition plocalindex.hh:270
void setAttribute(const Attribute &attribute)
Set the attribute of the index.
Definition plocalindex.hh:244
size_t local() const
get the local index.
Definition plocalindex.hh:250
LocalIndexState
The states available for the local indices.
Definition localindex.hh:28
void setState(const LocalIndexState &state)
Set the state.
Definition plocalindex.hh:282
ParallelLocalIndex< Attribute > & operator=(size_t index)
Assign a new local index.
Definition plocalindex.hh:263
LocalIndexState state() const
Get the state.
Definition plocalindex.hh:276
ParallelLocalIndex()
Parameterless constructor.
Definition plocalindex.hh:231
const Attribute attribute() const
Get the attribute of the index.
Definition plocalindex.hh:237
@ VALID
Definition localindex.hh:28
Dune namespace.
Definition alignedallocator.hh:13
A dynamically growing random access list.
Definition arraylist.hh:62
A traits class describing the mapping of types onto MPI_Datatypes.
Definition mpitraits.hh:41
static MPI_Datatype getType()
Definition mpitraits.hh:48
Definition indexset.hh:615
An index present on the local process with an additional attribute flag.
Definition plocalindex.hh:49
T Attribute
The type of the attributes. Normally this will be an enumeration like.
Definition plocalindex.hh:64
static bool compare(const ParallelLocalIndex< T > &t1, const ParallelLocalIndex< T > &t2)
Definition plocalindex.hh:195