Tree Class Reference

#include <Tree.h>

List of all members.

Public Member Functions

 Tree ()
 ~Tree (void)
void addPath (string &s)
bool evaluate (string &s)
void simplify (void)
void printTree (ostream &ost)
void setH (int h)
 Tree (const Tree &i)
const Treeoperator= (const Tree &)

Private Member Functions

void addPath (string &, int, int)
bool evaluate (string &, int)
void simplify (int)
void print (ostream &, int, int)
void clear (int)
void copy (int, int)
int findCL (int i)
int findPar (int i)

Private Attributes

vector< bool > arr

Constructor & Destructor Documentation

Tree::Tree (  )  [inline]
Tree::~Tree ( void   )  [inline]
Tree::Tree ( const Tree i  ) 

Member Function Documentation

void Tree::addPath ( string &  s,
int  n,
int  index 
) [private]

cases: 1: a nulled root 2: a node without the specified child 3: a node with the spcified child 4: the last node in the string

void Tree::addPath ( string &  s  )  [inline]
void Tree::clear ( int  index  )  [private]
void Tree::copy ( int  i,
int  j 
) [private]
bool Tree::evaluate ( string &  s,
int  n 
) [private]
bool Tree::evaluate ( string &  s  )  [inline]
int Tree::findCL ( int  i  )  [inline, private]
int Tree::findPar ( int  i  )  [inline, private]
const Tree & Tree::operator= ( const Tree t  ) 
void Tree::print ( ostream &  ost,
int  n,
int  level 
) [private]
void Tree::printTree ( ostream &  ost  )  [inline]
void Tree::setH ( int  h  )  [inline]
void Tree::simplify ( int  n  )  [private]
void Tree::simplify ( void   )  [inline]

Member Data Documentation

vector<bool> Tree::arr [private]

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

Generated on Fri May 7 00:40:43 2010 for ChemChains by  doxygen 1.6.1