summaryrefslogtreecommitdiff
path: root/src/model/GraphNode.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/model/GraphNode.cpp')
-rw-r--r--src/model/GraphNode.cpp20
1 files changed, 6 insertions, 14 deletions
diff --git a/src/model/GraphNode.cpp b/src/model/GraphNode.cpp
index affc3af..bfb8e63 100644
--- a/src/model/GraphNode.cpp
+++ b/src/model/GraphNode.cpp
@@ -22,21 +22,11 @@
#include <sstream>
namespace ousia {
+namespace model {
-GraphNode::GraphNode() :
- parent(nullptr)
-{
- // Do nothing here
-}
-
-GraphNode::GraphNode(std::shared_ptr<GraphNode> parent) :
- parent(parent)
-{
- // Do nothing here
-}
-
-GraphNode::GraphNode(const std::string &name, std::shared_ptr<GraphNode> parent) :
- name(name), parent(parent)
+GraphNode::GraphNode(GraphNodeType type, std::shared_ptr<GraphNode> parent,
+ const std::string &name) :
+ type(type), parent(parent), name(name)
{
// Do nothing here
}
@@ -52,3 +42,5 @@ const std::string GraphNode::getFullyQualifiedName()
}
}
+}
+