Classes | Macros | Functions
testCountedObject.cc File Reference
#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.

Classes

class  testCountedObject::Object< i >
 
class  testCountedObject
 

Macros

#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)
 

Functions

 CPPUNIT_TEST_SUITE_REGISTRATION (testCountedObject)
 

Macro Definition Documentation

#define ASSERT_EQUAL (   x,
 
)    CPPUNIT_ASSERT(Verify<Equal>(x, y))

Definition at line 13 of file testCountedObject.cc.

#define ASSERT_EXTENDED_OBJECT_COUNTS (   o,
  c,
  d,
  e,
  cp,
 
)
Value:
#define ASSERT_OBJECT_COUNTS(o, c, d, e)
#define ASSERT_EQUAL(x, y)
Mix-in class for counting creation and destruction of objects.
Definition: CountedObject.h:30

Definition at line 20 of file testCountedObject.cc.

Referenced by testCountedObject::testCopyAssign().

#define ASSERT_OBJECT_COUNTS (   o,
  c,
  d,
 
)
Value:
#define ASSERT_EQUAL(x, y)
Mix-in class for counting creation and destruction of objects.
Definition: CountedObject.h:30

Definition at line 15 of file testCountedObject.cc.

Referenced by testCountedObject::testCountTwoTypes(), and testCountedObject::testSimpleCount().

#define PRINT (   o)
Value:
std::cout << 'c' << utl::CountedObject<o>::GetObjectsCreated() << " " \
static Counter GetObjectsAssigned()
Definition: CountedObject.h:48
static Counter GetObjectsCopied()
Definition: CountedObject.h:45
static Counter GetObjectsExisting()
difference of number of calls to constructor and destructor
Definition: CountedObject.h:42
Mix-in class for counting creation and destruction of objects.
Definition: CountedObject.h:30

Definition at line 25 of file testCountedObject.cc.

Function Documentation

CPPUNIT_TEST_SUITE_REGISTRATION ( testCountedObject  )

, generated on Tue Sep 26 2023.