summaryrefslogtreecommitdiff
path: root/configmgr/source/nodemap.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'configmgr/source/nodemap.hxx')
-rw-r--r--configmgr/source/nodemap.hxx10
1 files changed, 7 insertions, 3 deletions
diff --git a/configmgr/source/nodemap.hxx b/configmgr/source/nodemap.hxx
index 7b8d126e63f1..3745b862face 100644
--- a/configmgr/source/nodemap.hxx
+++ b/configmgr/source/nodemap.hxx
@@ -31,6 +31,9 @@ typedef std::map< OUString, rtl::Reference< Node > > NodeMapImpl;
class NodeMap
{
NodeMapImpl aImpl;
+ NodeMap(const NodeMap &rMap) :
+ aImpl(rMap.aImpl) {}
+
public:
typedef NodeMapImpl::iterator iterator;
typedef NodeMapImpl::const_iterator const_iterator;
@@ -39,7 +42,7 @@ class NodeMap
NodeMap() {}
~NodeMap() {}
void clear() { aImpl.clear(); }
- bool empty() { return aImpl.empty(); }
+ bool empty() const { return aImpl.empty(); }
void erase(const iterator &it) { aImpl.erase(it); }
void erase(const OUString &aStr) { aImpl.erase(aStr); }
iterator find(const OUString &aStr) { return aImpl.find( aStr ); }
@@ -52,9 +55,10 @@ class NodeMap
iterator end() { return aImpl.end(); }
const_iterator end() const { return aImpl.end(); }
std::pair<iterator,bool> insert(const value_type &vt) { return aImpl.insert(vt); }
-};
-void cloneNodeMap(NodeMap const & source, NodeMap * target);
+ rtl::Reference< Node > findNode(int layer, OUString const & name) const;
+ void cloneInto(NodeMap * target) const;
+};
}