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

Local action on an instance in Basic MSC. More...

#include <LocalAction.h>

Inheritance diagram for LocalAction:
Inheritance graph
Collaboration diagram for LocalAction:
Collaboration graph

Public Member Functions

 LocalAction (const std::wstring &statement=L"", Coordinate width=0.0, Coordinate height=0.0)
 
 LocalAction (LocalAction *original)
 
const std::wstring & get_statement () const
 
void glue_event (LocalActionEvent *event)
 
LocalActionEventget_event ()
 
bool is_glued () const
 
Coordinate get_width () const
 
Coordinate get_height () const
 
void set_width (Coordinate width)
 
void set_height (Coordinate height)
 
- Public Member Functions inherited from MscElementTmpl< LocalAction >
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...
 
LocalActionget_original () const
 
void set_original (LocalAction *e)
 
void set_original (boost::intrusive_ptr< LocalAction > &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 ()
 

Private Attributes

std::wstring m_statement
 
LocalActionEventm_event
 
Coordinate m_width
 
Coordinate m_height
 

Additional Inherited Members

- Protected Member Functions inherited from MscElementTmpl< LocalAction >
 MscElementTmpl ()
 
 MscElementTmpl (LocalAction *original)
 Creates MscElement referencing the original one. More...
 
- Protected Member Functions inherited from MscElement
 MscElement ()
 
- Protected Attributes inherited from MscElementTmpl< LocalAction >
int m_visual_style
 Visual style of the shape. More...
 
boost::intrusive_ptr< LocalActionm_original
 Pointer to original version of MscElement. More...
 

Detailed Description

Local action on an instance in Basic MSC.

Definition at line 25 of file LocalAction.h.

Constructor & Destructor Documentation

LocalAction::LocalAction ( const std::wstring &  statement = L"",
Coordinate  width = 0.0,
Coordinate  height = 0.0 
)
inline

Definition at line 42 of file LocalAction.h.

LocalAction::LocalAction ( LocalAction original)
inline

Definition at line 47 of file LocalAction.h.

Member Function Documentation

LocalActionEvent* LocalAction::get_event ( )
inline

Definition at line 61 of file LocalAction.h.

Coordinate LocalAction::get_height ( ) const
inline

Definition at line 76 of file LocalAction.h.

Referenced by LayoutOptimizer::process().

const std::wstring& LocalAction::get_statement ( ) const
inline

Definition at line 54 of file LocalAction.h.

Coordinate LocalAction::get_width ( ) const
inline

Definition at line 71 of file LocalAction.h.

void LocalAction::glue_event ( LocalActionEvent event)

Definition at line 21 of file LocalAction.cpp.

References m_event, and LocalActionEvent::set_local_action().

bool LocalAction::is_glued ( ) const
inline

Definition at line 66 of file LocalAction.h.

void LocalAction::set_height ( Coordinate  height)
inline

Definition at line 86 of file LocalAction.h.

Referenced by CDrawingExtractor::extract_bmsc().

void LocalAction::set_width ( Coordinate  width)
inline

Definition at line 81 of file LocalAction.h.

Referenced by CDrawingExtractor::extract_bmsc().

Member Data Documentation

LocalActionEvent* LocalAction::m_event
private

Peer event.

Warning
boost::intrusive_ptr mustn't be used because of possible cyclic dependency

Definition at line 36 of file LocalAction.h.

Referenced by glue_event().

Coordinate LocalAction::m_height
private

Definition at line 39 of file LocalAction.h.

std::wstring LocalAction::m_statement
private

Action statement.

Definition at line 30 of file LocalAction.h.

Coordinate LocalAction::m_width
private

Definition at line 38 of file LocalAction.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