ArmNN
 24.02
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  }

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  }

References CheckLocation::m_File, CheckLocation::m_Function, and CheckLocation::m_Line.

Referenced by armnnUtils::CheckValidSize(), armnnUtils::NonNegative(), armnnDeserializer::ToConstTensor(), armnnDeserializer::ToTensorInfo(), armnnUtils::VerifyInt32(), and Layer::VerifyLayerConnections().

◆ 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  }

References CheckLocation::m_File, and CheckLocation::m_Line.

Member Data Documentation

◆ m_File

const char* m_File

Definition at line 17 of file Exceptions.hpp.

Referenced by CheckLocation::AsString(), and CheckLocation::FileLine().

◆ m_Function

const char* m_Function

Definition at line 16 of file Exceptions.hpp.

Referenced by CheckLocation::AsString().

◆ m_Line

unsigned int m_Line

Definition at line 18 of file Exceptions.hpp.

Referenced by CheckLocation::AsString(), and CheckLocation::FileLine().


The documentation for this struct was generated from the following file:
armnn::CheckLocation::m_File
const char * m_File
Definition: Exceptions.hpp:17
armnn::CheckLocation::m_Line
unsigned int m_Line
Definition: Exceptions.hpp:18
armnn::CheckLocation::m_Function
const char * m_Function
Definition: Exceptions.hpp:16