Public Member Functions
Sundance::MeshType Class Reference

Class MeshType is a user-level object for specification of which internal mesh representation is to be used when building or reading a mesh. More...

Inheritance diagram for Sundance::MeshType:
Sundance::Handle< MeshTypeBase > Sundance::ObjectWithVerbosityBase

List of all members.

Public Member Functions

 MeshType ()
 Construct an empty mesh type object.
 MeshType (Sundance::Handleable< MeshTypeBase > *rawPtr)
 Construct from a raw pointer to a mesh type subtype.
 MeshType (const RCP< MeshTypeBase > &smartPtr)
 Construct from a smart pointer to a mesh type subtype.
Mesh createEmptyMesh (int dim, const MPIComm &comm) const
 Create a mesh of the given dimension.

Detailed Description

Class MeshType is a user-level object for specification of which internal mesh representation is to be used when building or reading a mesh.

An example of using a MeshType to control the creation of a mesh with a TriangleMeshReader is as follows:

 MeshType meshType = new BasicSimplicialMeshType();
 MeshSource meshSrc = new TriangleMeshReader("meshFile", meshType, MPIComm::world());

The internal representation of the mesh will be as a BasicSimplicialMesh object.

Definition at line 53 of file SundanceMeshType.hpp.


Constructor & Destructor Documentation

MeshType::MeshType ( )

Construct an empty mesh type object.

Definition at line 11 of file SundanceMeshType.cpp.

MeshType::MeshType ( Sundance::Handleable< MeshTypeBase > *  rawPtr)

Construct from a raw pointer to a mesh type subtype.

Definition at line 15 of file SundanceMeshType.cpp.

MeshType::MeshType ( const RCP< MeshTypeBase > &  smartPtr)

Construct from a smart pointer to a mesh type subtype.

Definition at line 20 of file SundanceMeshType.cpp.


Member Function Documentation

Mesh MeshType::createEmptyMesh ( int  dim,
const MPIComm &  comm 
) const

Site Contact