rippled
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
xrpl::CheckpointersCollection Class Reference
Collaboration diagram for xrpl::CheckpointersCollection:
Collaboration graph
[legend]

Public Member Functions

std::shared_ptr< CheckpointerfromId (std::uintptr_t id)
 
void erase (std::uintptr_t id)
 
std::shared_ptr< Checkpointercreate (std::shared_ptr< soci::session > const &session, JobQueue &jobQueue, Logs &logs)
 

Private Attributes

std::uintptr_t nextId_ {0}
 
std::mutex mutex_
 
std::unordered_map< std::uintptr_t, std::shared_ptr< Checkpointer > > checkpointers_
 

Detailed Description

Definition at line 15 of file DatabaseCon.cpp.

Member Function Documentation

◆ fromId()

std::shared_ptr< Checkpointer > xrpl::CheckpointersCollection::fromId ( std::uintptr_t  id)

Definition at line 28 of file DatabaseCon.cpp.

◆ erase()

void xrpl::CheckpointersCollection::erase ( std::uintptr_t  id)

Definition at line 38 of file DatabaseCon.cpp.

◆ create()

std::shared_ptr< Checkpointer > xrpl::CheckpointersCollection::create ( std::shared_ptr< soci::session > const &  session,
JobQueue jobQueue,
Logs logs 
)

Definition at line 45 of file DatabaseCon.cpp.

Member Data Documentation

◆ nextId_

std::uintptr_t xrpl::CheckpointersCollection::nextId_ {0}
private

Definition at line 17 of file DatabaseCon.cpp.

◆ mutex_

std::mutex xrpl::CheckpointersCollection::mutex_
private

Definition at line 19 of file DatabaseCon.cpp.

◆ checkpointers_

std::unordered_map<std::uintptr_t, std::shared_ptr<Checkpointer> > xrpl::CheckpointersCollection::checkpointers_
private

Definition at line 24 of file DatabaseCon.cpp.