FreePOOMA  2.4.1
Public Types | Public Member Functions
DynamicLayoutView Class Reference

DynamicLayoutView is a Layout class that provides a view of an existing DynamicLayout object. More...

#include <DynamicLayout.h>

List of all members.

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_titerator
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_toperator= (const This_t &model)
 ~DynamicLayoutView ()
ID_t ID () const
ID_t baseID () const
bool initialized () const
const Domain_tdomain () const
const BaseDomain_tbaseDomain () const
const Layout_tbaseLayout () const
template<class DT >
BaseDomain_tlocalToBase (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

Detailed Description

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.


Member Typedef Documentation


Member Enumeration Documentation

anonymous enum
Enumerator:
dimensions 

Constructor & Destructor Documentation

template<class DT >
DynamicLayoutView::DynamicLayoutView ( const Layout_t layout,
const Domain< 1, DT > &  dom 
) [inline]
template<class DT >
DynamicLayoutView::DynamicLayoutView ( const ViewLayout_t layout,
const Domain< 1, DT > &  dom 
) [inline]
DynamicLayoutView::DynamicLayoutView ( const This_t model) [inline]

Member Function Documentation

This_t& DynamicLayoutView::operator= ( const This_t model) [inline]
ID_t DynamicLayoutView::ID ( ) const [inline]

References DynamicLayoutViewData::id_m.

Referenced by print().

ID_t DynamicLayoutView::baseID ( ) const [inline]
bool DynamicLayoutView::initialized ( ) const [inline]
const Domain_t& DynamicLayoutView::domain ( ) const [inline]
const BaseDomain_t& DynamicLayoutView::baseDomain ( ) const [inline]

References DynamicLayoutViewData::baseDomain_m.

Referenced by operator==(), and print().

const Layout_t& DynamicLayoutView::baseLayout ( ) const [inline]
template<class DT >
BaseDomain_t& DynamicLayoutView::localToBase ( const Domain< 1, DT > &  dlocal,
BaseDomain_t base 
) const [inline]
int DynamicLayoutView::first ( int  ) const [inline]
template<class Layout >
bool DynamicLayoutView::operator== ( const Layout &  layout) const [inline]

References baseDomain(), and baseID().

template<class Layout >
bool DynamicLayoutView::operator!= ( const Layout &  layout) const [inline]
int DynamicLayoutView::globalID ( const Loc< 1 > &  loc,
Loc< 1 > &  oloc 
) const [inline]
int DynamicLayoutView::globalID ( int  i0,
Loc< 1 > &  oloc 
) const [inline]

References DynamicLayoutViewData::all_m.

Referenced by print().

References DynamicLayoutViewData::all_m.

Referenced by print().

int DynamicLayoutView::sizeGlobal ( ) const [inline]

References DynamicLayoutViewData::all_m.

Referenced by print().

References DynamicLayoutViewData::local_m.

Referenced by print().

References DynamicLayoutViewData::local_m.

Referenced by print().

int DynamicLayoutView::sizeLocal ( ) const [inline]

References DynamicLayoutViewData::local_m.

Referenced by print().

References DynamicLayoutViewData::remote_m.

Referenced by print().

References DynamicLayoutViewData::remote_m.

Referenced by print().

int DynamicLayoutView::sizeRemote ( ) const [inline]

References DynamicLayoutViewData::remote_m.

Referenced by print().

template<class OtherDomain , class OutIter , class ConstructTag >
int DynamicLayoutView::touches ( const OtherDomain &  d,
OutIter  o,
const ConstructTag &  ctag 
) const [inline]

References DynamicLayoutViewData::touches().

Referenced by touches().

template<class OtherDomain , class OutIter , class ConstructTag >
int DynamicLayoutView::touchesLocal ( const OtherDomain &  d,
OutIter  o,
const ConstructTag &  ctag 
) const [inline]
template<class OtherDomain , class OutIter , class ConstructTag >
int DynamicLayoutView::touchesRemote ( const OtherDomain &  ,
OutIter  ,
const ConstructTag &   
) const [inline]

Referenced by touchesRemote().

template<class OtherDomain , class OutIter >
int DynamicLayoutView::touches ( const OtherDomain &  d,
OutIter  o 
) const [inline]

References touches().

template<class OtherDomain , class OutIter >
int DynamicLayoutView::touchesLocal ( const OtherDomain &  d,
OutIter  o 
) const [inline]

References touchesLocal().

template<class OtherDomain , class OutIter >
int DynamicLayoutView::touchesRemote ( const OtherDomain &  d,
OutIter  o 
) const [inline]

References touchesRemote().

template<class Ostream >
void DynamicLayoutView::print ( Ostream &  ostr) const [inline]

The documentation for this class was generated from the following file: