|
libmoost
|
Provides a nice user friendly adaptor for an ikvds interface. More...
#include <kvds.hpp>
Classes | |
| class | Iow |
Public Types | |
| typedef keyT | key_type |
| typedef valT | val_type |
| typedef std::vector< val_type > | kvds_values_t |
| typedef std::pair< key_type, val_type > | value_type |
| Some syntactic suger to make this more STL like. | |
| typedef val_type | data_type |
Public Member Functions | |
| Kvds (ikvds_ptr_t ikvds_ptr) | |
| bool | put (kvds_key_const_t const &key, kvds_val_const_t const &val) const |
| bool | put (kvds_key_const_t const &key, kvds_values_t const &vals) const |
| bool | get (kvds_key_const_t const &key, kvds_val_t val) const |
| bool | get (kvds_key_const_t const &key, kvds_values_t &vals, size_t const count) const |
| bool | get (kvds_key_const_t const &key, kvds_values_t &vals) const |
| bool | insert (value_type const &kvp) |
| bool | add (kvds_key_const_t const &key, kvds_val_const_t const &val) const |
| bool | exists (kvds_key_const_t const &key) const |
| bool | erase (kvds_key_const_t const &key) const |
| bool | clear () const |
| bool | size (kvds_key_const_t const &key, size_t &size) const |
| size_t | size (kvds_key_const_t const &key) const |
| bool | count (boost::uint64_t &cnt) const |
| boost::uint64_t | size () const |
| bool | empty () const |
| IKvds & | get_ikvds () const |
| Just in case you need access to the low level interface, but why would you? | |
| ikvds_ptr_t | get_ikvds_ptr () const |
| Iow | operator[] (kvds_key_const_t const &key) |
Private Types | |
| typedef KvdsTypeKey< key_type > | kvds_key_t |
| typedef KvdsTypeVal< val_type > | kvds_val_t |
| typedef KvdsTypeKey< key_type const > | kvds_key_const_t |
| typedef KvdsTypeVal< val_type const > | kvds_val_const_t |
Private Attributes | |
| ikvds_ptr_t | ikvds_ptr_ |
Friends | |
| class | KvdsKeyIterator |
Provides a nice user friendly adaptor for an ikvds interface.
Kvds can support any type for serialisation and deserialisation, but it requires a template template for KvdsTypeKey and KvdsTypeVal to handle the generic interface for conversion to an from a void * byte buffer. See kvds_integral_type.hpp for an example and brief documentation on how to develop additional KvdsType objects. *** This class is NOT thread safe ***
| typedef val_type moost::kvds::Kvds< keyT, valT, KvdsTypeKey, KvdsTypeVal >::data_type |
| typedef keyT moost::kvds::Kvds< keyT, valT, KvdsTypeKey, KvdsTypeVal >::key_type |
typedef KvdsTypeKey<key_type const> moost::kvds::Kvds< keyT, valT, KvdsTypeKey, KvdsTypeVal >::kvds_key_const_t [private] |
typedef KvdsTypeKey<key_type> moost::kvds::Kvds< keyT, valT, KvdsTypeKey, KvdsTypeVal >::kvds_key_t [private] |
typedef KvdsTypeVal<val_type const> moost::kvds::Kvds< keyT, valT, KvdsTypeKey, KvdsTypeVal >::kvds_val_const_t [private] |
typedef KvdsTypeVal<val_type> moost::kvds::Kvds< keyT, valT, KvdsTypeKey, KvdsTypeVal >::kvds_val_t [private] |
| typedef std::vector<val_type> moost::kvds::Kvds< keyT, valT, KvdsTypeKey, KvdsTypeVal >::kvds_values_t |
| typedef valT moost::kvds::Kvds< keyT, valT, KvdsTypeKey, KvdsTypeVal >::val_type |
| typedef std::pair<key_type, val_type> moost::kvds::Kvds< keyT, valT, KvdsTypeKey, KvdsTypeVal >::value_type |
| moost::kvds::Kvds< keyT, valT, KvdsTypeKey, KvdsTypeVal >::Kvds | ( | ikvds_ptr_t | ikvds_ptr | ) | [inline] |
| bool moost::kvds::Kvds< keyT, valT, KvdsTypeKey, KvdsTypeVal >::add | ( | kvds_key_const_t const & | key, |
| kvds_val_const_t const & | val | ||
| ) | const [inline] |
| bool moost::kvds::Kvds< keyT, valT, KvdsTypeKey, KvdsTypeVal >::clear | ( | ) | const [inline] |
| bool moost::kvds::Kvds< keyT, valT, KvdsTypeKey, KvdsTypeVal >::count | ( | boost::uint64_t & | cnt | ) | const [inline] |
| bool moost::kvds::Kvds< keyT, valT, KvdsTypeKey, KvdsTypeVal >::empty | ( | ) | const [inline] |
| bool moost::kvds::Kvds< keyT, valT, KvdsTypeKey, KvdsTypeVal >::erase | ( | kvds_key_const_t const & | key | ) | const [inline] |
| bool moost::kvds::Kvds< keyT, valT, KvdsTypeKey, KvdsTypeVal >::exists | ( | kvds_key_const_t const & | key | ) | const [inline] |
| bool moost::kvds::Kvds< keyT, valT, KvdsTypeKey, KvdsTypeVal >::get | ( | kvds_key_const_t const & | key, |
| kvds_val_t | val | ||
| ) | const [inline] |
| bool moost::kvds::Kvds< keyT, valT, KvdsTypeKey, KvdsTypeVal >::get | ( | kvds_key_const_t const & | key, |
| kvds_values_t & | vals, | ||
| size_t const | count | ||
| ) | const [inline] |
| bool moost::kvds::Kvds< keyT, valT, KvdsTypeKey, KvdsTypeVal >::get | ( | kvds_key_const_t const & | key, |
| kvds_values_t & | vals | ||
| ) | const [inline] |
| IKvds& moost::kvds::Kvds< keyT, valT, KvdsTypeKey, KvdsTypeVal >::get_ikvds | ( | ) | const [inline] |
| ikvds_ptr_t moost::kvds::Kvds< keyT, valT, KvdsTypeKey, KvdsTypeVal >::get_ikvds_ptr | ( | ) | const [inline] |
| bool moost::kvds::Kvds< keyT, valT, KvdsTypeKey, KvdsTypeVal >::insert | ( | value_type const & | kvp | ) | [inline] |
| Iow moost::kvds::Kvds< keyT, valT, KvdsTypeKey, KvdsTypeVal >::operator[] | ( | kvds_key_const_t const & | key | ) | [inline] |
| bool moost::kvds::Kvds< keyT, valT, KvdsTypeKey, KvdsTypeVal >::put | ( | kvds_key_const_t const & | key, |
| kvds_val_const_t const & | val | ||
| ) | const [inline] |
| bool moost::kvds::Kvds< keyT, valT, KvdsTypeKey, KvdsTypeVal >::put | ( | kvds_key_const_t const & | key, |
| kvds_values_t const & | vals | ||
| ) | const [inline] |
| bool moost::kvds::Kvds< keyT, valT, KvdsTypeKey, KvdsTypeVal >::size | ( | kvds_key_const_t const & | key, |
| size_t & | size | ||
| ) | const [inline] |
| size_t moost::kvds::Kvds< keyT, valT, KvdsTypeKey, KvdsTypeVal >::size | ( | kvds_key_const_t const & | key | ) | const [inline] |
| boost::uint64_t moost::kvds::Kvds< keyT, valT, KvdsTypeKey, KvdsTypeVal >::size | ( | ) | const [inline] |
friend class KvdsKeyIterator [friend] |
ikvds_ptr_t moost::kvds::Kvds< keyT, valT, KvdsTypeKey, KvdsTypeVal >::ikvds_ptr_ [private] |