These methods provide the main mechanism for generating globally unique identifiers for all elements in the diagrams. The identifiers must be unique between different translation units in order for element relationships to be properly rendered in diagrams.
◆ to_id() [1/14]
template<>
| eid_t clanguml::common::to_id |
( |
const clang::CXXRecordDecl & |
declaration | ) |
|
◆ to_id() [2/14]
template<>
| eid_t clanguml::common::to_id |
( |
const clang::EnumDecl & |
declaration | ) |
|
◆ to_id() [3/14]
template<>
| eid_t clanguml::common::to_id |
( |
const clang::EnumType & |
type | ) |
|
◆ to_id() [4/14]
template<>
| eid_t clanguml::common::to_id |
( |
const clang::NamespaceDecl & |
declaration | ) |
|
◆ to_id() [5/14]
template<>
| eid_t clanguml::common::to_id |
( |
const clang::ObjCCategoryDecl & |
type | ) |
|
Definition at line 487 of file clang_utils.cc.
488{
489 return to_id(fmt::format(
"__objc__category__{}", type.getNameAsString()));
490}
◆ to_id() [6/14]
template<>
| eid_t clanguml::common::to_id |
( |
const clang::ObjCInterfaceDecl & |
type | ) |
|
Definition at line 492 of file clang_utils.cc.
493{
494 return to_id(fmt::format(
"__objc__interface__{}", type.getNameAsString()));
495}
◆ to_id() [7/14]
template<>
| eid_t clanguml::common::to_id |
( |
const clang::ObjCProtocolDecl & |
type | ) |
|
Definition at line 497 of file clang_utils.cc.
498{
499 return to_id(fmt::format(
"__objc__protocol__{}", type.getNameAsString()));
500}
◆ to_id() [8/14]
| eid_t clanguml::common::to_id |
( |
const clang::QualType & |
type, |
|
|
const clang::ASTContext & |
ctx |
|
) |
| |
◆ to_id() [9/14]
template<>
| eid_t clanguml::common::to_id |
( |
const clang::RecordDecl & |
declaration | ) |
|
◆ to_id() [10/14]
template<>
| eid_t clanguml::common::to_id |
( |
const clang::TagDecl & |
declaration | ) |
|
◆ to_id() [11/14]
template<>
| eid_t clanguml::common::to_id |
( |
const clang::TemplateSpecializationType & |
type | ) |
|
◆ to_id() [12/14]
template<>
| eid_t clanguml::common::to_id |
( |
const std::filesystem::path & |
type | ) |
|
◆ to_id() [13/14]
template<>
| eid_t clanguml::common::to_id |
( |
const std::string & |
full_name | ) |
|
Definition at line 466 of file clang_utils.cc.
467{
468 return static_cast<eid_t>(
469 static_cast<uint64_t>(std::hash<std::string>{}(full_name)));
470}
◆ to_id() [14/14]
template<typename T >
| eid_t clanguml::common::to_id |
( |
const T & |
declaration | ) |
|