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

Public Member Functions

 FsmLabel (const int input, const int output, const std::shared_ptr< FsmPresentationLayer > presentationLayer)
 
int getInput () const
 
int getOutput () const
 

Friends

bool operator== (FsmLabel const &label1, FsmLabel const &label2)
 
bool operator< (FsmLabel const &label1, FsmLabel const &label2)
 
std::ostream & operator<< (std::ostream &out, const FsmLabel &label)
 

Constructor & Destructor Documentation

FsmLabel::FsmLabel ( const int  input,
const int  output,
const std::shared_ptr< FsmPresentationLayer presentationLayer 
)

Create a FsmLabel

Parameters
inputThe input of this label
outputThe ouput of this label
maxInputThe number of input
presentationLayerThe presentation layer used by this label

Member Function Documentation

int FsmLabel::getInput ( ) const

Getter for the input

Returns
The input of this label

Here is the caller graph for this function:

int FsmLabel::getOutput ( ) const

Getter for the output

Returns
The output of this label

Here is the caller graph for this function:

Friends And Related Function Documentation

bool operator< ( FsmLabel const &  label1,
FsmLabel const &  label2 
)
friend

Check wheter or not, label1 is "smaller" than label2. this operator is needed

Parameters
label1The first label
label2The second label
Returns
True if label1 is "smaller" than label2, false otherwise
std::ostream& operator<< ( std::ostream &  out,
const FsmLabel label 
)
friend

Output the FsmLabel to a standard output stream

Parameters
outThe standard output stream to use
labelThe FsmLabel to print
Returns
The standard output stream used, to allow user to cascade <<
bool operator== ( FsmLabel const &  label1,
FsmLabel const &  label2 
)
friend

Check wheter or not, the 2 label are the same

Parameters
label1The first label
label2The second label
Returns
True if they are the same, false otherwise

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