#include <util.hxx>
Inheritance diagram for pqxx::internal::PQAlloc< T >:
Public Types | |
typedef T | content_type |
Public Member Functions | |
PQAlloc () throw () | |
PQAlloc (const PQAlloc &rhs) throw () | |
~PQAlloc () throw () | |
PQAlloc & | operator= (const PQAlloc &rhs) throw () |
PQAlloc (T *obj) throw () | |
Assume ownership of a pointer. | |
void | swap (PQAlloc &rhs) throw () |
PQAlloc & | operator= (T *obj) throw () |
operator bool () const throw () | |
Is this pointer non-null? | |
bool | operator! () const throw () |
Is this pointer null? | |
T * | operator-> () const throw (PGSTD::logic_error) |
Dereference pointer. | |
T & | operator * () const throw (PGSTD::logic_error) |
Dereference pointer. | |
T * | c_ptr () const throw () |
Obtain underlying pointer. | |
void | clear () throw () |
template<> | |
void | freemem () throw() |
template<> | |
void | freemem () throw() |
Keep track of a libpq-allocated object, and free it once all references to it have died.
If the available PostgreSQL development files supply PQfreemem()
or PQfreeNotify()
, this is used to free the memory. If not, free() is used instead. This matters on Windows, where memory allocated by a DLL must be freed by the same DLL.
typedef T pqxx::internal::PQAlloc< T >::content_type |
pqxx::internal::PQAlloc< T >::PQAlloc | ( | ) | throw () |
pqxx::internal::PQAlloc< T >::PQAlloc | ( | const PQAlloc< T > & | rhs | ) | throw () |
pqxx::internal::PQAlloc< T >::~PQAlloc | ( | ) | throw () |
pqxx::internal::PQAlloc< T >::PQAlloc | ( | T * | obj | ) | throw () [explicit] |
Assume ownership of a pointer.
PQAlloc& pqxx::internal::PQAlloc< T >::operator= | ( | const PQAlloc< T > & | rhs | ) | throw () |
void pqxx::internal::PQAlloc< T >::swap | ( | PQAlloc< T > & | rhs | ) | throw () |
PQAlloc& pqxx::internal::PQAlloc< T >::operator= | ( | T * | obj | ) | throw () |
pqxx::internal::PQAlloc< T >::operator bool | ( | ) | const throw () |
Is this pointer non-null?
bool pqxx::internal::PQAlloc< T >::operator! | ( | ) | const throw () |
Is this pointer null?
T* pqxx::internal::PQAlloc< T >::operator-> | ( | ) | const throw (PGSTD::logic_error) |
Dereference pointer.
Throws a logic_error if the pointer is null.
T& pqxx::internal::PQAlloc< T >::operator * | ( | ) | const throw (PGSTD::logic_error) |
Dereference pointer.
Throws a logic_error if the pointer is null.
T* pqxx::internal::PQAlloc< T >::c_ptr | ( | ) | const throw () |
Obtain underlying pointer.
Ownership of the pointer's memory remains with the PQAlloc object
Reimplemented in pqxx::binarystring.
void pqxx::internal::PQAlloc< T >::clear | ( | ) | throw () |
Reimplemented in pqxx::result.
void pqxx::internal::PQAlloc< result_data >::freemem | ( | ) | throw() |
void pqxx::internal::PQAlloc< pq::PGnotify >::freemem | ( | ) | throw() |