gridripper::math::expr::StkOpRepository Class Reference

A repository of operators and functions. More...

#include <StkOpRepository.h>

Inheritance diagram for gridripper::math::expr::StkOpRepository:

gridripper::math::expr::DefaultFuncRepository

List of all members.

Public Member Functions

 StkOpRepository ()
 Constructs a stack operation repository.
 StkOpRepository (bool ownsFuncs)
 Constructs a stack operation repository.
virtual ~StkOpRepository ()
 Deletes all the created functions and operators.
void add (StkOp *f)
 Adds a stack operation.
StkOpfind (const string &name) const
 Finds the function or operator with the specified name.
int prec (const string &name) const
 Returns the precendence of the operator.
int size () const
 Gets the size of the repository.
StkOpgetFunc (int i) const
 Gets a stack function.
tvector< StkOp * > getVector () const
 Gets a vector containing all stack functions.


Detailed Description

A repository of operators and functions.

Version:
GridRipper 0.5, 11/15/2008
Since:
GROMIT 0.2 (2001)
Author:
Peter Csizmadia

Constructor & Destructor Documentation

gridripper::math::expr::StkOpRepository::StkOpRepository ( bool  ownsFuncs  ) 

Constructs a stack operation repository.

Parameters:
ownsFuncs set it to true if you expect the repository to delete the functions in its destructor constructor


Member Function Documentation

void gridripper::math::expr::StkOpRepository::add ( StkOp f  ) 

Adds a stack operation.

Parameters:
f the stack operation

int gridripper::math::expr::StkOpRepository::size (  )  const [inline]

Gets the size of the repository.

Returns:
the number of stack functions

StkOp* gridripper::math::expr::StkOpRepository::getFunc ( int  i  )  const [inline]

Gets a stack function.

Parameters:
i the index
Returns:
the stack function

tvector<StkOp*> gridripper::math::expr::StkOpRepository::getVector (  )  const [inline]

Gets a vector containing all stack functions.

Returns:
the functions


The documentation for this class was generated from the following file:

Generated on Wed Jun 17 18:46:56 2009 for GridRipper by  doxygen 1.5.6