Began to implement collection handling.
[shibboleth/xmltooling.git] / xmltooling / XMLObject.h
index 83e003e..e8fb52a 100644 (file)
@@ -134,17 +134,16 @@ namespace xmltooling {
         virtual bool hasChildren() const=0;\r
         \r
         /**\r
-         * Stores an unmodifiable list of child objects in the order that they\r
-         * will appear in the serialized representation.\r
+         * Returns an unmodifiable list of child objects in the order that they\r
+         * should appear in the serialized representation.\r
          * \r
-         * The validity of the returned objects is not maintained if any non-const\r
+         * The validity of the returned list is not maintained if any non-const\r
          * operations are performed on the parent object. \r
          * \r
-         * @param v     vector in which to store pointers to child objects\r
-         * @return the number of children\r
+         * @return the list of children\r
          */\r
-        virtual size_t getOrderedChildren(std::vector<XMLObject*>& v) const=0;\r
- };\r
+        virtual const std::list<XMLObject*>& getOrderedChildren() const=0;\r
   };\r
 \r
 };\r
 \r