Lumiera
0.pre.03
»edit your freedom«
|
#include "lib/test/testdummy.hpp"
A Dummy object for tests.
Each instance includes some distinct random identity marker plus a checksum facility to verify instance management, i.e. to verify each created instance was properly destroyed after use.
Definition at line 50 of file testdummy.hpp.
Public Member Functions | |
Dummy (int v) | |
Dummy (Dummy &&oDummy) | |
virtual long | acc (int i) |
a dummy API operation | |
int | getVal () const |
Dummy & | operator= (Dummy &&oDummy) |
void | setVal (int newVal) |
Static Public Member Functions | |
static void | activateCtorFailure (bool indeed=true) |
static long & | checksum () |
Friends | |
void | swap (Dummy &dum1, Dummy &dum2) |
Private Member Functions | |
void | init () |
Private Member Functions inherited from MoveAssign | |
MoveAssign (MoveAssign &&)=default | |
MoveAssign (MoveAssign const &)=delete | |
MoveAssign & | operator= (MoveAssign &&)=default |
MoveAssign & | operator= (MoveAssign const &)=delete |
Private Attributes | |
int | val_ |
Static Private Attributes | |
static long | _local_checksum = 0 |
to verify ctor/dtor calls More... | |
static bool | _throw_in_ctor = false |
|
staticprivate |
dum2 | checksum neutral |
Definition at line 109 of file testdummy.hpp.