Kyoto Cabinet
|
#include <kcmap.h>
Public Member Functions | |
Sorter (TinyHashMap *map) | |
Constructor. | |
~Sorter () | |
Destructor. | |
const char * | get_key (size_t *sp) |
Get the key of the current record. | |
const char * | get_value (size_t *sp) |
Get the value of the current record. | |
const char * | get (size_t *ksp, const char **vbp, size_t *vsp) |
Get a pair of the key and the value of the current record. | |
void | step () |
Step the cursor to the next record. | |
Public Attributes | |
TinyHashMap * | map_ |
The container. | |
size_t | ridx_ |
The current record index. | |
std::vector< char * > | recs_ |
The current records. |
Sorter of records.
kyotocabinet::TinyHashMap::Sorter::Sorter | ( | TinyHashMap * | map | ) | [explicit] |
Constructor.
map | the container. |
Destructor.
const char* kyotocabinet::TinyHashMap::Sorter::get_key | ( | size_t * | sp | ) |
Get the key of the current record.
sp | the pointer to the variable into which the size of the region of the return value is assigned. |
const char* kyotocabinet::TinyHashMap::Sorter::get_value | ( | size_t * | sp | ) |
Get the value of the current record.
sp | the pointer to the variable into which the size of the region of the return value is assigned. |
const char* kyotocabinet::TinyHashMap::Sorter::get | ( | size_t * | ksp, |
const char ** | vbp, | ||
size_t * | vsp | ||
) |
Get a pair of the key and the value of the current record.
ksp | the pointer to the variable into which the size of the region of the return value is assigned. |
vbp | the pointer to the variable into which the pointer to the value region is assigned. |
vsp | the pointer to the variable into which the size of the value region is assigned. |
Step the cursor to the next record.
The container.
The current record index.
std::vector<char*> kyotocabinet::TinyHashMap::Sorter::recs_ |
The current records.