X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModelAPI%2FModelAPI_Feature.cpp;h=94b1a64e8fb1f79fe1512faf8c6a7641aa085041;hb=f626fe578ad8bf82242d71b583e96f846e628596;hp=b3dc06045a0461975b881b84a58398613e2281ab;hpb=b5e6786b95d33825a3d1537d5453492e774d6399;p=modules%2Fshaper.git diff --git a/src/ModelAPI/ModelAPI_Feature.cpp b/src/ModelAPI/ModelAPI_Feature.cpp index b3dc06045..94b1a64e8 100644 --- a/src/ModelAPI/ModelAPI_Feature.cpp +++ b/src/ModelAPI/ModelAPI_Feature.cpp @@ -7,6 +7,7 @@ #include #include #include +#include #include const std::list >& ModelAPI_Feature::results() @@ -19,6 +20,11 @@ boost::shared_ptr ModelAPI_Feature::firstResult() return myResults.empty() ? boost::shared_ptr() : *(myResults.begin()); } +boost::shared_ptr ModelAPI_Feature::lastResult() +{ + return myResults.empty() ? boost::shared_ptr() : *(myResults.rbegin()); +} + void ModelAPI_Feature::setResult(const boost::shared_ptr& theResult) { if (firstResult() == theResult) { // just updated