VSQLite++ 0.3
Loading...
Searching...
No Matches
sqlite::v2::connection_pool::lease Class Reference

#include <connection_pool.hpp>

Collaboration diagram for sqlite::v2::connection_pool::lease:
Collaboration graph

Public Member Functions

 lease ()=default
 lease (connection_pool *pool, std::shared_ptr< connection > conn)
 lease (lease &&other) noexcept
leaseoperator= (lease &&other) noexcept
 lease (lease const &)=delete
leaseoperator= (lease const &)=delete
 ~lease ()
connectionoperator* () const
connectionoperator-> () const
std::shared_ptr< connectionshared () const

Private Member Functions

void release ()

Private Attributes

std::shared_ptr< shared_state > state_
std::shared_ptr< connectionconnection_

Detailed Description

Scoped handle returned by connection_pool::acquire that returns the connection on destruction.

Definition at line 61 of file connection_pool.hpp.

Constructor & Destructor Documentation

◆ lease() [1/4]

sqlite::v2::connection_pool::lease::lease ( )
default

Referenced by lease(), lease(), operator=(), and operator=().

◆ lease() [2/4]

sqlite::v2::connection_pool::lease::lease ( connection_pool * pool,
std::shared_ptr< connection > conn )

References sqlite::v2::connection_pool::connection_pool().

Here is the call graph for this function:

◆ lease() [3/4]

sqlite::v2::connection_pool::lease::lease ( lease && other)
noexcept

References lease().

Here is the call graph for this function:

◆ lease() [4/4]

sqlite::v2::connection_pool::lease::lease ( lease const & )
delete

References lease().

Here is the call graph for this function:

◆ ~lease()

sqlite::v2::connection_pool::lease::~lease ( )

Member Function Documentation

◆ operator*()

connection & sqlite::v2::connection_pool::lease::operator* ( ) const

◆ operator->()

connection * sqlite::v2::connection_pool::lease::operator-> ( ) const

◆ operator=() [1/2]

lease & sqlite::v2::connection_pool::lease::operator= ( lease && other)
noexcept

References lease().

Here is the call graph for this function:

◆ operator=() [2/2]

lease & sqlite::v2::connection_pool::lease::operator= ( lease const & )
delete

References lease().

Here is the call graph for this function:

◆ release()

void sqlite::v2::connection_pool::lease::release ( )
private

◆ shared()

std::shared_ptr< connection > sqlite::v2::connection_pool::lease::shared ( ) const

Member Data Documentation

◆ connection_

std::shared_ptr<connection> sqlite::v2::connection_pool::lease::connection_
private

Definition at line 79 of file connection_pool.hpp.

◆ state_

std::shared_ptr<shared_state> sqlite::v2::connection_pool::lease::state_
private

Definition at line 78 of file connection_pool.hpp.


The documentation for this class was generated from the following file: