Deriving a New Hash Table Type




Deriving a New Hash Table Type - Untitled














Previous: Traversing a Hash Table,
Up: Hash Tables



2.18.4 Deriving a new hash table type

Many uses of hash tables want to store additional information
which each entry in the hash table. Some also find it
convenient to store additional information with the hash table
itself. This may be done using a derived hash table.

Since C is not an object oriented language, creating a derived
hash table requires sticking together some boilerplate
routines with a few differences specific to the type of hash
table you want to create.

An example of a derived hash table is the linker hash table.
The structures for this are defined in bfdlink.h. The
functions are in linker.c.

You may also derive a hash table from an already derived hash
table. For example, the a.out linker backend code uses a hash
table derived from the linker hash table.


Define the Derived Structures
Write the Derived Creation Routine
Write Other Derived Routines






Wyszukiwarka

Podobne podstrony:
Traversing a Hash Table
Creating a Linker Hash Table
Adding Symbols to the Hash Table
Creating and Freeing a Hash Table
New Laplace Transform Table
new 4
Twilight Saga New Moon 2009 CAM XviD POISON
lanai dinning table
function ingres field type
BESM New Attributes & Defects 2 0
WentyleSmayNP110 new
Output Section Type
new?atures 1 1
conceive new project?5322C0
Zagrożenie Współczesnego Człowieka Ruch New Age

więcej podobnych podstron