#include <storage_manager.h>
Inheritance diagram for Storage_Manager< T >:

Public Member Functions | |
| Storage_Manager () | |
| Default constructor.   | |
| Storage_Manager (Hazy_Database *db_conn) | |
| The constructor that initializes Storage_Maneger object with the given database object.   | |
| virtual void | resort (struct hazy_model &m)=0 | 
| Makes a resort to reorganize entities according to their epsilon values.   | |
| virtual void | incrementalUpdate (struct hazy_model &m, double &waste_time)=0 | 
| Makes an incremental update on the entities by using hazy model.   | |
| virtual void | insertEntity (struct hazy_model &m, key e, T f)=0 | 
| Inserts the entity to the storage manager.   | |
| virtual void | loadFromFile (struct hazy_model &m, const char *szFileName) | 
| Loads entities from the given file.   | |
| virtual int | loadFromDatabase (struct hazy_model &m) | 
| Loads entities from the database.   | |
| virtual void | getEntityClass (key e, sClass &c, struct hazy_model &m)=0 | 
| Retrieves the class of the entity.   | |
| virtual void | getNumInClass (sClass c, int &nClass, struct hazy_model &m, double &waste_time)=0 | 
| Retrieves # of elements that belong to a given class.   | |
| virtual | ~Storage_Manager () | 
| Destructor.   | |
Protected Attributes | |
| std::string | entity_table_name | 
| Hazy_Database * | db_conn | 
| Storage_Manager< T >::Storage_Manager | ( | ) |  [inline] | 
        
Default constructor.
| Storage_Manager< T >::Storage_Manager | ( | Hazy_Database * | db_conn | ) |  [inline] | 
        
The constructor that initializes Storage_Maneger object with the given database object.
| [in] | db_conn | database connection | 
| Storage_Manager< T >::~Storage_Manager | ( | ) |  [virtual] | 
        
Destructor.
| virtual void Storage_Manager< T >::getEntityClass | ( | key | e, | |
| sClass & | c, | |||
| struct hazy_model & | m | |||
| ) |  [pure virtual] | 
        
Retrieves the class of the entity.
| [in] | e | entitiy id | 
| [out] | c | class of the entity | 
| [in] | m | hazy model that we use to classify the entity | 
Implemented in Hybrid_Storage_Manager< T >, STLMainMemory_Storage_Manager< T >, Ondisk_Storage_Manager< T >, Ondisk_Storage_Manager< FVector >, and Ondisk_Storage_Manager< SVector >.
| virtual void Storage_Manager< T >::getNumInClass | ( | sClass | c, | |
| int & | nClass, | |||
| struct hazy_model & | m, | |||
| double & | waste_time | |||
| ) |  [pure virtual] | 
        
Retrieves # of elements that belong to a given class.
| [in] | c | class that we ask # of elements belong it | 
| [out] | nClass | # of elements in the class | 
| [in] | m | hazy model that we use to classify entities | 
| [out] | waste_time | waste time calculated during the method execution | 
Implemented in Hybrid_Storage_Manager< T >, STLMainMemory_Storage_Manager< T >, Ondisk_Storage_Manager< T >, Ondisk_Storage_Manager< FVector >, and Ondisk_Storage_Manager< SVector >.
| virtual void Storage_Manager< T >::incrementalUpdate | ( | struct hazy_model & | m, | |
| double & | waste_time | |||
| ) |  [pure virtual] | 
        
Makes an incremental update on the entities by using hazy model.
| [in] | m | hazy model that we use to update entities classes | 
| [out] | waste_time | waste time calcaulted during the method execution | 
Implemented in Hybrid_Storage_Manager< T >, STLMainMemory_Storage_Manager< T >, Ondisk_Storage_Manager< T >, Ondisk_Storage_Manager< FVector >, and Ondisk_Storage_Manager< SVector >.
| virtual void Storage_Manager< T >::insertEntity | ( | struct hazy_model & | m, | |
| key | e, | |||
| T | f | |||
| ) |  [pure virtual] | 
        
Inserts the entity to the storage manager.
| [in] | m | hazy model which is used when the approach is hazy, because we need to calculate eps value | 
| [in] | e | id of the entity | 
| [in] | f | feature vector of the entity | 
Implemented in Hybrid_Storage_Manager< T >, STLMainMemory_Storage_Manager< T >, Ondisk_Storage_Manager< T >, Ondisk_Storage_Manager_Dense, Ondisk_Storage_Manager_Sparse, Ondisk_Storage_Manager< FVector >, and Ondisk_Storage_Manager< SVector >.
| int Storage_Manager< T >::loadFromDatabase | ( | struct hazy_model & | m | ) |  [virtual] | 
        
Loads entities from the database.
| [in] | m | hazy model | 
| void Storage_Manager< T >::loadFromFile | ( | struct hazy_model & | m, | |
| const char * | szFileName | |||
| ) |  [virtual] | 
        
Loads entities from the given file.
| [in] | m | hazy model | 
| [in] | szFileName | file name | 
| virtual void Storage_Manager< T >::resort | ( | struct hazy_model & | m | ) |  [pure virtual] | 
        
Makes a resort to reorganize entities according to their epsilon values.
| [in] | m | hazy model that we use to re-calculate epsllon values | 
Implemented in Hybrid_Storage_Manager< T >, STLMainMemory_Storage_Manager< T >, Ondisk_Storage_Manager< T >, Ondisk_Storage_Manager< FVector >, and Ondisk_Storage_Manager< SVector >.
Hazy_Database* Storage_Manager< T >::db_conn [protected]           | 
        
std::string Storage_Manager< T >::entity_table_name [protected]           | 
        
 1.4.7