Configuration file related classes. More...
Configuration file related classes.
Classes | |
struct | class_diagram |
Class diagram configuration. More... | |
struct | config |
Represents entire configuration file. More... | |
struct | context_config |
struct | diagram |
Common diagram configuration type. More... | |
struct | diagram_template |
Definition of diagram template. More... | |
struct | element_filter_t |
struct | filter |
struct | generate_links_config |
struct | git_config |
struct | glob_t |
Glob config section for including and excluding TUs. More... | |
struct | graphml |
GraphML diagram config section. More... | |
struct | include_diagram |
Include diagram configuration. More... | |
struct | inheritable_diagram_options |
Represents subset of inheritable configuration options. More... | |
struct | layout_hint |
struct | mermaid |
MermaidJS diagram config section. More... | |
struct | option |
Generic configuration option type. More... | |
struct | option_with_alt_names_tag |
struct | package_diagram |
Package diagram configuration. More... | |
struct | plantuml |
PlantUML diagram config section. More... | |
struct | plantuml_keyword_mapping_t |
struct | relationship_hint_t |
struct | sequence_diagram |
Sequence diagram configuration. More... | |
struct | source_location |
struct | type_aliases_longer_first_comparator |
Typedefs | |
using | layout_hints = std::map< std::string, std::vector< layout_hint > > |
using | relationship_hints_t = std::map< std::string, relationship_hint_t > |
using | type_aliases_t = std::map< std::string, std::string > |
using | type_aliases_longer_first_t = std::map< std::string, std::string, type_aliases_longer_first_comparator > |
using | config_ptr = std::unique_ptr< config > |
Enumerations | |
enum class | method_arguments { full , abbreviated , none } |
enum class | method_type { constructor , destructor , assignment , operator_ , defaulted , deleted , static_ } |
enum class | callee_type { constructor , assignment , operator_ , defaulted , static_ , method , function , function_template , lambda , cuda_kernel , cuda_device } |
enum class | package_type_t { kNamespace , kDirectory , kModule } |
enum class | member_order_t { lexical , as_is } |
enum class | comment_parser_t { plain , clang } |
enum class | filter_mode_t { basic , advanced } |
enum class | context_direction_t { inward , outward , any } |
enum class | hint_t { up , down , left , right , together , row , column } |
enum class | location_t { marker , fileline , function } |
enum class | option_inherit_mode { kOverride , kAppend } |
Functions | |
std::string | to_string (const hint_t t) |
std::string | to_string (element_filter_t::filtered_type ft) |
std::string | to_string (const method_arguments ma) |
std::string | to_string (method_type mt) |
std::string | to_string (callee_type mt) |
std::string | to_string (const comment_parser_t cp) |
std::string | to_string (location_t cp) |
std::string | to_string (package_type_t pt) |
std::string | to_string (member_order_t mo) |
std::string | to_string (context_direction_t cd) |
std::string | to_string (filter_mode_t fm) |
template<> | |
void | append_value< plantuml > (plantuml &l, const plantuml &r) |
config | load (const std::string &config_file, bool inherit=true, std::optional< bool > paths_relative_to_pwd={}, std::optional< bool > no_metadata={}, bool validate=true) |
Load and parse .clang-uml configuration file. | |
YAML::Emitter & | operator<< (YAML::Emitter &out, const config &c) |
YAML::Emitter & | operator<< (YAML::Emitter &out, const inheritable_diagram_options &c) |
YAML::Emitter & | operator<< (YAML::Emitter &out, const filter &f) |
YAML::Emitter & | operator<< (YAML::Emitter &out, const plantuml &p) |
YAML::Emitter & | operator<< (YAML::Emitter &out, const mermaid &p) |
YAML::Emitter & | operator<< (YAML::Emitter &out, const graphml &p) |
YAML::Emitter & | operator<< (YAML::Emitter &out, const method_arguments &ma) |
YAML::Emitter & | operator<< (YAML::Emitter &out, const generate_links_config &glc) |
YAML::Emitter & | operator<< (YAML::Emitter &out, const git_config &gc) |
YAML::Emitter & | operator<< (YAML::Emitter &out, const relationship_hint_t &rh) |
YAML::Emitter & | operator<< (YAML::Emitter &out, const comment_parser_t &cp) |
YAML::Emitter & | operator<< (YAML::Emitter &out, const hint_t &h) |
YAML::Emitter & | operator<< (YAML::Emitter &out, const class_diagram &c) |
YAML::Emitter & | operator<< (YAML::Emitter &out, const sequence_diagram &c) |
YAML::Emitter & | operator<< (YAML::Emitter &out, const include_diagram &c) |
YAML::Emitter & | operator<< (YAML::Emitter &out, const package_diagram &c) |
YAML::Emitter & | operator<< (YAML::Emitter &out, const layout_hint &c) |
YAML::Emitter & | operator<< (YAML::Emitter &out, const element_filter_t &ef) |
YAML::Emitter & | operator<< (YAML::Emitter &out, const diagram_template &dt) |
YAML::Emitter & | operator<< (YAML::Emitter &out, const inja::json &ef) |
YAML::Emitter & | operator<< (YAML::Emitter &out, const source_location &sc) |
template<typename T > | |
bool | is_null (const T &) |
template<> | |
bool | is_null (const std::string &v) |
template<> | |
bool | is_null (const glob_t &v) |
template<> | |
bool | is_null (const plantuml &v) |
template<> | |
bool | is_null (const mermaid &v) |
template<> | |
bool | is_null (const graphml &v) |
template<> | |
bool | is_null (const inja::json &v) |
template<typename T > | |
YAML::Emitter & | operator<< (YAML::Emitter &out, const option< T > &o) |
const std::string & | get_predefined_diagram_templates () |
Return YAML with predefined diagram templates. | |
template<> | |
void | append_value (inja::json &l, const inja::json &r) |
template<typename T > | |
void | append_value (T &l, const T &r) |
template<typename T > | |
void | append_value (std::vector< T > &l, const std::vector< T > &r) |
template<typename K , typename V > | |
void | append_value (std::map< K, V > &l, const std::map< K, V > &r) |
template<> | |
void | append_value (inja::json &l, const inja::json &r) |
YAML::Emitter & | operator<< (YAML::Emitter &out, const method_type &m) |
YAML::Emitter & | operator<< (YAML::Emitter &out, const callee_type &m) |
YAML::Emitter & | operator<< (YAML::Emitter &out, const member_order_t &r) |
YAML::Emitter & | operator<< (YAML::Emitter &out, const package_type_t &r) |
YAML::Emitter & | operator<< (YAML::Emitter &out, const context_config &c) |
YAML::Emitter & | operator<< (YAML::Emitter &out, const glob_t &g) |
template<> | |
bool | is_null (const std::string &v) |
template<> | |
bool | is_null (const glob_t &v) |
template<> | |
bool | is_null (const plantuml &v) |
template<> | |
bool | is_null (const mermaid &v) |
template<> | |
bool | is_null (const graphml &v) |
template<> | |
bool | is_null (const inja::json &v) |
Variables | |
const std::string | schema_str |
using clanguml::config::config_ptr = typedef std::unique_ptr<config> |
using clanguml::config::layout_hints = typedef std::map<std::string, std::vector<layout_hint> > |
using clanguml::config::relationship_hints_t = typedef std::map<std::string, relationship_hint_t> |
using clanguml::config::type_aliases_longer_first_t = typedef std::map<std::string, std::string, type_aliases_longer_first_comparator> |
using clanguml::config::type_aliases_t = typedef std::map<std::string, std::string> |
|
strong |
Types of call expressions, which can be used in sequence diagram filters
Enumerator | |
---|---|
constructor | |
assignment | |
operator_ | |
defaulted | |
static_ | |
method | |
function | |
function_template | |
lambda | |
cuda_kernel | |
cuda_device |
Definition at line 114 of file config.h.
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
Types of methods, which can be used in diagram filters
Enumerator | |
---|---|
constructor | |
destructor | |
assignment | |
operator_ | |
defaulted | |
deleted | |
static_ |
Definition at line 101 of file config.h.
|
strong |
|
strong |
void clanguml::config::append_value | ( | inja::json & | l, |
const inja::json & | r | ||
) |
void clanguml::config::append_value | ( | inja::json & | l, |
const inja::json & | r | ||
) |
void clanguml::config::append_value | ( | std::map< K, V > & | l, |
const std::map< K, V > & | r | ||
) |
void clanguml::config::append_value | ( | std::vector< T > & | l, |
const std::vector< T > & | r | ||
) |
void clanguml::config::append_value | ( | T & | l, |
const T & | r | ||
) |
void clanguml::config::append_value< plantuml > | ( | plantuml & | l, |
const plantuml & | r | ||
) |
const std::string & clanguml::config::get_predefined_diagram_templates | ( | ) |
Return YAML with predefined diagram templates.
Definition at line 24 of file diagram_templates.cc.
config clanguml::config::load | ( | const std::string & | config_file, |
bool | inherit = true , |
||
std::optional< bool > | paths_relative_to_pwd = {} , |
||
std::optional< bool > | no_metadata = {} , |
||
bool | validate = true |
||
) |
Load and parse .clang-uml
configuration file.
This function takes the path to the configuration file and some options, parses the YAML file and creates a
config_file | Path to the configuration file |
inherit | If true, common options will be propagated to diagram configs |
paths_relative_to_pwd | Whether the paths in the configuration file should be relative to the parent directory of the configuration file or to the current directory ($PWD ) |
no_metadata | Whether the diagram should skip metadata at the end |
validate | If true, perform schema validation |
Definition at line 1200 of file yaml_decoders.cc.
YAML::Emitter & clanguml::config::operator<< | ( | YAML::Emitter & | out, |
const callee_type & | m | ||
) |
Definition at line 95 of file yaml_emitters.cc.
YAML::Emitter & clanguml::config::operator<< | ( | YAML::Emitter & | out, |
const context_config & | c | ||
) |
Definition at line 113 of file yaml_emitters.cc.
YAML::Emitter & clanguml::config::operator<< | ( | YAML::Emitter & | out, |
const glob_t & | g | ||
) |
Definition at line 310 of file yaml_emitters.cc.
YAML::Emitter & clanguml::config::operator<< | ( | YAML::Emitter & | out, |
const member_order_t & | r | ||
) |
Definition at line 101 of file yaml_emitters.cc.
YAML::Emitter & clanguml::config::operator<< | ( | YAML::Emitter & | out, |
const method_type & | m | ||
) |
Definition at line 89 of file yaml_emitters.cc.
YAML::Emitter & clanguml::config::operator<< | ( | YAML::Emitter & | out, |
const package_type_t & | r | ||
) |
Definition at line 107 of file yaml_emitters.cc.
std::string clanguml::config::to_string | ( | callee_type | mt | ) |
Definition at line 125 of file config.cc.
std::string clanguml::config::to_string | ( | const comment_parser_t | cp | ) |
std::string clanguml::config::to_string | ( | const hint_t | t | ) |
Definition at line 27 of file config.cc.
std::string clanguml::config::to_string | ( | const method_arguments | ma | ) |
std::string clanguml::config::to_string | ( | context_direction_t | cd | ) |
std::string clanguml::config::to_string | ( | element_filter_t::filtered_type | ft | ) |
Definition at line 50 of file config.cc.
std::string clanguml::config::to_string | ( | filter_mode_t | fm | ) |
std::string clanguml::config::to_string | ( | location_t | cp | ) |
std::string clanguml::config::to_string | ( | member_order_t | mo | ) |
std::string clanguml::config::to_string | ( | method_type | mt | ) |
Definition at line 102 of file config.cc.
std::string clanguml::config::to_string | ( | package_type_t | pt | ) |