Open CASCADE Technology  6.5.4
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Static Public Member Functions
TFunction_IFunction Class Reference

Interface class for usage of Function Mechanism

#include <TFunction_IFunction.hxx>

Public Member Functions

 TFunction_IFunction ()
 TFunction_IFunction (const TDF_Label &L)
 A constructor.
Initializes the interface by the label of function.

void Init (const TDF_Label &L)
 Initializes the interface by the label of function.

const TDF_LabelLabel () const
 Returns a label of the function.

Standard_Boolean UpdateDependencies () const
 Updates the dependencies of this function only.

void Arguments (TDF_LabelList &args) const
 The method fills-in the list by labels,
where the arguments of the function are located.

void Results (TDF_LabelList &res) const
 The method fills-in the list by labels,
where the results of the function are located.

void GetPrevious (TDF_LabelList &prev) const
 Returns a list of previous functions.

void GetNext (TDF_LabelList &prev) const
 Returns a list of next functions.

TFunction_ExecutionStatus GetStatus () const
 Returns the execution status of the function.

void SetStatus (const TFunction_ExecutionStatus status) const
 Defines an execution status for a function.

const
TFunction_DoubleMapOfIntegerLabel
GetAllFunctions () const
 Returns the scope of all functions.

TFunction_LogbookGetLogbook () const
 Returns the Logbook - keeper of modifications.

Handle_TFunction_Driver GetDriver (const Standard_Integer thread=0) const
 Returns a driver of the function.

Handle_TFunction_GraphNode GetGraphNode () const
 Returns a graph node of the function.

Static Public Member Functions

static DEFINE_STANDARD_ALLOC
Standard_Boolean 
NewFunction (const TDF_Label &L, const Standard_GUID &ID)
 Sets a new function attached to a label <L> with <ID>.
It creates a new TFunction_Function attribute initialized by the <ID>,
a new TFunction_GraphNode with an empty list of dependencies and
the status equal to TFunction_ES_WrongDefinition.
It registers the function in the scope of functions for this document.

static Standard_Boolean DeleteFunction (const TDF_Label &L)
 Deletes a function attached to a label <L>.
It deletes a TFunction_Function attribute and a TFunction_GraphNode.
It deletes the functions from the scope of function of this document.

static Standard_Boolean UpdateDependencies (const TDF_Label &Access)
 Updates dependencies for all functions of the scope.
It returns false in case of an error.
//! An empty constructor.


Constructor & Destructor Documentation


Member Function Documentation

Handle_TFunction_Driver TFunction_IFunction::GetDriver ( const Standard_Integer  thread = 0) const
Handle_TFunction_GraphNode TFunction_IFunction::GetGraphNode ( ) const

The documentation for this class was generated from the following file: