www.mooseframework.org
Public Types | Public Member Functions | Private Attributes | List of all members
EFANode Class Reference

#include <EFANode.h>

Public Types

enum  N_CATEGORY {
  N_CATEGORY_PERMANENT, N_CATEGORY_TEMP, N_CATEGORY_EMBEDDED, N_CATEGORY_EMBEDDED_PERMANENT,
  N_CATEGORY_LOCAL_INDEX
}
 

Public Member Functions

 EFANode (unsigned int nid, N_CATEGORY ncat, EFANode *nparent=NULL)
 
std::string idCatString ()
 
unsigned int id () const
 
N_CATEGORY category () const
 
void setCategory (EFANode::N_CATEGORY category)
 
EFANodeparent () const
 
void removeParent ()
 

Private Attributes

N_CATEGORY _category
 
unsigned int _id
 
EFANode_parent
 

Detailed Description

Definition at line 13 of file EFANode.h.

Member Enumeration Documentation

Enumerator
N_CATEGORY_PERMANENT 
N_CATEGORY_TEMP 
N_CATEGORY_EMBEDDED 
N_CATEGORY_EMBEDDED_PERMANENT 
N_CATEGORY_LOCAL_INDEX 

Definition at line 16 of file EFANode.h.

Constructor & Destructor Documentation

EFANode::EFANode ( unsigned int  nid,
N_CATEGORY  ncat,
EFANode nparent = NULL 
)

Definition at line 12 of file EFANode.C.

13  : _category(ncat), _id(nid), _parent(nparent)
14 {
15 }
N_CATEGORY _category
Definition: EFANode.h:28
unsigned int _id
Definition: EFANode.h:29
EFANode * _parent
Definition: EFANode.h:30

Member Function Documentation

EFANode::N_CATEGORY EFANode::category ( ) const
unsigned int EFANode::id ( ) const
std::string EFANode::idCatString ( )

Definition at line 18 of file EFANode.C.

Referenced by EFAElement::mergeNodes(), and EFAElement2D::printElement().

19 {
20  std::ostringstream s;
21  s << _id;
23  s << "e";
24  else if (_category == N_CATEGORY_TEMP)
25  s << "t";
27  s << "ep";
28  else
29  s << " ";
30  return s.str();
31 }
N_CATEGORY _category
Definition: EFANode.h:28
unsigned int _id
Definition: EFANode.h:29
EFANode * EFANode::parent ( ) const

Definition at line 46 of file EFANode.C.

Referenced by EFAElement2D::connectNeighbors(), EFAElement3D::connectNeighbors(), EFAEdge::hasIntersection(), and EFAElement::mergeNodes().

47 {
48  return _parent;
49 }
EFANode * _parent
Definition: EFANode.h:30
void EFANode::removeParent ( )

Definition at line 52 of file EFANode.C.

53 {
54  _parent = NULL;
55 }
EFANode * _parent
Definition: EFANode.h:30
void EFANode::setCategory ( EFANode::N_CATEGORY  category)

Definition at line 58 of file EFANode.C.

Referenced by EFAElement2D::addNodeCut().

59 {
61 }
N_CATEGORY _category
Definition: EFANode.h:28
N_CATEGORY category() const
Definition: EFANode.C:40

Member Data Documentation

N_CATEGORY EFANode::_category
private

Definition at line 28 of file EFANode.h.

Referenced by category(), idCatString(), and setCategory().

unsigned int EFANode::_id
private

Definition at line 29 of file EFANode.h.

Referenced by id(), and idCatString().

EFANode* EFANode::_parent
private

Definition at line 30 of file EFANode.h.

Referenced by parent(), and removeParent().


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