Public Member Functions | |
PGresult * | operator* () |
PGresultAutoPtr (PGresult *ptr) | |
void | reset (PGresult *ptr) |
~PGresultAutoPtr () | |
Private Attributes | |
PGresult * | result_ |
A little helper class to behave much like an auto ptr for the PGresult, except that instead of deleting it when it goes out of scope, it calls PQclear() on it.
Definition at line 44 of file postgresql_database.cpp.
database_interface::PostgresqlDatabase::PGresultAutoPtr::PGresultAutoPtr | ( | PGresult * | ptr | ) | [inline] |
Definition at line 42 of file postgresql_database.cpp.
database_interface::PostgresqlDatabase::PGresultAutoPtr::~PGresultAutoPtr | ( | ) | [inline] |
Definition at line 43 of file postgresql_database.cpp.
PGresult* database_interface::PostgresqlDatabase::PGresultAutoPtr::operator* | ( | ) | [inline] |
Definition at line 45 of file postgresql_database.cpp.
void database_interface::PostgresqlDatabase::PGresultAutoPtr::reset | ( | PGresult * | ptr | ) | [inline] |
Definition at line 44 of file postgresql_database.cpp.
PGresult* database_interface::PostgresqlDatabase::PGresultAutoPtr::result_ [private] |
Definition at line 40 of file postgresql_database.cpp.