#include <utl/CountedObject.h>
#include <utl/CountedObjectRegistry.h>
#include <tst/Verify.h>
#include <cppunit/extensions/HelperMacros.h>
#include <iostream>
Go to the source code of this file.
|
#define | ASSERT_EQUAL(x, y) CPPUNIT_ASSERT(Verify<Equal>(x, y)) |
|
#define | ASSERT_EXTENDED_OBJECT_COUNTS(o, c, d, e, cp, a) |
|
#define | ASSERT_OBJECT_COUNTS(o, c, d, e) |
|
#define | PRINT(o) |
|
#define ASSERT_EQUAL |
( |
|
x, |
|
|
|
y |
|
) |
| CPPUNIT_ASSERT(Verify<Equal>(x, y)) |
#define ASSERT_EXTENDED_OBJECT_COUNTS |
( |
|
o, |
|
|
|
c, |
|
|
|
d, |
|
|
|
e, |
|
|
|
cp, |
|
|
|
a |
|
) |
| |
#define ASSERT_OBJECT_COUNTS |
( |
|
o, |
|
|
|
c, |
|
|
|
d, |
|
|
|
e |
|
) |
| |
Value:std::cout << 'c' << utl::CountedObject<o>::GetObjectsCreated() << " " \
static Counter GetObjectsAssigned()
static Counter GetObjectsCopied()
static Counter GetObjectsExisting()
difference of number of calls to constructor and destructor
Mix-in class for counting creation and destruction of objects.
Definition at line 25 of file testCountedObject.cc.