class
ValueDefinition
: public Object
(Return to index)
The base class for all MAD value definitions.
It implements the common behaviour of values, it can also be used via
dynamic casting to determine whether an object represents a value.
Type: |
Abstract |
Superclasses: |
public Object |
Include file: |
./AbstractObjects/ValueDefinition.hh |
Inheritance
Synopsis (including inherited members):
- Public members:
- Protected Members:
Documentation:
- Public members:
-
virtual bool getBool
()const
;
- Return logical value.
The default version throws MadException.
-
virtual bool getBoolComponent
(int)const
;
- Return indexed logical value.
The default version throws MadException.
-
virtual const string getCategory
()const
;
- Return the object category as a string.
Return the string "VARIABLE".
-
virtual double getReal
()const
;
- Return real value.
The default version throws MadException.
-
virtual double getRealComponent
(int)const
;
- Return indexed real value.
The default version throws MadException.
-
virtual string getString
()const
;
- Return string value.
The default version throws MadException.
-
virtual string getStringComponent
(int)const
;
- Return indexed string value.
The default version throws MadException.
-
virtual bool shouldTrace
()const
;
- Trace flag.
If true, the object's execute() function should be traced.
Always false for value definitions.
-
virtual bool shouldUpdate
()const
;
- Update flag.
If true, the data structure should be updated before calling execute().
Always false for value definitions.
-
Attribute& value
()
;
- Return the attribute representing the value of the definition.
Version for non-constant object.
-
const Attribute& value
()const
;
- Return the attribute representing the value of the definition.
Version for constant object.
- Protected members:
-
ValueDefinition
(int,const char*,const char*)
;
- Constructor for exemplars.
-
ValueDefinition
(const string&,ValueDefinition*)
;
- Constructor for clones.
-
const string itsPrefix
;
- The declaration prefix.
A string representing the value type in MAD-9 input format:
"BOOL", "REAL", "REAL CONST", "REAL VECTOR", etc.
Documentation generated by fci on Mon Feb 7 12:30:13 2000