Base class of all diagram elements that have source location.
More...
Base class of all diagram elements that have source location.
Definition at line 30 of file source_location.h.
#include <source_location.h>
◆ source_location() [1/2]
clanguml::common::model::source_location::source_location |
( |
| ) |
|
|
default |
◆ source_location() [2/2]
clanguml::common::model::source_location::source_location |
( |
std::string |
f, |
|
|
unsigned int |
l |
|
) |
| |
|
inline |
◆ column()
unsigned int clanguml::common::model::source_location::column |
( |
| ) |
const |
|
inline |
Get the source location column number.
- Returns
- Column number.
Definition at line 105 of file source_location.h.
◆ file()
const std::string & clanguml::common::model::source_location::file |
( |
| ) |
const |
|
inline |
Return absolute source file path.
- Returns
- Absolute file path.
Definition at line 45 of file source_location.h.
◆ file_relative()
const std::string & clanguml::common::model::source_location::file_relative |
( |
| ) |
const |
|
inline |
Return source file path relative to relative_to
config option.
- Returns
- Relative file path.
Definition at line 59 of file source_location.h.
◆ line()
unsigned int clanguml::common::model::source_location::line |
( |
| ) |
const |
|
inline |
Get the source location line number.
- Returns
- Line number.
Definition at line 91 of file source_location.h.
◆ location_id()
unsigned int clanguml::common::model::source_location::location_id |
( |
| ) |
const |
|
inline |
Get the source location id.
The location id is equivalent to Clang's SourceLocation::getHashValue()
- Returns
- Location id.
Definition at line 121 of file source_location.h.
◆ set_column()
void clanguml::common::model::source_location::set_column |
( |
const unsigned |
column | ) |
|
|
inline |
◆ set_file()
void clanguml::common::model::source_location::set_file |
( |
const std::string & |
file | ) |
|
|
inline |
◆ set_file_relative()
void clanguml::common::model::source_location::set_file_relative |
( |
const std::string & |
file | ) |
|
|
inline |
◆ set_line()
void clanguml::common::model::source_location::set_line |
( |
const unsigned |
line | ) |
|
|
inline |
Set the source location line number.
- Parameters
-
Definition at line 98 of file source_location.h.
◆ set_location_id()
void clanguml::common::model::source_location::set_location_id |
( |
unsigned int |
h | ) |
|
|
inline |
Set the source location id.
The location id is equivalent to Clang's SourceLocation::getHashValue()
- Parameters
-
Definition at line 130 of file source_location.h.
◆ set_translation_unit()
void clanguml::common::model::source_location::set_translation_unit |
( |
const std::string & |
translation_unit | ) |
|
|
inline |
Set the path to translation unit, from which this source location was visited.
- Parameters
-
translation_unit | Path to the translation unit. |
Definition at line 81 of file source_location.h.
◆ translation_unit()
const std::string & clanguml::common::model::source_location::translation_unit |
( |
| ) |
const |
|
inline |
Get the translation unit, from which this source location was visited.
- Returns
- Path to the translation unit.
Definition at line 73 of file source_location.h.
◆ column_
unsigned int clanguml::common::model::source_location::column_ {0} |
|
private |
◆ file_
std::string clanguml::common::model::source_location::file_ |
|
private |
◆ file_relative_
std::string clanguml::common::model::source_location::file_relative_ |
|
private |
◆ hash_
unsigned int clanguml::common::model::source_location::hash_ {0} |
|
private |
◆ line_
unsigned int clanguml::common::model::source_location::line_ {0} |
|
private |
◆ translation_unit_
std::string clanguml::common::model::source_location::translation_unit_ |
|
private |
The documentation for this class was generated from the following file: