|
FreePOOMA
2.4.1
|
Holds the data for a DynamicLayout. More...
#include <DynamicLayout.h>


Public Types | |
| enum | { dimensions = 1 } |
| enum | { repartitionEvent = 1 } |
| enum | { dynamic = true } |
| typedef DynamicLayoutData | This_t |
| typedef Observable< This_t > | Observable_t |
| typedef Interval< 1 > | Domain_t |
| typedef Interval< 1 > | BaseDomain_t |
| typedef int | Context_t |
| typedef Unique::Value_t | ID_t |
| typedef Node< Domain_t > | Value_t |
| typedef std::vector< Value_t * > | List_t |
| typedef int | AxisIndex_t |
| typedef DynamicEvents::PatchID_t | PatchID_t |
| typedef DynamicEvents::CreateSize_t | CreateSize_t |
Public Member Functions | |
| DynamicLayoutData () | |
| template<class Partitioner > | |
| DynamicLayoutData (const Domain_t &gdom, const Partitioner &gpar, const ContextMapper< 1 > &cmap) | |
| ~DynamicLayoutData () | |
| template<class Partitioner > | |
| void | initialize (const Domain_t &gdom, const Partitioner &gpar, const ContextMapper< 1 > &cmap) |
| void | initialize (const Domain_t &gdom, const List_t &nodes) |
| template<class Partitioner > | |
| void | initialize (const Grid< 1 > &gdom, const Partitioner &gpar) |
| ID_t | ID () const |
| bool | initialized () const |
| int | blocks () const |
| bool | dirty () const |
| const Domain_t & | domain () const |
| const Domain_t & | ownedDomain () const |
| const Domain_t & | domain (int i) const |
| const Domain_t & | ownedDomain (int i) const |
| const Domain_t & | allocatedDomain (int i) const |
| const Domain_t & | patchDomain (int i) const |
| const Domain_t & | patchDomainOwned (int i) const |
| List_t & | nodeListGlobal () |
| List_t & | nodeListLocal () |
| List_t & | nodeListRemote () |
| int | globalID (const Loc< 1 > &) const |
| int | globalID (int) const |
| template<class OtherDomain , class OutIter , class ConstructTag > | |
| int | touches (const OtherDomain &fulld, OutIter o, const ConstructTag &ctag) const |
| void | create (CreateSize_t num, PatchID_t patch=(-1)) |
| template<class Dom , class DestroyMethod > | |
| void | destroy (const Dom &dom, PatchID_t fromPatch, const DestroyMethod &) |
| template<class Dom , class DestroyMethod > | |
| void | destroy (const Dom &gdom, const DestroyMethod &) |
| template<class Dom > | |
| void | copy (const Dom &dom, PatchID_t toPatch=(-1)) |
| template<class Dom > | |
| void | copy (const Dom &dom, PatchID_t fromPatch, PatchID_t toPatch) |
| void | copy (const IndirectionList< IndirectionList< int > > &domlists, const IndirectionList< int > &fromlist, PatchID_t toPatch, bool docreate) |
| void | sync () |
| template<class Out > | |
| void | print (Out &ostr) |
Holds the data for a DynamicLayout.
That class has a ref counted instance of this class
| typedef Interval<1> DynamicLayoutData::Domain_t |
| typedef Interval<1> DynamicLayoutData::BaseDomain_t |
| typedef int DynamicLayoutData::Context_t |
| typedef Node<Domain_t> DynamicLayoutData::Value_t |
| typedef std::vector<Value_t *> DynamicLayoutData::List_t |
| typedef int DynamicLayoutData::AxisIndex_t |
| DynamicLayoutData::DynamicLayoutData | ( | const Domain_t & | gdom, |
| const Partitioner & | gpar, | ||
| const ContextMapper< 1 > & | cmap | ||
| ) | [inline] |
References initialize().
| void DynamicLayoutData::initialize | ( | const Domain_t & | gdom, |
| const Partitioner & | gpar, | ||
| const ContextMapper< 1 > & | cmap | ||
| ) | [inline] |
References Pooma::context(), CTAssert, and PAssert.
Referenced by DynamicLayoutData(), initialize(), DynamicLayout::initialize(), and DynamicLayout::repartition().
| void DynamicLayoutData::initialize | ( | const Domain_t & | gdom, |
| const List_t & | nodes | ||
| ) | [inline] |
References Pooma::context().
| void DynamicLayoutData::initialize | ( | const Grid< 1 > & | gdom, |
| const Partitioner & | gpar | ||
| ) | [inline] |
References initialize().
| ID_t DynamicLayoutData::ID | ( | ) | const [inline] |
Referenced by DynamicLayout::baseID(), and DynamicLayout::ID().
| bool DynamicLayoutData::initialized | ( | ) | const [inline] |
Referenced by touches().
| int DynamicLayoutData::blocks | ( | ) | const [inline] |
Referenced by DynamicLayout::blocks().
| bool DynamicLayoutData::dirty | ( | ) | const [inline] |
| const Domain_t& DynamicLayoutData::domain | ( | ) | const [inline] |
| const Domain_t& DynamicLayoutData::ownedDomain | ( | ) | const [inline] |
Referenced by DynamicLayout::ownedDomain().
| const Domain_t& DynamicLayoutData::domain | ( | int | i | ) | const [inline] |
References PAssert.
| const Domain_t& DynamicLayoutData::ownedDomain | ( | int | i | ) | const [inline] |
References domain().
| const Domain_t& DynamicLayoutData::allocatedDomain | ( | int | i | ) | const [inline] |
References domain().
Referenced by DynamicLayout::allocatedDomain().
| const Domain_t& DynamicLayoutData::patchDomain | ( | int | i | ) | const [inline] |
References domain().
Referenced by DynamicLayout::patchDomain().
| const Domain_t& DynamicLayoutData::patchDomainOwned | ( | int | i | ) | const [inline] |
References domain().
| List_t& DynamicLayoutData::nodeListGlobal | ( | ) | [inline] |
| List_t& DynamicLayoutData::nodeListLocal | ( | ) | [inline] |
| List_t& DynamicLayoutData::nodeListRemote | ( | ) | [inline] |
| int DynamicLayoutData::globalID | ( | const Loc< 1 > & | ) | const |
Referenced by DynamicLayout::globalID(), and touches().
| int DynamicLayoutData::globalID | ( | int | ) | const |
| int DynamicLayoutData::touches | ( | const OtherDomain & | fulld, |
| OutIter | o, | ||
| const ConstructTag & | ctag | ||
| ) | const [inline] |
References Pooma::context(), RefCounted::count(), domain(), globalID(), initialized(), intersect(), PAssert, DomainMap< Dom, T >::touch(), and touchesConstruct().
Referenced by DynamicLayout::touches(), DynamicLayout::touchesAlloc(), DynamicLayout::touchesAllocLocal(), and DynamicLayout::touchesLocal().
| void DynamicLayoutData::create | ( | CreateSize_t | num, |
| PatchID_t | patch = (-1) |
||
| ) |
Referenced by DynamicLayout::create().
| void DynamicLayoutData::destroy | ( | const Dom & | dom, |
| PatchID_t | fromPatch, | ||
| const DestroyMethod & | |||
| ) | [inline] |
References contains(), Node< Dom, OrigDom >::domain(), Observable< DynamicLayoutData >::notify(), PAssert, and Domain< Dim, DT >::size().
Referenced by DynamicLayout::destroy().
| void DynamicLayoutData::destroy | ( | const Dom & | gdom, |
| const DestroyMethod & | |||
| ) | [inline] |
| void DynamicLayoutData::copy | ( | const Dom & | dom, |
| PatchID_t | toPatch = (-1) |
||
| ) | [inline] |
References contains(), Node< Dom, OrigDom >::domain(), domain(), Observable< DynamicLayoutData >::notify(), PAssert, and IndirectionList< T >::size().
Referenced by DynamicLayout::copy().
| void DynamicLayoutData::copy | ( | const Dom & | dom, |
| PatchID_t | fromPatch, | ||
| PatchID_t | toPatch | ||
| ) | [inline] |
References domain(), Observable< DynamicLayoutData >::notify(), PAssert, and Domain< Dim, DT >::size().
| void DynamicLayoutData::copy | ( | const IndirectionList< IndirectionList< int > > & | domlists, |
| const IndirectionList< int > & | fromlist, | ||
| PatchID_t | toPatch, | ||
| bool | docreate | ||
| ) |
| void DynamicLayoutData::sync | ( | ) |
Referenced by DynamicLayout::sync().
| void DynamicLayoutData::print | ( | Out & | ostr | ) | [inline] |
References std::endl().
Referenced by DynamicLayout::print().
1.7.6.1