MFEM  v3.1
Finite element discretization library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
mfem::ParNCMesh::ElementSet Class Reference

#include <pncmesh.hpp>

Collaboration diagram for mfem::ParNCMesh::ElementSet:
[legend]

Public Member Functions

 ElementSet (const std::set< Element * > &elements, const Array< Element * > &ncmesh_roots)
 
void Dump (std::ostream &os) const
 
 ElementSet ()
 
 ElementSet (std::istream &is)
 
void Load (std::istream &is)
 
void Decode (Array< Element * > &elements, const Array< Element * > &ncmesh_roots) const
 

Protected Member Functions

bool EncodeTree (Element *elem, const std::set< Element * > &elements)
 
void DecodeTree (Element *elem, int &pos, Array< Element * > &elements) const
 
void SetInt (int pos, int value)
 
int GetInt (int pos) const
 

Protected Attributes

Array< unsigned char > data
 encoded refinement (sub-)trees More...
 

Detailed Description

Uniquely encodes a set of elements in the refinement hierarchy of an NCMesh. Can be dumped to a stream, sent to another processor, loaded, and decoded to identify the same set of elements (refinements) in a different but compatible NCMesh. The elements don't have to be leaves, but they must represent subtrees of 'ncmesh_roots'.

Definition at line 257 of file pncmesh.hpp.

Constructor & Destructor Documentation

mfem::ParNCMesh::ElementSet::ElementSet ( const std::set< Element * > &  elements,
const Array< Element * > &  ncmesh_roots 
)

Definition at line 734 of file pncmesh.cpp.

mfem::ParNCMesh::ElementSet::ElementSet ( )
inline

Definition at line 264 of file pncmesh.hpp.

mfem::ParNCMesh::ElementSet::ElementSet ( std::istream &  is)
inline

Definition at line 265 of file pncmesh.hpp.

Member Function Documentation

void mfem::ParNCMesh::ElementSet::Decode ( Array< Element * > &  elements,
const Array< Element * > &  ncmesh_roots 
) const

Definition at line 779 of file pncmesh.cpp.

void mfem::ParNCMesh::ElementSet::DecodeTree ( Element elem,
int &  pos,
Array< Element * > &  elements 
) const
protected

Definition at line 759 of file pncmesh.cpp.

void mfem::ParNCMesh::ElementSet::Dump ( std::ostream &  os) const

Definition at line 804 of file pncmesh.cpp.

bool mfem::ParNCMesh::ElementSet::EncodeTree ( Element elem,
const std::set< Element * > &  elements 
)
protected

Definition at line 692 of file pncmesh.cpp.

int mfem::ParNCMesh::ElementSet::GetInt ( int  pos) const
protected

Definition at line 682 of file pncmesh.cpp.

void mfem::ParNCMesh::ElementSet::Load ( std::istream &  is)

Definition at line 810 of file pncmesh.cpp.

void mfem::ParNCMesh::ElementSet::SetInt ( int  pos,
int  value 
)
protected

Definition at line 673 of file pncmesh.cpp.

Member Data Documentation

Array<unsigned char> mfem::ParNCMesh::ElementSet::data
protected

encoded refinement (sub-)trees

Definition at line 271 of file pncmesh.hpp.


The documentation for this class was generated from the following files: