… | |
… | |
48 | * MSW 2003-04-29 |
48 | * MSW 2003-04-29 |
49 | */ |
49 | */ |
50 | |
50 | |
51 | #if USE_UNORDERED_MAP |
51 | #if USE_UNORDERED_MAP |
52 | // the hashtable |
52 | // the hashtable |
53 | typedef |
|
|
54 | std::tr1::unordered_map < |
53 | typedef std::tr1::unordered_map |
55 | size_t, archetype *> |
54 | < |
|
|
55 | std::size_t, |
|
|
56 | archetype *, |
|
|
57 | std::hash<size_t>, |
|
|
58 | std::equal_to<size_t>, |
|
|
59 | slice_allocator< std::pair<const std::size_t, archetype *> > |
|
|
60 | true, |
56 | HT; |
61 | > HT; |
57 | |
62 | |
58 | static |
63 | static HT ht; |
59 | HT |
|
|
60 | ht; |
|
|
61 | #endif |
64 | #endif |
62 | |
65 | |
63 | /** |
66 | /** |
64 | * GROS - This function retrieves an archetype given the name that appears |
67 | * GROS - This function retrieves an archetype given the name that appears |
65 | * during the game (for example, "writing pen" instead of "stylus"). |
68 | * during the game (for example, "writing pen" instead of "stylus"). |