rippled
Loading...
Searching...
No Matches
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...

#include <CountedObject.h>

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 125 of file CountedObject.h.

Constructor & Destructor Documentation

◆ CountedObject() [1/2]

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

Definition at line 136 of file CountedObject.h.

◆ CountedObject() [2/2]

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

Definition at line 141 of file CountedObject.h.

◆ ~CountedObject()

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

Definition at line 149 of file CountedObject.h.

Member Function Documentation

◆ getCounter()

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

Definition at line 129 of file CountedObject.h.

◆ operator=()

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