Changeset 1277 for trunk


Ignore:
Timestamp:
Aug 4, 2011, 2:42:20 PM (8 years ago)
Author:
vla24
Message:

SymbolTable?: added implementation for identity group hash table strategy.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/symtab/pbgs_identity_symbol_table.h

    r1231 r1277  
    7070    int advance = 1;
    7171    int L = 3;
    72     delim = name[L];
     72    char delim = name[L];
    7373    name[L] = '\0';
    7474    cout << "Lookup or Insert: " << name << " | lgth: " << L << " | group: " << group << " | advance: " << advance << endl;
     
    100100    int advance = 3;
    101101    int L = 5;
    102     delim = name[L];
     102    char delim = name[L];
    103103    name[L] = '\0';
    104104    cout << "Lookup or Insert: " << name << " | lgth: " << L << " | group: " << group << " | advance: " << advance << endl;
     
    113113{
    114114    int GID = 0;
    115 
    116     char delim = name[6];
    117     name[6] = '\0';
    118115    int group = getHashTableIndex(6);
    119116
    120117    //Lookup
    121118    GID = m_hashTable[group].Lookup_Name<6>(name, hashvalue);
    122     name[6] = delim;
    123119
    124120    //Insert
     
    134130    int advance = 2;
    135131    int L = 6;
    136     delim = name[L];
     132    char delim = name[L];
    137133    name[L] = '\0';
    138134    cout << "Lookup or Insert: " << name << " | lgth: " << L << " | group: " << group << " | advance: " << advance << endl;
     
    164160    int advance = 1;
    165161    int L = 7;
    166     delim = name[L];
     162    char delim = name[L];
    167163    name[L] = '\0';
    168164    cout << "Lookup or Insert: " << name << " | lgth: " << L << " | group: " << group << " | advance: " << advance << endl;
     
    192188    }
    193189#if DEBUG_PBGS
    194     delim = name[L];
     190    char delim = name[L];
    195191    name[L] = '\0';
    196192    cout << "Lookup or Insert: " << name << " | lgth: " << L << " | group: " << group << endl;
     
    219215    }
    220216#if DEBUG_PBGS
    221     delim = name[L];
     217    char delim = name[L];
    222218    name[L] = '\0';
    223219    cout << "Lookup or Insert: " << name << " | lgth: " << L << " | group: " << LAST_GROUP << endl;
Note: See TracChangeset for help on using the changeset viewer.