storage_manager< PAT, VAT, ALLOC, file_storage > Class Template Reference

Storage Manager class partially specialized to File-based Storage manager to stores VAT in predefined-size buffer and uses a binary file for swapping in/out vats. More...

#include <file_storage_manager.h>

List of all members.

Public Types

typedef int key_type
typedef VAT data_type
typedef VAT VATT
typedef cache_manager< key_type,
data_type > 
cache_type
typedef cache_type::size_type size_type
typedef pattern_support< typename
PAT::MINE_PROPS > 
PAT_SUP

Public Member Functions

 storage_manager (typename cache_type::size_type C=1, const char *filename=FILENAME)
size_type mem_entries () const
size_type file_entries () const
void print_stats () const
bool find (PAT *const &p) const
void delete_vat (PAT *const &p)
void lock_vat (PAT *const &p)
void unlock_vat (PAT *const &p)
VAT * get_vat (PAT *const &p) const
VAT * get_vat (const key_type &id) const
VAT ** intersect (PAT *const &p1, PAT *const &p2, PAT_SUP **cand_sups, PAT **cand_pats, bool is_l2)
bool add_vat (const PAT *const &p, VAT *v)
void write_file (const key_type &id, VAT *v)
bool my_add_vat (const key_type &id, VAT *v)
void initialize_vat (std::map< int, int > &mapcount)


Detailed Description

template<class PAT, template< typename > class ALLOC, class VAT>
class storage_manager< PAT, VAT, ALLOC, file_storage >

Storage Manager class partially specialized to File-based Storage manager to stores VAT in predefined-size buffer and uses a binary file for swapping in/out vats.

An object store. Specifically we want to store VATs and their associated patterns. It provides routines to find/access/store VATs with a pattern key.


Member Function Documentation

template<class PAT, template< typename > class ALLOC, class VAT>
size_type storage_manager< PAT, VAT, ALLOC, file_storage >::file_entries (  )  const [inline]

Returns number of the entries in the file

template<class PAT, template< typename > class ALLOC, class VAT>
void storage_manager< PAT, VAT, ALLOC, file_storage >::initialize_vat ( std::map< int, int > &  mapcount  )  [inline]

initialize_vat(map<int, int>)

Parameters:
map(int,int),: a map data structure that contains the size of each level-1 patterns

template<class PAT, template< typename > class ALLOC, class VAT>
VAT** storage_manager< PAT, VAT, ALLOC, file_storage >::intersect ( PAT *const &  p1,
PAT *const &  p2,
PAT_SUP **  cand_sups,
PAT **  cand_pats,
bool  is_l2 
) [inline]

Generate candidate VATs for the next level, from the provided patterns.

template<class PAT, template< typename > class ALLOC, class VAT>
size_type storage_manager< PAT, VAT, ALLOC, file_storage >::mem_entries (  )  const [inline]

Returns number of the entries in the cache.


The documentation for this class was generated from the following file:
Generated on Wed Jul 26 14:01:09 2006 for DMTL by  doxygen 1.4.7