#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) |
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 | ( | ) |
DynamicLayoutData::DynamicLayoutData | ( | const Domain_t & | gdom, | |
const Partitioner & | gpar, | |||
const ContextMapper< 1 > & | cmap | |||
) | [inline] |
References initialize().
DynamicLayoutData::~DynamicLayoutData | ( | ) |
void DynamicLayoutData::initialize | ( | const Domain_t & | gdom, | |
const Partitioner & | gpar, | |||
const ContextMapper< 1 > & | cmap | |||
) | [inline] |
References Pooma::context(), CTAssert, and PAssert.
Referenced by DynamicLayoutData(), and initialize().
References Pooma::context().
void DynamicLayoutData::initialize | ( | const Grid< 1 > & | gdom, | |
const Partitioner & | gpar | |||
) | [inline] |
References initialize().
ID_t DynamicLayoutData::ID | ( | ) | const [inline] |
bool DynamicLayoutData::initialized | ( | ) | const [inline] |
Referenced by touches().
int DynamicLayoutData::blocks | ( | ) | const [inline] |
bool DynamicLayoutData::dirty | ( | ) | const [inline] |
const Domain_t& DynamicLayoutData::domain | ( | ) | const [inline] |
Referenced by allocatedDomain(), copy(), destroy(), ownedDomain(), patchDomain(), patchDomainOwned(), and touches().
const Domain_t& DynamicLayoutData::ownedDomain | ( | ) | const [inline] |
List_t& DynamicLayoutData::nodeListGlobal | ( | ) | [inline] |
List_t& DynamicLayoutData::nodeListLocal | ( | ) | [inline] |
List_t& DynamicLayoutData::nodeListRemote | ( | ) | [inline] |
int DynamicLayoutData::globalID | ( | int | ) | const |
int DynamicLayoutData::touches | ( | const OtherDomain & | fulld, | |
OutIter | o, | |||
const ConstructTag & | ctag | |||
) | const [inline] |
void DynamicLayoutData::create | ( | CreateSize_t | num, | |
PatchID_t | patch = (-1) | |||
) |
void DynamicLayoutData::destroy | ( | const Dom & | dom, | |
PatchID_t | fromPatch, | |||
const DestroyMethod & | ||||
) | [inline] |
void DynamicLayoutData::destroy | ( | const Dom & | gdom, | |
const DestroyMethod & | ||||
) | [inline] |
void DynamicLayoutData::copy | ( | const Dom & | dom, | |
PatchID_t | toPatch = (-1) | |||
) | [inline] |
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 | ( | ) |
void DynamicLayoutData::print | ( | Out & | ostr | ) | [inline] |
References std::endl().