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

Public Member Functions

 FsmTransition (const std::shared_ptr< FsmNode > source, const std::shared_ptr< FsmNode > target, const FsmLabel &label)
 
std::shared_ptr< FsmNodegetSource () const
 
std::shared_ptr< FsmNodegetTarget () const
 
FsmLabel getLabel () const
 

Friends

std::ostream & operator<< (std::ostream &out, const FsmTransition &transition)
 

Constructor & Destructor Documentation

FsmTransition::FsmTransition ( const std::shared_ptr< FsmNode source,
const std::shared_ptr< FsmNode target,
const FsmLabel label 
)

Create a FsmTransition

Parameters
sourceThe node from which the transition come
targetThe node where the transition go
labelThe label of this transition

Member Function Documentation

FsmLabel FsmTransition::getLabel ( ) const

Getter for the label

Returns
The label of this transition

Here is the caller graph for this function:

std::shared_ptr< FsmNode > FsmTransition::getSource ( ) const

Getter for the source

Returns
The node from which the transition come
std::shared_ptr< FsmNode > FsmTransition::getTarget ( ) const

Getter for the target

Returns
The node where the transition go

Here is the caller graph for this function:

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  out,
const FsmTransition transition 
)
friend

Output the FsmTransition to a standard output stream

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

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