#include <file_storage_manager.h>
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) |
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.
| size_type storage_manager< PAT, VAT, ALLOC, file_storage >::file_entries | ( | ) | const [inline] |
Returns number of the entries in the file
| void storage_manager< PAT, VAT, ALLOC, file_storage >::initialize_vat | ( | std::map< int, int > & | mapcount | ) | [inline] |
initialize_vat(map<int, int>)
| map(int,int),: | a map data structure that contains the size of each level-1 patterns |
| 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.
| size_type storage_manager< PAT, VAT, ALLOC, file_storage >::mem_entries | ( | ) | const [inline] |
Returns number of the entries in the cache.
1.4.7