#include <Node.h>
Public Types | |
typedef Dom | Domain_t |
typedef OrigDom | AllocatedDomain_t |
typedef int | Context_t |
typedef int | ID_t |
typedef Node< Dom, OrigDom > | This_t |
Public Member Functions | |
Node () | |
Node (const Domain_t &owned, const AllocatedDomain_t &allocated, Context_t c, ID_t gid, ID_t lid=(-1)) | |
Node (const Domain_t &d, Context_t c, ID_t gid, ID_t lid=(-1)) | |
Node (int affinity, const Domain_t &owned, const AllocatedDomain_t &allocated, Context_t c, ID_t gid, ID_t lid=(-1)) | |
Node (int affinity, const Domain_t &d, Context_t c, ID_t gid, ID_t lid=(-1)) | |
Node (const This_t &n) | |
template<class ODom , class OAlloc > | |
Node (const Node< ODom, OAlloc > &n) | |
void | initialize (const Domain_t &owned, const AllocatedDomain_t &allocated, Context_t c, ID_t gid, ID_t lid=(-1)) |
void | initialize (const Domain_t &d, Context_t c, ID_t gid, ID_t lid=(-1)) |
~Node () | |
const Domain_t & | domain () const |
const AllocatedDomain_t & | allocated () const |
Context_t | context () const |
ID_t | localID () const |
ID_t | globalID () const |
bool | isLocal () const |
int | affinity () const |
int & | affinity () |
int & | context () |
int & | localID () |
void | setDomain (const Domain_t &dom) |
Domain_t & | domain () |
void | setAllocated (const AllocatedDomain_t &dom) |
AllocatedDomain_t & | allocated () |
This_t & | operator= (const This_t &n) |
template<class ODom , class OAlloc > | |
This_t & | operator= (const Node< ODom, OAlloc > &n) |
This_t & | operator= (const Domain_t &d) |
template<class Out > | |
void | print (Out &o) const |
It is templated on the type of domains it is locating. It stores domains describing the owned and allocated domains of the patch, the latter being in reference to the actual underlying layout domain, the context where the patch should be stored, and two ID values:
The entities that create Node objects must assign the ID values to the Nodes. This object is pooled for faster creation/destruction time, since many Node objects are created and destroyed.
typedef OrigDom Node< Dom, OrigDom >::AllocatedDomain_t |
Node< Dom, OrigDom >::Node | ( | const Domain_t & | owned, | |
const AllocatedDomain_t & | allocated, | |||
Context_t | c, | |||
ID_t | gid, | |||
ID_t | lid = (-1) | |||
) | [inline] |
Node< Dom, OrigDom >::Node | ( | const Domain_t & | d, | |
Context_t | c, | |||
ID_t | gid, | |||
ID_t | lid = (-1) | |||
) | [inline] |
Node< Dom, OrigDom >::Node | ( | int | affinity, | |
const Domain_t & | owned, | |||
const AllocatedDomain_t & | allocated, | |||
Context_t | c, | |||
ID_t | gid, | |||
ID_t | lid = (-1) | |||
) | [inline] |
Node< Dom, OrigDom >::Node | ( | int | affinity, | |
const Domain_t & | d, | |||
Context_t | c, | |||
ID_t | gid, | |||
ID_t | lid = (-1) | |||
) | [inline] |
Node< Dom, OrigDom >::Node | ( | const Node< ODom, OAlloc > & | n | ) | [inline] |
void Node< Dom, OrigDom >::initialize | ( | const Domain_t & | owned, | |
const AllocatedDomain_t & | allocated, | |||
Context_t | c, | |||
ID_t | gid, | |||
ID_t | lid = (-1) | |||
) | [inline] |
void Node< Dom, OrigDom >::initialize | ( | const Domain_t & | d, | |
Context_t | c, | |||
ID_t | gid, | |||
ID_t | lid = (-1) | |||
) | [inline] |
const Domain_t& Node< Dom, OrigDom >::domain | ( | ) | const [inline] |
Referenced by NewEngineDomain< Engine< Dim, T, MultiPatch< LayoutTag, PatchTag > >, Node< Domain > >::apply(), contains(), DynamicLayoutData::copy(), DynamicLayoutData::destroy(), Engine< Dim, T, ConstantFunction >::Engine(), DomainLayout< Dim >::externalGuards(), Engine< Dim, T, MultiPatchView< LayoutTag, PatchTag, Dim2 > >::globalPatch(), Engine< Dim, T, MultiPatch< LayoutTag, PatchTag > >::globalPatch(), DomainLayout< Dim >::innerDomain(), Node< Domain_t >::operator=(), DomainLayout< Dim >::ownedDomain(), and Node< Domain_t >::print().
const AllocatedDomain_t& Node< Dom, OrigDom >::allocated | ( | ) | const [inline] |
Referenced by Node< Domain_t >::operator=(), and Node< Domain_t >::print().
bool Node< Dom, OrigDom >::isLocal | ( | ) | const [inline] |
int Node< Dom, OrigDom >::affinity | ( | ) | const [inline] |
Referenced by Node< Domain_t >::operator=(), and Node< Domain_t >::print().
int& Node< Dom, OrigDom >::affinity | ( | ) | [inline] |
int& Node< Dom, OrigDom >::context | ( | ) | [inline] |
int& Node< Dom, OrigDom >::localID | ( | ) | [inline] |
void Node< Dom, OrigDom >::setDomain | ( | const Domain_t & | dom | ) | [inline] |
void Node< Dom, OrigDom >::setAllocated | ( | const AllocatedDomain_t & | dom | ) | [inline] |
AllocatedDomain_t& Node< Dom, OrigDom >::allocated | ( | ) | [inline] |
This_t& Node< Dom, OrigDom >::operator= | ( | const This_t & | n | ) | [inline] |
This_t& Node< Dom, OrigDom >::operator= | ( | const Node< ODom, OAlloc > & | n | ) | [inline] |
This_t& Node< Dom, OrigDom >::operator= | ( | const Domain_t & | d | ) | [inline] |
void Node< Dom, OrigDom >::print | ( | Out & | o | ) | const [inline] |