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

STILTimeExpr Class Reference

STILTimeExpr Class Interface. More...

#include <stiltimeexpr.h>

List of all members.

Public Types

enum  Operator {
  UndefinedOperator,
  Plus,
  Minus,
  LeftParen,
  RightParen
}

Public Member Functions

 STILTimeExpr ()
 STILTimeExpr (const STILTimeExpr &)
 ~STILTimeExpr ()
STILTimeExproperator= (const STILTimeExpr &)
void init ()
virtual void write (FILE *pOutFile, LONG indentation=0) const
void addOp (const Operator)
void addId (const sstring)
void addNumber (const STILNumber &)
sstring getText () const
STILNumber eval (const STILEvalEngine &ee) const
STILNumber eval () const


Detailed Description

STILTimeExpr Class Interface.


Member Enumeration Documentation

enum STILTimeExpr::Operator
 

Enumeration values:
UndefinedOperator  Never set.
Plus  +
Minus 
LeftParen  (
RightParen  )


Constructor & Destructor Documentation

STILTimeExpr::STILTimeExpr  ) 
 

Default constructor.

Parameters:
 
Returns:

STILTimeExpr::STILTimeExpr const STILTimeExpr te  ) 
 

Construct a STILTimeExpr object from another TimeExpr obj.

Parameters:
te Source timeexpr to construct from
Returns:

STILTimeExpr::~STILTimeExpr  ) 
 

Destructor.

Parameters:
 
Returns:


Member Function Documentation

void STILTimeExpr::addId const   sstring  ) 
 

Add an Id to this expression.

Parameters:
id The id to add
Returns:
(void)

void STILTimeExpr::addNumber const STILNumber num  ) 
 

add a STILNumber (Engineering expression) to this expression|

Parameters:
num The number to add (ie "5.0ns" or "6e-7s")
Returns:
(void)

void STILTimeExpr::addOp const   Operator  ) 
 

Add an operator to this expression.

Parameters:
op The op to add
Returns:
(void)

STILNumber STILTimeExpr::eval  )  const [inline]
 

Parameters:
 
Returns:

STILNumber STILTimeExpr::eval const STILEvalEngine ee  )  const [inline]
 

Parameters:
 
Returns:

sstring STILTimeExpr::getText  )  const [inline]
 

Parameters:
 
Returns:

void STILTimeExpr::init void   ) 
 

Initialize the time expr obj.

Parameters:
 
Returns:
(void)

STILTimeExpr & STILTimeExpr::operator= const STILTimeExpr te  ) 
 

Equals operator.

Parameters:
te (const STILTimeExpr&)
Returns:
(STILTimeExpr&)

void STILTimeExpr::write FILE *  pOutFile,
LONG  indentation = 0
const [virtual]
 

Output this TimeExpr to a file.

Parameters:
pOutFile FILE * of output file
Returns:
(void)


The documentation for this class was generated from the following files:
This page last updated on 6 Jul 2007

SourceForge.net Logo