b311480e |
1 | -- Created on: 1992-08-24 |
2 | -- Created by: Ramin BARRETO |
3 | -- Copyright (c) 1992-1999 Matra Datavision |
973c2be1 |
4 | -- Copyright (c) 1999-2014 OPEN CASCADE SAS |
b311480e |
5 | -- |
973c2be1 |
6 | -- This file is part of Open CASCADE Technology software library. |
b311480e |
7 | -- |
973c2be1 |
8 | -- This library is free software; you can redistribute it and / or modify it |
9 | -- under the terms of the GNU Lesser General Public version 2.1 as published |
10 | -- by the Free Software Foundation, with special exception defined in the file |
11 | -- OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT |
12 | -- distribution for complete text of the license and disclaimer of any warranty. |
b311480e |
13 | -- |
973c2be1 |
14 | -- Alternatively, this file may be used under the terms of Open CASCADE |
15 | -- commercial license or contractual agreement. |
7fd59977 |
16 | |
17 | deferred class Transient from Standard |
18 | |
19 | ---Purpose: Abstract class which forms the root of the entire |
20 | -- Transient class hierarchy. |
21 | ---Warning: This CDL file is actually a stub, even if it attempts to be correct. |
22 | -- See actual header in Standard_Transient_proto.hxx |
23 | |
24 | uses |
25 | Type from Standard, |
26 | Boolean from Standard, |
27 | Integer from Standard |
28 | |
29 | is |
30 | |
31 | Initialize; |
32 | ---Purpose: Empty constructor |
33 | ---Warning: Copy constructor and assignment operators cannot be |
34 | -- declared cleanly in CDL, so we use "C++ alias" for that |
35 | ---C++: alias "Standard_Transient(const Standard_Transient&) : count(0) {}" |
36 | ---C++: alias "Standard_Transient& operator= (const Standard_Transient&) { return *this; }" |
37 | |
38 | HashCode (me; Upper : Integer ) returns Integer is virtual; |
39 | ---Purpose: Returns a hashed value denoting <me>. This value is in |
40 | -- the range 1..<Upper>. |
41 | ---C++: function call |
42 | ---Level: Advanced |
43 | |
44 | Delete(me) is virtual; |
45 | ---Purpose: Memory deallocator for transient classes |
46 | ---Level: Advanced |
47 | ---C++: alias "Standard_EXPORT virtual ~Standard_Transient();" |
48 | |
49 | DynamicType (me) returns Type is virtual; |
50 | ---Purpose: Returns a type information object about this object. |
51 | ---Level: Advanced |
52 | |
53 | IsInstance (me; TheType : Type) returns Boolean is static; |
54 | ---Purpose: Returns a true value if this is an instance of Type. |
55 | ---Level: Advanced |
56 | |
57 | IsInstance (me; TheTypeName : CString) returns Boolean is static; |
58 | ---Purpose: Returns a true value if this is an instance of TypeName. |
59 | ---Level: Advanced |
60 | |
61 | IsKind (me; TheType : Type) returns Boolean is static; |
62 | ---Purpose: Returns true if this is an instance of Type or an |
63 | -- instance of any class that inherits from Type. |
64 | -- Note that multiple inheritance is not supported by OCCT RTTI mechanism. |
65 | ---Level: Advanced |
66 | |
67 | IsKind (me; TheTypeName : CString) returns Boolean is static; |
68 | ---Purpose: Returns true if this is an instance of TypeName or an |
69 | -- instance of any class that inherits from TypeName. |
70 | -- Note that multiple inheritance is not supported by OCCT RTTI mechanism. |
71 | ---Level: Advanced |
72 | |
73 | This (me) returns mutable Transient |
74 | ---Purpose: Returns a Handle which references this object. |
75 | ---Warning: Must never be called to objects created in stack. |
76 | ---Level: Advanced |
77 | is virtual protected; |
78 | |
79 | ---Level: Advanced |
80 | |
81 | GetRefCount(me) |
82 | ---Purpose: get the reference counter |
83 | -- of this object. |
84 | returns Integer from Standard; |
85 | |
86 | fields |
87 | count : Integer from Standard; |
88 | |
89 | end Transient from Standard; |
90 | |
91 | |
92 | |