#include <MasterTable.h>
Public Member Functions | |
MasterTable () | |
~MasterTable () | |
ion_err_t | initializeMasterTable () |
Opens the master table. More... | |
ion_err_t | closeMasterTable () |
Closes the master table. More... | |
ion_err_t | closeAllMasterTable () |
Closes the master table and all dictionary instances in it. More... | |
ion_err_t | deleteMasterTable () |
Deletes the master table. More... | |
template<typename K , typename V > | |
ion_err_t | addToMasterTable (Dictionary< K, V > *dictionary, ion_dictionary_size_t dictionary_size) |
Adds the given dictionary to the master table. More... | |
ion_dictionary_id_t | getNextID () |
Returns the next dictionary ID. More... | |
ion_err_t | initializeHandler (ion_dictionary_type_t type) |
Retrieves the type of dictionary stored under a particular id in the master table. More... | |
ion_err_t | lookupMasterTable (ion_dictionary_id_t id, ion_dictionary_config_info_t *config) |
Looks up the config of the given id. More... | |
ion_err_t | findByUse (ion_dictionary_config_info_t *config, ion_dict_use_t use_type, char whence) |
Find first or last dictionary in master table with a given use. More... | |
ion_err_t | deleteFromMasterTable (ion_dictionary_id_t id) |
Deletes a dictionary from the master table. More... | |
template<typename K , typename V > | |
ion_err_t | openDictionary (Dictionary< K, V > *dictionary, ion_dictionary_id_t id) |
Finds the target dictionary and opens it. More... | |
template<typename K , typename V > | |
ion_err_t | closeDictionary (Dictionary< K, V > *dictionary) |
Closes a given dictionary. More... | |
template<typename K , typename V > | |
Dictionary< K, V > * | initializeDictionary (ion_key_type_t key_type, K k, V v, ion_key_size_t key_size, ion_value_size_t value_size, ion_dictionary_size_t dictionary_size, ion_dictionary_type_t dictionary_type) |
Creates a dictionary of a specified implementation. More... | |
template<typename K , typename V > | |
ion_err_t | deleteDictionary (Dictionary< K, V > *dictionary) |
Public Attributes | |
ion_dictionary_handler_t | handler |
Detailed Description
Definition at line 50 of file MasterTable.h.
Constructor & Destructor Documentation
|
inline |
Definition at line 55 of file MasterTable.h.
|
inline |
Definition at line 60 of file MasterTable.h.
Member Function Documentation
|
inline |
Adds the given dictionary to the master table.
- Parameters
-
dictionary A pointer to the dictionary object to add to the master table. dictionary_size The implementation specific size parameter used when creating the dictionary. This parameter must be passed to this function by ion_master_table_create_dictionary, since not all implementations track the dictionary size.
Definition at line 120 of file MasterTable.h.
|
inline |
Closes the master table and all dictionary instances in it.
For this method to work properly, all dictionary instances must already be closed or must have been closed previously and are now re-opened.
- Returns
- An error code describing the result of the operation.
Definition at line 93 of file MasterTable.h.
|
inline |
Closes a given dictionary.
- Parameters
-
dictionary A pointer to an allocated dictionary object, which will be closed.
- Returns
- An error code describing the result of the operation.
Definition at line 268 of file MasterTable.h.
|
inline |
Closes the master table.
- Returns
- An error code describing the result of the operation.
Definition at line 81 of file MasterTable.h.
|
inline |
Definition at line 372 of file MasterTable.h.
|
inline |
Deletes a dictionary from the master table.
- Returns
- An error code describing the result of the operation.
Definition at line 214 of file MasterTable.h.
|
inline |
Deletes the master table.
- Returns
- An error code describing the result of the operation.
Definition at line 103 of file MasterTable.h.
|
inline |
Find first or last dictionary in master table with a given use.
- Parameters
-
config A pointer to an already allocated configuration object that will be used to open the found dictionary. use_type The integral usage type for the dictionary. This is user defined. whence Whether to find the first or the last dictionary having use_type
. This can take exactly two values, ION_MASTER_TABLE_FIND_FIRST or ION_MASTER_TABLE_FIND_LAST.
- Returns
err_ok
if a dictionary having usage typeuse_type
is found, otherwise an error code properly describing the situation and outcome.
Definition at line 201 of file MasterTable.h.
|
inline |
Returns the next dictionary ID.
- Returns
- The next ID to be used by the master table.
Definition at line 146 of file MasterTable.h.
|
inline |
Creates a dictionary of a specified implementation.
This method is not currently used for creation of a C++ dictionary.
- Parameters
-
key_type The type of key to be used with this dictionary, which determines the key comparison operator. k The type of key to be used with this dictionary. v The type of value to be used with this dictionary. key_size The size of the key type to be used with this dictionary. value_size The size of the value type to be used with this dictionary. dictionary_size The dictionary implementation specific dictionary size parameter. dictionary_type The type of dictionary to be created.
- Returns
- An error code describing the result of the operation.
Definition at line 299 of file MasterTable.h.
|
inline |
Retrieves the type of dictionary stored under a particular id in the master table.
- Parameters
-
type The type of dictionary instance to initialize the handler to.
- Returns
- An error code describing the result of the operation.
Definition at line 159 of file MasterTable.h.
|
inline |
Opens the master table.
Can be safely called multiple times without closing.
- Returns
- An error code describing the result of the operation.
Definition at line 71 of file MasterTable.h.
|
inline |
Looks up the config of the given id.
- Parameters
-
id The identifier identifying the dictionary metadata in the master table which is to be looked up. config A pointer to an already allocated configuration object that will be read into from the master table.
- Returns
- An error code describing the result of the operation.
Definition at line 176 of file MasterTable.h.
|
inline |
Finds the target dictionary and opens it.
- Parameters
-
dictionary A pointer to an allocated dictionary object, which will be opened. id The identifier identifying the dictionary metadata in the master table.
- Returns
- An error code describing the result of the operation.
Definition at line 232 of file MasterTable.h.
Member Data Documentation
ion_dictionary_handler_t MasterTable::handler |
Definition at line 53 of file MasterTable.h.
The documentation for this class was generated from the following file: