libpqxx  v4.0-1
C++ library for PostgreSQL
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
pqxx::internal::unique< GUEST > Class Template Reference

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

#include <util.hxx>

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

Public Member Functions

 unique ()
 
GUEST * get () const throw ()
 
void Register (GUEST *G)
 
void Unregister (GUEST *G)
 

Private Member Functions

 unique (const unique &)
 Not allowed. More...
 
uniqueoperator= (const unique &)
 Not allowed. More...
 

Private Attributes

GUEST * m_Guest
 

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

template<typename GUEST>
pqxx::internal::unique< GUEST >::unique ( )
inline
template<typename GUEST>
pqxx::internal::unique< GUEST >::unique ( const unique< GUEST > &  )
private

Not allowed.

Member Function Documentation

template<typename GUEST>
GUEST* pqxx::internal::unique< GUEST >::get ( ) const throw ()
inline
template<typename GUEST>
unique& pqxx::internal::unique< GUEST >::operator= ( const unique< GUEST > &  )
private

Not allowed.

template<typename GUEST>
void pqxx::internal::unique< GUEST >::Register ( GUEST *  G)
inline
template<typename GUEST>
void pqxx::internal::unique< GUEST >::Unregister ( GUEST *  G)
inline

Member Data Documentation

template<typename GUEST>
GUEST* pqxx::internal::unique< GUEST >::m_Guest
private

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