ZeroErr
zeroerr::AssertionData Struct Reference

AssertionData is a struct that contains all the information of an assertion. It will be thrown as an exception when the assertion failed. More...

#include <assert.h>

Inheritance diagram for zeroerr::AssertionData:
Collaboration diagram for zeroerr::AssertionData:

Public Member Functions

 AssertionData (const char *file, unsigned line, const char *cond, assert_info info)
 
void setResult (ExprResult &&result)
 
void setException (const std::exception &e)
 
std::string log ()
 
void operator() ()
 
bool shouldThrow ()
 

Public Attributes

const char * file
 
unsigned line
 
assert_info info
 
bool passed
 
std::string message
 
std::string cond
 

Detailed Description

AssertionData is a struct that contains all the information of an assertion. It will be thrown as an exception when the assertion failed.

Constructor & Destructor Documentation

◆ AssertionData()

zeroerr::AssertionData::AssertionData ( const char *  file,
unsigned  line,
const char *  cond,
assert_info  info 
)
inline

Member Function Documentation

◆ log()

std::string zeroerr::AssertionData::log ( )
inline

◆ operator()()

void zeroerr::AssertionData::operator() ( )
inline

◆ setException()

void zeroerr::AssertionData::setException ( const std::exception &  e)
inline

◆ setResult()

void zeroerr::AssertionData::setResult ( ExprResult &&  result)
inline

◆ shouldThrow()

bool zeroerr::AssertionData::shouldThrow ( )
inline

Member Data Documentation

◆ cond

std::string zeroerr::AssertionData::cond

◆ file

const char* zeroerr::AssertionData::file

◆ info

assert_info zeroerr::AssertionData::info

◆ line

unsigned zeroerr::AssertionData::line

◆ message

std::string zeroerr::AssertionData::message

◆ passed

bool zeroerr::AssertionData::passed

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