rippled
Classes | Public Member Functions | Static Private Member Functions | List of all members
ripple::CountedObject< Object > Class Template Reference

Tracks the number of instances of an object. More...

Classes

class  Counter
 

Public Member Functions

 CountedObject () noexcept
 
 CountedObject (CountedObject const &) noexcept
 
CountedObjectoperator= (CountedObject const &) noexcept=default
 
 ~CountedObject () noexcept
 

Static Private Member Functions

static CountergetCounter () noexcept
 

Detailed Description

template<class Object>
class ripple::CountedObject< Object >

Tracks the number of instances of an object.

Derived classes have their instances counted automatically. This is used for reporting purposes.

Definition at line 110 of file CountedObject.h.

Constructor & Destructor Documentation

◆ CountedObject() [1/2]

template<class Object >
ripple::CountedObject< Object >::CountedObject ( )
noexcept

Definition at line 113 of file CountedObject.h.

◆ CountedObject() [2/2]

template<class Object >
ripple::CountedObject< Object >::CountedObject ( CountedObject< Object > const &  )
noexcept

Definition at line 118 of file CountedObject.h.

◆ ~CountedObject()

template<class Object >
ripple::CountedObject< Object >::~CountedObject ( )
noexcept

Definition at line 126 of file CountedObject.h.

Member Function Documentation

◆ operator=()

template<class Object >
CountedObject& ripple::CountedObject< Object >::operator= ( CountedObject< Object > const &  )
defaultnoexcept

◆ getCounter()

template<class Object >
static Counter& ripple::CountedObject< Object >::getCounter ( )
staticprivatenoexcept

Definition at line 153 of file CountedObject.h.