FSM Library - C++ version
Public Member Functions | Friends | List of all members
InputTrace Class Reference
Inheritance diagram for InputTrace:
Inheritance graph
[legend]
Collaboration diagram for InputTrace:
Collaboration graph
[legend]

Public Member Functions

 InputTrace (const std::shared_ptr< FsmPresentationLayer > presentationLayer)
 
 InputTrace (const std::vector< int > &trace, const std::shared_ptr< FsmPresentationLayer > presentationLayer)
 
- Public Member Functions inherited from Trace
 Trace (const std::shared_ptr< FsmPresentationLayer > presentationLayer)
 
 Trace (const std::vector< int > &trace, const std::shared_ptr< FsmPresentationLayer > presentationLayer)
 
void add (const int e)
 
std::vector< int > get () const
 
std::vector< int >::const_iterator cbegin () const
 
std::vector< int >::const_iterator cend () const
 

Friends

std::ostream & operator<< (std::ostream &out, const InputTrace &trace)
 

Additional Inherited Members

- Protected Attributes inherited from Trace
std::vector< int > trace
 
const std::shared_ptr< FsmPresentationLayerpresentationLayer
 

Constructor & Destructor Documentation

InputTrace::InputTrace ( const std::shared_ptr< FsmPresentationLayer presentationLayer)

Create an empty input trace, with only one presentation layer

Parameters
presentationLayerThe presentation layer used by the trace
InputTrace::InputTrace ( const std::vector< int > &  trace,
const std::shared_ptr< FsmPresentationLayer presentationLayer 
)

Create an input trace

Parameters
traceThe trace itself, represented by a list of int
presentationLayerThe presentation layer used by the trace

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  out,
const InputTrace trace 
)
friend

Output the InputTrace to a standard output stream

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

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