www.mooseframework.org
EFANode.C
Go to the documentation of this file.
1 /****************************************************************/
2 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
3 /* */
4 /* All contents are licensed under LGPL V2.1 */
5 /* See LICENSE for full restrictions */
6 /****************************************************************/
7 
8 #include "EFANode.h"
9 
10 #include <sstream>
11 
12 EFANode::EFANode(unsigned int nid, N_CATEGORY ncat, EFANode * nparent)
13  : _category(ncat), _id(nid), _parent(nparent)
14 {
15 }
16 
17 std::string
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 }
32 
33 unsigned int
34 EFANode::id() const
35 {
36  return _id;
37 }
38 
41 {
42  return _category;
43 }
44 
45 EFANode *
47 {
48  return _parent;
49 }
50 
51 void
53 {
54  _parent = NULL;
55 }
56 
57 void
59 {
61 }
EFANode * parent() const
Definition: EFANode.C:46
std::string idCatString()
Definition: EFANode.C:18
N_CATEGORY
Definition: EFANode.h:16
N_CATEGORY _category
Definition: EFANode.h:28
void removeParent()
Definition: EFANode.C:52
N_CATEGORY category() const
Definition: EFANode.C:40
EFANode(unsigned int nid, N_CATEGORY ncat, EFANode *nparent=NULL)
Definition: EFANode.C:12
void setCategory(EFANode::N_CATEGORY category)
Definition: EFANode.C:58
unsigned int id() const
Definition: EFANode.C:34
unsigned int _id
Definition: EFANode.h:29
EFANode * _parent
Definition: EFANode.h:30