std::vector< _Type, _Alloc > CepsVector
C++ vector.
CepsUInt CepsProcId
For CPU indices.
Abstract class for objects that contain a CPU Id.
CepsBool isHaloFor(const CepsProcId &pid) const
Detect if this entity is in the halo of.
CepsBool m_isShared
We can know that something is shared, but not by who...
const CepsProcId & getOwner() const
Get owner (processus id) of this entity.
void setShared(CepsBool flag)
Tells if there are halo CPUs.
CepsBool isShared() const
Tells if there are halo CPUs.
CepsVector< CepsProcId > m_procIds
The CPU Ids, first element is owner, other are halos.
HoldsProcIds(HoldsProcIds &&) noexcept=default
Copy constructor.
void setAsHaloFor(const CepsProcId &pid)
Adds pid to the set of halo CPUs
HoldsProcIds()=default
Default constructor.
void setOwner(const CepsProcId &pid)
Set shared between several processes ?
HoldsProcIds(const HoldsProcIds &)=default
Copy constructor.
void reset()
Gives ownership to rank(), removes halos.
A namespace for all utility methods.