Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | File Members

TypedExpression< single > Class Template Reference

#include <Expression.h>

Inherits Expression.

Inherited by RandFunction::SingleRandFunction.

List of all members.


Detailed Description

template<>
class TypedExpression< single >

An expression that evaluates to a 32 bit floating-point value.

Expressions returning a single should derive from this class and implement the evalImpl(EvalAs<single>) method.


Public Member Functions

 TypedExpression ()
virtual single evalImpl (EvalAs< single >, const EvalContext &ctxt)=0 throw ( EvalException )
 Evaluate as a single.
bool isImpl (EvalAs< single >) const
 Returns true iff the expression can be evaluated as a single.
EString evalImpl (EvalAs< EString >, const EvalContext &ctxt) throw ( EvalException )
 Evaluate as a string.
bool isImpl (EvalAs< EString >) const
 Returns true iff the expression can be evaluated as an EString.


Member Function Documentation

EString TypedExpression< single >::evalImpl EvalAs< EString ,
const EvalContext ctxt
throw ( EvalException ) [virtual]
 

Evaluate as a string.

Reimplemented from Expression.

virtual single TypedExpression< single >::evalImpl EvalAs< single >  ,
const EvalContext ctxt
throw ( EvalException ) [pure virtual]
 

Evaluate as a single.

Reimplemented from Expression.

Implemented in RandFunction::SingleRandFunction.

bool TypedExpression< single >::isImpl EvalAs< EString  )  const [virtual]
 

Returns true iff the expression can be evaluated as an EString.

Reimplemented from Expression.

bool TypedExpression< single >::isImpl EvalAs< single >   )  const [virtual]
 

Returns true iff the expression can be evaluated as a single.

Reimplemented from Expression.

TypedExpression< single >::TypedExpression  ) 
 


The documentation for this class was generated from the following file:
Generated on Fri Nov 12 15:15:24 2004 for Borealis by doxygen 1.3.8