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]

Member Function Documentation

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

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 (  )  [inline]
template<class STR>
UINT32 STR_TAB< STR >::insert ( const char *  str  )  [inline]

Definition at line 349 of file strtab.cxx.

References STR_TAB< STR >::insert().

Here is the call graph for this function:

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

Member Data Documentation

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

Definition at line 218 of file strtab.cxx.

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

Definition at line 276 of file strtab.cxx.

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

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

Generated on Sat Dec 12 06:34:39 2009 for Open64 (mfef90, whirl2f, and IR tools) by  doxygen 1.6.1