0024830: Remove redundant keyword 'mutable' in CDL declarations
[occt.git] / src / MoniTool / MoniTool_TransientElem.cdl
CommitLineData
b311480e 1-- Created on: 1994-11-04
2-- Created by: Christian CAILLET
3-- Copyright (c) 1994-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--
d5f74e42 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
973c2be1 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
47cbf134 17class TransientElem from MoniTool inherits Element
7fd59977 18
47cbf134 19 ---Purpose : an TransientElem defines an Element for a specific input class
7fd59977 20 -- its definition includes the value of the Key to be mapped,
21 -- and the HashCoder associated to the class of the Key
22 --
47cbf134 23 -- Transient from Standard defines the class to be keyed
24 -- MapTransientHasher from TColStd is the associated Hasher
25 -- DataInfo from MoniTool is an additionnal class which helps to provide
7fd59977 26 -- informations on the value (template : see DataInfo)
27
47cbf134 28uses CString,
29 Transient from Standard,
30 MapTransientHasher from TColStd,
31 DataInfo from MoniTool
7fd59977 32
33is
34
6e33d3ce 35 Create (akey : any Transient from Standard) returns TransientElem;
47cbf134 36 ---Purpose : Creates a TransientElem with a Value. This Value can then not be
7fd59977 37 -- changed. It is used by the Hasher to compute the HashCode,
38 -- which will then be stored for an immediate reading.
39
47cbf134 40 Value (me) returns any Transient from Standard is static;
7fd59977 41 ---Purpose : Returns the contained value
42 ---C++ : return const &
43
44 Equates (me; other : Element) returns Boolean;
45 ---Purpose : Specific testof equallity : defined as False if <other> has
46 -- not the same true Type, else contents are compared (by
47 -- C++ operator ==)
48
49 ValueType (me) returns Type is redefined;
50 ---Purpose : Returns the Type of the Value. By default, returns the
51 -- DynamicType of <me>, but can be redefined
52
53 ValueTypeName (me) returns CString is redefined;
54 ---Purpose : Returns the name of the Type of the Value. Default is name
55 -- of ValueType, unless it is for a non-handled object
56
57fields
58
47cbf134 59 theval : Transient from Standard;
7fd59977 60
47cbf134 61end TransientElem;