diff options
author | Benjamin Paassen <bpaassen@techfak.uni-bielefeld.de> | 2015-01-20 01:24:11 +0100 |
---|---|---|
committer | Benjamin Paassen <bpaassen@techfak.uni-bielefeld.de> | 2015-01-20 01:24:11 +0100 |
commit | 20d3e71f26ca884271ed5d372a8459394554c147 (patch) | |
tree | 82f4b40e989205dbbbd03b70446ca8b02bf1908f /src/core/model/Node.hpp | |
parent | 7c64a0770a4800d80c5a53eea2243c46301f7749 (diff) |
finished setter revival in Document classes, hopefully.
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; /** |