X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModelAPI%2FModelAPI_Feature.h;h=c266b505ea1a194910a7ab7a020a72b448717532;hb=f626fe578ad8bf82242d71b583e96f846e628596;hp=3dc6a3d5d956a1e6622a51cb37647b559a1f31c1;hpb=6f7ce111d1694790c7b2ec920d49e926a7a50106;p=modules%2Fshaper.git diff --git a/src/ModelAPI/ModelAPI_Feature.h b/src/ModelAPI/ModelAPI_Feature.h index 3dc6a3d5d..c266b505e 100644 --- a/src/ModelAPI/ModelAPI_Feature.h +++ b/src/ModelAPI/ModelAPI_Feature.h @@ -51,7 +51,7 @@ class ModelAPI_Feature : public ModelAPI_Object } /// Returns document this feature belongs to - virtual boost::shared_ptr document() + virtual boost::shared_ptr document() const { return ModelAPI_Object::document(); } @@ -72,6 +72,8 @@ class ModelAPI_Feature : public ModelAPI_Object MODELAPI_EXPORT const std::list >& results(); /// returns the first result in the list or NULL reference MODELAPI_EXPORT boost::shared_ptr firstResult(); + /// returns the last result in the list or NULL reference + MODELAPI_EXPORT boost::shared_ptr lastResult(); /// sets the alone result MODELAPI_EXPORT void setResult(const boost::shared_ptr& theResult); /// sets the result by index (zero based), results before this must be set before