|
libmoost
|
*** This class is NOT thread safe *** More...
#include <kvds_tch_linux.hpp>
Public Types | |
| typedef TCHDB * | store_type |
Public Member Functions | |
| KvdsTch () | |
| ~KvdsTch () | |
| void | open (char const dsname[], bool newdb=false) |
| void | save () |
| void | close () |
| store_type & | get_store () |
| bool | put (void const *pkey, size_t const ksize, void const *pval, size_t const vsize) |
| bool | get (void const *pkey, size_t const ksize, void *pval, size_t &vsize) |
| bool | add (void const *pkey, size_t const ksize, void const *pval, size_t const vsize) |
| bool | all (void const *pkey, size_t const ksize, void *pval, size_t &vsize) |
| bool | xst (void const *pkey, size_t const ksize) |
| bool | del (void const *pkey, size_t const ksize) |
| bool | clr () |
| bool | beg () |
| bool | nxt (void *pkey, size_t &ksize) |
| bool | end () |
| bool | siz (void const *pkey, size_t const ksize, size_t &vsize) |
| bool | cnt (boost::uint64_t &cnt) |
| bool | nil (bool &isnil) |
Private Member Functions | |
| void | assert_data_store_open () const |
| void | throw_tcexception (int ecode, char const *msg="Unexpected error") |
| void | set_next_itr () |
Private Attributes | |
| store_type | pdb_ |
| bool | bOpen_ |
| void * | pitr_ |
| int | pitr_size_ |
*** This class is NOT thread safe ***
Definition at line 66 of file kvds_tch_linux.hpp.
| typedef TCHDB* moost::kvds::KvdsTch::store_type |
Definition at line 69 of file kvds_tch_linux.hpp.
| moost::kvds::KvdsTch::KvdsTch | ( | ) | [inline] |
Definition at line 71 of file kvds_tch_linux.hpp.
| moost::kvds::KvdsTch::~KvdsTch | ( | ) | [inline] |
| bool moost::kvds::KvdsTch::add | ( | void const * | pkey, |
| size_t const | ksize, | ||
| void const * | pval, | ||
| size_t const | vsize | ||
| ) | [inline] |
| bool moost::kvds::KvdsTch::all | ( | void const * | pkey, |
| size_t const | ksize, | ||
| void * | pval, | ||
| size_t & | vsize | ||
| ) | [inline] |
| void moost::kvds::KvdsTch::assert_data_store_open | ( | ) | const [inline, private] |
| bool moost::kvds::KvdsTch::beg | ( | ) | [inline] |
| void moost::kvds::KvdsTch::close | ( | ) | [inline] |
| bool moost::kvds::KvdsTch::clr | ( | ) | [inline] |
| bool moost::kvds::KvdsTch::cnt | ( | boost::uint64_t & | cnt | ) | [inline] |
Definition at line 297 of file kvds_tch_linux.hpp.


| bool moost::kvds::KvdsTch::del | ( | void const * | pkey, |
| size_t const | ksize | ||
| ) | [inline] |
| bool moost::kvds::KvdsTch::end | ( | ) | [inline] |
Definition at line 279 of file kvds_tch_linux.hpp.
| bool moost::kvds::KvdsTch::get | ( | void const * | pkey, |
| size_t const | ksize, | ||
| void * | pval, | ||
| size_t & | vsize | ||
| ) | [inline] |
| store_type& moost::kvds::KvdsTch::get_store | ( | ) | [inline] |
You can call this to get a refernce to the underlying store. Useful if you need to do post construction configuration. For example if using a google hash or spare map you need to specify the delete/erase keys
Definition at line 122 of file kvds_tch_linux.hpp.
| bool moost::kvds::KvdsTch::nil | ( | bool & | isnil | ) | [inline] |
| bool moost::kvds::KvdsTch::nxt | ( | void * | pkey, |
| size_t & | ksize | ||
| ) | [inline] |
| void moost::kvds::KvdsTch::open | ( | char const | dsname[], |
| bool | newdb = false |
||
| ) | [inline] |
Definition at line 94 of file kvds_tch_linux.hpp.


| bool moost::kvds::KvdsTch::put | ( | void const * | pkey, |
| size_t const | ksize, | ||
| void const * | pval, | ||
| size_t const | vsize | ||
| ) | [inline] |
| void moost::kvds::KvdsTch::save | ( | ) | [inline] |
Definition at line 108 of file kvds_tch_linux.hpp.
| void moost::kvds::KvdsTch::set_next_itr | ( | ) | [inline, private] |
| bool moost::kvds::KvdsTch::siz | ( | void const * | pkey, |
| size_t const | ksize, | ||
| size_t & | vsize | ||
| ) | [inline] |
Definition at line 284 of file kvds_tch_linux.hpp.


| void moost::kvds::KvdsTch::throw_tcexception | ( | int | ecode, |
| char const * | msg = "Unexpected error" |
||
| ) | [inline, private] |
| bool moost::kvds::KvdsTch::xst | ( | void const * | pkey, |
| size_t const | ksize | ||
| ) | [inline] |
bool moost::kvds::KvdsTch::bOpen_ [private] |
Definition at line 314 of file kvds_tch_linux.hpp.
store_type moost::kvds::KvdsTch::pdb_ [private] |
Definition at line 313 of file kvds_tch_linux.hpp.
void* moost::kvds::KvdsTch::pitr_ [private] |
Definition at line 315 of file kvds_tch_linux.hpp.
int moost::kvds::KvdsTch::pitr_size_ [private] |
Definition at line 316 of file kvds_tch_linux.hpp.