Model of a sequence diagram message. More...
#include <message.h>
Public Member Functions | |
| message ()=default | |
| message (common::model::message_t type, eid_t from) | |
| Constructor. | |
| bool | operator== (const message &other) const noexcept |
| Equality operator. | |
| void | set_type (common::model::message_t t) |
| Set message type. | |
| common::model::message_t | type () const |
| Get message type. | |
| void | set_from (eid_t f) |
| Set the id of message source participant. | |
| eid_t | from () const |
| Get the id of source of message. | |
| void | set_to (eid_t t) |
| Set the id of the message target. | |
| eid_t | to () const |
| Get the id of the message target. | |
| void | set_message_name (std::string name) |
| Set the message label. | |
| const std::string & | message_name () const |
| Get the message label. | |
| void | set_return_type (std::string t) |
| Set the return message type label. | |
| const std::string & | return_type () const |
| Get the return message type label. | |
| const std::optional< common::model::comment_t > & | comment () const |
| void | set_comment (std::optional< std::pair< unsigned int, std::string > > comment) |
| void | set_comment (unsigned int id, std::string comment) |
| void | set_comment (common::model::comment_t c) |
| void | set_comment (const std::optional< common::model::comment_t > &c) |
| void | set_message_scope (common::model::message_scope_t scope) |
| Set message scope. | |
| common::model::message_scope_t | message_scope () const |
| Get message scope. | |
| void | condition_text (const std::string &condition_text) |
| Set condition text for block statements (e.g. if(<THIS TEXT>)) | |
| std::optional< std::string > | condition_text () const |
| Get condition text. | |
| bool | in_static_declaration_context () const |
| void | in_static_declaration_context (bool v) |
Public Member Functions inherited from clanguml::common::model::diagram_element | |
| diagram_element () | |
| ~diagram_element () override=default | |
| const eid_t & | id () const |
| Returns diagram element id. | |
| void | set_id (eid_t id) |
| std::optional< eid_t > | parent_element_id () const |
| void | set_parent_element_id (eid_t id) |
| virtual std::string | alias () const |
| Return elements' diagram alias. | |
| void | set_name (const std::string &name) |
| void | set_name (const std::string &parent, const std::string &name) |
| std::string | name () const |
| virtual std::string | type_name () const |
| std::string | full_name (bool relative) const |
| Return the elements fully qualified name. | |
| std::vector< relationship > & | relationships () |
| const std::vector< relationship > & | relationships () const |
| void | add_relationship (relationship &&cr) |
| void | append (const decorated_element &e) |
| bool | is_nested () const |
| void | nested (bool nested) |
| bool | complete () const |
| void | complete (bool completed) |
| void | remove_duplicate_relationships () |
| virtual void | apply_filter (const diagram_filter &filter, const std::set< eid_t > &removed) |
Public Member Functions inherited from clanguml::common::model::decorated_element | |
| virtual | ~decorated_element ()=default |
| bool | skip () const |
| bool | skip_relationship () const |
| std::pair< relationship_t, std::string > | get_relationship () const |
| std::string | style_spec () const |
| const std::vector< std::shared_ptr< decorators::decorator > > & | decorators () const |
| void | add_decorators (const std::vector< std::shared_ptr< decorators::decorator > > &decorators) |
| void | append (const decorated_element &de) |
| std::optional< comment_t > | comment () const |
| void | set_comment (const comment_t &c) |
| virtual std::optional< std::string > | doxygen_link () const |
Public Member Functions inherited from clanguml::common::model::source_location | |
| source_location ()=default | |
| source_location (std::string f, unsigned int l) | |
| const std::string & | file () const |
| void | set_file (const std::string &file) |
| const std::string & | file_relative () const |
| void | set_file_relative (const std::string &file) |
| const std::string & | translation_unit () const |
| void | set_translation_unit (const std::string &translation_unit) |
| unsigned int | line () const |
| void | set_line (const unsigned line) |
| unsigned int | column () const |
| void | set_column (const unsigned column) |
| unsigned int | location_id () const |
| void | set_location_id (unsigned int h) |
Public Member Functions inherited from clanguml::util::memoized< full_name_tag_t, std::string, bool > | |
| auto | memoize (bool is_complete, F &&f, Args... args) const |
| void | invalidate (Args... args) const |
Public Member Functions inherited from clanguml::util::memoized< name_and_ns_tag, std::string > | |
| auto | memoize (bool is_complete, F &&f, Args... args) const |
| void | invalidate (Args... args) const |
Private Attributes | |
| common::model::message_t | type_ {common::model::message_t::kNone} |
| eid_t | from_ {} |
| eid_t | to_ {} |
| common::model::message_scope_t | scope_ |
| std::string | message_name_ {} |
| std::string | return_type_ {} |
| std::optional< std::string > | condition_text_ |
| std::optional< common::model::comment_t > | comment_ |
| bool | in_static_declaration_context_ {false} |
Additional Inherited Members | |
Public Types inherited from clanguml::util::memoized< full_name_tag_t, std::string, bool > | |
| using | key_t = std::tuple< Args... > |
| using | value_t = std::string |
Public Types inherited from clanguml::util::memoized< name_and_ns_tag, std::string > | |
| using | key_t = std::tuple< Args... > |
| using | value_t = std::string |
Protected Member Functions inherited from clanguml::common::model::diagram_element | |
| virtual std::string | full_name_impl (bool) const |
|
default |
| clanguml::sequence_diagram::model::message::message | ( | common::model::message_t | type, |
| eid_t | from | ||
| ) |
| const std::optional< common::model::comment_t > & clanguml::sequence_diagram::model::message::comment | ( | ) | const |
Definition at line 60 of file message.cc.
| std::optional< std::string > clanguml::sequence_diagram::model::message::condition_text | ( | ) | const |
Get condition text.
Definition at line 112 of file message.cc.
| void clanguml::sequence_diagram::model::message::condition_text | ( | const std::string & | condition_text | ) |
Set condition text for block statements (e.g. if(<THIS TEXT>))
| condition_text | Condition text |
Definition at line 104 of file message.cc.
| eid_t clanguml::sequence_diagram::model::message::from | ( | ) | const |
| bool clanguml::sequence_diagram::model::message::in_static_declaration_context | ( | ) | const |
Definition at line 117 of file message.cc.
| void clanguml::sequence_diagram::model::message::in_static_declaration_context | ( | bool | v | ) |
Definition at line 122 of file message.cc.
| const std::string & clanguml::sequence_diagram::model::message::message_name | ( | ) | const |
| common::model::message_scope_t clanguml::sequence_diagram::model::message::message_scope | ( | ) | const |
|
noexcept |
Equality operator.
| other | Compare this to other message |
Definition at line 29 of file message.cc.
| const std::string & clanguml::sequence_diagram::model::message::return_type | ( | ) | const |
Get the return message type label.
Definition at line 58 of file message.cc.
| void clanguml::sequence_diagram::model::message::set_comment | ( | common::model::comment_t | c | ) |
Definition at line 85 of file message.cc.
| void clanguml::sequence_diagram::model::message::set_comment | ( | const std::optional< common::model::comment_t > & | c | ) |
Definition at line 91 of file message.cc.
| void clanguml::sequence_diagram::model::message::set_comment | ( | std::optional< std::pair< unsigned int, std::string > > | comment | ) |
Definition at line 65 of file message.cc.
| void clanguml::sequence_diagram::model::message::set_comment | ( | unsigned int | id, |
| std::string | comment | ||
| ) |
Definition at line 73 of file message.cc.
| void clanguml::sequence_diagram::model::message::set_from | ( | eid_t | f | ) |
Set the id of message source participant.
| f | Id of the participant from which message originates |
Definition at line 41 of file message.cc.
| void clanguml::sequence_diagram::model::message::set_message_name | ( | std::string | name | ) |
| void clanguml::sequence_diagram::model::message::set_message_scope | ( | common::model::message_scope_t | scope | ) |
Set message scope.
Message scope currently means whether the message was called from regular statement, or a statement embedded in a statement block condition
| scope | Message scope |
Definition at line 97 of file message.cc.
| void clanguml::sequence_diagram::model::message::set_return_type | ( | std::string | t | ) |
Set the return message type label.
| t | Message return type label |
Definition at line 56 of file message.cc.
| void clanguml::sequence_diagram::model::message::set_to | ( | eid_t | t | ) |
Set the id of the message target.
| t | Id of the message target |
Definition at line 45 of file message.cc.
| void clanguml::sequence_diagram::model::message::set_type | ( | common::model::message_t | t | ) |
Set message type.
| t | Message type |
Definition at line 37 of file message.cc.
| eid_t clanguml::sequence_diagram::model::message::to | ( | ) | const |
Get the id of the message target.
Definition at line 47 of file message.cc.
| common::model::message_t clanguml::sequence_diagram::model::message::type | ( | ) | const |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |