Ttable Class Reference
#include <Ttable.h>
List of all members.
Detailed Description
The Ttable class is used by the Mutator class in order to manipulate truth tables
Constructor & Destructor Documentation
| Ttable::Ttable |
( |
const string & |
aname, |
|
|
const vector< string > & |
inNodes | |
|
) |
| | [inline] |
| Ttable::~Ttable |
( |
|
) |
[inline] |
Member Function Documentation
| void Ttable::build |
( |
const int & |
init, |
|
|
const vector< string > & |
logic | |
|
) |
| | |
| void Ttable::decToBin |
( |
const int & |
dec, |
|
|
string & |
bin | |
|
) |
| | |
Converts a decimal to a binary
| int Ttable::get_id |
( |
void |
|
) |
[inline] |
| int Ttable::get_init |
( |
void |
|
) |
[inline] |
returns the initial value
| string Ttable::get_name |
( |
void |
|
) |
[inline] |
| vector<string> Ttable::getInputs |
( |
void |
|
) |
[inline] |
| int Ttable::getNumOfInputs |
( |
void |
|
) |
[inline] |
returns the number of inputs
| bool Ttable::getVal |
( |
const int & |
row, |
|
|
const int & |
col | |
|
) |
| | |
Returns the corresponding value from the table
| int Ttable::ncols |
( |
void |
|
) |
[inline] |
returns the number of columns
| int Ttable::nrows |
( |
void |
|
) |
[inline] |
returns the number of rows
| void Ttable::print_inputs |
( |
void |
|
) |
|
| void Ttable::print_table |
( |
void |
|
) |
|
| void Ttable::replaceInputs |
( |
const vector< string > & |
ins |
) |
|
| void Ttable::setVal |
( |
const int & |
row, |
|
|
const int & |
col, |
|
|
const bool & |
val | |
|
) |
| | |
Sets the appropriate section of the table to val
| bool Ttable::table_init |
( |
const int & |
i |
) |
|
Friends And Related Function Documentation
| ostream& operator<< |
( |
ostream & |
os, |
|
|
const Ttable & |
n | |
|
) |
| | [friend] |
outputs information about a Ttable
Member Data Documentation
The documentation for this class was generated from the following files: