relObject Class Reference

#include <relObject.h>

Inheritance diagram for relObject:

Inheritance graph
[legend]
Collaboration diagram for relObject:

Collaboration graph
[legend]

Detailed Description

The purpose of this class is to count the number of objects instantiated within the CrocoPat library.

This is useful for checking memory deallocation.

Definition at line 40 of file relObject.h.

Public Member Functions

 relObject ()
 relObject (const relObject &pObj)
 We define a copy constructor for the case that an implicitly defined copy constructor of a subclass is used.
virtual ~relObject ()
 This virtual destructor forces that all derivated components also have virtual destructors without virtual declaration.

Static Public Member Functions

static const int GetCount ()

Private Member Functions

void operator, (const relObject &)
 It should be not allowed to use the standard operators.

Static Private Attributes

static long count
 Counts the number of instatiated objects.


Constructor & Destructor Documentation

relObject::relObject (  )  [inline]

Definition at line 60 of file relObject.h.

References count.

relObject::relObject ( const relObject pObj  )  [inline]

We define a copy constructor for the case that an implicitly defined copy constructor of a subclass is used.

Definition at line 69 of file relObject.h.

References count.

virtual relObject::~relObject (  )  [inline, virtual]

This virtual destructor forces that all derivated components also have virtual destructors without virtual declaration.

Definition at line 77 of file relObject.h.

References count.


Member Function Documentation

static const int relObject::GetCount (  )  [inline, static]

Definition at line 45 of file relObject.h.

References count.

Referenced by crocopat().

Here is the caller graph for this function:

void relObject::operator, ( const relObject  )  [private]

It should be not allowed to use the standard operators.

Uses the standard operator '='.


Field Documentation

long relObject::count [static, private]

Counts the number of instatiated objects.

Definition at line 52 of file relObject.h.

Referenced by GetCount(), relObject(), and ~relObject().


The documentation for this class was generated from the following files:
Generated on Fri Jun 6 22:23:06 2008 for CrocoPat by  doxygen 1.5.1