FeaturePtr aMyFeature = std::dynamic_pointer_cast<ModelAPI_Feature>(myObject);
std::map<std::string, std::shared_ptr<ModelAPI_Attribute> >::iterator anAttr = myAttrs.begin();
- std::list<ObjectPtr> aReferenced; // not inside of cycle to avoid excess memory menagement
+ std::list<ObjectPtr> aReferenced; // not inside of cycle to avoid excess memory management
for(; anAttr != myAttrs.end(); anAttr++) {
- // skip not-case attributres, that really may refer to anything not-used (issue 671)
+ // skip not-case attributes, that really may refer to anything not-used (issue 671)
if (aMyFeature.get() && !aValidators->isCase(aMyFeature, anAttr->second->id()))
continue;
std::shared_ptr<ModelAPI_AttributeSelection> aSel =
std::dynamic_pointer_cast<ModelAPI_AttributeSelection>(*aRefsIter);
ObjectPtr aContext = aSel->context();
- // update argument onlt if the referenced object is changed
+ // update argument only if the referenced object is changed
if (aContext.get() && !aContext->isDisabled() &&
(myJustUpdated.find(aContext) != myJustUpdated.end() ||
aContext->data()->updateID() > theFeature->data()->updateID())) {
/// Returns the sub-feature unique identifier in this composite feature by zero-base index
virtual int subFeatureId(const int theIndex) const = 0;
- /// Returns true if feature or reuslt belong to this composite feature as subs
+ /// Returns true if feature or result belong to this composite feature as subs
virtual bool isSub(ObjectPtr theObject) const = 0;
/// This method to inform that sub-feature is removed and must be removed from the internal data
#define ModelAPI_Tools_HeaderFile
#include "ModelAPI.h"
-#include <ModelAPI_Result.h>
-#include <ModelAPI_ResultParameter.h>
+
+#include <ModelAPI_CompositeFeature.h>
#include <ModelAPI_Document.h>
#include <ModelAPI_Feature.h>
+#include <ModelAPI_Result.h>
+#include <ModelAPI_ResultParameter.h>
+
#include <GeomAPI_Shape.h>
-#include <ModelAPI_CompositeFeature.h>
#include <vector>
* Searches for Part result that contains the reference to the given document.
* \param theMain document that contains the searched feature
* \param theSub document that is searched, the resulting feature references to it
- * \returns numm if not found
+ * \returns null if not found
*/
MODELAPI_EXPORT ResultPtr findPartResult(const DocumentPtr& theMain, const DocumentPtr& theSub);
/*!
- * Returns the cpomposite feature - parent of this feature.
+ * Returns the composite feature - parent of this feature.
* \param theFeature the sub-element of composite
* \returns null if it is not sub-element of composite
*/
if (!aMessage.get() || aMessage->oldName().empty() || aMessage->newName().empty())
return;
- // check if the renamed object is a result perameter
+ // check if the renamed object is a result parameter
ResultParameterPtr aResultParameter =
std::dynamic_pointer_cast<ModelAPI_ResultParameter>(aMessage->object());
if (!aResultParameter.get())