ArmNN
 25.11
Loading...
Searching...
No Matches
CheckLocation Struct Reference

#include <Exceptions.hpp>

Public Member Functions

 CheckLocation (const char *func, const char *file, unsigned int line)
std::string AsString () const
std::string FileLine () const

Public Attributes

const char * m_Function
const char * m_File
unsigned int m_Line

Detailed Description

Definition at line 14 of file Exceptions.hpp.

Constructor & Destructor Documentation

◆ CheckLocation()

CheckLocation ( const char * func,
const char * file,
unsigned int line )
inline

Definition at line 20 of file Exceptions.hpp.

23 : m_Function{func}
24 , m_File{file}
25 , m_Line{line}
26 {
27 }
const char * m_Function
const char * m_File
unsigned int m_Line

Member Function Documentation

◆ AsString()

std::string AsString ( ) const
inline

Definition at line 29 of file Exceptions.hpp.

30 {
31 std::stringstream ss;
32 ss << " at function " << m_Function
33 << " [" << m_File << ':' << m_Line << "]";
34 return ss.str();
35 }

◆ FileLine()

std::string FileLine ( ) const
inline

Definition at line 37 of file Exceptions.hpp.

38 {
39 std::stringstream ss;
40 ss << " [" << m_File << ':' << m_Line << "]";
41 return ss.str();
42 }

Member Data Documentation

◆ m_File

const char* m_File

Definition at line 17 of file Exceptions.hpp.

◆ m_Function

const char* m_Function

Definition at line 16 of file Exceptions.hpp.

◆ m_Line

unsigned int m_Line

Definition at line 18 of file Exceptions.hpp.


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