The Gaudi Framework  master (594c33fa)
Gaudi::PluginService::Details::source_location Struct Reference

#include </builds/gaudi/Gaudi/GaudiPluginService/include/Gaudi/PluginServiceV2.h>

Public Member Functions

constexpr source_location () noexcept
 
constexpr uint_least32_t line () const noexcept
 
constexpr uint_least32_t column () const noexcept
 
constexpr const char * file_name () const noexcept
 
constexpr const char * function_name () const noexcept
 

Static Public Member Functions

static constexpr source_location current (const char *__file=__builtin_FILE(), const char *__func=__builtin_FUNCTION(), int __line=__builtin_LINE(), int __col=0) noexcept
 

Private Attributes

const char * _M_file
 
const char * _M_func
 
uint_least32_t _M_line
 
uint_least32_t _M_col
 

Detailed Description

Definition at line 42 of file PluginServiceV2.h.

Constructor & Destructor Documentation

◆ source_location()

constexpr Gaudi::PluginService::Details::source_location::source_location ( )
inlineconstexprnoexcept

Definition at line 56 of file PluginServiceV2.h.

56 : _M_file( "unknown" ), _M_func( _M_file ), _M_line( 0 ), _M_col( 0 ) {}

Member Function Documentation

◆ column()

constexpr uint_least32_t Gaudi::PluginService::Details::source_location::column ( ) const
inlineconstexprnoexcept

Definition at line 60 of file PluginServiceV2.h.

60 { return _M_col; }

◆ current()

static constexpr source_location Gaudi::PluginService::Details::source_location::current ( const char *  __file = __builtin_FILE(),
const char *  __func = __builtin_FUNCTION(),
int  __line = __builtin_LINE(),
int  __col = 0 
)
inlinestaticconstexprnoexcept

Definition at line 45 of file PluginServiceV2.h.

47  {
48  source_location __loc;
49  __loc._M_file = __file;
50  __loc._M_func = __func;
51  __loc._M_line = __line;
52  __loc._M_col = __col;
53  return __loc;
54  }

◆ file_name()

constexpr const char* Gaudi::PluginService::Details::source_location::file_name ( ) const
inlineconstexprnoexcept

Definition at line 61 of file PluginServiceV2.h.

61 { return _M_file; }

◆ function_name()

constexpr const char* Gaudi::PluginService::Details::source_location::function_name ( ) const
inlineconstexprnoexcept

Definition at line 62 of file PluginServiceV2.h.

62 { return _M_func; }

◆ line()

constexpr uint_least32_t Gaudi::PluginService::Details::source_location::line ( ) const
inlineconstexprnoexcept

Definition at line 59 of file PluginServiceV2.h.

59 { return _M_line; }

Member Data Documentation

◆ _M_col

uint_least32_t Gaudi::PluginService::Details::source_location::_M_col
private

Definition at line 68 of file PluginServiceV2.h.

◆ _M_file

const char* Gaudi::PluginService::Details::source_location::_M_file
private

Definition at line 65 of file PluginServiceV2.h.

◆ _M_func

const char* Gaudi::PluginService::Details::source_location::_M_func
private

Definition at line 66 of file PluginServiceV2.h.

◆ _M_line

uint_least32_t Gaudi::PluginService::Details::source_location::_M_line
private

Definition at line 67 of file PluginServiceV2.h.


The documentation for this struct was generated from the following file:
Gaudi::PluginService::Details::source_location::_M_func
const char * _M_func
Definition: PluginServiceV2.h:66
Gaudi::PluginService::Details::source_location::_M_line
uint_least32_t _M_line
Definition: PluginServiceV2.h:67
Gaudi::PluginService::Details::source_location::source_location
constexpr source_location() noexcept
Definition: PluginServiceV2.h:56
Gaudi::PluginService::Details::source_location::_M_file
const char * _M_file
Definition: PluginServiceV2.h:65
Gaudi::PluginService::Details::source_location::_M_col
uint_least32_t _M_col
Definition: PluginServiceV2.h:68