Storage_Manager< T > Class Template Reference

#include <storage_manager.h>

Inheritance diagram for Storage_Manager< T >:

Hybrid_Storage_Manager< T > Ondisk_Storage_Manager< T > STLMainMemory_Storage_Manager< T > List of all members.

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_Databasedb_conn

template<class T>
class Storage_Manager< T >


Constructor & Destructor Documentation

template<class T>
Storage_Manager< T >::Storage_Manager (  )  [inline]

Default constructor.

template<class T>
Storage_Manager< T >::Storage_Manager ( Hazy_Database db_conn  )  [inline]

The constructor that initializes Storage_Maneger object with the given database object.

Parameters:
[in] db_conn database connection

template<class T>
Storage_Manager< T >::~Storage_Manager (  )  [virtual]

Destructor.


Member Function Documentation

template<class T>
virtual void Storage_Manager< T >::getEntityClass ( key  e,
sClass c,
struct hazy_model m 
) [pure virtual]

Retrieves the class of the entity.

Parameters:
[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 >.

template<class T>
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.

Parameters:
[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 >.

template<class T>
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.

Parameters:
[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 >.

template<class T>
virtual void Storage_Manager< T >::insertEntity ( struct hazy_model m,
key  e,
f 
) [pure virtual]

Inserts the entity to the storage manager.

Parameters:
[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 >.

template<class T>
int Storage_Manager< T >::loadFromDatabase ( struct hazy_model m  )  [virtual]

Loads entities from the database.

Parameters:
[in] m hazy model

template<class T>
void Storage_Manager< T >::loadFromFile ( struct hazy_model m,
const char *  szFileName 
) [virtual]

Loads entities from the given file.

Parameters:
[in] m hazy model
[in] szFileName file name

template<class T>
virtual void Storage_Manager< T >::resort ( struct hazy_model m  )  [pure virtual]

Makes a resort to reorganize entities according to their epsilon values.

Parameters:
[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 >.


Member Data Documentation

template<class T>
Hazy_Database* Storage_Manager< T >::db_conn [protected]

template<class T>
std::string Storage_Manager< T >::entity_table_name [protected]


The documentation for this class was generated from the following files:
Generated on Wed Dec 15 10:46:16 2010 for Hazy_System by  doxygen 1.4.7