Classes | Public Types | Public Member Functions | Public Attributes

STR_TAB< STR > Struct Template Reference

Collaboration diagram for STR_TAB< STR >:
Collaboration graph
[legend]

List of all members.

Classes

class  EqStringHashKey
class  ExtractStringBufferFromStringTable
class  HashStringHashKey
struct  StringHashKey

Public Types

typedef HashTable
< StringHashKey, STR_INDEX,
HashStringHashKey,
EqStringHashKey
HASHTABLE

Public Member Functions

 STR_TAB (UINT bucket_size)
void reserve (UINT32 size)
void init_hash ()
UINT32 insert (const char *str, UINT32 size)
UINT32 insert (const char *str)
void copy_str (const char *str, UINT32 size)
void dump (FILE *fout)

Public Attributes

char * buffer
STR_IDX last_idx
UINT32 buffer_size
ExtractStringBufferFromStringTable extractStringBufferFromStringTable
HASHTABLE hash_table

Detailed Description

template<class STR>
struct STR_TAB< STR >

Definition at line 214 of file strtab.cxx.


Member Typedef Documentation

Definition at line 319 of file strtab.cxx.


Constructor & Destructor Documentation

template<class STR>
STR_TAB< STR >::STR_TAB ( UINT  bucket_size  )  [inline]

Definition at line 322 of file strtab.cxx.


Member Function Documentation

template<class STR >
void STR_TAB< STR >::copy_str ( const char *  str,
UINT32  size 
)

Definition at line 395 of file strtab.cxx.

References STR_TAB< STR >::buffer, STR_TAB< STR >::buffer_size, STR_TAB< STR >::last_idx, and STR_TAB< STR >::reserve().

Referenced by STR_TAB< STR >::insert().

Here is the call graph for this function:

template<class STR>
void STR_TAB< STR >::dump ( FILE *  fout  )  [inline]

Definition at line 355 of file strtab.cxx.

template<class STR >
void STR_TAB< STR >::init_hash (  ) 
template<class STR>
UINT32 STR_TAB< STR >::insert ( const char *  str  )  [inline]

Definition at line 349 of file strtab.cxx.

template<class STR >
UINT32 STR_TAB< STR >::insert ( const char *  str,
UINT32  size 
)
template<class STR>
void STR_TAB< STR >::reserve ( UINT32  size  )  [inline]

Definition at line 331 of file strtab.cxx.

References Malloc_Mem_Pool, and MEM_POOL_Realloc.

Referenced by STR_TAB< STR >::copy_str().


Member Data Documentation

template<class STR>
char* STR_TAB< STR >::buffer

Definition at line 216 of file strtab.cxx.

Referenced by STR_TAB< STR >::copy_str(), and STR_TAB< STR >::init_hash().

template<class STR>
UINT32 STR_TAB< STR >::buffer_size

Definition at line 218 of file strtab.cxx.

Referenced by STR_TAB< STR >::copy_str().

Definition at line 276 of file strtab.cxx.

template<class STR>
HASHTABLE STR_TAB< STR >::hash_table

Definition at line 320 of file strtab.cxx.

Referenced by STR_TAB< STR >::init_hash(), and STR_TAB< STR >::insert().

template<class STR>
STR_IDX STR_TAB< STR >::last_idx

The documentation for this struct was generated from the following file: