rippled
Public Member Functions | Protected Attributes | List of all members
ripple::CountedObject< Object >::Counter Class Reference
Inheritance diagram for ripple::CountedObject< Object >::Counter:
Inheritance graph
[legend]
Collaboration diagram for ripple::CountedObject< Object >::Counter:
Collaboration graph
[legend]

Public Member Functions

 Counter () noexcept
 
char const * getName () const override
 
void checkPureVirtual () const override
 
int increment () noexcept
 
int decrement () noexcept
 
int getCount () const noexcept
 
CounterBasegetNext () const noexcept
 

Protected Attributes

std::atomic< int > m_count
 
CounterBasem_next
 

Detailed Description

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

Definition at line 132 of file CountedObject.h.

Constructor & Destructor Documentation

◆ Counter()

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

Definition at line 135 of file CountedObject.h.

Member Function Documentation

◆ getName()

template<class Object >
char const* ripple::CountedObject< Object >::Counter::getName ( ) const
overridevirtual

Implements ripple::CountedObjects::CounterBase.

Definition at line 140 of file CountedObject.h.

◆ checkPureVirtual()

template<class Object >
void ripple::CountedObject< Object >::Counter::checkPureVirtual ( ) const
overridevirtual

Implements ripple::CountedObjects::CounterBase.

Definition at line 146 of file CountedObject.h.

◆ increment()

int ripple::CountedObjects::CounterBase::increment ( )
noexceptinherited

Definition at line 56 of file CountedObject.h.

◆ decrement()

int ripple::CountedObjects::CounterBase::decrement ( )
noexceptinherited

Definition at line 62 of file CountedObject.h.

◆ getCount()

int ripple::CountedObjects::CounterBase::getCount ( ) const
noexceptinherited

Definition at line 68 of file CountedObject.h.

◆ getNext()

CounterBase* ripple::CountedObjects::CounterBase::getNext ( ) const
noexceptinherited

Definition at line 74 of file CountedObject.h.

Member Data Documentation

◆ m_count

std::atomic<int> ripple::CountedObjects::CounterBase::m_count
protectedinherited

Definition at line 87 of file CountedObject.h.

◆ m_next

CounterBase* ripple::CountedObjects::CounterBase::m_next
protectedinherited

Definition at line 88 of file CountedObject.h.