Common interface for template diagram elements. More...
#include <template_trait.h>
Public Member Functions | |
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 | |
std::vector< template_parameter > | templates_ |
void clanguml::common::model::template_trait::add_template | ( | template_parameter && | tmplt | ) |
Add template parameter
tmplt | Template parameter |
Definition at line 48 of file template_trait.cc.
int clanguml::common::model::template_trait::calculate_template_specialization_match | ( | const template_trait & | other | ) | const |
Wrapper around calculate_template_params_specialization_match()
other | Other template diagram element |
Definition at line 58 of file template_trait.cc.
std::ostream & clanguml::common::model::template_trait::render_template_params | ( | std::ostream & | ostr, |
const common::model::namespace_ & | using_namespace, | ||
bool | relative | ||
) | const |
Render the template parameters to a stream.
ostr | Output stream |
using_namespace | Relative to namespace |
relative | Whether to make template arguments relative to using_namespace |
Definition at line 23 of file template_trait.cc.
const std::vector< template_parameter > & clanguml::common::model::template_trait::template_params | ( | ) | const |
Get reference to template parameters.
Definition at line 53 of file template_trait.cc.
|
private |
Definition at line 72 of file template_trait.h.