FreePOOMA
2.4.1
|
DynamicLayoutView is a Layout class that provides a view of an existing DynamicLayout object. More...
#include <DynamicLayout.h>
Public Types | |
enum | { dimensions = 1 } |
typedef DynamicLayoutViewData | LayoutData_t |
typedef LayoutData_t::Domain_t | Domain_t |
typedef LayoutData_t::BaseDomain_t | BaseDomain_t |
typedef LayoutData_t::Context_t | Context_t |
typedef LayoutData_t::ID_t | ID_t |
typedef LayoutData_t::Layout_t | Layout_t |
typedef LayoutData_t::AllocatedDomain_t | AllocatedDomain_t |
typedef LayoutData_t::Value_t | Value_t |
typedef LayoutData_t::List_t | List_t |
typedef DynamicLayoutView | This_t |
typedef DynamicLayoutView | ViewLayout_t |
typedef DerefIterator< Value_t > | iterator |
typedef ConstDerefIterator < Value_t > | const_iterator |
Public Member Functions | |
DynamicLayoutView () | |
template<class DT > | |
DynamicLayoutView (const Layout_t &layout, const Domain< 1, DT > &dom) | |
template<class DT > | |
DynamicLayoutView (const ViewLayout_t &layout, const Domain< 1, DT > &dom) | |
DynamicLayoutView (const This_t &model) | |
This_t & | operator= (const This_t &model) |
~DynamicLayoutView () | |
ID_t | ID () const |
ID_t | baseID () const |
bool | initialized () const |
const Domain_t & | domain () const |
const BaseDomain_t & | baseDomain () const |
const Layout_t & | baseLayout () const |
template<class DT > | |
BaseDomain_t & | localToBase (const Domain< 1, DT > &dlocal, BaseDomain_t &base) const |
int | first (int) const |
template<class Layout > | |
bool | operator== (const Layout &layout) const |
template<class Layout > | |
bool | operator!= (const Layout &layout) const |
int | globalID (const Loc< 1 > &, Loc< 1 > &) const |
int | globalID (int, Loc< 1 > &) const |
iterator | beginGlobal () |
iterator | endGlobal () |
const_iterator | beginGlobal () const |
const_iterator | endGlobal () const |
int | sizeGlobal () const |
iterator | beginLocal () |
iterator | endLocal () |
const_iterator | beginLocal () const |
const_iterator | endLocal () const |
int | sizeLocal () const |
iterator | beginRemote () |
iterator | endRemote () |
const_iterator | beginRemote () const |
const_iterator | endRemote () const |
int | sizeRemote () const |
template<class OtherDomain , class OutIter , class ConstructTag > | |
int | touches (const OtherDomain &d, OutIter o, const ConstructTag &ctag) const |
template<class OtherDomain , class OutIter , class ConstructTag > | |
int | touchesLocal (const OtherDomain &d, OutIter o, const ConstructTag &ctag) const |
template<class OtherDomain , class OutIter , class ConstructTag > | |
int | touchesRemote (const OtherDomain &, OutIter, const ConstructTag &) const |
template<class OtherDomain , class OutIter > | |
int | touches (const OtherDomain &d, OutIter o) const |
template<class OtherDomain , class OutIter > | |
int | touchesLocal (const OtherDomain &d, OutIter o) const |
template<class OtherDomain , class OutIter > | |
int | touchesRemote (const OtherDomain &d, OutIter o) const |
template<class Ostream > | |
void | print (Ostream &ostr) const |
DynamicLayoutView is a Layout class that provides a view of an existing DynamicLayout object.
To construct a DynamicLayoutView, you need an existing DynamicLayout or a DynamicLayoutView and the subdomain that is being viewed. This class does not have a useful default constructor since it is based on an existing DynamicLayout.
Once created, DynamicLayoutView has the same interface as Layout (see Layout.h). It also provides this extra interface:
int globalID(const Loc<1> &pos) : return the globalID of the node that contains the point.
DynamicLayoutView::DynamicLayoutView | ( | ) | [inline] |
DynamicLayoutView::DynamicLayoutView | ( | const Layout_t & | layout, |
const Domain< 1, DT > & | dom | ||
) | [inline] |
DynamicLayoutView::DynamicLayoutView | ( | const ViewLayout_t & | layout, |
const Domain< 1, DT > & | dom | ||
) | [inline] |
DynamicLayoutView::DynamicLayoutView | ( | const This_t & | model | ) | [inline] |
DynamicLayoutView::~DynamicLayoutView | ( | ) | [inline] |
ID_t DynamicLayoutView::ID | ( | ) | const [inline] |
References DynamicLayoutViewData::id_m.
Referenced by print().
ID_t DynamicLayoutView::baseID | ( | ) | const [inline] |
References DynamicLayout::baseID(), and DynamicLayoutViewData::layout_m.
Referenced by operator==(), and print().
bool DynamicLayoutView::initialized | ( | ) | const [inline] |
const Domain_t& DynamicLayoutView::domain | ( | ) | const [inline] |
References DynamicLayoutViewData::domain_m.
Referenced by DynamicLayoutViewData::DynamicLayoutViewData(), and print().
const BaseDomain_t& DynamicLayoutView::baseDomain | ( | ) | const [inline] |
References DynamicLayoutViewData::baseDomain_m.
Referenced by operator==(), and print().
const Layout_t& DynamicLayoutView::baseLayout | ( | ) | const [inline] |
References DynamicLayoutViewData::layout_m.
BaseDomain_t& DynamicLayoutView::localToBase | ( | const Domain< 1, DT > & | dlocal, |
BaseDomain_t & | base | ||
) | const [inline] |
References DynamicLayoutViewData::localToBase().
Referenced by DynamicLayoutViewData::DynamicLayoutViewData().
int DynamicLayoutView::first | ( | int | ) | const [inline] |
bool DynamicLayoutView::operator== | ( | const Layout & | layout | ) | const [inline] |
References baseDomain(), and baseID().
bool DynamicLayoutView::operator!= | ( | const Layout & | layout | ) | const [inline] |
int DynamicLayoutView::globalID | ( | const Loc< 1 > & | loc, |
Loc< 1 > & | oloc | ||
) | const [inline] |
References DynamicLayoutViewData::globalID().
int DynamicLayoutView::globalID | ( | int | i0, |
Loc< 1 > & | oloc | ||
) | const [inline] |
References DynamicLayoutViewData::globalID().
iterator DynamicLayoutView::beginGlobal | ( | ) | [inline] |
References DynamicLayoutViewData::all_m.
Referenced by print().
iterator DynamicLayoutView::endGlobal | ( | ) | [inline] |
References DynamicLayoutViewData::all_m.
Referenced by print().
const_iterator DynamicLayoutView::beginGlobal | ( | ) | const [inline] |
References DynamicLayoutViewData::all_m.
const_iterator DynamicLayoutView::endGlobal | ( | ) | const [inline] |
References DynamicLayoutViewData::all_m.
int DynamicLayoutView::sizeGlobal | ( | ) | const [inline] |
References DynamicLayoutViewData::all_m.
Referenced by print().
iterator DynamicLayoutView::beginLocal | ( | ) | [inline] |
References DynamicLayoutViewData::local_m.
Referenced by print().
iterator DynamicLayoutView::endLocal | ( | ) | [inline] |
References DynamicLayoutViewData::local_m.
Referenced by print().
const_iterator DynamicLayoutView::beginLocal | ( | ) | const [inline] |
References DynamicLayoutViewData::local_m.
const_iterator DynamicLayoutView::endLocal | ( | ) | const [inline] |
References DynamicLayoutViewData::local_m.
int DynamicLayoutView::sizeLocal | ( | ) | const [inline] |
References DynamicLayoutViewData::local_m.
Referenced by print().
iterator DynamicLayoutView::beginRemote | ( | ) | [inline] |
References DynamicLayoutViewData::remote_m.
Referenced by print().
iterator DynamicLayoutView::endRemote | ( | ) | [inline] |
References DynamicLayoutViewData::remote_m.
Referenced by print().
const_iterator DynamicLayoutView::beginRemote | ( | ) | const [inline] |
References DynamicLayoutViewData::remote_m.
const_iterator DynamicLayoutView::endRemote | ( | ) | const [inline] |
References DynamicLayoutViewData::remote_m.
int DynamicLayoutView::sizeRemote | ( | ) | const [inline] |
References DynamicLayoutViewData::remote_m.
Referenced by print().
int DynamicLayoutView::touches | ( | const OtherDomain & | d, |
OutIter | o, | ||
const ConstructTag & | ctag | ||
) | const [inline] |
References DynamicLayoutViewData::touches().
Referenced by touches().
int DynamicLayoutView::touchesLocal | ( | const OtherDomain & | d, |
OutIter | o, | ||
const ConstructTag & | ctag | ||
) | const [inline] |
References DynamicLayoutViewData::touches().
Referenced by touchesLocal().
int DynamicLayoutView::touchesRemote | ( | const OtherDomain & | , |
OutIter | , | ||
const ConstructTag & | |||
) | const [inline] |
Referenced by touchesRemote().
int DynamicLayoutView::touches | ( | const OtherDomain & | d, |
OutIter | o | ||
) | const [inline] |
References touches().
int DynamicLayoutView::touchesLocal | ( | const OtherDomain & | d, |
OutIter | o | ||
) | const [inline] |
References touchesLocal().
int DynamicLayoutView::touchesRemote | ( | const OtherDomain & | d, |
OutIter | o | ||
) | const [inline] |
References touchesRemote().
void DynamicLayoutView::print | ( | Ostream & | ostr | ) | const [inline] |
References baseDomain(), baseID(), beginGlobal(), beginLocal(), beginRemote(), domain(), endGlobal(), endLocal(), endRemote(), ID(), sizeGlobal(), sizeLocal(), and sizeRemote().