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...
 
- 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...
 
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...
 

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>
SkipList< K, V >::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 
)
inline

Registers a specific skip list dictionary instance.

Registers functions for dictionary.

Parameters
idA 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_typeThe type of keys to be stored in the dictionary.
key_sizeThe size of keys to be stored in the dictionary.
value_sizeThe size of the values to be stored in the dictionary.
dictionary_sizeThe size desired for the dictionary.

Definition at line 65 of file SkipList.h.

71  {
72  sldict_init(&this->handler);
73 
74  this->initializeDictionary(id, key_type, key_size, value_size, dictionary_size);
75 }
ion_key_type_t key_type
Definition: Dictionary.h:53
ion_value_size_t value_size
Definition: Dictionary.h:55
ion_key_size_t key_size
Definition: Dictionary.h:54
ion_dictionary_handler_t handler
Definition: Dictionary.h:51
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:84
void sldict_init(ion_dictionary_handler_t *handler)
Registers a skiplist handler to a dictionary instance.

Here is the call graph for this function:


The documentation for this class was generated from the following file: