cartobase 6.0.20
carto::TestRCObject Class Reference

This test class just counts the number of instances of this type, in order to allow rc_ptr debugging. More...

#include <cartobase/smart/test_rcobject.h>

Inheritance diagram for carto::TestRCObject:
Collaboration diagram for carto::TestRCObject:

Public Member Functions

 TestRCObject (bool verbose=false)
virtual ~TestRCObject ()
void setVerbose (bool verbose)
bool verbose () const
Public Member Functions inherited from carto::RCObject
 RCObject ()
 RCObject (const RCObject &)
RCObject & operator= (const RCObject &)
virtual ~RCObject ()

Static Public Member Functions

static unsigned long globalCount ()
static RCObject * newTestObject ()

Additional Inherited Members

Public Types inherited from carto::RCObject
typedef int RefCounterType
Static Protected Member Functions inherited from carto::DefaultRefConstruction
template<class T>
static const T * release (const_ref< T > *)

Detailed Description

This test class just counts the number of instances of this type, in order to allow rc_ptr debugging.

Definition at line 11 of file test_rcobject.h.

Constructor & Destructor Documentation

◆ TestRCObject()

carto::TestRCObject::TestRCObject ( bool verbose = false)

References verbose().

◆ ~TestRCObject()

virtual carto::TestRCObject::~TestRCObject ( )
virtual

Member Function Documentation

◆ globalCount()

unsigned long carto::TestRCObject::globalCount ( )
static

◆ newTestObject()

RCObject * carto::TestRCObject::newTestObject ( )
static

◆ setVerbose()

void carto::TestRCObject::setVerbose ( bool verbose)

References verbose().

◆ verbose()

bool carto::TestRCObject::verbose ( ) const
inline

Definition at line 19 of file test_rcobject.h.

Referenced by setVerbose(), and TestRCObject().


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