SkipList< K, V > Class Template Reference
#include <SkipList.h>
Inheritance diagram for SkipList< K, V >:
Collaboration diagram for SkipList< K, V >:
Public Member Functions | |
SkipList (ion_dictionary_id_t id, ion_key_type_t key_type, ion_key_size_t key_size, ion_value_size_t value_size, ion_dictionary_size_t dictionary_size) | |
Registers a specific skip list dictionary instance. More... | |
SkipList (ion_dictionary_config_info_t config) | |
Public Member Functions inherited from Dictionary< K, V > | |
~Dictionary () | |
ion_err_t | initializeDictionary (ion_dictionary_id_t dict_id, ion_key_type_t k_type, ion_key_size_t k_size, ion_value_size_t v_size, ion_dictionary_size_t dictionary_size) |
Creates a dictionary with a specific identifier (for use through the master table). More... | |
ion_status_t | insert (K key, V value) |
Insert a value into a dictionary. More... | |
V | get (K key) |
Retrieve a value given a key. More... | |
ion_status_t | deleteRecord (K key) |
Delete a value given a key. More... | |
ion_status_t | update (K key, V value) |
Update all records with a given key. More... | |
ion_err_t | deleteDictionary () |
Deletes dictionary. More... | |
ion_err_t | destroyDictionary (ion_dictionary_id_t id) |
Destroys dictionary. More... | |
ion_err_t | open (ion_dictionary_config_info_t config_info) |
Opens a dictionary, given the desired config. More... | |
ion_err_t | close () |
Closes a dictionary. More... | |
Cursor< K, V > * | range (K min_key, K max_key) |
Sets up cursor and predicate to perform a range query on a dictionary. More... | |
Cursor< K, V > * | equality (K key) |
Sets up cursor and predicate perform an equality query on a dictionary for a given key. More... | |
Cursor< K, V > * | allRecords () |
Sets up cursor and predicate in order to find all records present in the dictionary. More... | |
Static Public Member Functions | |
static SkipList< K, V > * | openDictionary (ion_dictionary_config_info_t config_info, K key_type, V value_type) |
Additional Inherited Members | |
Public Attributes inherited from Dictionary< K, V > | |
ion_dictionary_handler_t | handler |
ion_dictionary_t | dict |
ion_key_type_t | key_type |
ion_key_size_t | key_size |
ion_value_size_t | value_size |
ion_dictionary_size_t | dict_size |
ion_status_t | last_status |
Detailed Description
template<typename K, typename V>
class SkipList< K, V >
Definition at line 45 of file SkipList.h.
Constructor & Destructor Documentation
template<typename K, typename V>
|
inline |
Registers a specific skip list dictionary instance.
Registers functions for dictionary.
- Parameters
-
id A unique identifier important for use of the dictionary through the master table. If the dictionary is being created without the master table, this identifier can be 0. key_type The type of keys to be stored in the dictionary. key_size The size of keys to be stored in the dictionary. value_size The size of the values to be stored in the dictionary. dictionary_size The size desired for the dictionary.
Definition at line 65 of file SkipList.h.
ion_err_t initializeDictionary(ion_dictionary_id_t dict_id, ion_key_type_t k_type, ion_key_size_t k_size, ion_value_size_t v_size, ion_dictionary_size_t dictionary_size)
Creates a dictionary with a specific identifier (for use through the master table).
Definition: Dictionary.h:85
void sldict_init(ion_dictionary_handler_t *handler)
Registers a skiplist handler to a dictionary instance.
Definition: skip_list_handler.c:351
Here is the call graph for this function:
template<typename K, typename V>
|
inline |
Definition at line 77 of file SkipList.h.
ion_err_t open(ion_dictionary_config_info_t config_info)
Opens a dictionary, given the desired config.
Definition: Dictionary.h:230
void sldict_init(ion_dictionary_handler_t *handler)
Registers a skiplist handler to a dictionary instance.
Definition: skip_list_handler.c:351
Here is the call graph for this function:
Member Function Documentation
template<typename K, typename V>
|
inlinestatic |
Definition at line 86 of file SkipList.h.
Definition: SkipList.h:45
The documentation for this class was generated from the following file: