Ethereum  PoC-8
The C++ Implementation of Ethereum
dev::InvariantChecker Class Reference

RAII checker for invariant assertions. More...

#include <Common.h>

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...
 

Detailed Description

RAII checker for invariant assertions.

Definition at line 218 of file Common.h.

Constructor & Destructor Documentation

◆ InvariantChecker()

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

Definition at line 221 of file Common.h.

◆ ~InvariantChecker()

dev::InvariantChecker::~InvariantChecker ( )
inline

Definition at line 222 of file Common.h.

Member Function Documentation

◆ checkInvariants()

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 36 of file Common.cpp.


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