ZeroErr
载入中...
搜索中...
未找到
zeroerr::AssertionData结构体 参考

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

#include <assert.h>

类 zeroerr::AssertionData 继承关系图:
zeroerr::AssertionData 的协作图:

Public 成员函数

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

Public 属性

const char * file
unsigned line
assert_info info
bool passed
zeroerr::String message
zeroerr::String cond

详细描述

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

构造及析构函数说明

◆ AssertionData()

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

成员函数说明

◆ log()

zeroerr::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

类成员变量说明

◆ cond

zeroerr::String zeroerr::AssertionData::cond

◆ file

const char* zeroerr::AssertionData::file

◆ info

assert_info zeroerr::AssertionData::info

◆ line

unsigned zeroerr::AssertionData::line

◆ message

zeroerr::String zeroerr::AssertionData::message

◆ passed

bool zeroerr::AssertionData::passed

该结构体的文档由以下文件生成: