0023465: Weird InsertBefore, InsertAfter and Remove methods in TDataStd lists
[occt.git] / src / TDataStd / TDataStd_ReferenceList.hxx
index 8cb9873..c65cd07 100644 (file)
@@ -62,12 +62,23 @@ public:
   //! Inserts the <value> before the first meet of <before_value>.
   Standard_EXPORT Standard_Boolean InsertBefore (const TDF_Label& value, const TDF_Label& before_value);
   
+  //! Inserts the label before the <index> position.
+  //! The indices start with 1 .. Extent().
+  Standard_EXPORT Standard_Boolean InsertBefore (const Standard_Integer index, const TDF_Label& before_value);
+  
   //! Inserts the <value> after the first meet of <after_value>.
   Standard_EXPORT Standard_Boolean InsertAfter (const TDF_Label& value, const TDF_Label& after_value);
   
+  //! Inserts the label after the <index> position.
+  //! The indices start with 1 .. Extent().
+  Standard_EXPORT Standard_Boolean InsertAfter (const Standard_Integer index, const TDF_Label& after_value);
+  
   //! Removes the first meet of the <value>.
   Standard_EXPORT Standard_Boolean Remove (const TDF_Label& value);
   
+  //! Removes a label at "index" position.
+  Standard_EXPORT Standard_Boolean Remove (const Standard_Integer index);
+  
   Standard_EXPORT void Clear();
   
   Standard_EXPORT const TDF_Label& First() const;