Ignore:
Timestamp:
Apr 14, 2012, 6:31:40 PM (7 years ago)
Author:
ksherdy
Message:

Added GIDFactory class member. Each symbol table maintains a set of GIDs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/symbol_table/src/symbol_table.hpp

    r2014 r2027  
    1111#include "../lib/bitblock.hpp"
    1212#include "../lib/byte_pool.hpp"
     13#include "gid_factory.hpp"
    1314#include "hash_table.hpp"
    1415
     
    1617#include <iostream>
    1718using namespace std;
    18 
    19 typedef uint32_t gid_type;
    2019
    2120///////////////////////////////////////////////////////////////////////////
     
    4746                 BitBlock h0 [], BitBlock h1 [], uint32_t blocks, SYMBOL & symbols /*, const uint32_t symbols*/);
    4847
    49     //void resolve(uint8_t buffer [], Groups groups [],  BitBlock starts [], BitBlock ends_gte_17 [],
    50     //           BitBlock h0 [], BitBlock h1 [], uint32_t blocks, SoA_symbol & soa/*, const uint32_t symbols*/);
    51 
    5248    IDISA_ALWAYS_INLINE uint8_t * get_raw_data(uint32_t idx) const { return gid_data::get_raw_bytes(idx); }
    5349    IDISA_ALWAYS_INLINE uint32_t get_lgth(uint32_t idx) const { return gid_data::get_bytes_lgth(idx); }
     
    5753    ~symbol_table() {}
    5854
     55    GIDFactory gid_factory;
    5956};
    6057
    6158template<class SYMBOL, class HASH_TABLE>
    6259void do_block(uint32_t blk_offset,
    63                                   HASH_TABLE & h_table,
    64                                   BitBlock ends,
    65                                   uint8_t buffer [], const uint32_t lgth,
    66                                   uint8_t h0 [], uint8_t h1 [], const uint32_t h_lgth, const uint32_t h_block_size,
    67                                   SYMBOL & symbols);
     60              HASH_TABLE & h_table,
     61              BitBlock ends,
     62              uint8_t buffer [], const uint32_t lgth,
     63              uint8_t h0 [], uint8_t h1 [], const uint32_t h_lgth, const uint32_t h_block_size,
     64              SYMBOL & symbols, GIDFactory & gid_factory);
    6865
    6966template<class SYMBOL, class HASH_TABLE>
    7067void do_block(uint32_t blk_offset,
    71                                   HASH_TABLE & h_table,
    72                                   BitBlock starts [], BitBlock ends [],
    73                                   uint8_t buffer [],
    74                                   uint8_t h0 [], uint8_t h1 [], const uint32_t h_lgth, const uint32_t h_block_size,
    75                                   SYMBOL & symbols);
     68              HASH_TABLE & h_table,
     69              BitBlock starts [], BitBlock ends [],
     70              uint8_t buffer [],
     71              uint8_t h0 [], uint8_t h1 [], const uint32_t h_lgth, const uint32_t h_block_size,
     72              SYMBOL & symbols, GIDFactory & gid_factory);
    7673
    7774#endif // SYMBOL_TABLE_HPP
Note: See TracChangeset for help on using the changeset viewer.