X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModelAPI%2FModelAPI_Feature.h;h=6d7955f4b1dee713b9149faa581656770c1f5155;hb=7f5d3b6de3d879b6a11389c06a6f183b2fa5a1b2;hp=dd98c597a02c7f466f9caa61a01ec77d804e5c38;hpb=04e52dd31f27fb0004f97fa8ef4e275d4c1b962b;p=modules%2Fshaper.git diff --git a/src/ModelAPI/ModelAPI_Feature.h b/src/ModelAPI/ModelAPI_Feature.h index dd98c597a..6d7955f4b 100644 --- a/src/ModelAPI/ModelAPI_Feature.h +++ b/src/ModelAPI/ModelAPI_Feature.h @@ -56,6 +56,10 @@ public: MODELAPI_EXPORT virtual boost::shared_ptr document() {return myDoc;} + /// Returns true if feature refers to the same model data instance + MODELAPI_EXPORT virtual bool isSame(const boost::shared_ptr& theFeature) + {return theFeature.get() == this;} + /// To virtually destroy the fields of successors virtual ~ModelAPI_Feature() {}