Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members  

tokentable.cpp File Reference

#include "xmltk.h"

Go to the source code of this file.

Compounds

class  CTokenTable
struct  TOKENINFO
struct  tokeninfo_cmpeq
struct  tokeninfo_hash

Typedefs

typedef * PTOKENINFO
typedef vector< TOKENINFOVTOKENINFO
typedef hash_map< TOKENINFO,
unsigned int, tokeninfo_hash,
tokeninfo_cmpeq
MAP_TI_INDEX

Functions

size_t myhashstr (char const *psz)
bool GetGlobalTokenTable (RCLIID riid, void **ppv)
void InitGlobalTokenTable ()
void CleanupGlobalTokenTable ()

Variables

ITokenTableg_ptt = NULL


Typedef Documentation

typedef hash_map<TOKENINFO, unsigned int, tokeninfo_hash, tokeninfo_cmpeq> MAP_TI_INDEX
 

Definition at line 41 of file tokentable.cpp.

typedef * PTOKENINFO
 

typedef vector<TOKENINFO> VTOKENINFO
 

Definition at line 13 of file tokentable.cpp.


Function Documentation

void CleanupGlobalTokenTable  
 

Definition at line 223 of file tokentable.cpp.

Referenced by STRPAIR().

00224 {
00225     if (g_ptt)
00226     {
00227         g_ptt->Release();
00228         g_ptt = NULL;
00229     }
00230 }

bool GetGlobalTokenTable RCLIID    riid,
void **    ppv
 

Definition at line 202 of file tokentable.cpp.

00203 {
00204     if (g_ptt)
00205     {
00206         return g_ptt->QueryInterface(riid, ppv);
00207     }
00208 
00209     return false;
00210 }

void InitGlobalTokenTable  
 

Definition at line 212 of file tokentable.cpp.

Referenced by STRPAIR().

00213 {
00214     assert (g_ptt == NULL);
00215     CTokenTable *ptt = new CTokenTable();
00216     if (ptt)
00217     {
00218         ptt->QueryInterface(&IID_ITokenTable, (void**)&g_ptt);
00219         ptt->Release();
00220     }
00221 }

size_t myhashstr char const *    psz [inline]
 

Definition at line 26 of file tokentable.cpp.

Referenced by tokeninfo_hash::operator()().

00027 {
00028     return psz ? std::hash<char const *>()(psz) : 0;
00029 }


Variable Documentation

ITokenTable* g_ptt = NULL
 

Definition at line 200 of file tokentable.cpp.


Generated on Sat Dec 22 16:01:55 2001 for XMILLforBinaryFormat by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001