Open CASCADE Technology 6.6.0
|
Provides links between functions.
#include <TFunction_GraphNode.hxx>
Public Member Functions | |
TFunction_GraphNode () | |
Standard_Boolean | AddPrevious (const Standard_Integer funcID) |
Defines a reference to the function as a previous one. | |
Standard_Boolean | AddPrevious (const TDF_Label &func) |
Defines a reference to the function as a previous one. | |
Standard_Boolean | RemovePrevious (const Standard_Integer funcID) |
Removes a reference to the function as a previous one. | |
Standard_Boolean | RemovePrevious (const TDF_Label &func) |
Removes a reference to the function as a previous one. | |
const TColStd_MapOfInteger & | GetPrevious () const |
Returns a map of previous functions. | |
void | RemoveAllPrevious () |
Clears a map of previous functions. | |
Standard_Boolean | AddNext (const Standard_Integer funcID) |
Defines a reference to the function as a next one. | |
Standard_Boolean | AddNext (const TDF_Label &func) |
Defines a reference to the function as a next one. | |
Standard_Boolean | RemoveNext (const Standard_Integer funcID) |
Removes a reference to the function as a next one. | |
Standard_Boolean | RemoveNext (const TDF_Label &func) |
Removes a reference to the function as a next one. | |
const TColStd_MapOfInteger & | GetNext () const |
Returns a map of next functions. | |
void | RemoveAllNext () |
Clears a map of next functions. | |
TFunction_ExecutionStatus | GetStatus () const |
Returns the execution status of the function. | |
void | SetStatus (const TFunction_ExecutionStatus status) |
Defines an execution status for a function. //! Implementation of Attribute methods =================================== | |
const Standard_GUID & | ID () const |
Returns the ID of the attribute. | |
virtual void | Restore (const Handle< TDF_Attribute > &with) |
Restores the backuped contents from <anAttribute> into this one. It is used when aborting a transaction. | |
virtual void | Paste (const Handle< TDF_Attribute > &into, const Handle< TDF_RelocationTable > &RT) const |
This method is different from the "Copy" one, because it is used when copying an attribute from a source structure into a target structure. This method may paste the contents of <me> into <intoAttribute>. The given pasted attribute can be full or empty of its contents. But don't make a NEW! Just set the contents! It is possible to use <aRelocationTable> to get/set the relocation value of a source attribute. | |
virtual Handle_TDF_Attribute | NewEmpty () const |
Returns an new empty attribute from the good end type. It is used by the copy algorithm. | |
virtual void | References (const Handle< TDF_DataSet > &aDataSet) const |
Adds the first level referenced attributes and labels to <aDataSet>. For this, use the AddLabel or AddAttribute of DataSet. If there is none, do not implement the method. | |
virtual Standard_OStream & | Dump (Standard_OStream &anOS) const |
Dumps the minimum information about <me> on <aStream>. | |
Static Public Member Functions | |
static Handle_TFunction_GraphNode | Set (const TDF_Label &L) |
Static methods ============== //! Finds or Creates a graph node attribute at the label <L>. Returns the attribute. | |
static const Standard_GUID & | GetID () |
Returns the GUID for GraphNode attribute. //! Instant methods =============== //! Constructor (empty). |
TFunction_GraphNode::TFunction_GraphNode | ( | ) |
Standard_Boolean TFunction_GraphNode::AddNext | ( | const Standard_Integer | funcID | ) |
Standard_Boolean TFunction_GraphNode::AddNext | ( | const TDF_Label & | func | ) |
Standard_Boolean TFunction_GraphNode::AddPrevious | ( | const TDF_Label & | func | ) |
Standard_Boolean TFunction_GraphNode::AddPrevious | ( | const Standard_Integer | funcID | ) |
virtual Standard_OStream& TFunction_GraphNode::Dump | ( | Standard_OStream & | anOS | ) | const [virtual] |
Reimplemented from TDF_Attribute.
static const Standard_GUID& TFunction_GraphNode::GetID | ( | ) | [static] |
const TColStd_MapOfInteger& TFunction_GraphNode::GetNext | ( | ) | const |
const TColStd_MapOfInteger& TFunction_GraphNode::GetPrevious | ( | ) | const |
TFunction_ExecutionStatus TFunction_GraphNode::GetStatus | ( | ) | const |
const Standard_GUID& TFunction_GraphNode::ID | ( | ) | const [virtual] |
Implements TDF_Attribute.
virtual Handle_TDF_Attribute TFunction_GraphNode::NewEmpty | ( | ) | const [virtual] |
Implements TDF_Attribute.
virtual void TFunction_GraphNode::Paste | ( | const Handle< TDF_Attribute > & | intoAttribute, |
const Handle< TDF_RelocationTable > & | aRelocationTable | ||
) | const [virtual] |
Implements TDF_Attribute.
virtual void TFunction_GraphNode::References | ( | const Handle< TDF_DataSet > & | aDataSet | ) | const [virtual] |
Reimplemented from TDF_Attribute.
void TFunction_GraphNode::RemoveAllNext | ( | ) |
void TFunction_GraphNode::RemoveAllPrevious | ( | ) |
Standard_Boolean TFunction_GraphNode::RemoveNext | ( | const Standard_Integer | funcID | ) |
Standard_Boolean TFunction_GraphNode::RemoveNext | ( | const TDF_Label & | func | ) |
Standard_Boolean TFunction_GraphNode::RemovePrevious | ( | const TDF_Label & | func | ) |
Standard_Boolean TFunction_GraphNode::RemovePrevious | ( | const Standard_Integer | funcID | ) |
virtual void TFunction_GraphNode::Restore | ( | const Handle< TDF_Attribute > & | anAttribute | ) | [virtual] |
Implements TDF_Attribute.
static Handle_TFunction_GraphNode TFunction_GraphNode::Set | ( | const TDF_Label & | L | ) | [static] |
void TFunction_GraphNode::SetStatus | ( | const TFunction_ExecutionStatus | status | ) |