GNode Class Reference

#include <GNode.h>

List of all members.

Public Member Functions

 GNode ()
 GNode Constructor.
 ~GNode ()
 GNode destructor.
int nrows (void)
 returns the number of rows
int ncols (void)
 returns the number of columns
string get_name (void)
 returns the name of this node
void set (const string &n, const int &i, const int &_init)
 sets the name, id and initial values
bool table_init (const int &)
void print_table (void)
void new_input (const Input &n)
 adds an input named n to this node
void print_inputs (void)
int get_id (void)
 returns the id
int get_init (void)
 returns init

Private Attributes

int COLS
int ROWS
int init
string name
int id
bool ** table
list< Inputinputs

Friends

class Generator
ostream & operator<< (ostream &os, const GNode &n)
 prints information about node n into ostream os

Detailed Description

GNode is a class representing a node for the generator class


Constructor & Destructor Documentation

GNode::GNode (  )  [inline]

GNode Constructor.

GNode::~GNode (  )  [inline]

GNode destructor.

returns init


Member Function Documentation

int GNode::get_id ( void   )  [inline]

returns the id

int GNode::get_init ( void   )  [inline]

returns init

string GNode::get_name ( void   )  [inline]

returns the name of this node

int GNode::ncols ( void   )  [inline]

returns the number of columns

void GNode::new_input ( const Input n  )  [inline]

adds an input named n to this node

int GNode::nrows ( void   )  [inline]

returns the number of rows

void GNode::print_inputs ( void   ) 

Prints out the inputs to this node

void GNode::print_table ( void   ) 

Prints out the table for this node

void GNode::set ( const string &  n,
const int &  i,
const int &  _init 
) [inline]

sets the name, id and initial values

bool GNode::table_init ( const int &  i  ) 

Constructs a table based on the number of inputs


Friends And Related Function Documentation

friend class Generator [friend]
ostream& operator<< ( ostream &  os,
const GNode n 
) [friend]

prints information about node n into ostream os


Member Data Documentation

int GNode::COLS [private]
int GNode::id [private]
int GNode::init [private]
list<Input> GNode::inputs [private]
string GNode::name [private]
int GNode::ROWS [private]
bool** GNode::table [private]

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

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