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/11]
template<>
eid_t clanguml::common::to_id |
( |
const clang::CXXRecordDecl & |
declaration | ) |
|
◆ to_id() [2/11]
template<>
eid_t clanguml::common::to_id |
( |
const clang::EnumDecl & |
declaration | ) |
|
◆ to_id() [3/11]
template<>
eid_t clanguml::common::to_id |
( |
const clang::EnumType & |
type | ) |
|
◆ to_id() [4/11]
template<>
eid_t clanguml::common::to_id |
( |
const clang::NamespaceDecl & |
declaration | ) |
|
◆ to_id() [5/11]
eid_t clanguml::common::to_id |
( |
const clang::QualType & |
type, |
|
|
const clang::ASTContext & |
ctx |
|
) |
| |
◆ to_id() [6/11]
template<>
eid_t clanguml::common::to_id |
( |
const clang::RecordDecl & |
declaration | ) |
|
◆ to_id() [7/11]
template<>
eid_t clanguml::common::to_id |
( |
const clang::TagDecl & |
declaration | ) |
|
◆ to_id() [8/11]
template<>
eid_t clanguml::common::to_id |
( |
const clang::TemplateSpecializationType & |
type | ) |
|
◆ to_id() [9/11]
template<>
eid_t clanguml::common::to_id |
( |
const std::filesystem::path & |
type | ) |
|
◆ to_id() [10/11]
template<>
eid_t clanguml::common::to_id |
( |
const std::string & |
full_name | ) |
|
Definition at line 418 of file clang_utils.cc.
419{
420 return static_cast<eid_t>(
421 static_cast<uint64_t>(std::hash<std::string>{}(full_name)));
422}
◆ to_id() [11/11]
template<typename T >
eid_t clanguml::common::to_id |
( |
const T & |
declaration | ) |
|