Sundance::CellReordererImplemBase Class Reference

Inheritance diagram for Sundance::CellReordererImplemBase:

Sundance::ObjectWithClassVerbosity< CellReordererImplemBase > Playa::ObjectWithVerbosity Sundance::IdentityReordererImplem

List of all members.

Public Member Functions

 CellReordererImplemBase (const MeshBase *mesh)
virtual ~CellReordererImplemBase ()
virtual std::string typeName () const
virtual int advance (int currentLID) const =0
virtual int begin () const
virtual int end () const

Protected Member Functions

const MeshBasemesh () const

Private Attributes

const MeshBasemesh_


Detailed Description

Abstract interface for the low-level objects that implement cell reordering.

Adding a new reordering algorithm

To add a new reordering algorithm, you should create a new subclass of CellReordererImplemBase. The only method you will need to implement is

 virtual int advance(int currentLID) const 
which should provide the maximal cell LID found after the currentLID. Depending on the algorithm , you may also want to override the methods
 virtual int begin() const 
 virtual int end() const 
which return the index of the first cell to be processed, and a past-the-end index.

Definition at line 67 of file SundanceCellReordererImplemBase.hpp.


Constructor & Destructor Documentation

CellReordererImplemBase::CellReordererImplemBase ( const MeshBase mesh  ) 

Construct with a pointer to a mesh

Definition at line 41 of file SundanceCellReordererImplemBase.cpp.

virtual Sundance::CellReordererImplemBase::~CellReordererImplemBase (  )  [inline, virtual]

virtual dtor

Definition at line 75 of file SundanceCellReordererImplemBase.hpp.


Member Function Documentation

virtual int Sundance::CellReordererImplemBase::advance ( int  currentLID  )  const [pure virtual]

virtual int Sundance::CellReordererImplemBase::begin (  )  const [inline, virtual]

int CellReordererImplemBase::end (  )  const [virtual]

const MeshBase* Sundance::CellReordererImplemBase::mesh (  )  const [inline, protected]

Definition at line 90 of file SundanceCellReordererImplemBase.hpp.

References mesh_.

virtual std::string Sundance::CellReordererImplemBase::typeName (  )  const [inline, virtual]

return a descriptive std::string

Definition at line 78 of file SundanceCellReordererImplemBase.hpp.


Member Data Documentation

Unmanaged pointer to a mesh. The mesh will contain a smart pointer to this reorderer, so to avoid closed reference graphs we store a raw pointer here.

Definition at line 96 of file SundanceCellReordererImplemBase.hpp.

Referenced by end(), and mesh().

Site Contact