libpqxx  7.0.2
pqxx::internal::unique< GUEST > Class Template Reference

Ensure proper opening/closing of GUEST objects related to a "host" object. More...

#include <util.hxx>

Inheritance diagram for pqxx::internal::unique< GUEST >:

Public Member Functions

constexpr unique ()=default
 
constexpr unique (unique const &)=delete
 
constexpr unique (unique &&rhs)
 
constexpr uniqueoperator= (unique const &)=delete
 
constexpr uniqueoperator= (unique &&rhs)
 
constexpr GUEST * get () const noexcept
 
constexpr void register_guest (GUEST *G)
 
constexpr void unregister_guest (GUEST *G)
 

Detailed Description

template<typename GUEST>
class pqxx::internal::unique< GUEST >

Ensure proper opening/closing of GUEST objects related to a "host" object.

Only a single GUEST may exist for a single host at any given time. GUEST must be derived from namedclass.

Constructor & Destructor Documentation

◆ unique() [1/3]

template<typename GUEST>
constexpr pqxx::internal::unique< GUEST >::unique ( )
default

◆ unique() [2/3]

template<typename GUEST>
constexpr pqxx::internal::unique< GUEST >::unique ( unique< GUEST > const &  )
delete

◆ unique() [3/3]

template<typename GUEST>
constexpr pqxx::internal::unique< GUEST >::unique ( unique< GUEST > &&  rhs)

Member Function Documentation

◆ get()

template<typename GUEST>
constexpr GUEST* pqxx::internal::unique< GUEST >::get ( ) const
noexcept

◆ operator=() [1/2]

template<typename GUEST>
constexpr unique& pqxx::internal::unique< GUEST >::operator= ( unique< GUEST > const &  )
delete

◆ operator=() [2/2]

template<typename GUEST>
constexpr unique& pqxx::internal::unique< GUEST >::operator= ( unique< GUEST > &&  rhs)

◆ register_guest()

template<typename GUEST>
constexpr void pqxx::internal::unique< GUEST >::register_guest ( GUEST *  G)

◆ unregister_guest()

template<typename GUEST>
constexpr void pqxx::internal::unique< GUEST >::unregister_guest ( GUEST *  G)

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