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

#include <CL/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 charfileName () const noexcept
 
constexpr const charfunctionName () 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 54 of file common.hpp.

Constructor & Destructor Documentation

◆ code_location() [1/2]

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

Definition at line 68 of file common.hpp.

◆ code_location() [2/2]

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

Definition at line 72 of file common.hpp.

Member Function Documentation

◆ columnNumber()

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

Definition at line 76 of file common.hpp.

◆ current()

static constexpr code_location cl::sycl::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 56 of file common.hpp.

◆ fileName()

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

Definition at line 77 of file common.hpp.

◆ functionName()

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

Definition at line 78 of file common.hpp.

◆ lineNumber()

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

Definition at line 75 of file common.hpp.


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