Base class for decorated diagram elements. More...
Base class for decorated diagram elements.
Decorators in clang-uml
mean that custom {}
directives can be applied to them in the code comments.
Definition at line 48 of file decorated_element.h.
#include <decorated_element.h>
Public Member Functions | |
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 |
Private Attributes | |
std::vector< std::shared_ptr< decorators::decorator > > | decorators_ |
std::optional< comment_t > | comment_ |
|
virtualdefault |
void clanguml::common::model::decorated_element::add_decorators | ( | const std::vector< std::shared_ptr< decorators::decorator > > & | decorators | ) |
Add decorators to the element.
decorators | List of decorator pointers. |
Definition at line 75 of file decorated_element.cc.
void clanguml::common::model::decorated_element::append | ( | const decorated_element & | de | ) |
Append decorators from another element.
de | Source element to copy decorators from. |
Definition at line 83 of file decorated_element.cc.
std::optional< comment_t > clanguml::common::model::decorated_element::comment | ( | ) | const |
Get entire comment model for this element.
Definition at line 90 of file decorated_element.cc.
const std::vector< std::shared_ptr< decorators::decorator > > & clanguml::common::model::decorated_element::decorators | ( | ) | const |
Get all decorators for this element.
Definition at line 70 of file decorated_element.cc.
|
virtual |
Return Doxygen HTML documentation link for the element.
Reimplemented in clanguml::class_diagram::model::class_, clanguml::class_diagram::model::enum_, clanguml::class_diagram::model::objc_interface, and clanguml::common::model::package.
Definition at line 94 of file decorated_element.cc.
std::pair< relationship_t, std::string > clanguml::common::model::decorated_element::get_relationship | ( | ) | const |
If this element is a member or a method, get relationship decorator if any.
Definition at line 41 of file decorated_element.cc.
void clanguml::common::model::decorated_element::set_comment | ( | const comment_t & | c | ) |
Set comment model for this element.
Comment model is currently a JSON object.
c | Comment model. |
Definition at line 92 of file decorated_element.cc.
bool clanguml::common::model::decorated_element::skip | ( | ) | const |
Whether this element should be skipped from the diagram.
Definition at line 23 of file decorated_element.cc.
bool clanguml::common::model::decorated_element::skip_relationship | ( | ) | const |
Whether this relationship should be skipped from the diagram.
Definition at line 31 of file decorated_element.cc.
std::string clanguml::common::model::decorated_element::style_spec | ( | ) | const |
Get stype specification for this element, if any.
Definition at line 60 of file decorated_element.cc.
|
private |
Definition at line 139 of file decorated_element.h.
|
private |
Definition at line 138 of file decorated_element.h.