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 MeshBase * | mesh () const |
Private Attributes | |
| const MeshBase * | mesh_ |
Abstract interface for the low-level objects that implement cell reordering.
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
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.
| 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.
| virtual int Sundance::CellReordererImplemBase::advance | ( | int | currentLID | ) | const [pure virtual] |
Implemented in Sundance::IdentityReordererImplem.
Referenced by Sundance::CellIterator::advance().
| virtual int Sundance::CellReordererImplemBase::begin | ( | ) | const [inline, virtual] |
Definition at line 84 of file SundanceCellReordererImplemBase.hpp.
Referenced by Sundance::CellIterator::CellIterator().
| int CellReordererImplemBase::end | ( | ) | const [virtual] |
Definition at line 47 of file SundanceCellReordererImplemBase.cpp.
References mesh_, Sundance::MeshBase::numCells(), and Sundance::MeshBase::spatialDim().
| 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.
const MeshBase* Sundance::CellReordererImplemBase::mesh_ [private] |
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.