Open CASCADE Technology  6.9.1
Public Member Functions
MMgt_TShared Class Reference

Intermediate class between Standard_Transient and descendants. The abstract class TShared is the root class of managed objects. TShared objects are managed by a memory manager based on reference counting. They have handle semantics. In other words, the reference counter is transparently incremented and decremented according to the scope of handles. When all handles, which reference a single object are out of scope, the reference counter becomes null and the object is automatically deleted. The deallocated memory is not given back to the system though. It is reclaimed for new objects of the same size. Warning This memory management scheme does not work for cyclic data structures. In such cases (with back pointers for example), you should interrupt the cycle in a class by using a full C++ pointer instead of a handle. More...

#include <MMgt_TShared.hxx>

Inherits Standard_Transient.

Inherited by Adaptor2d_HCurve2d, Adaptor3d_HCurve, Adaptor3d_HSurface, Adaptor3d_HVertex, Adaptor3d_TopolTool, AIS_GlobalStatus, AIS_InteractiveContext, AIS_LocalContext, AIS_LocalStatus, AIS_Selection, AppDef_HArray1OfMultiPointConstraint, AppDef_SmoothCriterion, AppParCurves_HArray1OfConstraintCouple, AppParCurves_HArray1OfMultiBSpCurve, AppParCurves_HArray1OfMultiCurve, AppParCurves_HArray1OfMultiPoint, Approx_CurvlinFunc, Approx_HArray1OfAdHSurface, Approx_HArray1OfGTrsf2d, Approx_SweepFunction, Aspect_AspectFillArea, Aspect_AspectLine, Aspect_AspectMarker, Aspect_ColorScale, Aspect_Grid, Aspect_Window, BinMDF_ADriver, BinMDF_ADriverTable, Bnd_HArray1OfBox, Bnd_HArray1OfBox2d, Bnd_HArray1OfSphere, BOPDS_CommonBlock, BOPDS_PaveBlock, BRep_CurveRepresentation, BRep_PointRepresentation, BRepAdaptor_HArray1OfCurve, BRepAlgo_AsDes, BRepAlgo_EdgeConnector, BRepApprox_ApproxLine, BRepBlend_Line, BRepBuilderAPI_Sewing, BRepCheck_Result, BRepFill_LocationLaw, BRepFill_PipeShell, BRepFill_SectionLaw, BRepTools_Modification, BRepTools_ReShape, ChFiDS_HData, ChFiDS_SecHArray1, ChFiDS_Spine, ChFiDS_Stripe, ChFiDS_SurfData, Contap_TheHSequenceOfPoint, Contap_TheIWLineOfTheIWalking, DBRep_Edge, DBRep_Face, DDataStd_DrawDriver, DDF_Transaction, Dico_DictionaryOfInteger, Dico_DictionaryOfTransient, Dico_StackItemOfDictionaryOfInteger, Dico_StackItemOfDictionaryOfTransient, Draw_Drawable3D, Expr_GeneralExpression, Expr_GeneralFunction, Expr_GeneralRelation, ExprIntrp_Generator, Extrema_HArray1OfPOnCurv, Extrema_HArray1OfPOnCurv2d, Extrema_HArray1OfPOnSurf, Extrema_HArray2OfPOnCurv, Extrema_HArray2OfPOnCurv2d, Extrema_HArray2OfPOnSurf, Extrema_HArray2OfPOnSurfParams, FEmTool_Curve, FEmTool_ElementaryCriterion, FEmTool_HAssemblyTable, FEmTool_SparseMatrix, Font_FontMgr, Font_SystemFont, GccInt_Bisec, Geom2d_Geometry, Geom2d_Transformation, Geom_Geometry, Geom_HSequenceOfBSplineSurface, Geom_Transformation, GeomFill_Boundary, GeomFill_CoonsAlgPatch, GeomFill_HArray1OfLocationLaw, GeomFill_HArray1OfSectionLaw, GeomFill_HSequenceOfAx2, GeomFill_Line, GeomFill_LocationLaw, GeomFill_SectionLaw, GeomFill_TgtField, GeomFill_TrihedronLaw, GeomPlate_CurveConstraint, GeomPlate_HArray1OfHCurveOnSurface, GeomPlate_HArray1OfSequenceOfReal, GeomPlate_HSequenceOfCurveConstraint, GeomPlate_HSequenceOfPointConstraint, GeomPlate_PointConstraint, GeomTools_UndefinedTypeHandler, Graphic3d_ArrayOfPrimitives, Graphic3d_AspectText3d, Graphic3d_DataStructureManager, Graphic3d_GraphicDriver, Graphic3d_Group, Graphic3d_HSequenceOfStructure, Graphic3d_Structure, Graphic3d_StructureManager, Graphic3d_TextureRoot, HeaderSection_FileDescription, HeaderSection_FileName, HeaderSection_FileSchema, HLRAlgo_EdgesBlock, HLRAlgo_HArray1OfPHDat, HLRAlgo_HArray1OfPINod, HLRAlgo_HArray1OfPISeg, HLRAlgo_HArray1OfTData, HLRAlgo_PolyAlgo, HLRAlgo_PolyData, HLRAlgo_PolyInternalData, HLRAlgo_PolyInternalNode, HLRAlgo_PolyShellData, HLRAlgo_WiresBlock, HLRBRep_AreaLimit, HLRBRep_Data, HLRBRep_InternalAlgo, HLRBRep_PolyAlgo, HLRTest_ShapeData, HLRTopoBRep_OutLiner, IFSelect_Activator, IFSelect_AppliedModifiers, IFSelect_Dispatch, IFSelect_EditForm, IFSelect_Editor, IFSelect_GeneralModifier, IFSelect_HSeqOfSelection, IFSelect_IntParam, IFSelect_ListEditor, IFSelect_ModelCopier, IFSelect_PacketList, IFSelect_Selection, IFSelect_SessionDumper, IFSelect_ShareOut, IFSelect_SignatureList, IFSelect_Transformer, IFSelect_WorkSession, IGESAppli_HArray1OfFiniteElement, IGESAppli_HArray1OfFlow, IGESAppli_HArray1OfNode, IGESBasic_HArray1OfHArray1OfIGESEntity, IGESBasic_HArray1OfHArray1OfInteger, IGESBasic_HArray1OfHArray1OfReal, IGESBasic_HArray1OfHArray1OfXY, IGESBasic_HArray1OfHArray1OfXYZ, IGESBasic_HArray1OfLineFontEntity, IGESBasic_HArray2OfHArray1OfReal, IGESData_HArray1OfIGESEntity, IGESData_IGESEntity, IGESData_NodeOfSpecificLib, IGESData_NodeOfWriterLib, IGESData_ToolLocation, IGESDefs_HArray1OfHArray1OfTextDisplayTemplate, IGESDefs_HArray1OfTabularData, IGESDimen_HArray1OfGeneralNote, IGESDimen_HArray1OfLeaderArrow, IGESDraw_HArray1OfConnectPoint, IGESDraw_HArray1OfViewKindEntity, IGESGeom_HArray1OfBoundary, IGESGeom_HArray1OfCurveOnSurface, IGESGeom_HArray1OfTransformationMatrix, IGESGraph_HArray1OfColor, IGESGraph_HArray1OfTextDisplayTemplate, IGESGraph_HArray1OfTextFontDef, IGESSelect_ViewSorter, IGESSolid_HArray1OfFace, IGESSolid_HArray1OfLoop, IGESSolid_HArray1OfShell, IGESSolid_HArray1OfVertexList, IGESToBRep_AlgoContainer, IGESToBRep_IGESBoundary, IGESToBRep_ToolContainer, Interface_Check, Interface_CopyControl, Interface_EntityCluster, Interface_FileReaderData, Interface_GeneralModule, Interface_GTool, Interface_HArray1OfHAsciiString, Interface_HGraph, Interface_HSequenceOfCheck, Interface_InterfaceModel, Interface_IntVal, Interface_NodeOfGeneralLib, Interface_NodeOfReaderLib, Interface_ParamList, Interface_ParamSet, Interface_Protocol, Interface_ReaderModule, Interface_ReportEntity, Interface_UndefinedContent, IntPatch_Line, IntPatch_TheIWLineOfTheIWalking, IntStart_SITopolTool, IntSurf_LineOn2S, IntTools_Context, Law_BSpline, Law_Function, LDOM_MemManager, LocOpe_GeneratedShape, LocOpe_WiresOnShape, MAT2d_Circuit, MAT2d_Connexion, MAT_Arc, MAT_BasicElt, MAT_Bisector, MAT_Edge, MAT_Graph, MAT_ListOfBisector, MAT_ListOfEdge, MAT_Node, MAT_TListNodeOfListOfBisector, MAT_TListNodeOfListOfEdge, MAT_Zone, MDF_ARDriver, MDF_ARDriverHSequence, MDF_ARDriverTable, MDF_ASDriver, MDF_ASDriverHSequence, MDF_ASDriverTable, MDF_RRelocationTable, MDF_SRelocationTable, MeshVS_DataSource, MeshVS_Drawer, MeshVS_HArray1OfSequenceOfInteger, MeshVS_PrsBuilder, Message_Algorithm, Message_Messenger, Message_Printer, Message_ProgressIndicator, MgtTopoDS_TranslateTool, MgtTopoDS_TranslateTool1, MoniTool_CaseData, MoniTool_Element, MoniTool_HSequenceOfElement, MoniTool_IntVal, MoniTool_Option, MoniTool_Profile, MoniTool_RealVal, MoniTool_SignText, MoniTool_Timer, MoniTool_TypedValue, NCollection_BaseAllocator, NLPlate_HGPPConstraint, OpenGl_View, OpenGl_Window, Plate_HArray1OfPinpointConstraint, PLib_Base, Poly_HArray1OfTriangle, Poly_Polygon2D, Poly_Polygon3D, Poly_PolygonOnTriangulation, Poly_Triangulation, ProjLib_HSequenceOfHSequenceOfPnt, Prs3d_BasicAspect, Prs3d_Drawer, Prs3d_PlaneSet, Prs3d_Projector, PrsMgr_PresentableObject, PrsMgr_Presentation, PrsMgr_PresentationManager, QANewModTopOpe_ReShaper, Quantity_HArray1OfColor, Resource_Manager, SelectBasics_EntityOwner, SelectBasics_SensitiveEntity, SelectMgr_Filter, SelectMgr_Selection, SelectMgr_SelectionManager, SelectMgr_ViewerSelector, ShapeAlgo_AlgoContainer, ShapeAlgo_ToolContainer, ShapeAnalysis_FreeBoundData, ShapeAnalysis_HSequenceOfFreeBounds, ShapeAnalysis_Surface, ShapeAnalysis_TransferParameters, ShapeAnalysis_Wire, ShapeConstruct_ProjectCurveOnSurface, ShapeCustom_RestrictionParameters, ShapeExtend_BasicMsgRegistrator, ShapeExtend_WireData, ShapeFix_Edge, ShapeFix_EdgeProjAux, ShapeFix_Root, ShapeProcess_Context, ShapeProcess_DictionaryOfOperator, ShapeProcess_Operator, ShapeProcess_StackItemOfDictionaryOfOperator, ShapeUpgrade_RemoveLocations, ShapeUpgrade_SplitCurve, ShapeUpgrade_SplitSurface, ShapeUpgrade_Tool, ShapeUpgrade_UnifySameDomain, StepAP203_HArray1OfApprovedItem, StepAP203_HArray1OfCertifiedItem, StepAP203_HArray1OfChangeRequestItem, StepAP203_HArray1OfClassifiedItem, StepAP203_HArray1OfContractedItem, StepAP203_HArray1OfDateTimeItem, StepAP203_HArray1OfPersonOrganizationItem, StepAP203_HArray1OfSpecifiedItem, StepAP203_HArray1OfStartRequestItem, StepAP203_HArray1OfWorkItem, StepAP214_HArray1OfApprovalItem, StepAP214_HArray1OfAutoDesignDateAndPersonItem, StepAP214_HArray1OfAutoDesignDateAndTimeItem, StepAP214_HArray1OfAutoDesignDatedItem, StepAP214_HArray1OfAutoDesignGeneralOrgItem, StepAP214_HArray1OfAutoDesignGroupedItem, StepAP214_HArray1OfAutoDesignPresentedItemSelect, StepAP214_HArray1OfAutoDesignReferencingItem, StepAP214_HArray1OfDateAndTimeItem, StepAP214_HArray1OfDateItem, StepAP214_HArray1OfDocumentReferenceItem, StepAP214_HArray1OfExternalIdentificationItem, StepAP214_HArray1OfGroupItem, StepAP214_HArray1OfOrganizationItem, StepAP214_HArray1OfPersonAndOrganizationItem, StepAP214_HArray1OfPresentedItemSelect, StepAP214_HArray1OfSecurityClassificationItem, StepBasic_Action, StepBasic_ActionAssignment, StepBasic_ActionMethod, StepBasic_ActionRequestAssignment, StepBasic_ActionRequestSolution, StepBasic_Address, StepBasic_ApplicationContext, StepBasic_ApplicationContextElement, StepBasic_ApplicationProtocolDefinition, StepBasic_Approval, StepBasic_ApprovalAssignment, StepBasic_ApprovalDateTime, StepBasic_ApprovalPersonOrganization, StepBasic_ApprovalRelationship, StepBasic_ApprovalRole, StepBasic_ApprovalStatus, StepBasic_Certification, StepBasic_CertificationAssignment, StepBasic_CertificationType, StepBasic_CharacterizedObject, StepBasic_Contract, StepBasic_ContractAssignment, StepBasic_ContractType, StepBasic_CoordinatedUniversalTimeOffset, StepBasic_Date, StepBasic_DateAndTime, StepBasic_DateAndTimeAssignment, StepBasic_DateAssignment, StepBasic_DateRole, StepBasic_DateTimeRole, StepBasic_DerivedUnit, StepBasic_DerivedUnitElement, StepBasic_DimensionalExponents, StepBasic_Document, StepBasic_DocumentProductAssociation, StepBasic_DocumentReference, StepBasic_DocumentRelationship, StepBasic_DocumentRepresentationType, StepBasic_DocumentType, StepBasic_DocumentUsageConstraint, StepBasic_Effectivity, StepBasic_EffectivityAssignment, StepBasic_EulerAngles, StepBasic_ExternallyDefinedItem, StepBasic_ExternalSource, StepBasic_GeneralProperty, StepBasic_Group, StepBasic_GroupAssignment, StepBasic_GroupRelationship, StepBasic_HArray1OfApproval, StepBasic_HArray1OfDerivedUnitElement, StepBasic_HArray1OfDocument, StepBasic_HArray1OfNamedUnit, StepBasic_HArray1OfOrganization, StepBasic_HArray1OfPerson, StepBasic_HArray1OfProduct, StepBasic_HArray1OfProductContext, StepBasic_HArray1OfProductDefinition, StepBasic_HArray1OfUncertaintyMeasureWithUnit, StepBasic_IdentificationAssignment, StepBasic_IdentificationRole, StepBasic_LocalTime, StepBasic_MeasureWithUnit, StepBasic_NameAssignment, StepBasic_NamedUnit, StepBasic_ObjectRole, StepBasic_Organization, StepBasic_OrganizationAssignment, StepBasic_OrganizationRole, StepBasic_Person, StepBasic_PersonAndOrganization, StepBasic_PersonAndOrganizationAssignment, StepBasic_PersonAndOrganizationRole, StepBasic_Product, StepBasic_ProductCategory, StepBasic_ProductCategoryRelationship, StepBasic_ProductDefinition, StepBasic_ProductDefinitionFormation, StepBasic_ProductDefinitionFormationRelationship, StepBasic_ProductDefinitionRelationship, StepBasic_RoleAssociation, StepBasic_SecurityClassification, StepBasic_SecurityClassificationAssignment, StepBasic_SecurityClassificationLevel, StepBasic_VersionedActionRequest, STEPCAFControl_DictionaryOfExternFile, STEPCAFControl_ExternFile, STEPCAFControl_StackItemOfDictionaryOfExternFile, StepData_Described, StepData_EDescr, StepData_FreeFormEntity, StepData_HArray1OfField, StepData_NodeOfWriterLib, StepData_PDescr, StepData_SelectMember, StepData_UndefinedEntity, StepDimTol_DatumReference, StepDimTol_GeometricTolerance, StepDimTol_GeometricToleranceRelationship, StepDimTol_HArray1OfDatumReference, StepElement_AnalysisItemWithinRepresentation, StepElement_CurveElementEndReleasePacket, StepElement_CurveElementSectionDefinition, StepElement_ElementDescriptor, StepElement_ElementMaterial, StepElement_HArray1OfCurveElementEndReleasePacket, StepElement_HArray1OfCurveElementSectionDefinition, StepElement_HArray1OfHSequenceOfCurveElementPurposeMember, StepElement_HArray1OfHSequenceOfSurfaceElementPurposeMember, StepElement_HArray1OfMeasureOrUnspecifiedValue, StepElement_HArray1OfSurfaceSection, StepElement_HArray1OfVolumeElementPurpose, StepElement_HArray1OfVolumeElementPurposeMember, StepElement_HArray2OfCurveElementPurposeMember, StepElement_HArray2OfSurfaceElementPurpose, StepElement_HArray2OfSurfaceElementPurposeMember, StepElement_HSequenceOfCurveElementPurposeMember, StepElement_HSequenceOfCurveElementSectionDefinition, StepElement_HSequenceOfElementMaterial, StepElement_HSequenceOfSurfaceElementPurposeMember, StepElement_SurfaceElementProperty, StepElement_SurfaceSection, StepElement_SurfaceSectionField, StepFEA_Curve3dElementProperty, StepFEA_CurveElementEndOffset, StepFEA_CurveElementEndRelease, StepFEA_CurveElementInterval, StepFEA_CurveElementLocation, StepFEA_ElementGeometricRelationship, StepFEA_FeaCurveSectionGeometricRelationship, StepFEA_FeaSurfaceSectionGeometricRelationship, StepFEA_FreedomAndCoefficient, StepFEA_FreedomsList, StepFEA_HArray1OfCurveElementEndOffset, StepFEA_HArray1OfCurveElementEndRelease, StepFEA_HArray1OfCurveElementInterval, StepFEA_HArray1OfDegreeOfFreedom, StepFEA_HArray1OfElementRepresentation, StepFEA_HArray1OfNodeRepresentation, StepFEA_HSequenceOfCurve3dElementProperty, StepFEA_HSequenceOfElementGeometricRelationship, StepFEA_HSequenceOfElementRepresentation, StepFEA_HSequenceOfNodeRepresentation, StepGeom_CompositeCurveSegment, StepGeom_HArray1OfBoundaryCurve, StepGeom_HArray1OfCartesianPoint, StepGeom_HArray1OfCompositeCurveSegment, StepGeom_HArray1OfCurve, StepGeom_HArray1OfPcurveOrSurface, StepGeom_HArray1OfSurfaceBoundary, StepGeom_HArray1OfTrimmingSelect, StepGeom_HArray2OfCartesianPoint, StepGeom_HArray2OfSurfacePatch, StepGeom_SurfacePatch, StepRepr_AssemblyComponentUsageSubstitute, StepRepr_ConfigurationDesign, StepRepr_ConfigurationItem, StepRepr_DataEnvironment, StepRepr_FunctionallyDefinedTransformation, StepRepr_HArray1OfMaterialPropertyRepresentation, StepRepr_HArray1OfPropertyDefinitionRepresentation, StepRepr_HArray1OfRepresentationItem, StepRepr_HSequenceOfMaterialPropertyRepresentation, StepRepr_HSequenceOfRepresentationItem, StepRepr_ItemDefinedTransformation, StepRepr_MaterialDesignation, StepRepr_ProductConcept, StepRepr_PropertyDefinition, StepRepr_PropertyDefinitionRelationship, StepRepr_PropertyDefinitionRepresentation, StepRepr_Representation, StepRepr_RepresentationContext, StepRepr_RepresentationItem, StepRepr_RepresentationMap, StepRepr_RepresentationRelationship, StepRepr_ShapeAspect, StepRepr_ShapeAspectRelationship, STEPSelections_AssemblyComponent, STEPSelections_AssemblyLink, STEPSelections_HSequenceOfAssemblyLink, StepShape_BoxDomain, StepShape_ContextDependentShapeRepresentation, StepShape_DimensionalCharacteristicRepresentation, StepShape_DimensionalSize, StepShape_HArray1OfConnectedEdgeSet, StepShape_HArray1OfConnectedFaceSet, StepShape_HArray1OfEdge, StepShape_HArray1OfFace, StepShape_HArray1OfFaceBound, StepShape_HArray1OfGeometricSetSelect, StepShape_HArray1OfOrientedClosedShell, StepShape_HArray1OfOrientedEdge, StepShape_HArray1OfShell, StepShape_HArray1OfValueQualifier, StepShape_LimitsAndFits, StepShape_MeasureQualification, StepShape_PlusMinusTolerance, StepShape_PrecisionQualifier, StepShape_ToleranceValue, StepShape_TypeQualifier, StepVisual_AreaInSet, StepVisual_Colour, StepVisual_CurveStyle, StepVisual_CurveStyleFont, StepVisual_CurveStyleFontPattern, StepVisual_FillAreaStyle, StepVisual_FillAreaStyleColour, StepVisual_HArray1OfBoxCharacteristicSelect, StepVisual_HArray1OfCurveStyleFontPattern, StepVisual_HArray1OfDirectionCountSelect, StepVisual_HArray1OfFillStyleSelect, StepVisual_HArray1OfInvisibleItem, StepVisual_HArray1OfLayeredItem, StepVisual_HArray1OfPresentationStyleAssignment, StepVisual_HArray1OfPresentationStyleSelect, StepVisual_HArray1OfStyleContextSelect, StepVisual_HArray1OfSurfaceStyleElementSelect, StepVisual_HArray1OfTextOrCharacter, StepVisual_Invisibility, StepVisual_PointStyle, StepVisual_PreDefinedItem, StepVisual_PresentationLayerAssignment, StepVisual_PresentationLayerUsage, StepVisual_PresentationSet, StepVisual_PresentationSize, StepVisual_PresentationStyleAssignment, StepVisual_PresentedItem, StepVisual_PresentedItemRepresentation, StepVisual_SurfaceSideStyle, StepVisual_SurfaceStyleBoundary, StepVisual_SurfaceStyleControlGrid, StepVisual_SurfaceStyleFillArea, StepVisual_SurfaceStyleParameterLine, StepVisual_SurfaceStyleSegmentationCurve, StepVisual_SurfaceStyleSilhouette, StepVisual_SurfaceStyleUsage, StepVisual_TextStyle, StepVisual_TextStyleForDefinedFont, StepVisual_ViewVolume, StlMesh_Mesh, StlMesh_MeshDomain, StlMesh_MeshTriangle, Storage_CallBack, Storage_Data, Storage_HArrayOfCallBack, Storage_HArrayOfSchema, Storage_HeaderData, Storage_HPArray, Storage_HSeqOfRoot, Storage_InternalData, Storage_Root, Storage_RootData, Storage_Schema, Storage_TypeData, Storage_TypedCallBack, TColGeom2d_HArray1OfBezierCurve, TColGeom2d_HArray1OfBSplineCurve, TColGeom2d_HArray1OfCurve, TColGeom2d_HSequenceOfBoundedCurve, TColGeom2d_HSequenceOfCurve, TColGeom_HArray1OfBezierCurve, TColGeom_HArray1OfBSplineCurve, TColGeom_HArray1OfCurve, TColGeom_HArray1OfSurface, TColGeom_HArray2OfSurface, TColGeom_HSequenceOfBoundedCurve, TColGeom_HSequenceOfCurve, TColgp_HArray1OfCirc2d, TColgp_HArray1OfDir, TColgp_HArray1OfDir2d, TColgp_HArray1OfLin2d, TColgp_HArray1OfPnt, TColgp_HArray1OfPnt2d, TColgp_HArray1OfVec, TColgp_HArray1OfVec2d, TColgp_HArray1OfXY, TColgp_HArray1OfXYZ, TColgp_HArray2OfCirc2d, TColgp_HArray2OfDir, TColgp_HArray2OfDir2d, TColgp_HArray2OfLin2d, TColgp_HArray2OfPnt, TColgp_HArray2OfPnt2d, TColgp_HArray2OfVec, TColgp_HArray2OfVec2d, TColgp_HArray2OfXY, TColgp_HArray2OfXYZ, TColgp_HSequenceOfDir, TColgp_HSequenceOfDir2d, TColgp_HSequenceOfPnt, TColgp_HSequenceOfPnt2d, TColgp_HSequenceOfVec, TColgp_HSequenceOfVec2d, TColgp_HSequenceOfXY, TColgp_HSequenceOfXYZ, TCollection_HAsciiString, TCollection_HExtendedString, TCollection_MapNode, TCollection_SeqNode, TColQuantity_HArray1OfLength, TColQuantity_HArray2OfLength, TColStd_HArray1OfAsciiString, TColStd_HArray1OfBoolean, TColStd_HArray1OfByte, TColStd_HArray1OfCharacter, TColStd_HArray1OfExtendedString, TColStd_HArray1OfInteger, TColStd_HArray1OfListOfInteger, TColStd_HArray1OfReal, TColStd_HArray1OfTransient, TColStd_HArray2OfBoolean, TColStd_HArray2OfCharacter, TColStd_HArray2OfInteger, TColStd_HArray2OfReal, TColStd_HArray2OfTransient, TColStd_HPackedMapOfInteger, TColStd_HSequenceOfAsciiString, TColStd_HSequenceOfExtendedString, TColStd_HSequenceOfHAsciiString, TColStd_HSequenceOfHExtendedString, TColStd_HSequenceOfInteger, TColStd_HSequenceOfReal, TColStd_HSequenceOfTransient, TDataStd_HDataMapOfStringByte, TDataStd_HDataMapOfStringHArray1OfInteger, TDataStd_HDataMapOfStringHArray1OfReal, TDataStd_HDataMapOfStringInteger, TDataStd_HDataMapOfStringReal, TDataStd_HDataMapOfStringString, TDataStd_HLabelArray1, TDataXtd_HArray1OfTrsf, TDF_Attribute, TDF_AttributeDelta, TDF_Data, TDF_DataSet, TDF_Delta, TDF_HAttributeArray1, TDF_RelocationTable, TDocStd_ApplicationDelta, TDocStd_MultiTransactionManager, TestTopOpeDraw_HArray1OfDrawableMesure, TestTopOpeDraw_HArray1OfDrawableP3D, TestTopOpeTools_HArray1OfMesure, TFunction_Driver, TFunction_DriverTable, TFunction_HArray1OfDataMapOfGUIDDriver, TNaming_TranslateTool, TObj_Model, TObj_Object, TObj_ObjectIterator, TopLoc_Datum3D, TopLoc_SListNodeOfItemLocation, TopoDS_HShape, TopoDS_TShape, TopOpeBRep_FFDumper, TopOpeBRep_HArray1OfLineInter, TopOpeBRep_HArray1OfVPointInter, TopOpeBRep_Hctxee2d, TopOpeBRep_Hctxff2d, TopOpeBRepBuild_HBuilder, TopOpeBRepBuild_Loop, TopOpeBRepDS_Association, TopOpeBRepDS_Check, TopOpeBRepDS_GapTool, TopOpeBRepDS_HArray1OfDataMapOfIntegerListOfInterference, TopOpeBRepDS_HDataStructure, TopOpeBRepDS_Interference, TopOpeBRepDS_Marker, TopOpeBRepTool_HBoxTool, TopTools_HArray1OfListOfShape, TopTools_HArray1OfShape, TopTools_HArray2OfShape, TopTools_HSequenceOfShape, TPrsStd_Driver, TPrsStd_DriverTable, Transfer_ActorOfProcessForFinder, Transfer_ActorOfProcessForTransient, Transfer_Binder, Transfer_Finder, Transfer_HSequenceOfBinder, Transfer_HSequenceOfFinder, Transfer_MapContainer, Transfer_ProcessForFinder, Transfer_ProcessForTransient, Transfer_ResultFromModel, Transfer_ResultFromTransient, TransferBRep_HSequenceOfTransferResultInfo, TransferBRep_TransferResultInfo, TShort_HArray1OfShortReal, TShort_HArray2OfShortReal, TShort_HSequenceOfShortReal, Units_Dimensions, Units_Lexicon, Units_QuantitiesSequence, Units_Quantity, Units_Token, Units_TokensSequence, Units_Unit, Units_UnitsDictionary, Units_UnitsSequence, Units_UnitsSystem, V3d_LayerMgr, V3d_Light, V3d_Plane, V3d_View, V3d_Viewer, ViewerTest_EventManager, Visual3d_HSequenceOfLight, Visual3d_HSequenceOfView, Visual3d_Layer, Visual3d_LayerItem, Visual3d_Light, Vrml_AsciiText, Vrml_Coordinate3, Vrml_IndexedFaceSet, Vrml_IndexedLineSet, Vrml_LOD, Vrml_Material, Vrml_Normal, Vrml_SFImage, Vrml_TextureCoordinate2, VrmlConverter_Drawer, VrmlConverter_LineAspect, VrmlConverter_PointAspect, VrmlConverter_Projector, VrmlConverter_ShadingAspect, WNT_WClass, XmlMDF_ADriver, XmlMDF_ADriverTable, XSAlgo_AlgoContainer, XSAlgo_ToolContainer, XSControl_Controller, XSControl_TransferReader, XSControl_TransferWriter, and XSControl_Vars.

Public Member Functions

virtual void Delete () const
 Memory deallocator for transient classes. More...
 
- Public Member Functions inherited from Standard_Transient
 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 const Handle_Standard_Type & DynamicType () const
 Returns a type information object about this object. More...
 
Standard_Boolean IsInstance (const 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 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...
 
virtual Handle_Standard_Transient This () const
 Returns a Handle which references this object. Must never be called to objects created in stack. More...
 
Standard_Integer GetRefCount () const
 Get the reference counter of this object. More...
 

Detailed Description

Intermediate class between Standard_Transient and descendants. The abstract class TShared is the root class of managed objects. TShared objects are managed by a memory manager based on reference counting. They have handle semantics. In other words, the reference counter is transparently incremented and decremented according to the scope of handles. When all handles, which reference a single object are out of scope, the reference counter becomes null and the object is automatically deleted. The deallocated memory is not given back to the system though. It is reclaimed for new objects of the same size. Warning This memory management scheme does not work for cyclic data structures. In such cases (with back pointers for example), you should interrupt the cycle in a class by using a full C++ pointer instead of a handle.

Member Function Documentation

virtual void MMgt_TShared::Delete ( ) const
virtual

Memory deallocator for transient classes.

Reimplemented from Standard_Transient.

Reimplemented in AIS_InteractiveContext.


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