MFEM  v3.2
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 (NCMesh *ncmesh=NULL, bool include_ref_types=false)
 
 ElementSet (const ElementSet &other)
 
void Encode (const Array< Element * > &elements)
 
void Dump (std::ostream &os) const
 
void Load (std::istream &is)
 
void Decode (Array< Element * > &elements) const
 
void SetNCMesh (NCMesh *ncmesh)
 

Protected Member Functions

void EncodeTree (Element *elem)
 
void DecodeTree (Element *elem, int &pos, Array< Element * > &elements) const
 
void WriteInt (int value)
 
int GetInt (int pos) const
 
void FlagElements (const Array< Element * > &elements, char flag)
 

Protected Attributes

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

Detailed Description

Uniquely encodes a set of leaf 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 encoding can optionally include the refinement types needed to reach the leaves, so the element set can be decoded (recreated) even if the receiver has an incomplete tree.

Definition at line 320 of file pncmesh.hpp.

Constructor & Destructor Documentation

mfem::ParNCMesh::ElementSet::ElementSet ( NCMesh ncmesh = NULL,
bool  include_ref_types = false 
)
inline

Definition at line 323 of file pncmesh.hpp.

mfem::ParNCMesh::ElementSet::ElementSet ( const ElementSet other)

Definition at line 1619 of file pncmesh.cpp.

Member Function Documentation

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

Definition at line 1745 of file pncmesh.cpp.

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

Definition at line 1714 of file pncmesh.cpp.

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

Definition at line 1769 of file pncmesh.cpp.

void mfem::ParNCMesh::ElementSet::Encode ( const Array< Element * > &  elements)

Definition at line 1693 of file pncmesh.cpp.

void mfem::ParNCMesh::ElementSet::EncodeTree ( Element elem)
protected

Definition at line 1657 of file pncmesh.cpp.

void mfem::ParNCMesh::ElementSet::FlagElements ( const Array< Element * > &  elements,
char  flag 
)
protected

Definition at line 1643 of file pncmesh.cpp.

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

Definition at line 1634 of file pncmesh.cpp.

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

Definition at line 1775 of file pncmesh.cpp.

void mfem::ParNCMesh::ElementSet::SetNCMesh ( NCMesh ncmesh)
inline

Definition at line 333 of file pncmesh.hpp.

void mfem::ParNCMesh::ElementSet::WriteInt ( int  value)
protected

Definition at line 1625 of file pncmesh.cpp.

Member Data Documentation

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

encoded refinement (sub-)trees

Definition at line 336 of file pncmesh.hpp.

bool mfem::ParNCMesh::ElementSet::include_ref_types
protected

Definition at line 338 of file pncmesh.hpp.

NCMesh* mfem::ParNCMesh::ElementSet::ncmesh
protected

Definition at line 337 of file pncmesh.hpp.


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