xrpld
Loading...
Searching...
No Matches
xrpl::LockedSociSession Class Reference

#include <DatabaseCon.h>

Collaboration diagram for xrpl::LockedSociSession:

Public Types

using mutex = std::recursive_mutex

Public Member Functions

 LockedSociSession (std::shared_ptr< soci::session > it, mutex &m)
 LockedSociSession (LockedSociSession &&rhs) noexcept
 LockedSociSession ()=delete
 LockedSociSession (LockedSociSession const &rhs)=delete
LockedSociSessionoperator= (LockedSociSession const &rhs)=delete
soci::session * get ()
soci::session & operator* ()
soci::session * operator-> ()
 operator bool () const

Private Attributes

std::shared_ptr< soci::session > session_
std::unique_lock< mutexlock_

Detailed Description

Definition at line 21 of file DatabaseCon.h.

Member Typedef Documentation

◆ mutex

Constructor & Destructor Documentation

◆ LockedSociSession() [1/4]

xrpl::LockedSociSession::LockedSociSession ( std::shared_ptr< soci::session > it,
mutex & m )

Definition at line 31 of file DatabaseCon.h.

◆ LockedSociSession() [2/4]

xrpl::LockedSociSession::LockedSociSession ( LockedSociSession && rhs)
noexcept

Definition at line 35 of file DatabaseCon.h.

◆ LockedSociSession() [3/4]

xrpl::LockedSociSession::LockedSociSession ( )
delete

◆ LockedSociSession() [4/4]

xrpl::LockedSociSession::LockedSociSession ( LockedSociSession const & rhs)
delete

Member Function Documentation

◆ operator=()

LockedSociSession & xrpl::LockedSociSession::operator= ( LockedSociSession const & rhs)
delete

◆ get()

soci::session * xrpl::LockedSociSession::get ( )

Definition at line 45 of file DatabaseCon.h.

◆ operator*()

soci::session & xrpl::LockedSociSession::operator* ( )

Definition at line 50 of file DatabaseCon.h.

◆ operator->()

soci::session * xrpl::LockedSociSession::operator-> ( )

Definition at line 55 of file DatabaseCon.h.

◆ operator bool()

xrpl::LockedSociSession::operator bool ( ) const
explicit

Definition at line 60 of file DatabaseCon.h.

Member Data Documentation

◆ session_

std::shared_ptr<soci::session> xrpl::LockedSociSession::session_
private

Definition at line 27 of file DatabaseCon.h.

◆ lock_

std::unique_lock<mutex> xrpl::LockedSociSession::lock_
private

Definition at line 28 of file DatabaseCon.h.