summaryrefslogtreecommitdiffstats
path: root/src/object-set.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/object-set.cpp')
-rw-r--r--src/object-set.cpp15
1 files changed, 12 insertions, 3 deletions
diff --git a/src/object-set.cpp b/src/object-set.cpp
index ba7999c19..8aaa68e70 100644
--- a/src/object-set.cpp
+++ b/src/object-set.cpp
@@ -18,13 +18,14 @@ bool ObjectSet::add(SPObject* object) {
return false;
}
+ // very nice function, but needs refinement
// check if there is mutual ancestor for some elements, which can replace all of them in the set
- SPObject* o = _getMutualAncestor(object);
+// object = _getMutualAncestor(object);
// remove all descendants from the set
- _removeDescendantsFromSet(o);
+ _removeDescendantsFromSet(object);
- _add(o);
+ _add(object);
return true;
}
@@ -132,3 +133,11 @@ void ObjectSet::_removeAncestorsFromSet(SPObject *object) {
ObjectSet::~ObjectSet() {
clear();
}
+
+multi_index_container::iterator ObjectSet::begin() {
+ return container.begin();
+}
+
+multi_index_container::iterator ObjectSet::end() {
+ return container.end();
+}