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

Represents High-level MSC. More...

#include <HMsc.h>

Inheritance diagram for HMsc:
Inheritance graph
Collaboration diagram for HMsc:
Collaboration graph

Public Member Functions

 HMsc (const std::wstring &label=L"")
 
 HMsc (HMsc *original)
 
virtual ~HMsc ()
 
const StartNodePtrget_start () const
 
void set_start (const StartNodePtr &start)
 
const HMscNodePtrSetget_nodes () const
 
void add_node (HMscNodePtr node)
 
void remove_node (HMscNode *node)
 
void remove_node (HMscNodePtr node)
 
HMscNodePtr find_ptr (HMscNode *node) const
 
- Public Member Functions inherited from Msc
virtual ~Msc ()
 
void set_label (const std::wstring &label)
 
const std::wstring & get_label () const
 
- Public Member Functions inherited from MscElementTmpl< Msc >
int get_visual_style () const
 
void set_visual_style (int visual_style)
 
MscElementget_general_original () const
 See MscElementTmpl for details about attribute original. More...
 
void set_general_original (MscElement *original)
 See MscElementTmpl for details about attribute original. More...
 
Mscget_original () const
 
void set_original (Msc *e)
 
void set_original (boost::intrusive_ptr< Msc > &e)
 
virtual ~MscElementTmpl ()
 
- Public Member Functions inherited from MscElement
bool is_attribute_set (const std::string &name) const
 Finds out whether attribute with specified name is set or not. More...
 
template<class T >
T & get_attribute (const std::string &name, const T &def)
 Returns dynamic attribute of MscElement. More...
 
template<class T >
T & get_attribute (const std::string &name, const T &def, bool &status)
 Returns dynamic attribute of MscElement. More...
 
template<class T >
void set_attribute (const std::string &name, const T &val)
 Sets dynamic attribute of MscElement. More...
 
template<class T >
void remove_attribute (const std::string &name)
 Removes attribute of MscElement. More...
 
std::set< std::stringget_attribute_names () const
 List all attributes of MscElement. More...
 
enum MarkType get_marked () const
 
void set_marked (enum MarkType marked=MARKED)
 
MscColor get_color () const
 
void set_color (MscColor color)
 
void clear_color ()
 
virtual ~MscElement ()
 
- Public Member Functions inherited from Commentable
virtual ~Commentable ()
 
void add_comment (CommentPtr comment)
 
const CommentPtrSetget_comments () const
 

Protected Attributes

StartNodePtr m_start
 Start node of HMsc. More...
 
HMscNodePtrSet m_nodes
 
- Protected Attributes inherited from Msc
std::wstring m_label
 Label of MSC. More...
 
- Protected Attributes inherited from MscElementTmpl< Msc >
int m_visual_style
 Visual style of the shape. More...
 
boost::intrusive_ptr< Mscm_original
 Pointer to original version of MscElement. More...
 
- Protected Attributes inherited from Commentable
CommentPtrSet m_comments
 

Additional Inherited Members

- Protected Member Functions inherited from Msc
 Msc (const std::wstring &label=L"")
 
 Msc (Msc *original)
 
- Protected Member Functions inherited from MscElementTmpl< Msc >
 MscElementTmpl ()
 
 MscElementTmpl (Msc *original)
 Creates MscElement referencing the original one. More...
 
- Protected Member Functions inherited from MscElement
 MscElement ()
 

Detailed Description

Represents High-level MSC.

Definition at line 25 of file HMsc.h.

Constructor & Destructor Documentation

HMsc::HMsc ( const std::wstring &  label = L"")
inline

Definition at line 42 of file HMsc.h.

HMsc::HMsc ( HMsc original)
inline

Definition at line 46 of file HMsc.h.

virtual HMsc::~HMsc ( )
inlinevirtual

Definition at line 50 of file HMsc.h.

Member Function Documentation

void HMsc::add_node ( HMscNodePtr  node)

Definition at line 21 of file HMsc.cpp.

References m_nodes.

Referenced by AssignHMscListener::on_white_event_found(), and GraphCreatorListener::process_new_node().

HMscNodePtr HMsc::find_ptr ( HMscNode node) const
inline

Definition at line 75 of file HMsc.h.

Referenced by HMscNode::my_ptr().

const HMscNodePtrSet& HMsc::get_nodes ( ) const
inline

Definition at line 64 of file HMsc.h.

const StartNodePtr& HMsc::get_start ( ) const
inline

Getter for m_start.

Definition at line 57 of file HMsc.h.

Referenced by HMscDuplicator::create(), FootprintTraverser::FootprintTraverser(), and MonteCarlo::HMscDealer::traverse().

void HMsc::remove_node ( HMscNode node)

Definition at line 27 of file HMsc.cpp.

References m_nodes.

void HMsc::remove_node ( HMscNodePtr  node)
void HMsc::set_start ( const StartNodePtr start)

Definition at line 55 of file HMsc.cpp.

References m_start.

Referenced by GraphCreatorListener::on_white_node_found().

Member Data Documentation

HMscNodePtrSet HMsc::m_nodes
protected

Set of all HMscNodes included in this HMsc

Definition at line 38 of file HMsc.h.

Referenced by add_node(), and remove_node().

StartNodePtr HMsc::m_start
protected

Start node of HMsc.

Mandatory element in HMsc, not included in m_nodes.

Definition at line 33 of file HMsc.h.

Referenced by set_start().


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