MeshKit  1.0
RegisterMeshOp< TYPE > Class Template Reference

Utility class for registering MeshOps with MKCore. More...

#include <RegisterMeshOp.hpp>

Inheritance diagram for RegisterMeshOp< TYPE >:

List of all members.

Public Member Functions

 RegisterMeshOp ()
 Register a new MeshOp factory.
MeshOpcreate (MKCore *core, const MEntVector &vec)
 Implementation of factory method.
const char * name () const
 Call TYPE::name() to get name for class.
const moab::EntityType * output_types () const
 Call TYPE::output_types.
bool can_mesh (iBase_EntityType dimension) const
 Call TYPE::can_mesh(iBase_EntityType)
bool can_mesh (ModelEnt *entity) const
 Implementation of can_mesh() method for proxy of TYPE.

Detailed Description

template<class TYPE>
class MeshKit::RegisterMeshOp< TYPE >

Utility class for registering MeshOps with MKCore.

This template class provides two related functionalities:

  • It provides an implementation of MKCore::MeshOpProxy for the class
  • It handles registration with MKCore

To use this class, simply declare a global variable templated with the type of the MeshOp to be registered.

Parameters:
TYPEThe MeshOp sub-class to register
Examples:
example_graph.cpp.

Definition at line 26 of file RegisterMeshOp.hpp.


Constructor & Destructor Documentation

RegisterMeshOp ( ) [inline]

Register a new MeshOp factory.

Definition at line 32 of file RegisterMeshOp.hpp.


Member Function Documentation

bool can_mesh ( iBase_EntityType  dimension) const [inline, virtual]

Call TYPE::can_mesh(iBase_EntityType)

Ask if the class is capable of meshing an entity of the specified dimension.

Implements MeshOpProxy.

Definition at line 56 of file RegisterMeshOp.hpp.

bool can_mesh ( ModelEnt entity) const [inline, virtual]

Implementation of can_mesh() method for proxy of TYPE.

Returns:
TYPE::can_mesh() if HAVE_CAN_MESH is true. default MeshOpProxy::can_mesh() value if HAVE_CAN_MESH is false.

Implements MeshOpProxy.

Definition at line 64 of file RegisterMeshOp.hpp.

MeshOp* create ( MKCore core,
const MEntVector vec 
) [inline, virtual]

Implementation of factory method.

Implements MeshOpProxy.

Definition at line 36 of file RegisterMeshOp.hpp.

const char* name ( ) const [inline, virtual]

Call TYPE::name() to get name for class.

Implements MeshOpProxy.

Definition at line 40 of file RegisterMeshOp.hpp.

const moab::EntityType* output_types ( ) const [inline, virtual]

Call TYPE::output_types.

Returns an array of MOAB::EntityType values, terminated by a value of MOAB::MBMAXTYPE .

Implements MeshOpProxy.

Definition at line 48 of file RegisterMeshOp.hpp.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines