Fabcoin Core  0.16.2
P2P Digital Currency
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
dev::InvariantChecker Class Reference

RAII checker for invariant assertions. More...

#include <Common.h>

Collaboration diagram for dev::InvariantChecker:
[legend]

Public Member Functions

 InvariantChecker (HasInvariants *_this, char const *_fn, char const *_file, int _line)
 
 ~InvariantChecker ()
 

Static Public Member Functions

static void checkInvariants (HasInvariants const *_this, char const *_fn, char const *_file, int line, bool _pre)
 Check invariants are met, throw if not. More...
 

Private Attributes

HasInvariants const * m_this
 
char const * m_function
 
char const * m_file
 
int m_line
 

Detailed Description

RAII checker for invariant assertions.

Definition at line 237 of file Common.h.

Constructor & Destructor Documentation

dev::InvariantChecker::InvariantChecker ( HasInvariants _this,
char const *  _fn,
char const *  _file,
int  _line 
)
inline

Definition at line 240 of file Common.h.

dev::InvariantChecker::~InvariantChecker ( )
inline

Definition at line 241 of file Common.h.

Member Function Documentation

void dev::InvariantChecker::checkInvariants ( HasInvariants const *  _this,
char const *  _fn,
char const *  _file,
int  line,
bool  _pre 
)
static

Check invariants are met, throw if not.

Definition at line 40 of file Common.cpp.

Here is the call graph for this function:

Member Data Documentation

char const* dev::InvariantChecker::m_file
private

Definition at line 248 of file Common.h.

char const* dev::InvariantChecker::m_function
private

Definition at line 247 of file Common.h.

int dev::InvariantChecker::m_line
private

Definition at line 249 of file Common.h.

HasInvariants const* dev::InvariantChecker::m_this
private

Definition at line 246 of file Common.h.


The documentation for this class was generated from the following files: