Salome HOME
addUniqueNamedCopiedFeature to use unique names for copies features.
[modules/shaper.git] / src / ModelAPI / ModelAPI_AttributeRefList.h
index 9384d2855215acefab356e10b75e32e0a259c357..37e9f68de6b1a8a51d85cadfa2d35012da463b04 100644 (file)
@@ -20,7 +20,7 @@ class ModelAPI_AttributeRefList : public ModelAPI_Attribute
 {
  public:
   /// Returns the type of this class of attributes
-  MODELAPI_EXPORT static std::string type()
+  MODELAPI_EXPORT static std::string typeId()
   {
     return "RefList";
   }
@@ -34,6 +34,9 @@ class ModelAPI_AttributeRefList : public ModelAPI_Attribute
   /// Erases the first meet of the feature in the list
   MODELAPI_EXPORT virtual void remove(ObjectPtr theObject) = 0;
 
+  /// Removes all references from the list
+  MODELAPI_EXPORT virtual void clear() = 0;
+
   /// Returns number of features in the list
   MODELAPI_EXPORT virtual int size() const = 0;