Open CASCADE Technology Reference Manual 8.0.0
Loading...
Searching...
No Matches
Public Member Functions
Transfer_ResultFromModel Class Reference

ResultFromModel is used to store a final result stored in a TransientProcess, respectfully to its structuration in scopes by using a set of ResultFromTransient Hence, it can be regarded as a passive equivalent of the stored data in the TransientProcess, while an Iterator gives a flat view of it. More...

#include <Transfer_ResultFromModel.hxx>

Inheritance diagram for Transfer_ResultFromModel:
Inheritance graph
[legend]

Public Member Functions

 Transfer_ResultFromModel ()
 Creates a ResultFromModel, empty.
 
void SetModel (const occ::handle< Interface_InterfaceModel > &model)
 Sets starting Model.
 
void SetFileName (const char *const filename)
 Sets starting File Name.
 
occ::handle< Interface_InterfaceModelModel () const
 Returns starting Model (null if not set)
 
const charFileName () const
 Returns starting File Name (empty if not set)
 
bool Fill (const occ::handle< Transfer_TransientProcess > &TP, const occ::handle< Standard_Transient > &ent)
 Fills from a TransientProcess, with the result attached to a starting entity. Considers its Model if it is set. This action produces a structured set of ResultFromTransient, considering scopes, starting by that of <ent>. If <ent> has no recorded result, it remains empty Returns True if a result is recorded, False else.
 
void Strip (const int mode)
 Clears some data attached to binders used by TransientProcess, which become useless once the transfer has been done, by calling Strip on its ResultFromTransient.
 
void FillBack (const occ::handle< Transfer_TransientProcess > &TP) const
 Fills back a TransientProcess from the structured set of binders. Also sets the Model.
 
bool HasResult () const
 Returns True if a Result is recorded.
 
occ::handle< Transfer_ResultFromTransientMainResult () const
 Returns the main recorded ResultFromTransient, or a null.
 
void SetMainResult (const occ::handle< Transfer_ResultFromTransient > &amain)
 Sets a new value for the main recorded ResultFromTransient.
 
const charMainLabel () const
 Returns the label in starting model attached to main entity (updated by Fill or SetMainResult, if Model is known)
 
int MainNumber () const
 Returns the label in starting model attached to main entity.
 
occ::handle< Transfer_ResultFromTransientResultFromKey (const occ::handle< Standard_Transient > &start) const
 Searches for a key (starting entity) and returns its result Returns a null handle if not found.
 
occ::handle< NCollection_HSequence< occ::handle< Standard_Transient > > > Results (const int level) const
 Internal method which returns the list of ResultFromTransient, according level (2:complete; 1:sub-level 1; 0:main only)
 
occ::handle< NCollection_HSequence< occ::handle< Standard_Transient > > > TransferredList (const int level=2) const
 Returns the list of recorded starting entities, ending by the root. Entities with check but no transfer result are ignored <level> = 2 (D), considers the complete list <level> = 1 considers the main result plus immediate subs <level> = 0 just the main result.
 
occ::handle< NCollection_HSequence< occ::handle< Standard_Transient > > > CheckedList (const Interface_CheckStatus check, const bool result) const
 Returns the list of starting entities to which a check status is attached. <check> = -2 all entities whatever the check (see result) <check> = -1 entities with no fail (warning allowed) <check> = 0 entities with no check at all <check> = 1 entities with warning but no fail <check> = 2 entities with fail <result> : if True, only entities with an attached result Remark : result True and check=0 will give an empty list.
 
Interface_CheckIterator CheckList (const bool erronly, const int level=2) const
 Returns the check-list of this set of results <erronly> true : only fails are considered <level> = 0 : considers only main binder <level> = 1 : considers main binder plus immediate subs <level> = 2 (D) : considers all checks.
 
Interface_CheckStatus CheckStatus () const
 Returns the check status with corresponds to the content of this ResultFromModel; considers all levels of transfer (worst status). Returns CheckAny if not yet computed Reads it from recorded status if already computed, else recomputes one.
 
Interface_CheckStatus ComputeCheckStatus (const bool enforce)
 Computes and records check status (see CheckStatus) Does not computes it if already done and <enforce> False.
 
- Public Member Functions inherited from Standard_Transient
 Standard_Transient ()
 Empty constructor.
 
 Standard_Transient (const Standard_Transient &)
 Copy constructor – does nothing.
 
Standard_Transientoperator= (const Standard_Transient &)
 Assignment operator, needed to avoid copying reference counter.
 
virtual ~Standard_Transient ()=default
 Destructor must be virtual.
 
virtual const opencascade::handle< Standard_Type > & DynamicType () const
 Returns a type descriptor about this object.
 
bool IsInstance (const opencascade::handle< Standard_Type > &theType) const
 Returns a true value if this is an instance of Type.
 
bool IsInstance (const char *const theTypeName) const
 Returns a true value if this is an instance of TypeName.
 
bool IsKind (const opencascade::handle< Standard_Type > &theType) const
 Returns true if this is an instance of Type or an instance of any class that inherits from Type. Note that multiple inheritance is not supported by OCCT RTTI mechanism.
 
bool IsKind (const char *const theTypeName) const
 Returns true if this is an instance of TypeName or an instance of any class that inherits from TypeName. Note that multiple inheritance is not supported by OCCT RTTI mechanism.
 
Standard_TransientThis () const
 Returns non-const pointer to this object (like const_cast). For protection against creating handle to objects allocated in stack or call from constructor, it will raise exception Standard_ProgramError if reference counter is zero.
 
int GetRefCount () const noexcept
 Get the reference counter of this object.
 
void IncrementRefCounter () noexcept
 Increments the reference counter of this object. Uses relaxed memory ordering since incrementing only requires atomicity, not synchronization with other memory operations.
 
int DecrementRefCounter () noexcept
 Decrements the reference counter of this object; returns the decremented value. Uses release ordering for the decrement to ensure all writes to the object are visible before the count reaches zero. An acquire fence is added only when the count reaches zero, ensuring proper synchronization before deletion. This is more efficient than using acq_rel for every decrement.
 
virtual void Delete () const
 Memory deallocator for transient classes.
 

Additional Inherited Members

- Public Types inherited from Standard_Transient
typedef void base_type
 Returns a type descriptor about this object.
 
- Static Public Member Functions inherited from Standard_Transient
static constexpr const charget_type_name ()
 Returns a type descriptor about this object.
 
static const opencascade::handle< Standard_Type > & get_type_descriptor ()
 Returns type descriptor of Standard_Transient class.
 

Detailed Description

ResultFromModel is used to store a final result stored in a TransientProcess, respectfully to its structuration in scopes by using a set of ResultFromTransient Hence, it can be regarded as a passive equivalent of the stored data in the TransientProcess, while an Iterator gives a flat view of it.

A ResultFromModel is intended to be attached to the transfer of one entity (typically root entity but it is not mandatory)

It is then possible to :

Constructor & Destructor Documentation

◆ Transfer_ResultFromModel()

Transfer_ResultFromModel::Transfer_ResultFromModel ( )

Creates a ResultFromModel, empty.

Member Function Documentation

◆ CheckedList()

occ::handle< NCollection_HSequence< occ::handle< Standard_Transient > > > Transfer_ResultFromModel::CheckedList ( const Interface_CheckStatus check,
const bool result ) const

Returns the list of starting entities to which a check status is attached. <check> = -2 all entities whatever the check (see result) <check> = -1 entities with no fail (warning allowed) <check> = 0 entities with no check at all <check> = 1 entities with warning but no fail <check> = 2 entities with fail <result> : if True, only entities with an attached result Remark : result True and check=0 will give an empty list.

◆ CheckList()

Interface_CheckIterator Transfer_ResultFromModel::CheckList ( const bool erronly,
const int level = 2 ) const

Returns the check-list of this set of results <erronly> true : only fails are considered <level> = 0 : considers only main binder <level> = 1 : considers main binder plus immediate subs <level> = 2 (D) : considers all checks.

◆ CheckStatus()

Interface_CheckStatus Transfer_ResultFromModel::CheckStatus ( ) const

Returns the check status with corresponds to the content of this ResultFromModel; considers all levels of transfer (worst status). Returns CheckAny if not yet computed Reads it from recorded status if already computed, else recomputes one.

◆ ComputeCheckStatus()

Interface_CheckStatus Transfer_ResultFromModel::ComputeCheckStatus ( const bool enforce)

Computes and records check status (see CheckStatus) Does not computes it if already done and <enforce> False.

◆ FileName()

const char * Transfer_ResultFromModel::FileName ( ) const

Returns starting File Name (empty if not set)

◆ Fill()

bool Transfer_ResultFromModel::Fill ( const occ::handle< Transfer_TransientProcess > & TP,
const occ::handle< Standard_Transient > & ent )

Fills from a TransientProcess, with the result attached to a starting entity. Considers its Model if it is set. This action produces a structured set of ResultFromTransient, considering scopes, starting by that of <ent>. If <ent> has no recorded result, it remains empty Returns True if a result is recorded, False else.

◆ FillBack()

void Transfer_ResultFromModel::FillBack ( const occ::handle< Transfer_TransientProcess > & TP) const

Fills back a TransientProcess from the structured set of binders. Also sets the Model.

◆ HasResult()

bool Transfer_ResultFromModel::HasResult ( ) const

Returns True if a Result is recorded.

◆ MainLabel()

const char * Transfer_ResultFromModel::MainLabel ( ) const

Returns the label in starting model attached to main entity (updated by Fill or SetMainResult, if Model is known)

◆ MainNumber()

int Transfer_ResultFromModel::MainNumber ( ) const

Returns the label in starting model attached to main entity.

◆ MainResult()

occ::handle< Transfer_ResultFromTransient > Transfer_ResultFromModel::MainResult ( ) const

Returns the main recorded ResultFromTransient, or a null.

◆ Model()

occ::handle< Interface_InterfaceModel > Transfer_ResultFromModel::Model ( ) const

Returns starting Model (null if not set)

◆ ResultFromKey()

occ::handle< Transfer_ResultFromTransient > Transfer_ResultFromModel::ResultFromKey ( const occ::handle< Standard_Transient > & start) const

Searches for a key (starting entity) and returns its result Returns a null handle if not found.

◆ Results()

occ::handle< NCollection_HSequence< occ::handle< Standard_Transient > > > Transfer_ResultFromModel::Results ( const int level) const

Internal method which returns the list of ResultFromTransient, according level (2:complete; 1:sub-level 1; 0:main only)

◆ SetFileName()

void Transfer_ResultFromModel::SetFileName ( const char *const filename)

Sets starting File Name.

◆ SetMainResult()

void Transfer_ResultFromModel::SetMainResult ( const occ::handle< Transfer_ResultFromTransient > & amain)

Sets a new value for the main recorded ResultFromTransient.

◆ SetModel()

void Transfer_ResultFromModel::SetModel ( const occ::handle< Interface_InterfaceModel > & model)

Sets starting Model.

◆ Strip()

void Transfer_ResultFromModel::Strip ( const int mode)

Clears some data attached to binders used by TransientProcess, which become useless once the transfer has been done, by calling Strip on its ResultFromTransient.

mode = 0 : minimum, clears data remaining from TransferProcess mode = 10 : just keeps file name, label, check status ..., and MainResult but only the result (Binder) mode = 11 : also clears MainResult (status and names remain)

◆ TransferredList()

occ::handle< NCollection_HSequence< occ::handle< Standard_Transient > > > Transfer_ResultFromModel::TransferredList ( const int level = 2) const

Returns the list of recorded starting entities, ending by the root. Entities with check but no transfer result are ignored <level> = 2 (D), considers the complete list <level> = 1 considers the main result plus immediate subs <level> = 0 just the main result.


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