rippled
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...

Public Member Functions

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

Static Private Member Functions

static auto & getCounter () 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 124 of file CountedObject.h.

Constructor & Destructor Documentation

◆ CountedObject() [1/2]

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

Definition at line 135 of file CountedObject.h.

◆ CountedObject() [2/2]

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

Definition at line 140 of file CountedObject.h.

◆ ~CountedObject()

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

Definition at line 148 of file CountedObject.h.

Member Function Documentation

◆ getCounter()

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

Definition at line 128 of file CountedObject.h.

◆ operator=()

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