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
LockedSociSession & operator= (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< Mutex > lock_

Detailed Description

Definition at line 28 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 38 of file DatabaseCon.h.

◆ LockedSociSession() [2/4]

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

Definition at line 42 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 52 of file DatabaseCon.h.

◆ operator*()

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

Definition at line 57 of file DatabaseCon.h.

◆ operator->()

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

Definition at line 62 of file DatabaseCon.h.

◆ operator bool()

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

Definition at line 67 of file DatabaseCon.h.

Member Data Documentation

◆ session_

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

Definition at line 34 of file DatabaseCon.h.

◆ lock_

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

Definition at line 35 of file DatabaseCon.h.