Sequence Chart Studio  svn HEAD revision
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Private Member Functions | Private Attributes | List of all members
DFSHMscsTraverse Class Reference

Traversing HMsc using DFSHMscFlatTraverser and hmsc found event. More...

#include <dfs_hmsc_flat_traverser.h>

Inheritance diagram for DFSHMscsTraverse:
Inheritance graph
Collaboration diagram for DFSHMscsTraverse:
Collaboration graph

Public Member Functions

std::list< ReferenceNode * > get_parents (Msc *)
 
std::list< Msc * > get_parents (ReferenceNode *)
 
 DFSHMscsTraverse (DFSHMscFlatTraverser *t)
 
 ~DFSHMscsTraverse ()
 
void traverse (HMscPtr hmsc)
 
void on_new_inner_hmsc_found (HMscPtr hmsc, ReferenceNode *refNode)
 
void on_inner_hmsc_found (HMscPtr hmsc, ReferenceNode *refNode)
 
void on_white_node_found (ReferenceNode *)
 
void on_inner_bmsc_found (BMscPtr hmsc, ReferenceNode *refNode)
 
void hmsc_start (HMscPtr)
 
void hmsc_finished (HMscPtr)
 
void add_hmsc_finish_listener (TraverseHMscFinishListener *)
 
void remove_hmsc_finish_listeners ()
 
void add_hmsc_start_listener (TraverseHMscStartListener *)
 
void remove_hmsc_start_listeners ()
 
- Public Member Functions inherited from InnerHMscFoundListener
 InnerHMscFoundListener ()
 
 InnerHMscFoundListener (std::set< HMsc * > hmscs)
 
virtual ~InnerHMscFoundListener ()
 
void add_hmsc_as_traversed (HMscPtr hmsc)
 
void inner_hmsc_found (HMscPtr, ReferenceNode *)
 
- Public Member Functions inherited from InnerBMscFoundListener
 InnerBMscFoundListener ()
 
 InnerBMscFoundListener (std::set< BMsc * > bmscs)
 
virtual ~InnerBMscFoundListener ()
 
void inner_bmsc_found (BMscPtr bmsc, ReferenceNode *refNode)
 
virtual void on_new_inner_bmsc_found (BMscPtr, ReferenceNode *)
 
- Public Member Functions inherited from WhiteRefNodeFoundListener
virtual ~WhiteRefNodeFoundListener ()
 
virtual void on_white_node_found (HMscNode *n)
 
- Public Member Functions inherited from WhiteNodeFoundListener
virtual ~WhiteNodeFoundListener ()
 

Private Member Functions

void clean_up (MscElement *)
 
void add_parent (ReferenceNode *, Msc *)
 
void add_parent (Msc *, ReferenceNode *)
 

Private Attributes

std::queue< HMsc * > m_to_traverse
 
DFSHMscFlatTraverserm_traverser
 stack of HMsc to traverse More...
 
HMscPtr m_active_hmsc
 traverser to use More...
 
const std::string m_parent
 hmsc thats traversing right now More...
 
std::stack< MscElement * > to_clean_up
 list of parents More...
 
SessionAttribute< std::list
< ReferenceNode * > > 
m_attr_parent_msc
 
SessionAttribute< std::list
< Msc * > > 
m_attr_parent_ref
 
TraverseHMscStartListenerPList m_hmsc_start_listeners
 
TraverseHMscFinishListenerPList m_hmsc_finish_listeners
 

Additional Inherited Members

- Protected Attributes inherited from InnerHMscFoundListener
std::set< HMsc * > m_hmscs
 

Detailed Description

Traversing HMsc using DFSHMscFlatTraverser and hmsc found event.

Definition at line 145 of file dfs_hmsc_flat_traverser.h.

Constructor & Destructor Documentation

DFSHMscsTraverse::DFSHMscsTraverse ( DFSHMscFlatTraverser t)
inline

Definition at line 173 of file dfs_hmsc_flat_traverser.h.

DFSHMscsTraverse::~DFSHMscsTraverse ( )
inline

Definition at line 180 of file dfs_hmsc_flat_traverser.h.

Member Function Documentation

void DFSHMscsTraverse::add_hmsc_finish_listener ( TraverseHMscFinishListener )

Definition at line 217 of file dfs_hmsc_flat_traverser.cpp.

References m_hmsc_finish_listeners.

void DFSHMscsTraverse::add_hmsc_start_listener ( TraverseHMscStartListener )

Definition at line 228 of file dfs_hmsc_flat_traverser.cpp.

References m_hmsc_start_listeners.

void DFSHMscsTraverse::add_parent ( ReferenceNode parent,
Msc child 
)
private
void DFSHMscsTraverse::add_parent ( Msc parent,
ReferenceNode child 
)
private
void DFSHMscsTraverse::clean_up ( MscElement )
private
std::list< ReferenceNode * > DFSHMscsTraverse::get_parents ( Msc child)
std::list< Msc * > DFSHMscsTraverse::get_parents ( ReferenceNode child)
void DFSHMscsTraverse::hmsc_finished ( HMscPtr  h)

Definition at line 209 of file dfs_hmsc_flat_traverser.cpp.

References m_hmsc_finish_listeners.

Referenced by traverse().

void DFSHMscsTraverse::hmsc_start ( HMscPtr  h)

Definition at line 201 of file dfs_hmsc_flat_traverser.cpp.

References m_hmsc_start_listeners.

Referenced by traverse().

void DFSHMscsTraverse::on_inner_bmsc_found ( BMscPtr  hmsc,
ReferenceNode refNode 
)
virtual

Reimplemented from InnerBMscFoundListener.

Definition at line 139 of file dfs_hmsc_flat_traverser.cpp.

References add_parent().

void DFSHMscsTraverse::on_inner_hmsc_found ( HMscPtr  hmsc,
ReferenceNode refNode 
)
virtual

Reimplemented from InnerHMscFoundListener.

Definition at line 134 of file dfs_hmsc_flat_traverser.cpp.

References add_parent().

void DFSHMscsTraverse::on_new_inner_hmsc_found ( HMscPtr  hmsc,
ReferenceNode refNode 
)
virtual

Reimplemented from InnerHMscFoundListener.

Definition at line 145 of file dfs_hmsc_flat_traverser.cpp.

References m_to_traverse.

void DFSHMscsTraverse::on_white_node_found ( ReferenceNode node)
virtual

Implements WhiteRefNodeFoundListener.

Definition at line 239 of file dfs_hmsc_flat_traverser.cpp.

References add_parent(), and m_active_hmsc.

void DFSHMscsTraverse::remove_hmsc_finish_listeners ( )

Definition at line 222 of file dfs_hmsc_flat_traverser.cpp.

References m_hmsc_finish_listeners.

void DFSHMscsTraverse::remove_hmsc_start_listeners ( )

Definition at line 233 of file dfs_hmsc_flat_traverser.cpp.

References m_hmsc_start_listeners.

void DFSHMscsTraverse::traverse ( HMscPtr  hmsc)

Member Data Documentation

HMscPtr DFSHMscsTraverse::m_active_hmsc
private

traverser to use

Definition at line 153 of file dfs_hmsc_flat_traverser.h.

Referenced by on_white_node_found(), and traverse().

SessionAttribute<std::list<ReferenceNode*> > DFSHMscsTraverse::m_attr_parent_msc
private

Definition at line 157 of file dfs_hmsc_flat_traverser.h.

Referenced by add_parent(), and get_parents().

SessionAttribute<std::list<Msc*> > DFSHMscsTraverse::m_attr_parent_ref
private

Definition at line 158 of file dfs_hmsc_flat_traverser.h.

Referenced by add_parent(), and get_parents().

TraverseHMscFinishListenerPList DFSHMscsTraverse::m_hmsc_finish_listeners
private
TraverseHMscStartListenerPList DFSHMscsTraverse::m_hmsc_start_listeners
private
const std::string DFSHMscsTraverse::m_parent
private

hmsc thats traversing right now

Definition at line 154 of file dfs_hmsc_flat_traverser.h.

std::queue<HMsc*> DFSHMscsTraverse::m_to_traverse
private

Definition at line 151 of file dfs_hmsc_flat_traverser.h.

Referenced by on_new_inner_hmsc_found(), and traverse().

DFSHMscFlatTraverser* DFSHMscsTraverse::m_traverser
private

stack of HMsc to traverse

Definition at line 152 of file dfs_hmsc_flat_traverser.h.

Referenced by traverse().

std::stack<MscElement*> DFSHMscsTraverse::to_clean_up
private

list of parents

Definition at line 155 of file dfs_hmsc_flat_traverser.h.


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

SourceForge.net Logo
Generated on Fri Jan 15 2016 16:26:58 for Sequence Chart Studio by  doxygen