42cf5bc1 |
1 | // Created on: 1992-07-28 |
2 | // Created by: Christian CAILLET |
3 | // Copyright (c) 1992-1999 Matra Datavision |
4 | // Copyright (c) 1999-2014 OPEN CASCADE SAS |
5 | // |
6 | // This file is part of Open CASCADE Technology software library. |
7 | // |
8 | // This library is free software; you can redistribute it and/or modify it under |
9 | // the terms of the GNU Lesser General Public License 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. |
13 | // |
14 | // Alternatively, this file may be used under the terms of Open CASCADE |
15 | // commercial license or contractual agreement. |
16 | |
17 | #ifndef _Dico_StackItemOfDictionaryOfTransient_HeaderFile |
18 | #define _Dico_StackItemOfDictionaryOfTransient_HeaderFile |
19 | |
20 | #include <Standard.hxx> |
21 | #include <Standard_Type.hxx> |
22 | |
23 | #include <MMgt_TShared.hxx> |
24 | class Dico_DictionaryOfTransient; |
25 | class Standard_Transient; |
26 | class Dico_IteratorOfDictionaryOfTransient; |
27 | |
28 | |
29 | class Dico_StackItemOfDictionaryOfTransient; |
30 | DEFINE_STANDARD_HANDLE(Dico_StackItemOfDictionaryOfTransient, MMgt_TShared) |
31 | |
32 | |
33 | class Dico_StackItemOfDictionaryOfTransient : public MMgt_TShared |
34 | { |
35 | |
36 | public: |
37 | |
38 | |
36b9ff75 |
39 | //! Creates a StackItem with no Previous one |
42cf5bc1 |
40 | Standard_EXPORT Dico_StackItemOfDictionaryOfTransient(); |
41 | |
36b9ff75 |
42 | //! Creates a StackItem with a Previous one |
42cf5bc1 |
43 | Standard_EXPORT Dico_StackItemOfDictionaryOfTransient(const Handle(Dico_StackItemOfDictionaryOfTransient)& previous); |
44 | |
36b9ff75 |
45 | //! Returns the Previous Item (is Null if no Previous defined) |
42cf5bc1 |
46 | Standard_EXPORT Handle(Dico_StackItemOfDictionaryOfTransient) Previous() const; |
47 | |
36b9ff75 |
48 | //! Returns the Dictionary Cell corresponding to an Item |
42cf5bc1 |
49 | Standard_EXPORT Handle(Dico_DictionaryOfTransient) Value() const; |
50 | |
36b9ff75 |
51 | //! Sets a new Dictionary Cell as Value of an Item |
42cf5bc1 |
52 | Standard_EXPORT void SetValue (const Handle(Dico_DictionaryOfTransient)& cval); |
53 | |
54 | |
55 | |
56 | |
92efcf78 |
57 | DEFINE_STANDARD_RTTI_INLINE(Dico_StackItemOfDictionaryOfTransient,MMgt_TShared) |
42cf5bc1 |
58 | |
59 | protected: |
60 | |
61 | |
62 | |
63 | |
64 | private: |
65 | |
66 | |
67 | Handle(Dico_DictionaryOfTransient) thevalue; |
68 | Handle(Dico_StackItemOfDictionaryOfTransient) theprev; |
69 | |
70 | |
71 | }; |
72 | |
73 | |
74 | |
75 | |
76 | |
77 | |
78 | |
79 | #endif // _Dico_StackItemOfDictionaryOfTransient_HeaderFile |