Class method model. More...
Class method model.
Definition at line 32 of file class_method_base.h.
#include <class_method_base.h>
Public Member Functions | |
| class_method_base (common::model::access_t access, const std::string &name, const std::string &type) | |
| Constructor. | |
| ~class_method_base () override=default | |
| std::string | display_name () const |
| Method name including template parameters/arguments if any. | |
| void | set_display_name (const std::string &display_name) |
| bool | is_static () const |
| Whether the method is static. | |
| void | is_static (bool is_static) |
| Set whether the method is static. | |
| const std::vector< method_parameter > & | parameters () const |
| Get the method parameters. | |
| void | add_parameter (method_parameter &¶meter) |
| Add methods parameter. | |
Public Member Functions inherited from clanguml::class_diagram::model::class_element | |
| class_element (common::model::access_t access, std::string name, std::string type) | |
| ~class_element () override=default | |
| common::model::access_t | access () const |
| Get elements access scope. | |
| std::string | name () const |
| Get elements name. | |
| void | set_name (const std::string &name) |
| Set elements name. | |
| std::string | type () const |
| Get elements type as string. | |
| void | set_type (const std::string &type) |
| Set elements type as string. | |
| void | set_qualified_name (const std::string &qn) |
| Set class elements qualified name. | |
| std::string | qualified_name () const |
| get fully qualified name of the class element. | |
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) |
Private Attributes | |
| std::vector< method_parameter > | parameters_ |
| bool | is_static_ {false} |
| std::string | display_name_ |
| clanguml::class_diagram::model::class_method_base::class_method_base | ( | common::model::access_t | access, |
| const std::string & | name, | ||
| const std::string & | type | ||
| ) |
Constructor.
| access | Methods access scope (e.g. public) |
| name | Methods name. |
| type | Methods return type as string. |
Definition at line 22 of file class_method_base.cc.
|
overridedefault |
| void clanguml::class_diagram::model::class_method_base::add_parameter | ( | method_parameter && | parameter | ) |
Add methods parameter.
| parameter | Method parameter. |
Definition at line 44 of file class_method_base.cc.
| std::string clanguml::class_diagram::model::class_method_base::display_name | ( | ) | const |
Method name including template parameters/arguments if any.
Definition at line 28 of file class_method_base.cc.
| bool clanguml::class_diagram::model::class_method_base::is_static | ( | ) | const |
Whether the method is static.
Definition at line 35 of file class_method_base.cc.
| void clanguml::class_diagram::model::class_method_base::is_static | ( | bool | is_static | ) |
Set whether the method is static.
| is_static | True, if the method is static |
Definition at line 37 of file class_method_base.cc.
| const std::vector< method_parameter > & clanguml::class_diagram::model::class_method_base::parameters | ( | ) | const |
Get the method parameters.
Definition at line 39 of file class_method_base.cc.
| void clanguml::class_diagram::model::class_method_base::set_display_name | ( | const std::string & | display_name | ) |
Definition at line 30 of file class_method_base.cc.
|
private |
Definition at line 87 of file class_method_base.h.
|
private |
Definition at line 86 of file class_method_base.h.
|
private |
Definition at line 84 of file class_method_base.h.