DiaDes
0.1
DIAgnosis of Discrete-Event System
|
#include <UnfoldingStateTable.hh>
Public Member Functions | |
UnfoldingStateTable () | |
roots of the tree More... | |
T | getInfo (const UnfoldingState &s, bool &found) const |
T | insertIfNotFound (const UnfoldingState &s, const T &info, bool &found) |
void | printTable () const |
Private Member Functions | |
void | insertCube (int *cube, int index, int size, list< StateNode< T > *> ¤tListNode, typename list< StateNode< T > * >::iterator &nodeIt, const T &info) |
Private Attributes | |
list< StateNode< T > * > | roots |
Definition at line 128 of file UnfoldingStateTable.hh.
|
inline |
roots of the tree
Default constructor Make an empty table
Definition at line 139 of file UnfoldingStateTable.hh.
T Diades::Sdmdl::UnfoldingStateTable< T >::getInfo | ( | const UnfoldingState & | s, |
bool & | found | ||
) | const |
s | an UnfoldingState |
found | a Boolean that indicates if 's' is present or not |
Definition at line 187 of file UnfoldingStateTable.hh.
References Diades::Sdmdl::StateNode< T >::children(), Diades::Sdmdl::UnfoldingState::cube(), Diades::Sdmdl::UnfoldingState::cubeSize(), Diades::Sdmdl::StateNode< T >::getInfo(), Diades::Sdmdl::StateNode< T >::isTagged(), require, Diades::Sdmdl::StateNode< T >::state(), and Diades::Sdmdl::UnfoldingState::valid().
|
private |
cube | a Cube (see Cudd library) |
index | Index of the first cube value to insert |
size | Size of the cube |
currentListNode | list of StateNode |
nodeIt | an iterator on the currentListNode |
info | an Information to associate with bs |
This method is used when the table does not contain 's' and insert it.
Definition at line 314 of file UnfoldingStateTable.hh.
References assertion, and Diades::Sdmdl::StateNode< T >::children().
T Diades::Sdmdl::UnfoldingStateTable< T >::insertIfNotFound | ( | const UnfoldingState & | s, |
const T & | info, | ||
bool & | found | ||
) |
Insertion
s | a UnfoldingState |
info | an Information |
found | a Boolean that indicates if 'bs' is present or not |
Definition at line 244 of file UnfoldingStateTable.hh.
References assertion, Diades::Sdmdl::StateNode< T >::children(), Diades::Sdmdl::UnfoldingState::cube(), Diades::Sdmdl::UnfoldingState::cubeSize(), Diades::Sdmdl::StateNode< T >::getInfo(), Diades::Sdmdl::StateNode< T >::isTagged(), require, Diades::Sdmdl::StateNode< T >::setInfo(), Diades::Sdmdl::StateNode< T >::state(), and Diades::Sdmdl::UnfoldingState::valid().
void Diades::Sdmdl::UnfoldingStateTable< T >::printTable | ( | ) | const |
print the table in the standard output
Definition at line 353 of file UnfoldingStateTable.hh.
References Diades::Sdmdl::StateNode< T >::children(), and Diades::Sdmdl::StateNode< T >::isTagged().
|
private |
Definition at line 131 of file UnfoldingStateTable.hh.