template
class
Expressions::ADeferred<class>
: public Expressions::AValue<class>
(Return to index)
Object attribute with a ``deferred'' array value.
An deferred expression is always re-evaluated when its value is
required. This is notably needed to implement random generators.
Type: |
Instantiable |
Superclasses: |
public Expressions::AValue<class> |
Include file: |
./Expressions/ADeferred.hh |
Inheritance
Synopsis (including inherited members):
- Public members:
-
ADeferred
()
;
-
ADeferred
(PtrToArray<T>)
;
-
ADeferred
(ArrayOfPtrs<T>)
;
-
ADeferred
(const ADeferred<T>&)
;
-
virtual ~ADeferred
()
;
-
virtual ADeferred<T>* clone
()const
;
-
virtual std::vector<T> evaluate
()
;
-
virtual bool isExpression
()const
;
-
virtual std::ostream& print
(std::ostream&)const
;
-
void setComponent
(int,const PtrToScalar<T>)
;
-
string getImage
()const
;
-
virtual void invalidate
()
;
- Protected Members:
Documentation:
- Public members:
-
ADeferred
()
;
- Default constructor.
Construct empty array.
-
ADeferred
(PtrToArray<T>)
;
- Constructor.
From array expression.
-
ADeferred
(ArrayOfPtrs<T>)
;
- Constructor.
From array of scalar expressions.
-
virtual ADeferred<T>* clone
()const
;
- Make clone.
-
virtual std::vector<T> evaluate
()
;
- Evaluate.
The expression is always re-evaluated.
-
virtual bool isExpression
()const
;
- Get expression flag.
Always true.
-
virtual std::ostream& print
(std::ostream&)const
;
- Print the attribute value.
-
void setComponent
(int,const PtrToScalar<T>)
;
- Set a component of the value.
- Protected members:
-
PtrToArray<T> itsLaw
;
- The generating law for the array expression.
This expression is used first to evaluate all components of
the expression. Individual values may be overwritten using
itsOverrides.
-
ArrayOfPtrs<T> itsOverrides
;
- Overrides for single components.
After applying itsLaw to evaluate all components, any
scalar expression defined in this array is used to overwrite
the corresoponding component.
Documentation generated by fci on Mon Feb 7 12:29:53 2000