diff options
author | Andreas Stöckel <astoecke@techfak.uni-bielefeld.de> | 2015-01-20 01:52:30 +0100 |
---|---|---|
committer | Andreas Stöckel <astoecke@techfak.uni-bielefeld.de> | 2015-01-20 01:52:30 +0100 |
commit | 90047e6e1df4f32c7c935639df122136dccb3aa1 (patch) | |
tree | 562c77b13b1bd87064ee665a208dec55eb244e3e /src/core/model/Node.hpp | |
parent | d98161ba6b7453932958e05ffa10a2e1a6a52d0a (diff) | |
parent | 57a1ea659ae125934c541951113c0c3a38b10971 (diff) |
Merge branch 'master' of somweyr.de:ousia
Diffstat (limited to 'src/core/model/Node.hpp')
-rw-r--r-- | src/core/model/Node.hpp | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/src/core/model/Node.hpp b/src/core/model/Node.hpp index 3e778a6..6b13c30 100644 --- a/src/core/model/Node.hpp +++ b/src/core/model/Node.hpp @@ -451,6 +451,13 @@ public: Rooted<Managed> getParent() const { return parent; } /** + * Sets the parent node. + * + * @param parent is a Handle to the parent node. + */ + void setParent(Handle<Node> parent); + + /** * Returns true, if the node does not have a parent. Root nodes may either * be the root element of the complete DOM tree * @@ -522,8 +529,8 @@ class NodeVector : public ManagedGenericList<T, std::vector<Handle<T>>, ListAccessor<Handle<T>>, Listener> { public: - using Base = ManagedGenericList<T, std::vector<Handle<T>>, ListAccessor<Handle<T>>, - Listener>; + using Base = ManagedGenericList<T, std::vector<Handle<T>>, + ListAccessor<Handle<T>>, Listener>; using Base::Base; /** @@ -553,9 +560,9 @@ class NodeMap : public ManagedGenericMap<K, T, std::map<K, Handle<T>>, MapAccessor<std::pair<K, Handle<T>>>, Listener> { public: - using Base = ManagedGenericMap<K, T, std::map<K, Handle<T>>, - MapAccessor<std::pair<K, Handle<T>>>, - Listener>; + using Base = + ManagedGenericMap<K, T, std::map<K, Handle<T>>, + MapAccessor<std::pair<K, Handle<T>>>, Listener>; using Base::Base; /** |