Class method model. More...
Class method model.
Definition at line 35 of file class_method.h.
#include <class_method.h>
Public Member Functions | |
| class_method (common::model::access_t access, const std::string &name, const std::string &type) | |
| Constructor. | |
| ~class_method () override=default | |
| void | update (const common::model::namespace_ &un) |
| bool | is_pure_virtual () const |
| Whether the method is pure virtual. | |
| void | is_pure_virtual (bool is_pure_virtual) |
| bool | is_virtual () const |
| Whether the method is virtual. | |
| void | is_virtual (bool is_virtual) |
| Set whether the method is virtual. | |
| bool | is_const () const |
| Whether the method is const. | |
| void | is_const (bool is_const) |
| Set whether the method is const. | |
| bool | is_defaulted () const |
| Whether the method is defaulted. | |
| void | is_defaulted (bool is_defaulted) |
| Set whether the method is defaulted. | |
| bool | is_deleted () const |
| Whether the method is deleted. | |
| void | is_deleted (bool is_deleted) |
| Set whether the method is deleted. | |
| bool | is_constexpr () const |
| Whether the method is constexpr. | |
| void | is_constexpr (bool is_constexpr) |
| Set whether the method is constexpr. | |
| bool | is_consteval () const |
| Whether the method is consteval. | |
| void | is_consteval (bool is_consteval) |
| Set whether the method is consteval. | |
| bool | is_coroutine () const |
| Whether the method is a C++20 coroutine. | |
| void | is_coroutine (bool is_coroutine) |
| Set whether the method is a C++20 coroutine. | |
| bool | is_noexcept () const |
| Whether the method is noexcept. | |
| void | is_noexcept (bool is_noexcept) |
| Set whether the method is noexcept. | |
| bool | is_constructor () const |
| Whether the method is a constructor. | |
| void | is_constructor (bool is_constructor) |
| Set whether the method is a constructor. | |
| bool | is_destructor () const |
| Whether the method is a destructor. | |
| void | is_destructor (bool is_destructor) |
| Set whether the method is a destructor. | |
| bool | is_move_assignment () const |
| Whether the method is move assignment. | |
| void | is_move_assignment (bool is_move_assignment) |
| Set whether the method is a move assignment. | |
| bool | is_copy_assignment () const |
| Whether the method is copy assignment. | |
| void | is_copy_assignment (bool is_copy_assignment) |
| Set whether the method is a copy assignment. | |
| bool | is_operator () const |
| Whether the method is an operator. | |
| void | is_operator (bool is_operator) |
| Set whether the method is an operator. | |
Public Member Functions inherited from clanguml::class_diagram::model::class_method_base | |
| 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) |
Public Member Functions inherited from clanguml::common::model::template_trait | |
| std::ostream & | render_template_params (std::ostream &ostr, const common::model::namespace_ &using_namespace, bool relative) const |
| void | add_template (template_parameter &&tmplt) |
| const std::vector< template_parameter > & | template_params () const |
| int | calculate_template_specialization_match (const template_trait &other) const |
| Wrapper around calculate_template_params_specialization_match() | |
Private Attributes | |
| bool | is_pure_virtual_ {false} |
| bool | is_virtual_ {false} |
| bool | is_const_ {false} |
| bool | is_defaulted_ {false} |
| bool | is_deleted_ {false} |
| bool | is_noexcept_ {false} |
| bool | is_constexpr_ {false} |
| bool | is_consteval_ {false} |
| bool | is_coroutine_ {false} |
| bool | is_constructor_ {false} |
| bool | is_destructor_ {false} |
| bool | is_move_assignment_ {false} |
| bool | is_copy_assignment_ {false} |
| bool | is_operator_ {false} |
| clanguml::class_diagram::model::class_method::class_method | ( | 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 23 of file class_method.cc.
|
overridedefault |
| bool clanguml::class_diagram::model::class_method::is_const | ( | ) | const |
Whether the method is const.
Definition at line 53 of file class_method.cc.
| void clanguml::class_diagram::model::class_method::is_const | ( | bool | is_const | ) |
Set whether the method is const.
| is_const | True, if the method is const |
Definition at line 55 of file class_method.cc.
| bool clanguml::class_diagram::model::class_method::is_consteval | ( | ) | const |
Whether the method is consteval.
Definition at line 75 of file class_method.cc.
| void clanguml::class_diagram::model::class_method::is_consteval | ( | bool | is_consteval | ) |
Set whether the method is consteval.
| is_consteval | True, if the method is consteval |
Definition at line 77 of file class_method.cc.
| bool clanguml::class_diagram::model::class_method::is_constexpr | ( | ) | const |
Whether the method is constexpr.
Definition at line 68 of file class_method.cc.
| void clanguml::class_diagram::model::class_method::is_constexpr | ( | bool | is_constexpr | ) |
Set whether the method is constexpr.
| is_constexpr | True, if the method is constexpr |
Definition at line 70 of file class_method.cc.
| bool clanguml::class_diagram::model::class_method::is_constructor | ( | ) | const |
Whether the method is a constructor.
Definition at line 93 of file class_method.cc.
| void clanguml::class_diagram::model::class_method::is_constructor | ( | bool | is_constructor | ) |
Set whether the method is a constructor.
| is_constructor | True, if the method is a constructor |
Definition at line 95 of file class_method.cc.
| bool clanguml::class_diagram::model::class_method::is_copy_assignment | ( | ) | const |
Whether the method is copy assignment.
Definition at line 114 of file class_method.cc.
| void clanguml::class_diagram::model::class_method::is_copy_assignment | ( | bool | is_copy_assignment | ) |
Set whether the method is a copy assignment.
| is_copy_assignment | True, if the method is a copy assignment |
Definition at line 116 of file class_method.cc.
| bool clanguml::class_diagram::model::class_method::is_coroutine | ( | ) | const |
Whether the method is a C++20 coroutine.
Definition at line 82 of file class_method.cc.
| void clanguml::class_diagram::model::class_method::is_coroutine | ( | bool | is_coroutine | ) |
Set whether the method is a C++20 coroutine.
| is_coroutine | True, if the method is a coroutine |
Definition at line 84 of file class_method.cc.
| bool clanguml::class_diagram::model::class_method::is_defaulted | ( | ) | const |
Whether the method is defaulted.
Definition at line 57 of file class_method.cc.
| void clanguml::class_diagram::model::class_method::is_defaulted | ( | bool | is_defaulted | ) |
Set whether the method is defaulted.
| is_defaulted | True, if the method is defaulted |
Definition at line 59 of file class_method.cc.
| bool clanguml::class_diagram::model::class_method::is_deleted | ( | ) | const |
Whether the method is deleted.
Definition at line 64 of file class_method.cc.
| void clanguml::class_diagram::model::class_method::is_deleted | ( | bool | is_deleted | ) |
Set whether the method is deleted.
| is_deleted | True, if the method is deleted |
Definition at line 66 of file class_method.cc.
| bool clanguml::class_diagram::model::class_method::is_destructor | ( | ) | const |
Whether the method is a destructor.
Definition at line 100 of file class_method.cc.
| void clanguml::class_diagram::model::class_method::is_destructor | ( | bool | is_destructor | ) |
Set whether the method is a destructor.
| is_destructor | True, if the method is a destructor |
Definition at line 102 of file class_method.cc.
| bool clanguml::class_diagram::model::class_method::is_move_assignment | ( | ) | const |
Whether the method is move assignment.
Definition at line 107 of file class_method.cc.
| void clanguml::class_diagram::model::class_method::is_move_assignment | ( | bool | is_move_assignment | ) |
Set whether the method is a move assignment.
| is_move_assignment | True, if the method is a move assignment |
Definition at line 109 of file class_method.cc.
| bool clanguml::class_diagram::model::class_method::is_noexcept | ( | ) | const |
Whether the method is noexcept.
Definition at line 89 of file class_method.cc.
| void clanguml::class_diagram::model::class_method::is_noexcept | ( | bool | is_noexcept | ) |
Set whether the method is noexcept.
| is_noexcept | True, if the method is noexcept |
Definition at line 91 of file class_method.cc.
| bool clanguml::class_diagram::model::class_method::is_operator | ( | ) | const |
Whether the method is an operator.
Definition at line 121 of file class_method.cc.
| void clanguml::class_diagram::model::class_method::is_operator | ( | bool | is_operator | ) |
Set whether the method is an operator.
| is_copy_assignment | True, if the method is an operator |
Definition at line 123 of file class_method.cc.
| bool clanguml::class_diagram::model::class_method::is_pure_virtual | ( | ) | const |
Whether the method is pure virtual.
Definition at line 42 of file class_method.cc.
| void clanguml::class_diagram::model::class_method::is_pure_virtual | ( | bool | is_pure_virtual | ) |
Definition at line 44 of file class_method.cc.
| bool clanguml::class_diagram::model::class_method::is_virtual | ( | ) | const |
Whether the method is virtual.
Definition at line 49 of file class_method.cc.
| void clanguml::class_diagram::model::class_method::is_virtual | ( | bool | is_virtual | ) |
Set whether the method is virtual.
| is_virtual | True, if the method is virtual |
Definition at line 51 of file class_method.cc.
| void clanguml::class_diagram::model::class_method::update | ( | const common::model::namespace_ & | un | ) |
Definition at line 29 of file class_method.cc.
|
private |
Definition at line 244 of file class_method.h.
|
private |
Definition at line 249 of file class_method.h.
|
private |
Definition at line 248 of file class_method.h.
|
private |
Definition at line 251 of file class_method.h.
|
private |
Definition at line 254 of file class_method.h.
|
private |
Definition at line 250 of file class_method.h.
|
private |
Definition at line 245 of file class_method.h.
|
private |
Definition at line 246 of file class_method.h.
|
private |
Definition at line 252 of file class_method.h.
|
private |
Definition at line 253 of file class_method.h.
|
private |
Definition at line 247 of file class_method.h.
|
private |
Definition at line 255 of file class_method.h.
|
private |
Definition at line 242 of file class_method.h.
|
private |
Definition at line 243 of file class_method.h.