#include <binarystring.hxx>
Public Types | |
typedef unsigned char | char_type |
typedef std::char_traits < char_type >::char_type | value_type |
typedef size_t | size_type |
typedef long | difference_type |
typedef const value_type & | const_reference |
typedef const value_type * | const_pointer |
typedef const_pointer | const_iterator |
typedef std::reverse_iterator < const_iterator > | const_reverse_iterator |
Public Member Functions | |
binarystring (const binarystring &) | |
binarystring (const field &) | |
Read and unescape bytea field. | |
binarystring (const std::string &) | |
Copy binary data from std::string. | |
binarystring (const void *, size_t) | |
Copy binary data of given length straight out of memory. | |
~binarystring () | |
size_type | size () const PQXX_NOEXCEPT |
Size of converted string in bytes. | |
size_type | length () const PQXX_NOEXCEPT |
Size of converted string in bytes. | |
bool | empty () const PQXX_NOEXCEPT |
const_iterator | begin () const PQXX_NOEXCEPT |
const_iterator | cbegin () const PQXX_NOEXCEPT |
const_iterator | end () const PQXX_NOEXCEPT |
const_iterator | cend () const PQXX_NOEXCEPT |
const_reference | front () const PQXX_NOEXCEPT |
const_reference | back () const PQXX_NOEXCEPT |
const_reverse_iterator | rbegin () const |
const_reverse_iterator | crbegin () const |
const_reverse_iterator | rend () const |
const_reverse_iterator | crend () const |
const value_type * | data () const PQXX_NOEXCEPT |
Unescaped field contents. | |
const_reference | operator[] (size_type i) const PQXX_NOEXCEPT |
PQXX_PURE bool | operator== (const binarystring &) const PQXX_NOEXCEPT |
bool | operator!= (const binarystring &rhs) const PQXX_NOEXCEPT |
binarystring & | operator= (const binarystring &) |
const_reference | at (size_type) const |
Index contained string, checking for valid index. | |
void | swap (binarystring &) |
Swap contents with other binarystring. | |
const char * | get () const PQXX_NOEXCEPT |
Raw character buffer (no terminating zero is added). | |
std::string | str () const |
Read as regular C++ string (may include null characters). |
typedef unsigned char pqxx::binarystring::char_type |
typedef const value_type* pqxx::binarystring::const_pointer |
typedef const value_type& pqxx::binarystring::const_reference |
typedef std::reverse_iterator<const_iterator> pqxx::binarystring::const_reverse_iterator |
typedef long pqxx::binarystring::difference_type |
typedef size_t pqxx::binarystring::size_type |
typedef std::char_traits<char_type>::char_type pqxx::binarystring::value_type |
pqxx::binarystring::binarystring | ( | const binarystring & | rhs | ) |
pqxx::binarystring::binarystring | ( | const field & | F | ) | [explicit] |
pqxx::binarystring::binarystring | ( | const std::string & | s | ) | [explicit] |
Copy binary data from std::string.
pqxx::binarystring::binarystring | ( | const void * | binary_data, | |
size_t | len | |||
) |
Copy binary data of given length straight out of memory.
pqxx::binarystring::~binarystring | ( | ) |
pqxx::binarystring::const_reference pqxx::binarystring::at | ( | size_type | n | ) | const |
Index contained string, checking for valid index.
References data(), and pqxx::to_string().
const_reference pqxx::binarystring::back | ( | ) | const |
const_iterator pqxx::binarystring::begin | ( | ) | const |
const_iterator pqxx::binarystring::cbegin | ( | ) | const |
const_iterator pqxx::binarystring::cend | ( | ) | const |
const_reverse_iterator pqxx::binarystring::crbegin | ( | ) | const |
const_reverse_iterator pqxx::binarystring::crend | ( | ) | const |
const value_type* pqxx::binarystring::data | ( | ) | const |
Unescaped field contents.
Referenced by at(), and pqxx::connection_base::quote().
bool pqxx::binarystring::empty | ( | ) | const |
const_iterator pqxx::binarystring::end | ( | ) | const |
const_reference pqxx::binarystring::front | ( | ) | const |
const char* pqxx::binarystring::get | ( | ) | const |
Raw character buffer (no terminating zero is added).
size_type pqxx::binarystring::length | ( | ) | const |
Size of converted string in bytes.
bool pqxx::binarystring::operator!= | ( | const binarystring & | rhs | ) | const |
pqxx::binarystring & pqxx::binarystring::operator= | ( | const binarystring & | rhs | ) |
bool pqxx::binarystring::operator== | ( | const binarystring & | rhs | ) | const |
const_reference pqxx::binarystring::operator[] | ( | size_type | i | ) | const |
const_reverse_iterator pqxx::binarystring::rbegin | ( | ) | const |
const_reverse_iterator pqxx::binarystring::rend | ( | ) | const |
size_type pqxx::binarystring::size | ( | ) | const |
Size of converted string in bytes.
Referenced by pqxx::connection_base::quote().
std::string pqxx::binarystring::str | ( | ) | const |
Read as regular C++ string (may include null characters).
void pqxx::binarystring::swap | ( | binarystring & | rhs | ) |
Swap contents with other binarystring.
References pqxx::internal::PQAlloc< T, DELETER >::swap().