Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

CPPExpression::Result Class Reference

#include <cppExpression.h>

List of all members.

Public Member Functions

 Result ()
 Result (int value)
 Result (double value)
 Result (void *value)
int as_integer () const
double as_real () const
voidas_pointer () const
void output (ostream &out) const

Public Attributes

ResultType _type
union {
   int   _integer
   double   _real
   void *   _pointer
_u


Constructor & Destructor Documentation

CPPExpression::Result::Result  ) 
 

Definition at line 42 of file cppExpression.cxx.

References _type.

CPPExpression::Result::Result int  value  ) 
 

Definition at line 52 of file cppExpression.cxx.

References _type, and _u.

CPPExpression::Result::Result double  value  ) 
 

Definition at line 63 of file cppExpression.cxx.

References _type, and _u.

CPPExpression::Result::Result void value  ) 
 

Definition at line 74 of file cppExpression.cxx.

References _type, and _u.


Member Function Documentation

int CPPExpression::Result::as_integer  )  const
 

Definition at line 86 of file cppExpression.cxx.

References _u, and assert.

Referenced by InterrogateBuilder::define_enum_type(), CPPExpression::evaluate(), CPPPreprocessor::handle_if_directive(), and InterrogateBuilder::scan_manifest().

void * CPPExpression::Result::as_pointer  )  const
 

Definition at line 134 of file cppExpression.cxx.

References _u, assert, and NULL.

Referenced by CPPExpression::evaluate().

double CPPExpression::Result::as_real  )  const
 

Definition at line 110 of file cppExpression.cxx.

References _u, and assert.

Referenced by CPPExpression::evaluate().

void CPPExpression::Result::output ostream out  )  const
 

Definition at line 158 of file cppExpression.cxx.

References _u.

Referenced by operator<<().


Member Data Documentation

int CPPExpression::Result::_integer
 

Definition at line 74 of file cppExpression.h.

void* CPPExpression::Result::_pointer
 

Definition at line 76 of file cppExpression.h.

double CPPExpression::Result::_real
 

Definition at line 75 of file cppExpression.h.

ResultType CPPExpression::Result::_type
 

Definition at line 72 of file cppExpression.h.

Referenced by CPPExpression::evaluate(), CPPPreprocessor::handle_if_directive(), Result(), and InterrogateBuilder::scan_manifest().

union { ... } CPPExpression::Result::_u
 

Referenced by as_integer(), as_pointer(), as_real(), output(), and Result().


The documentation for this class was generated from the following files:
Generated on Fri Apr 18 01:34:48 2003 for DTool by doxygen1.3