rippled
Public Types | Public Member Functions | Private Attributes | List of all members
ripple::LockedSociSession Class Reference
Collaboration diagram for ripple::LockedSociSession:
Collaboration graph
[legend]

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 37 of file DatabaseCon.h.

Member Typedef Documentation

◆ mutex

Definition at line 40 of file DatabaseCon.h.

Constructor & Destructor Documentation

◆ LockedSociSession() [1/4]

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

Definition at line 47 of file DatabaseCon.h.

◆ LockedSociSession() [2/4]

ripple::LockedSociSession::LockedSociSession ( LockedSociSession &&  rhs)
noexcept

Definition at line 51 of file DatabaseCon.h.

◆ LockedSociSession() [3/4]

ripple::LockedSociSession::LockedSociSession ( )
delete

◆ LockedSociSession() [4/4]

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

Member Function Documentation

◆ operator=()

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

◆ get()

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

Definition at line 61 of file DatabaseCon.h.

◆ operator*()

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

Definition at line 66 of file DatabaseCon.h.

◆ operator->()

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

Definition at line 71 of file DatabaseCon.h.

◆ operator bool()

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

Definition at line 75 of file DatabaseCon.h.

Member Data Documentation

◆ session_

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

Definition at line 43 of file DatabaseCon.h.

◆ lock_

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

Definition at line 44 of file DatabaseCon.h.