summaryrefslogtreecommitdiff
path: root/src/core/Node.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/Node.hpp')
-rw-r--r--src/core/Node.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/Node.hpp b/src/core/Node.hpp
index 4bc95be..516da03 100644
--- a/src/core/Node.hpp
+++ b/src/core/Node.hpp
@@ -350,6 +350,11 @@ public:
* Returns the name of the node.
*/
std::string getName() const { return name; }
+
+ /**
+ * Returns a reference to the name of the node.
+ */
+ const std::string& getNameRef() const { return name; }
/**
* Specifies whether the node has a name, e.g. whether the current name is