0.6.0
C++ to UML diagram generator based on Clang
Loading...
Searching...
No Matches
Classes | Functions
Diagram generator selector

Detailed Description

Tags to determine the generator type based on diagram config type and output format

Classes

struct  clanguml::common::generators::not_supported
 
struct  clanguml::common::generators::diagram_generator_t< DiagramConfig, GeneratorType >
 
struct  clanguml::common::generators::diagram_generator_t< clanguml::config::class_diagram, plantuml_generator_tag >
 
struct  clanguml::common::generators::diagram_generator_t< clanguml::config::sequence_diagram, plantuml_generator_tag >
 
struct  clanguml::common::generators::diagram_generator_t< clanguml::config::package_diagram, plantuml_generator_tag >
 
struct  clanguml::common::generators::diagram_generator_t< clanguml::config::include_diagram, plantuml_generator_tag >
 
struct  clanguml::common::generators::diagram_generator_t< clanguml::config::class_diagram, json_generator_tag >
 
struct  clanguml::common::generators::diagram_generator_t< clanguml::config::sequence_diagram, json_generator_tag >
 
struct  clanguml::common::generators::diagram_generator_t< clanguml::config::package_diagram, json_generator_tag >
 
struct  clanguml::common::generators::diagram_generator_t< clanguml::config::include_diagram, json_generator_tag >
 
struct  clanguml::common::generators::diagram_generator_t< clanguml::config::class_diagram, mermaid_generator_tag >
 
struct  clanguml::common::generators::diagram_generator_t< clanguml::config::sequence_diagram, mermaid_generator_tag >
 
struct  clanguml::common::generators::diagram_generator_t< clanguml::config::package_diagram, mermaid_generator_tag >
 
struct  clanguml::common::generators::diagram_generator_t< clanguml::config::include_diagram, mermaid_generator_tag >
 
struct  clanguml::common::generators::diagram_generator_t< clanguml::config::class_diagram, graphml_generator_tag >
 
struct  clanguml::common::generators::diagram_generator_t< clanguml::config::sequence_diagram, graphml_generator_tag >
 
struct  clanguml::common::generators::diagram_generator_t< clanguml::config::package_diagram, graphml_generator_tag >
 
struct  clanguml::common::generators::diagram_generator_t< clanguml::config::include_diagram, graphml_generator_tag >
 

Functions

template<typename GeneratorTag >
constexpr bool clanguml::common::generators::generator_supports_diagram_type (clanguml::common::model::diagram_t dt)
 

Function Documentation

◆ generator_supports_diagram_type()

template<typename GeneratorTag >
constexpr bool clanguml::common::generators::generator_supports_diagram_type ( clanguml::common::model::diagram_t  dt)
constexpr

Definition at line 219 of file generators.h.

221{
223
224 switch (dt) {
225 case diagram_t::kClass:
226 return !std::is_same_v<not_supported,
227 typename diagram_generator_t<clanguml::config::class_diagram,
228 GeneratorTag>::type>;
229 case diagram_t::kSequence:
230 return !std::is_same_v<not_supported,
231 typename diagram_generator_t<clanguml::config::sequence_diagram,
232 GeneratorTag>::type>;
233 case diagram_t::kPackage:
234 return !std::is_same_v<not_supported,
235 typename diagram_generator_t<clanguml::config::package_diagram,
236 GeneratorTag>::type>;
237 case diagram_t::kInclude:
238 return !std::is_same_v<not_supported,
239 typename diagram_generator_t<clanguml::config::include_diagram,
240 GeneratorTag>::type>;
241 default:
242 return false;
243 }
244}