Main Page | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals

Ars::ExprIntParser::Context Class Reference


Public Member Functions

 Context (map< icstring, double > &aVar)
 Context (Context &ctx)
Contextoperator= (Context &ctx)
Contextoperator+= (Context &ctx)
Contextoperator-= (Context &ctx)
Contextoperator *= (Context &ctx)
Contextoperator/= (Context &ctx)
Contextoperator|= (Context &ctx)

Data Fields

map< icstring, double > & variables
 association of the variable names and their values (for this case random)

double val

Constructor & Destructor Documentation

Ars::ExprIntParser::Context::Context map< icstring, double > &  aVar  )  [inline]
 

Definition at line 33 of file inc/ars/exprint.h.

References val, and variables.

00034                 : variables( aVar ) , val( 0.0 )
00035                 {               }

Ars::ExprIntParser::Context::Context Context ctx  )  [inline]
 

Definition at line 37 of file inc/ars/exprint.h.

References val, and variables.

00038                 : variables( ctx.variables ) , val( 0.0 )
00039                 {               }


Member Function Documentation

Context& Ars::ExprIntParser::Context::operator *= Context ctx  )  [inline]
 

Definition at line 58 of file inc/ars/exprint.h.

References val.

00059                 {
00060                         val *= ctx.val;
00061                         return *this;
00062                 }

Context& Ars::ExprIntParser::Context::operator+= Context ctx  )  [inline]
 

Definition at line 48 of file inc/ars/exprint.h.

References val.

00049                 {
00050                         val += ctx.val;
00051                         return *this;
00052                 }

Context& Ars::ExprIntParser::Context::operator-= Context ctx  )  [inline]
 

Definition at line 53 of file inc/ars/exprint.h.

References val.

00054                 {
00055                         val -= ctx.val;
00056                         return *this;
00057                 }

Context& Ars::ExprIntParser::Context::operator/= Context ctx  )  [inline]
 

Definition at line 63 of file inc/ars/exprint.h.

References val.

00064                 {
00065                         val /= ctx.val;
00066                         return *this;
00067                 }

Context& Ars::ExprIntParser::Context::operator= Context ctx  )  [inline]
 

Definition at line 42 of file inc/ars/exprint.h.

References val.

00043                 {
00044                         val = ctx.val;
00045                         return *this;
00046                 }

Context& Ars::ExprIntParser::Context::operator|= Context ctx  )  [inline]
 

Definition at line 68 of file inc/ars/exprint.h.

References val.

00069                 {
00070                         val = (int)val | (int)ctx.val;
00071                         return *this;
00072                 }


Field Documentation

double Ars::ExprIntParser::Context::val
 

Definition at line 31 of file inc/ars/exprint.h.

Referenced by Ars::ExprIntParser::Apply(), Context(), operator *=(), operator+=(), operator-=(), operator/=(), operator=(), operator|=(), and Ars::ExprIntParser::WalkTree().

map<icstring,double>& Ars::ExprIntParser::Context::variables
 

association of the variable names and their values (for this case random)

Definition at line 30 of file inc/ars/exprint.h.

Referenced by Context(), and Ars::ExprIntParser::WalkTree().


The documentation for this class was generated from the following file:
Generated on Fri Dec 5 04:06:43 2003 for Borqueror by doxygen 1.3.3