ADOL-C: Automatic Differentiation in C/C++ 2.7.3
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
ADOLCError::source_location Struct Reference

Lightweight source-location record used by ADOL-C exceptions. More...

#include <adolcerror.h>

Collaboration diagram for ADOLCError::source_location:
Collaboration graph
[legend]

Public Member Functions

constexpr source_location (std::string_view file, std::string_view func, int line)
 
constexpr std::string_view file () const
 
constexpr std::string_view func () const
 
constexpr int line () const
 

Public Attributes

std::string_view file_
 
std::string_view func_
 
int line_
 

Detailed Description

Lightweight source-location record used by ADOL-C exceptions.

CURRENT_LOCATION supplies the file, function, and line at the call site.

Constructor & Destructor Documentation

◆ source_location()

constexpr ADOLCError::source_location::source_location ( std::string_view  file,
std::string_view  func,
int  line 
)
inlineconstexpr

Member Function Documentation

◆ file()

constexpr std::string_view ADOLCError::source_location::file ( ) const
inlineconstexpr

◆ func()

constexpr std::string_view ADOLCError::source_location::func ( ) const
inlineconstexpr

◆ line()

constexpr int ADOLCError::source_location::line ( ) const
inlineconstexpr

Member Data Documentation

◆ file_

std::string_view ADOLCError::source_location::file_

◆ func_

std::string_view ADOLCError::source_location::func_

◆ line_

int ADOLCError::source_location::line_

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