Open CASCADE Technology  7.1.0.beta
Public Member Functions

Standard_Transient Class Reference

Abstract class which forms the root of the entire Transient class hierarchy. More...

#include <Standard_Transient.hxx>

Inherited by AIS_Animation, AIS_AnimationTimer, AIS_InteractiveContext, AIS_Selection, Aspect_DisplayConnection, BRepBuilderAPI_FastSewing, BRepExtrema_TriangleSet, BRepMesh_DataStructureOfDelaun, BRepMesh_DiscretRoot, BRepMesh_FaceAttribute, BRepMesh_FastDiscret, BRepMesh_FastDiscretFace, BRepMesh_IEdgeTool, BSplCLib_Cache, BSplSLib_Cache, BVH_BuildThread, CDF_Directory, CDF_MetaDataDriver, CDF_MetaDataDriverFactory, CDF_Session, CDF_StoreList, CDM_Application, CDM_Document, CDM_MessageDriver, CDM_MetaData, CDM_Reference, Extrema_ExtPExtS, Extrema_ExtPRevS, Font_FTFont, Font_FTLibrary, Geom2dEvaluator_Curve, Geom_Transformation, GeomEvaluator_Curve, GeomEvaluator_Surface, Graphic3d_AspectFillArea3d, Graphic3d_AspectLine3d, Graphic3d_AspectMarker3d, Graphic3d_AspectText3d, Graphic3d_Camera, Graphic3d_ClipPlane, Graphic3d_CStructure, Graphic3d_HighlightStyle, Graphic3d_MarkerImage, Graphic3d_SequenceOfHClipPlane, Graphic3d_ShaderAttribute, Graphic3d_ShaderObject, Graphic3d_ShaderProgram, Graphic3d_ShaderVariable, Graphic3d_TextureParams, Graphic3d_TextureRoot, Graphic3d_TransformPers, Graphic3d_ViewAffinity, IFSelect_WorkLibrary, IGESData_FileRecognizer, IGESData_GlobalNodeOfSpecificLib, IGESData_GlobalNodeOfWriterLib, IGESData_SpecificModule, Image_Diff, Image_PixMap, Interface_GlobalNodeOfGeneralLib, Interface_GlobalNodeOfReaderLib, MMgt_TShared, NCollection_Buffer, NCollection_Shared< T, typename >, OpenGl_Caps, OpenGl_Context, OpenGl_RenderFilter, OpenGl_Resource, OpenGl_SetOfShaderPrograms, OpenGl_ShaderManager, OpenGl_Workspace, PCDM_Reader, PCDM_ReadWriter, PCDM_ReferenceIterator, PCDM_Writer, Poly_CoherentTriangulation, SelectMgr_BaseFrustum, SelectMgr_FrustumBuilder, SelectMgr_SensitiveEntity, Standard_Failure, Standard_Persistent, Standard_Type, StdObjMgt_Attribute< Transient >, StdObjMgt_Attribute< AttribClass >, StdObjMgt_Attribute< TDataStd_NamedData >, StdObjMgt_Attribute< TDataStd_Real >, StdObjMgt_Attribute< TDataStd_Variable >, StdObjMgt_Attribute< TDataXtd_Constraint >, StdObjMgt_Attribute< TDataXtd_PatternStd >, StdObjMgt_Attribute< TDataXtd_Presentation >, StdObjMgt_Attribute< TDocStd_XLink >, StdObjMgt_Attribute< TFunction_Function >, StdObjMgt_Attribute< TNaming_NamedShape >, StdObjMgt_Persistent, StdObjMgt_SharedObject::AbstractPersistentBase< Transient >, StdPersistent_TopoDS::pTShape, StepData_FileRecognizer, StepData_GlobalNodeOfWriterLib, V3d_Trihedron, V3d_Viewer, VrmlData_Node, XCAFDimTolObjects_DatumObject, XCAFDimTolObjects_DimensionObject, and XCAFDimTolObjects_GeomToleranceObject.

Public Member Functions

 Standard_Transient ()
 Empty constructor. More...
 
 Standard_Transient (const Standard_Transient &)
 Copy constructor – does nothing. More...
 
Standard_Transientoperator= (const Standard_Transient &)
 Assignment operator, needed to avoid copying reference counter. More...
 
virtual ~Standard_Transient ()
 Destructor must be virtual. More...
 
virtual void Delete () const
 Memory deallocator for transient classes. More...
 

Support of run-time type information (RTTI)

typedef void base_type
 Returns a type descriptor about this object. More...
 
virtual const opencascade::handle< Standard_Type > & DynamicType () const
 Returns a type descriptor about this object. More...
 
Standard_Boolean IsInstance (const opencascade::handle< Standard_Type > &theType) const
 Returns a true value if this is an instance of Type. More...
 
Standard_Boolean IsInstance (const Standard_CString theTypeName) const
 Returns a true value if this is an instance of TypeName. More...
 
Standard_Boolean 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. More...
 
Standard_Boolean IsKind (const Standard_CString 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. More...
 
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. More...
 
static const char * get_type_name ()
 Returns a type descriptor about this object. More...
 
static const opencascade::handle< Standard_Type > & get_type_descriptor ()
 Returns type descriptor of Standard_Transient class. More...
 

Reference counting, for use by handle<>

Standard_Integer GetRefCount () const
 Get the reference counter of this object. More...
 
void IncrementRefCounter () const
 Increments the reference counter of this object. More...
 
Standard_Integer DecrementRefCounter () const
 Decrements the reference counter of this object; returns the decremented value. More...
 

Detailed Description

Abstract class which forms the root of the entire Transient class hierarchy.

Member Typedef Documentation

Returns a type descriptor about this object.

Constructor & Destructor Documentation

Standard_Transient::Standard_Transient ( )
inline

Empty constructor.

Standard_Transient::Standard_Transient ( const Standard_Transient )
inline

Copy constructor – does nothing.

virtual Standard_Transient::~Standard_Transient ( )
inlinevirtual

Destructor must be virtual.

Member Function Documentation

Standard_Integer Standard_Transient::DecrementRefCounter ( ) const

Decrements the reference counter of this object; returns the decremented value.

virtual void Standard_Transient::Delete ( ) const
virtual

Memory deallocator for transient classes.

Reimplemented in MMgt_TShared.

virtual const opencascade::handle<Standard_Type>& Standard_Transient::DynamicType ( ) const
virtual

Returns a type descriptor about this object.

static const opencascade::handle<Standard_Type>& Standard_Transient::get_type_descriptor ( )
static

Returns type descriptor of Standard_Transient class.

static const char* Standard_Transient::get_type_name ( )
inlinestatic

Returns a type descriptor about this object.

Standard_Integer Standard_Transient::GetRefCount ( ) const
inline

Get the reference counter of this object.

void Standard_Transient::IncrementRefCounter ( ) const

Increments the reference counter of this object.

Standard_Boolean Standard_Transient::IsInstance ( const opencascade::handle< Standard_Type > &  theType) const

Returns a true value if this is an instance of Type.

Standard_Boolean Standard_Transient::IsInstance ( const Standard_CString  theTypeName) const

Returns a true value if this is an instance of TypeName.

Standard_Boolean Standard_Transient::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.

Standard_Boolean Standard_Transient::IsKind ( const Standard_CString  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_Transient& Standard_Transient::operator= ( const Standard_Transient )
inline

Assignment operator, needed to avoid copying reference counter.

Standard_Transient* Standard_Transient::This ( ) 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.


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