Open CASCADE Technology 6.6.0
Public Member Functions | Static Public Member Functions
TFunction_Scope Class Reference

Keeps a scope of functions.

#include <TFunction_Scope.hxx>

Inheritance diagram for TFunction_Scope:
Inheritance graph
[legend]

Public Member Functions

 TFunction_Scope ()
Standard_Boolean AddFunction (const TDF_Label &L)
 Adds a function to the scope of functions.

Standard_Boolean RemoveFunction (const TDF_Label &L)
 Removes a function from the scope of functions.

Standard_Boolean RemoveFunction (const Standard_Integer ID)
 Removes a function from the scope of functions.

void RemoveAllFunctions ()
 Removes all functions from the scope of functions.

Standard_Boolean HasFunction (const Standard_Integer ID) const
 Returns true if the function exists with such an ID.

Standard_Boolean HasFunction (const TDF_Label &L) const
 Returns true if the label contains a function of this scope.

Standard_Integer GetFunction (const TDF_Label &L) const
 Returns an ID of the function.

const TDF_LabelGetFunction (const Standard_Integer ID) const
 Returns the label of the function with this ID.

TFunction_LogbookGetLogbook ()
 Returns the Logbook used in TFunction_Driver methods.
//! Implementation of Attribute methods
===================================

const Standard_GUIDID () 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 Standard_OStreamDump (Standard_OStream &anOS) const
 Dumps the minimum information about <me> on
<aStream>.


const
TFunction_DoubleMapOfIntegerLabel
GetFunctions () const
 Returns the scope of functions.

TFunction_DoubleMapOfIntegerLabelChangeFunctions ()
 Returns the scope of functions for modification.
Warning: Don't use this method if You are not sure what You do!

void SetFreeID (const Standard_Integer ID)
Standard_Integer GetFreeID () const

Static Public Member Functions

static Handle_TFunction_Scope Set (const TDF_Label &Access)
 Static methods
==============
//! Finds or Creates a TFunction_Scope attribute at the root label accessed by <Access>.
Returns the attribute.

static const Standard_GUIDGetID ()
 Returns the GUID for Scope attribute.
//! Instant methods
===============
//! Constructor (empty).


Constructor & Destructor Documentation

TFunction_Scope::TFunction_Scope ( )

Member Function Documentation

Standard_Boolean TFunction_Scope::AddFunction ( const TDF_Label L)
TFunction_DoubleMapOfIntegerLabel& TFunction_Scope::ChangeFunctions ( )
virtual Standard_OStream& TFunction_Scope::Dump ( Standard_OStream anOS) const [virtual]

Reimplemented from TDF_Attribute.

Standard_Integer TFunction_Scope::GetFreeID ( ) const
Standard_Integer TFunction_Scope::GetFunction ( const TDF_Label L) const
const TDF_Label& TFunction_Scope::GetFunction ( const Standard_Integer  ID) const
const TFunction_DoubleMapOfIntegerLabel& TFunction_Scope::GetFunctions ( ) const
static const Standard_GUID& TFunction_Scope::GetID ( ) [static]
TFunction_Logbook& TFunction_Scope::GetLogbook ( )
Standard_Boolean TFunction_Scope::HasFunction ( const TDF_Label L) const
Standard_Boolean TFunction_Scope::HasFunction ( const Standard_Integer  ID) const
const Standard_GUID& TFunction_Scope::ID ( ) const [virtual]

Implements TDF_Attribute.

virtual Handle_TDF_Attribute TFunction_Scope::NewEmpty ( ) const [virtual]

Implements TDF_Attribute.

virtual void TFunction_Scope::Paste ( const Handle< TDF_Attribute > &  intoAttribute,
const Handle< TDF_RelocationTable > &  aRelocationTable 
) const [virtual]

Implements TDF_Attribute.

void TFunction_Scope::RemoveAllFunctions ( )
Standard_Boolean TFunction_Scope::RemoveFunction ( const Standard_Integer  ID)
Standard_Boolean TFunction_Scope::RemoveFunction ( const TDF_Label L)
virtual void TFunction_Scope::Restore ( const Handle< TDF_Attribute > &  anAttribute) [virtual]

Implements TDF_Attribute.

static Handle_TFunction_Scope TFunction_Scope::Set ( const TDF_Label Access) [static]
void TFunction_Scope::SetFreeID ( const Standard_Integer  ID)

The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines