rippled
Classes | Public Types | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
ripple::CountedObjects Class Reference

Manages all counted object types. More...

Collaboration diagram for ripple::CountedObjects:
Collaboration graph
[legend]

Classes

class  Counter
 Implementation for CountedObject. More...
 

Public Types

using Entry = std::pair< std::string, int >
 
using List = std::vector< Entry >
 

Public Member Functions

List getCounts (int minimumThreshold) const
 

Static Public Member Functions

static CountedObjectsgetInstance () noexcept
 

Private Member Functions

 CountedObjects () noexcept
 
 ~CountedObjects () noexcept=default
 

Private Attributes

std::atomic< int > m_count
 
std::atomic< Counter * > m_head
 

Detailed Description

Manages all counted object types.

Definition at line 32 of file CountedObject.h.

Member Typedef Documentation

◆ Entry

Definition at line 38 of file CountedObject.h.

◆ List

Definition at line 39 of file CountedObject.h.

Constructor & Destructor Documentation

◆ CountedObjects()

ripple::CountedObjects::CountedObjects ( )
privatenoexcept

Definition at line 34 of file CountedObject.cpp.

◆ ~CountedObjects()

ripple::CountedObjects::~CountedObjects ( )
privatedefaultnoexcept

Member Function Documentation

◆ getInstance()

CountedObjects & ripple::CountedObjects::getInstance ( )
staticnoexcept

Definition at line 27 of file CountedObject.cpp.

◆ getCounts()

CountedObjects::List ripple::CountedObjects::getCounts ( int  minimumThreshold) const

Definition at line 39 of file CountedObject.cpp.

Member Data Documentation

◆ m_count

std::atomic<int> ripple::CountedObjects::m_count
private

Definition at line 110 of file CountedObject.h.

◆ m_head

std::atomic<Counter*> ripple::CountedObjects::m_head
private

Definition at line 111 of file CountedObject.h.