MOAB: Mesh Oriented datABase
(version 5.4.1)
|
Interface for wrappers. More...
#include <Wrapper.hpp>
Public Member Functions | |
Wrapper () | |
virtual | ~Wrapper () |
QualityAssessor & | quality_assessor () |
const QualityAssessor & | quality_asssessor () const |
Protected Member Functions | |
void | run_common (MeshDomainAssoc *mesh_and_domain, ParallelMesh *pmesh, Settings *settings, MsqError &err) |
virtual void | run_wrapper (MeshDomainAssoc *mesh_and_domain, ParallelMesh *pmesh, Settings *settings, QualityAssessor *quality_assessor, MsqError &err)=0 |
Private Attributes | |
QualityAssessor * | qualAssessor |
Interface for wrappers.
Interaface implemented by wrappers. In addition to implementing IQInterface, also provide access to QualityAssessor instance so that caller can modify QA output.
Definition at line 49 of file Wrapper.hpp.
Definition at line 37 of file Wrapper.cpp.
: qualAssessor( new QualityAssessor ) {}
MBMesquite::Wrapper::~Wrapper | ( | ) | [virtual] |
Definition at line 38 of file Wrapper.cpp.
{ delete qualAssessor; }
QualityAssessor& MBMesquite::Wrapper::quality_assessor | ( | ) | [inline] |
Get the quality assessor associated with this wrapper
Definition at line 57 of file Wrapper.hpp.
Referenced by main(), run_example(), run_smoother(), and uwt().
{ return *qualAssessor; }
const QualityAssessor& MBMesquite::Wrapper::quality_asssessor | ( | ) | const [inline] |
Get the quality assessor associated with this wrapper
Definition at line 63 of file Wrapper.hpp.
{ return *qualAssessor; }
void MBMesquite::Wrapper::run_common | ( | MeshDomainAssoc * | mesh_and_domain, |
ParallelMesh * | pmesh, | ||
Settings * | settings, | ||
MsqError & | err | ||
) | [protected, virtual] |
Function inherited from IQInterface that we implement here
Implements MBMesquite::IQInterface.
Definition at line 43 of file Wrapper.cpp.
References MSQ_CHKERR.
{ QualityAssessor qa( *qualAssessor ); // use copy so that subclass changes aren't persistent. run_wrapper( mesh_and_domain, pmesh, opt, &qa, err );MSQ_CHKERR( err ); // udpate stack trace, don't care about value }
virtual void MBMesquite::Wrapper::run_wrapper | ( | MeshDomainAssoc * | mesh_and_domain, |
ParallelMesh * | pmesh, | ||
Settings * | settings, | ||
QualityAssessor * | quality_assessor, | ||
MsqError & | err | ||
) | [protected, pure virtual] |
Function that each wrapper must implement
Implemented in MBMesquite::DeformingDomainWrapper, ParShapeImprover::ParShapeImprovementWrapper, MBMesquite::UntangleWrapper, MBMesquite::LaplaceWrapper, MBMesquite::ShapeImprovementWrapper, MBMesquite::ShapeImprover, MBMesquite::ViscousCFDTetShapeWrapper, MBMesquite::PaverMinEdgeLengthWrapper, and MBMesquite::SizeAdaptShapeWrapper.
QualityAssessor* MBMesquite::Wrapper::qualAssessor [private] |
Definition at line 80 of file Wrapper.hpp.