Public Member Functions | |
cdbpp_base () | |
Constructs an object. | |
cdbpp_base (const void *buffer, size_t size, bool own) | |
Constructs an object by opening a database on memory. | |
cdbpp_base (std::ifstream &ifs) | |
Constructs an object by opening a database from an input stream. | |
virtual | ~cdbpp_base () |
Destructs the object. | |
bool | is_open () const |
Tests if the database is opened. | |
size_t | size () const |
Obtains the number of elements in the database. | |
bool | empty () const |
Tests if the database is empty. | |
size_t | open (std::ifstream &ifs) |
Opens the database from an input stream. | |
size_t | open (const void *buffer, size_t size, bool own=false) |
Opens the database from a memory image. | |
void | close () |
Closes the database. | |
const void * | get (const void *key, size_t ksize, size_t *vsize) const |
Finds the key in the database. |