https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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.

18 {
24 };
@ N_CATEGORY_EMBEDDED_PERMANENT
Definition EFANode.h:22
@ N_CATEGORY_EMBEDDED
Definition EFANode.h:21
@ N_CATEGORY_TEMP
Definition EFANode.h:20
@ N_CATEGORY_PERMANENT
Definition EFANode.h:19
@ N_CATEGORY_LOCAL_INDEX
Definition EFANode.h:23

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
EFANode * _parent
Definition EFANode.h:31
unsigned int _id
Definition EFANode.h:30

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.

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}

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

◆ parent()

EFANode * EFANode::parent ( ) const

◆ removeParent()

void EFANode::removeParent ( )

Definition at line 54 of file EFANode.C.

55{
56 _parent = nullptr;
57}

Referenced by ElementFragmentAlgorithm::clearAncestry().

◆ setCategory()

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

Definition at line 60 of file EFANode.C.

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

Referenced by EFAElement2D::addNodeCut().

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: