MOAB: Mesh Oriented datABase  (version 5.2.1)
MBMesquite::PatchSet Class Reference

Specify a division of the Mesh into working patches. More...

#include <PatchSet.hpp>

+ Inheritance diagram for MBMesquite::PatchSet:
+ Collaboration diagram for MBMesquite::PatchSet:

Public Types

typedef void * PatchHandle

Public Member Functions

 PatchSet ()
virtual ~PatchSet ()
 Declare destructor virtual.
void set_mesh (Mesh *mesh)
 Specify the working Mesh.
virtual void get_patch_handles (std::vector< PatchHandle > &patch_handles_out, MsqError &err)=0
 Get a list of handles, one for each patch.
virtual void get_patch (PatchHandle patch_handle, std::vector< Mesh::ElementHandle > &elem_handles_out, std::vector< Mesh::VertexHandle > &free_vertices_out, MsqError &err)=0
 Get the mesh entities in a patch.
Meshget_mesh () const
 get the Mesh object passed to set_mesh()

Private Member Functions

 PatchSet (const PatchSet &)
 disallow copying
PatchSetoperator= (const PatchSet &)
 disallow assignment

Private Attributes

MeshmyMesh

Detailed Description

Specify a division of the Mesh into working patches.

This class provides an interface for specifying how Mesquite will divide the active mesh into working patches.

Definition at line 50 of file PatchSet.hpp.


Member Typedef Documentation

Definition at line 53 of file PatchSet.hpp.


Constructor & Destructor Documentation

Definition at line 55 of file PatchSet.hpp.

{}

Declare destructor virtual.

Definition at line 38 of file PatchSet.cpp.

{}
MBMesquite::PatchSet::PatchSet ( const PatchSet ) [private]

disallow copying


Member Function Documentation

virtual void MBMesquite::PatchSet::get_patch ( PatchHandle  patch_handle,
std::vector< Mesh::ElementHandle > &  elem_handles_out,
std::vector< Mesh::VertexHandle > &  free_vertices_out,
MsqError err 
) [pure virtual]

Get the mesh entities in a patch.

Given one of the handles returned by get_patch_handles(), return the mesh entities in the corresponding patch.

Parameters:
patch_handleone of the handles returned by get_patch_handles()
elem_handles_outthe list of elements in the mesh
free_vertices_outThe list of vertices interior to the patch If this list is empty, it is assumed that all vertices in the closure of the elements are free.

Implemented in MBMesquite::VertexPatches, MBMesquite::ElementPatches, and MBMesquite::GlobalPatch.

Referenced by MBMesquite::PatchIterator::get_next_patch(), MBMesquite::VertexMover::loop_over_mesh(), PatchSetTest::test_bad_handle(), and PatchSetTest::test_fail_entities().

PatchSet& MBMesquite::PatchSet::operator= ( const PatchSet ) [private]

disallow assignment


Member Data Documentation

Definition at line 95 of file PatchSet.hpp.

List of all members.


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