FSM Library - C++ version
Public Member Functions | Friends | List of all members
DFSMTable Class Reference

#include <DFSMTable.h>

Public Member Functions

 DFSMTable (const int numStates, const int maxInput, std::shared_ptr< FsmPresentationLayer > presentationLayer)
 
void setRow (const int n, const std::shared_ptr< DFSMTableRow > r)
 
std::shared_ptr< PkTablegetP1Table () const
 

Friends

std::ostream & operator<< (std::ostream &out, const DFSMTable &dfsmTable)
 

Detailed Description

Class representing DFSM tables

Constructor & Destructor Documentation

DFSMTable::DFSMTable ( const int  numStates,
const int  maxInput,
std::shared_ptr< FsmPresentationLayer presentationLayer 
)

Create a DFSMTable

Parameters
numStatesSize of the DFSMTable
maxInputMaximum Input of the FSM
presentationLayerThe presentation layer used by the DFSM

Member Function Documentation

std::shared_ptr< PkTable > DFSMTable::getP1Table ( ) const

Modify a row of the DFSMTable

Returns
The PkTablep1
void DFSMTable::setRow ( const int  n,
const std::shared_ptr< DFSMTableRow r 
)

Modify a row of the DFSMTable

Parameters
nThe id of the row to change
rThe row to insert

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  out,
const DFSMTable dfsmTable 
)
friend

Output the DFSMTable to a standard output stream

Parameters
outThe standard output stream to use
dfsmTableThe DFSMTable to print
Returns
The standard output stream used, to allow user to cascade <<

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