mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-14 13:30:48 +03:00
0028832: MMgt_TShared can be replaced by Standard_Transient
This commit is contained in:
@@ -32,7 +32,7 @@
|
||||
#include <TopoDS_Shape.hxx>
|
||||
#include <NCollection_DataMap.hxx>
|
||||
|
||||
IMPLEMENT_STANDARD_RTTIEXT(MoniTool_CaseData,MMgt_TShared)
|
||||
IMPLEMENT_STANDARD_RTTIEXT(MoniTool_CaseData,Standard_Transient)
|
||||
|
||||
static NCollection_DataMap<TCollection_AsciiString, Standard_Integer> defch;
|
||||
static NCollection_DataMap<TCollection_AsciiString, Handle(Standard_Transient)> defms;
|
||||
|
@@ -25,7 +25,7 @@
|
||||
#include <TColStd_SequenceOfTransient.hxx>
|
||||
#include <TColStd_SequenceOfInteger.hxx>
|
||||
#include <TColStd_SequenceOfAsciiString.hxx>
|
||||
#include <MMgt_TShared.hxx>
|
||||
#include <Standard_Transient.hxx>
|
||||
#include <Standard_CString.hxx>
|
||||
#include <Standard_Boolean.hxx>
|
||||
#include <Standard_Real.hxx>
|
||||
@@ -39,7 +39,7 @@ class Message_Msg;
|
||||
|
||||
|
||||
class MoniTool_CaseData;
|
||||
DEFINE_STANDARD_HANDLE(MoniTool_CaseData, MMgt_TShared)
|
||||
DEFINE_STANDARD_HANDLE(MoniTool_CaseData, Standard_Transient)
|
||||
|
||||
//! This class is intended to record data attached to a case to be
|
||||
//! exploited.
|
||||
@@ -73,7 +73,7 @@ DEFINE_STANDARD_HANDLE(MoniTool_CaseData, MMgt_TShared)
|
||||
//! * else, an interpreted identifier, which gives the type and
|
||||
//! the rank in the type (for instance, first integer; etc)
|
||||
//! (See NameRank)
|
||||
class MoniTool_CaseData : public MMgt_TShared
|
||||
class MoniTool_CaseData : public Standard_Transient
|
||||
{
|
||||
|
||||
public:
|
||||
@@ -286,7 +286,7 @@ public:
|
||||
|
||||
|
||||
|
||||
DEFINE_STANDARD_RTTIEXT(MoniTool_CaseData,MMgt_TShared)
|
||||
DEFINE_STANDARD_RTTIEXT(MoniTool_CaseData,Standard_Transient)
|
||||
|
||||
protected:
|
||||
|
||||
|
@@ -16,7 +16,7 @@
|
||||
#include <MoniTool_Element.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
IMPLEMENT_STANDARD_RTTIEXT(MoniTool_Element,MMgt_TShared)
|
||||
IMPLEMENT_STANDARD_RTTIEXT(MoniTool_Element,Standard_Transient)
|
||||
|
||||
void MoniTool_Element::SetHashCode (const Standard_Integer code)
|
||||
{ thecode = code; }
|
||||
|
@@ -22,7 +22,7 @@
|
||||
|
||||
#include <Standard_Integer.hxx>
|
||||
#include <MoniTool_AttrList.hxx>
|
||||
#include <MMgt_TShared.hxx>
|
||||
#include <Standard_Transient.hxx>
|
||||
#include <Standard_Boolean.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
#include <Standard_CString.hxx>
|
||||
@@ -30,14 +30,14 @@ class MoniTool_AttrList;
|
||||
|
||||
|
||||
class MoniTool_Element;
|
||||
DEFINE_STANDARD_HANDLE(MoniTool_Element, MMgt_TShared)
|
||||
DEFINE_STANDARD_HANDLE(MoniTool_Element, Standard_Transient)
|
||||
|
||||
//! a Element allows to map any kind of object as a Key for a Map.
|
||||
//! This works by defining, for a Hash Code, that of the real Key,
|
||||
//! not of the Element which acts only as an intermediate.
|
||||
//! When a Map asks for the HashCode of a Element, this one returns
|
||||
//! the code it has determined at creation time
|
||||
class MoniTool_Element : public MMgt_TShared
|
||||
class MoniTool_Element : public Standard_Transient
|
||||
{
|
||||
|
||||
public:
|
||||
@@ -70,7 +70,7 @@ public:
|
||||
|
||||
|
||||
|
||||
DEFINE_STANDARD_RTTIEXT(MoniTool_Element,MMgt_TShared)
|
||||
DEFINE_STANDARD_RTTIEXT(MoniTool_Element,Standard_Transient)
|
||||
|
||||
protected:
|
||||
|
||||
|
@@ -15,7 +15,7 @@
|
||||
#include <MoniTool_IntVal.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
IMPLEMENT_STANDARD_RTTIEXT(MoniTool_IntVal,MMgt_TShared)
|
||||
IMPLEMENT_STANDARD_RTTIEXT(MoniTool_IntVal,Standard_Transient)
|
||||
|
||||
MoniTool_IntVal::MoniTool_IntVal (const Standard_Integer val) { theval = val; }
|
||||
|
||||
|
@@ -21,14 +21,14 @@
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
#include <Standard_Integer.hxx>
|
||||
#include <MMgt_TShared.hxx>
|
||||
#include <Standard_Transient.hxx>
|
||||
|
||||
|
||||
class MoniTool_IntVal;
|
||||
DEFINE_STANDARD_HANDLE(MoniTool_IntVal, MMgt_TShared)
|
||||
DEFINE_STANDARD_HANDLE(MoniTool_IntVal, Standard_Transient)
|
||||
|
||||
//! An Integer through a Handle (i.e. managed as TShared)
|
||||
class MoniTool_IntVal : public MMgt_TShared
|
||||
class MoniTool_IntVal : public Standard_Transient
|
||||
{
|
||||
|
||||
public:
|
||||
@@ -43,7 +43,7 @@ public:
|
||||
|
||||
|
||||
|
||||
DEFINE_STANDARD_RTTIEXT(MoniTool_IntVal,MMgt_TShared)
|
||||
DEFINE_STANDARD_RTTIEXT(MoniTool_IntVal,Standard_Transient)
|
||||
|
||||
protected:
|
||||
|
||||
|
@@ -15,7 +15,7 @@
|
||||
#include <MoniTool_RealVal.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
IMPLEMENT_STANDARD_RTTIEXT(MoniTool_RealVal,MMgt_TShared)
|
||||
IMPLEMENT_STANDARD_RTTIEXT(MoniTool_RealVal,Standard_Transient)
|
||||
|
||||
MoniTool_RealVal::MoniTool_RealVal (const Standard_Real val) { theval = val; }
|
||||
|
||||
|
@@ -21,14 +21,14 @@
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
#include <Standard_Real.hxx>
|
||||
#include <MMgt_TShared.hxx>
|
||||
#include <Standard_Transient.hxx>
|
||||
|
||||
|
||||
class MoniTool_RealVal;
|
||||
DEFINE_STANDARD_HANDLE(MoniTool_RealVal, MMgt_TShared)
|
||||
DEFINE_STANDARD_HANDLE(MoniTool_RealVal, Standard_Transient)
|
||||
|
||||
//! A Real through a Handle (i.e. managed as TShared)
|
||||
class MoniTool_RealVal : public MMgt_TShared
|
||||
class MoniTool_RealVal : public Standard_Transient
|
||||
{
|
||||
|
||||
public:
|
||||
@@ -43,7 +43,7 @@ public:
|
||||
|
||||
|
||||
|
||||
DEFINE_STANDARD_RTTIEXT(MoniTool_RealVal,MMgt_TShared)
|
||||
DEFINE_STANDARD_RTTIEXT(MoniTool_RealVal,Standard_Transient)
|
||||
|
||||
protected:
|
||||
|
||||
|
@@ -17,7 +17,7 @@
|
||||
#include <Standard_Type.hxx>
|
||||
#include <TCollection_AsciiString.hxx>
|
||||
|
||||
IMPLEMENT_STANDARD_RTTIEXT(MoniTool_SignText,MMgt_TShared)
|
||||
IMPLEMENT_STANDARD_RTTIEXT(MoniTool_SignText,Standard_Transient)
|
||||
|
||||
TCollection_AsciiString MoniTool_SignText::TextAlone
|
||||
(const Handle(Standard_Transient)& ent) const
|
||||
|
@@ -20,21 +20,21 @@
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
#include <MMgt_TShared.hxx>
|
||||
#include <Standard_Transient.hxx>
|
||||
#include <Standard_CString.hxx>
|
||||
class TCollection_AsciiString;
|
||||
class Standard_Transient;
|
||||
|
||||
|
||||
class MoniTool_SignText;
|
||||
DEFINE_STANDARD_HANDLE(MoniTool_SignText, MMgt_TShared)
|
||||
DEFINE_STANDARD_HANDLE(MoniTool_SignText, Standard_Transient)
|
||||
|
||||
//! Provides the basic service to get a text which identifies
|
||||
//! an object in a context
|
||||
//! It can be used for other classes (general signatures ...)
|
||||
//! It can also be used to build a message in which an object
|
||||
//! is to be identified
|
||||
class MoniTool_SignText : public MMgt_TShared
|
||||
class MoniTool_SignText : public Standard_Transient
|
||||
{
|
||||
|
||||
public:
|
||||
@@ -59,7 +59,7 @@ public:
|
||||
|
||||
|
||||
|
||||
DEFINE_STANDARD_RTTIEXT(MoniTool_SignText,MMgt_TShared)
|
||||
DEFINE_STANDARD_RTTIEXT(MoniTool_SignText,Standard_Transient)
|
||||
|
||||
protected:
|
||||
|
||||
|
@@ -20,7 +20,7 @@
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
#include <stdio.h>
|
||||
IMPLEMENT_STANDARD_RTTIEXT(MoniTool_Timer,MMgt_TShared)
|
||||
IMPLEMENT_STANDARD_RTTIEXT(MoniTool_Timer,Standard_Transient)
|
||||
|
||||
//=======================================================================
|
||||
//function : Dump
|
||||
|
@@ -22,7 +22,7 @@
|
||||
#include <OSD_Timer.hxx>
|
||||
#include <Standard_Integer.hxx>
|
||||
#include <Standard_Real.hxx>
|
||||
#include <MMgt_TShared.hxx>
|
||||
#include <Standard_Transient.hxx>
|
||||
#include <Standard_OStream.hxx>
|
||||
#include <Standard_CString.hxx>
|
||||
#include <MoniTool_DataMapOfTimer.hxx>
|
||||
@@ -30,7 +30,7 @@ class OSD_Timer;
|
||||
|
||||
|
||||
class MoniTool_Timer;
|
||||
DEFINE_STANDARD_HANDLE(MoniTool_Timer, MMgt_TShared)
|
||||
DEFINE_STANDARD_HANDLE(MoniTool_Timer, Standard_Transient)
|
||||
|
||||
//! Provides convenient service on global timers
|
||||
//! accessed by string name, mostly aimed for debugging purposes
|
||||
@@ -39,7 +39,7 @@ DEFINE_STANDARD_HANDLE(MoniTool_Timer, MMgt_TShared)
|
||||
//!
|
||||
//! As a tool, supports static dictionary of timers
|
||||
//! and provides static methods to easily access them
|
||||
class MoniTool_Timer : public MMgt_TShared
|
||||
class MoniTool_Timer : public Standard_Transient
|
||||
{
|
||||
|
||||
public:
|
||||
@@ -107,7 +107,7 @@ public:
|
||||
|
||||
|
||||
|
||||
DEFINE_STANDARD_RTTIEXT(MoniTool_Timer,MMgt_TShared)
|
||||
DEFINE_STANDARD_RTTIEXT(MoniTool_Timer,Standard_Transient)
|
||||
|
||||
protected:
|
||||
|
||||
|
@@ -23,7 +23,7 @@
|
||||
#include <TCollection_HAsciiString.hxx>
|
||||
|
||||
#include <stdio.h>
|
||||
IMPLEMENT_STANDARD_RTTIEXT(MoniTool_TypedValue,MMgt_TShared)
|
||||
IMPLEMENT_STANDARD_RTTIEXT(MoniTool_TypedValue,Standard_Transient)
|
||||
|
||||
// Not Used :
|
||||
//static char defmess[30];
|
||||
|
@@ -29,7 +29,7 @@
|
||||
#include <TColStd_HArray1OfAsciiString.hxx>
|
||||
#include <MoniTool_ValueInterpret.hxx>
|
||||
#include <MoniTool_ValueSatisfies.hxx>
|
||||
#include <MMgt_TShared.hxx>
|
||||
#include <Standard_Transient.hxx>
|
||||
#include <Standard_CString.hxx>
|
||||
#include <Standard_Boolean.hxx>
|
||||
#include <TColStd_HSequenceOfAsciiString.hxx>
|
||||
@@ -41,7 +41,7 @@ class Message_Messenger;
|
||||
|
||||
|
||||
class MoniTool_TypedValue;
|
||||
DEFINE_STANDARD_HANDLE(MoniTool_TypedValue, MMgt_TShared)
|
||||
DEFINE_STANDARD_HANDLE(MoniTool_TypedValue, Standard_Transient)
|
||||
|
||||
//! This class allows to dynamically manage .. typed values, i.e.
|
||||
//! values which have an alphanumeric expression, but with
|
||||
@@ -55,7 +55,7 @@ DEFINE_STANDARD_HANDLE(MoniTool_TypedValue, MMgt_TShared)
|
||||
//! Its string content, which is a Handle(HAsciiString) can be
|
||||
//! shared by other data structures, hence gives a direct on line
|
||||
//! access to its value.
|
||||
class MoniTool_TypedValue : public MMgt_TShared
|
||||
class MoniTool_TypedValue : public Standard_Transient
|
||||
{
|
||||
|
||||
public:
|
||||
@@ -319,7 +319,7 @@ public:
|
||||
|
||||
|
||||
|
||||
DEFINE_STANDARD_RTTIEXT(MoniTool_TypedValue,MMgt_TShared)
|
||||
DEFINE_STANDARD_RTTIEXT(MoniTool_TypedValue,Standard_Transient)
|
||||
|
||||
protected:
|
||||
|
||||
|
Reference in New Issue
Block a user