libpqxx  v4.0-1
C++ library for PostgreSQL
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
util.hxx File Reference
#include "pqxx/compiler-public.hxx"
#include <cstdio>
#include <cctype>
#include <stdexcept>
#include <string>
#include <typeinfo>
#include <vector>
#include <memory>
#include "pqxx/strconv"
#include <pqxx/internal/libpq-forward.hxx>
Include dependency graph for util.hxx:

Classes

struct  pqxx::internal::deref_ptr< T >
 
struct  pqxx::internal::dereference< ITER >
 Functor: dereference iterator. More...
 
class  pqxx::internal::namedclass
 
class  pqxx::internal::PQAlloc< T, DELETER >
 Reference-counted smart pointer to libpq-allocated object. More...
 
class  pqxx::internal::refcount
 Helper class used in reference counting (doubly-linked circular list) Reference-counted smart-pointer for libpq-allocated resources. More...
 
class  pqxx::internal::scoped_array< T >
 
class  pqxx::internal::unique< GUEST >
 Ensure proper opening/closing of GUEST objects related to a "host" object. More...
 
class  pqxx::items< T, CONT >
 Container of items with easy contents initialization and string rendering. More...
 
struct  pqxx::thread_safety_model
 Descriptor of library's thread-safety model. More...
 

Namespaces

namespace  PGSTD
 Alias for the standard namespace "<tt>std</tt>".
 
namespace  pqxx
 The home of all libpqxx classes, functions, templates, etc.
 
namespace  pqxx::internal
 Private namespace for libpqxx's internal use; do not access.
 

Typedefs

typedef const char * pqxx::internal::cstring
 Work around problem with library export directives and pointers. More...
 
typedef long pqxx::internal::result_difference_type
 
typedef unsigned long pqxx::internal::result_size_type
 

Functions

void pqxx::internal::CheckUniqueRegistration (const namedclass *New, const namedclass *Old)
 
void pqxx::internal::CheckUniqueUnregistration (const namedclass *New, const namedclass *Old)
 
thread_safety_model PQXX_LIBEXPORT pqxx::describe_thread_safety () throw ()
 Describe thread safety available in this build. More...
 
template<typename T >
PGSTD::ptrdiff_t pqxx::internal::distance (T first, T last)
 Wrapper for std::distance; not all platforms have std::distance(). More...
 
void PQXX_LIBEXPORT pqxx::internal::freemallocmem (const void *) throw ()
 
template<typename P >
void pqxx::internal::freemallocmem_templated (P *p) throw ()
 
void PQXX_LIBEXPORT pqxx::internal::freepqmem (const void *) throw ()
 
template<typename P >
void pqxx::internal::freepqmem_templated (P *p) throw ()
 
template<typename ITER , typename ACCESS >
PGSTD::string pqxx::separated_list (const PGSTD::string &sep, ITER begin, ITER end, ACCESS access)
 Access iterators using ACCESS functor, returning separator-separated list. More...
 
template<typename ITER >
PGSTD::string pqxx::separated_list (const PGSTD::string &sep, ITER begin, ITER end)
 Render sequence as a string, using given separator between items. More...
 
template<typename OBJ >
PGSTD::string pqxx::separated_list (const PGSTD::string &sep, OBJ *begin, OBJ *end)
 Render array as a string, using given separator between items. More...
 
template<typename CONTAINER >
PGSTD::string pqxx::separated_list (const PGSTD::string &sep, const CONTAINER &c)
 Render items in a container as a string, using given separator. More...
 
void PQXX_LIBEXPORT pqxx::internal::sleep_seconds (int)
 Sleep for the given number of seconds. More...
 
cstring PQXX_LIBEXPORT pqxx::internal::strerror_wrapper (int err, char buf[], PGSTD::size_t len) throw ()
 Human-readable description for error code, possibly using given buffer. More...
 

Variables

const oid pqxx::oid_none = 0
 The "null" oid. More...
 
const char pqxx::internal::sql_begin_work []
 Commonly used SQL commands. More...
 
const char pqxx::internal::sql_commit_work []
 
const char pqxx::internal::sql_rollback_work []