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

Public Member Functions

 OutputTree (const std::shared_ptr< TreeNode > root, const InputTrace &inputTrace, const std::shared_ptr< FsmPresentationLayer > presentationLayer)
 
bool contains (const OutputTree &ot) const
 
void toDot (std::ostream &out) const
 
void store (std::ofstream &file)
 
- Public Member Functions inherited from Tree
 Tree (const std::shared_ptr< TreeNode > root, const std::shared_ptr< FsmPresentationLayer > presentationLayer)
 
std::vector< std::shared_ptr< TreeNode > > getLeaves ()
 
std::shared_ptr< TreeNodegetRoot () const
 
IOListContainer getIOLists ()
 
void remove (const std::shared_ptr< Tree > otherTree)
 
void toDot (std::ostream &out)
 
IOListContainer getTestCases ()
 
void add (const IOListContainer &tcl)
 
void addToRoot (const IOListContainer &tcl)
 
void unionTree (const std::shared_ptr< Tree > otherTree)
 
void addAfter (const InputTrace &tr, const IOListContainer &cnt)
 

Friends

std::ostream & operator<< (std::ostream &out, OutputTree &ot)
 
bool operator== (OutputTree const &outputTree1, OutputTree const &outputTree2)
 

Additional Inherited Members

- Protected Member Functions inherited from Tree
void calcLeaves ()
 
void remove (const std::shared_ptr< TreeNode > thisNode, const std::shared_ptr< TreeNode > otherNode)
 
void printChildren (std::ostream &out, const std::shared_ptr< TreeNode > top, const std::shared_ptr< int > idNode) const
 
- Protected Attributes inherited from Tree
std::shared_ptr< TreeNoderoot
 
std::vector< std::shared_ptr< TreeNode > > leaves
 
const std::shared_ptr< FsmPresentationLayerpresentationLayer
 

Constructor & Destructor Documentation

OutputTree::OutputTree ( const std::shared_ptr< TreeNode root,
const InputTrace inputTrace,
const std::shared_ptr< FsmPresentationLayer presentationLayer 
)

Create a new OutputTree

Parameters
rootThe root of the output tree
inputTraceThe inputTrace of this output tree (one input trace, maybe more than one output possible)
presentationLayerThe presentation layer to use

Member Function Documentation

bool OutputTree::contains ( const OutputTree ot) const

Check whether this OutputTree instance is a superset of the output traces contained the other instance ot.

Parameters
otThe other OutputTree instance
Returns
false if the trees have been produced by different input traces, false if they are associated with the same input traces, but ot contains an output trace that does not exist in this OutputTree instance, true otherwise.

Here is the call graph for this function:

void OutputTree::store ( std::ofstream &  file)

Store the OutputTree to a standard output file

Parameters
outThe standard output file to use

Here is the call graph for this function:

void OutputTree::toDot ( std::ostream &  out) const

Store the OutputTree to a standard output file in dot format

Parameters
outThe standard output file to use

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  out,
OutputTree ot 
)
friend

Output the OutputTree to a standard output stream

Parameters
outThe standard output stream to use
otThe OutputTree to print
Returns
The standard output stream used, to allow user to cascade <<
bool operator== ( OutputTree const &  outputTree1,
OutputTree const &  outputTree2 
)
friend

Check this OutputTree instance and the instance ot for equality

Parameters
outputTree1The first OutputTree instance
outputTree2The other OutputTree instance
Returns
false if the trees have been produced by different input traces, false if they are associated with the same input traces, but their is no one-to-one correspondence between the edges and their labels, true otherwise.

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