DPC++ Runtime
Runtime libraries for oneAPI DPC++
sycl::_V1::detail::code_location Struct Reference

#include <sycl/detail/common.hpp>

Public Member Functions

constexpr code_location (const char *file, const char *func, int line, int col) noexcept
 
constexpr code_location () noexcept
 
constexpr unsigned long lineNumber () const noexcept
 
constexpr unsigned long columnNumber () const noexcept
 
constexpr const char * fileName () const noexcept
 
constexpr const char * functionName () const noexcept
 

Static Public Member Functions

static constexpr code_location current (const char *fileName=__CODELOC_FILE_NAME, const char *funcName=__CODELOC_FUNCTION, unsigned long lineNo=__CODELOC_LINE, unsigned long columnNo=__CODELOC_COLUMN) noexcept
 

Detailed Description

Definition at line 66 of file common.hpp.

Constructor & Destructor Documentation

◆ code_location() [1/2]

constexpr sycl::_V1::detail::code_location::code_location ( const char *  file,
const char *  func,
int  line,
int  col 
)
inlineconstexprnoexcept

Definition at line 80 of file common.hpp.

◆ code_location() [2/2]

constexpr sycl::_V1::detail::code_location::code_location ( )
inlineconstexprnoexcept

Definition at line 84 of file common.hpp.

Member Function Documentation

◆ columnNumber()

constexpr unsigned long sycl::_V1::detail::code_location::columnNumber ( ) const
inlineconstexprnoexcept

Definition at line 88 of file common.hpp.

Referenced by sycl::_V1::detail::queue_impl::instrumentationProlog().

◆ current()

static constexpr code_location sycl::_V1::detail::code_location::current ( const char *  fileName = __CODELOC_FILE_NAME,
const char *  funcName = __CODELOC_FUNCTION,
unsigned long  lineNo = __CODELOC_LINE,
unsigned long  columnNo = __CODELOC_COLUMN 
)
inlinestaticconstexprnoexcept

Definition at line 68 of file common.hpp.

◆ fileName()

constexpr const char* sycl::_V1::detail::code_location::fileName ( ) const
inlineconstexprnoexcept

Definition at line 89 of file common.hpp.

Referenced by sycl::_V1::detail::queue_impl::instrumentationProlog().

◆ functionName()

constexpr const char* sycl::_V1::detail::code_location::functionName ( ) const
inlineconstexprnoexcept

Definition at line 90 of file common.hpp.

Referenced by sycl::_V1::detail::queue_impl::instrumentationProlog().

◆ lineNumber()

constexpr unsigned long sycl::_V1::detail::code_location::lineNumber ( ) const
inlineconstexprnoexcept

Definition at line 87 of file common.hpp.

Referenced by sycl::_V1::detail::queue_impl::instrumentationProlog().


The documentation for this struct was generated from the following file: