0.5.4
C++ to UML diagram generator based on Clang
Loading...
Searching...
No Matches
Static Public Member Functions | Static Public Attributes | List of all members
clanguml::decorators::aggregation Struct Reference

Make a member an aggregation relationship. More...

Detailed Description

Make a member an aggregation relationship.

Definition at line 119 of file decorators.h.

#include <decorators.h>

Static Public Member Functions

static std::shared_ptr< decoratorfrom_string (std::string_view c)
 
- Static Public Member Functions inherited from clanguml::decorators::decorator
static std::shared_ptr< decoratorfrom_string (std::string_view c)
 Create decorator of specific type based on it's string representation.
 

Static Public Attributes

static const std::string label {"aggregation"}
 

Additional Inherited Members

- Public Member Functions inherited from clanguml::decorators::decorator
virtual ~decorator ()=default
 
bool applies_to_diagram (const std::string &name)
 Check if decorator applies to a specific diagram.
 
- Public Attributes inherited from clanguml::decorators::relationship
std::string multiplicity
 
- Public Attributes inherited from clanguml::decorators::decorator
std::vector< std::string > diagrams
 
- Protected Member Functions inherited from clanguml::decorators::decorator
decorator_toks tokenize (const std::string &label, std::string_view c)
 

Member Function Documentation

◆ from_string()

std::shared_ptr< decorator > clanguml::decorators::aggregation::from_string ( std::string_view  c)
static

Definition at line 146 of file decorators.cc.

147{
148 auto res = std::make_shared<aggregation>();
149 auto toks = res->tokenize(aggregation::label, c);
150
151 res->diagrams = toks.diagrams;
152 res->multiplicity = toks.param;
153
154 return res;
155}

Member Data Documentation

◆ label

const std::string clanguml::decorators::aggregation::label {"aggregation"}
inlinestatic

Definition at line 120 of file decorators.h.


The documentation for this struct was generated from the following files: