+ //Retuns true if this function is the last one in the study
+ Standard_EXPORT bool IsLastFuntion();
aRoot->Append(aNode);
}
+//================================================================================
+/*!
+ * \brief Retuns true if this function is the last one in the study
+ */
+//================================================================================
+
+bool GEOM_Function::IsLastFuntion()
+{
+ bool isLast = false;
+
+ Handle(TDataStd_TreeNode) aNode;
+ if (_label.FindAttribute(GetFunctionTreeID(), aNode))
+ isLast = !aNode->HasNext();
+
+ return isLast;
+}
+
//=============================================================================
/*!
* GetOwner
//Returns true if the last method succided
Standard_EXPORT bool IsDone() { return _isDone; }
+ //Retuns true if this function is the last one in the study
+ Standard_EXPORT bool IsLastFuntion();
+
//Returns a sequence of the external dependencies of this function
Standard_EXPORT void GetDependency(TDF_LabelSequence& theSeq);