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=nullptr)
 
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 14 of file EFANode.h.

Member Enumeration Documentation

◆ N_CATEGORY

Enumerator
N_CATEGORY_PERMANENT 
N_CATEGORY_TEMP 
N_CATEGORY_EMBEDDED 
N_CATEGORY_EMBEDDED_PERMANENT 
N_CATEGORY_LOCAL_INDEX 

Definition at line 17 of file EFANode.h.

Constructor & Destructor Documentation

◆ EFANode()

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

Definition at line 14 of file EFANode.C.

15  : _category(ncat), _id(nid), _parent(nparent)
16 {
17 }
N_CATEGORY _category
Definition: EFANode.h:29
unsigned int _id
Definition: EFANode.h:30
EFANode * _parent
Definition: EFANode.h:31

Member Function Documentation

◆ category()

EFANode::N_CATEGORY EFANode::category ( ) const

◆ id()

unsigned int EFANode::id ( ) const

◆ idCatString()

std::string EFANode::idCatString ( )

Definition at line 20 of file EFANode.C.

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

21 {
22  std::ostringstream s;
23  s << _id;
25  s << "e";
26  else if (_category == N_CATEGORY_TEMP)
27  s << "t";
29  s << "ep";
30  else
31  s << " ";
32  return s.str();
33 }
N_CATEGORY _category
Definition: EFANode.h:29
unsigned int _id
Definition: EFANode.h:30

◆ parent()

EFANode * EFANode::parent ( ) const

Definition at line 48 of file EFANode.C.

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

49 {
50  return _parent;
51 }
EFANode * _parent
Definition: EFANode.h:31

◆ removeParent()

void EFANode::removeParent ( )

Definition at line 54 of file EFANode.C.

55 {
56  _parent = nullptr;
57 }
EFANode * _parent
Definition: EFANode.h:31

◆ setCategory()

void EFANode::setCategory ( EFANode::N_CATEGORY  category)

Definition at line 60 of file EFANode.C.

Referenced by EFAElement2D::addNodeCut().

61 {
63 }
N_CATEGORY _category
Definition: EFANode.h:29
N_CATEGORY category() const
Definition: EFANode.C:42

Member Data Documentation

◆ _category

N_CATEGORY EFANode::_category
private

Definition at line 29 of file EFANode.h.

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

◆ _id

unsigned int EFANode::_id
private

Definition at line 30 of file EFANode.h.

Referenced by id(), and idCatString().

◆ _parent

EFANode* EFANode::_parent
private

Definition at line 31 of file EFANode.h.

Referenced by parent(), and removeParent().


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