#include <util.hxx>
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 () |
Ownership policy is simple: object dies when PQAlloc object's value does. 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.
|
|
|
|
|
|
|
|
|
Assume ownership of a pointer.
|
|
Obtain underlying pointer. Ownership of the pointer's memory remains with the PQAlloc object Reimplemented in pqxx::binarystring. |
|
|
|
Dereference pointer. Throws a logic_error if the pointer is null. |
|
Is this pointer non-null?
|
|
Is this pointer null?
|
|
Dereference pointer. Throws a logic_error if the pointer is null. |
|
|
|
|
|
|