Dictionary Class Reference

#include <Dictionary.hh>

Inheritance diagram for Dictionary:
Inheritance graph
[legend]

List of all members.

Public Member Functions

void define (const std::string &, DictEntry *)
void defineInScope (const std::string &, DictEntry *, int)
 Dictionary (int nb=43, int ns=60, int nc=30000)
void dumpScope (FILE *, int scope=-1)
void dumpScopes ()
DictEntrygetCurrentScope ()
int getCurrentScopeIndex ()
DictEntrylookup (const std::string &)
virtual void panic (char const *)
DictEntryremove (DictEntry *)
DictEntryremove (const std::string &)
DictEntryremoveScope (int scope=-1)
void restoreScope ()
void saveScope ()
virtual ~Dictionary ()

Protected Member Functions

virtual void dumpSymbol (FILE *, DictEntry *)
virtual int hash (const std::string &s)

Protected Attributes

DictEntry ** bucket
int currentScope
DictEntry ** endScope
int nbuckets
int nscopes
DictEntry ** scope

Static Protected Attributes

static unsigned char randomNumbers []

Detailed Description

Definition at line 65 of file Dictionary.hh.


Constructor & Destructor Documentation

Dictionary::Dictionary ( int  nb = 43,
int  ns = 60,
int  nc = 30000 
)

Definition at line 93 of file Dictionary.cc.

Dictionary::~Dictionary (  )  [virtual]

Definition at line 125 of file Dictionary.cc.


Member Function Documentation

void Dictionary::define ( const std::string &  key,
DictEntry entry 
)

Definition at line 190 of file Dictionary.cc.

void Dictionary::defineInScope ( const std::string &  key,
DictEntry entry,
int  sc 
)

Definition at line 195 of file Dictionary.cc.

void Dictionary::dumpScope ( FILE *  f,
int  scope = -1 
)

Definition at line 323 of file Dictionary.cc.

void Dictionary::dumpScopes (  ) 

Definition at line 336 of file Dictionary.cc.

void Dictionary::dumpSymbol ( FILE *  f,
DictEntry de 
) [protected, virtual]

Reimplemented in CPPDictionary.

Definition at line 318 of file Dictionary.cc.

DictEntry * Dictionary::getCurrentScope (  ) 

Definition at line 234 of file Dictionary.cc.

int Dictionary::getCurrentScopeIndex (  ) 

Definition at line 229 of file Dictionary.cc.

int Dictionary::hash ( const std::string &  s  )  [protected, virtual]

Definition at line 148 of file Dictionary.cc.

DictEntry * Dictionary::lookup ( const std::string &  key  ) 

Definition at line 171 of file Dictionary.cc.

void Dictionary::panic ( char const *  err  )  [virtual]

Definition at line 377 of file Dictionary.cc.

DictEntry * Dictionary::remove ( DictEntry de  ) 

Definition at line 266 of file Dictionary.cc.

DictEntry * Dictionary::remove ( const std::string &  key  ) 

Definition at line 294 of file Dictionary.cc.

DictEntry * Dictionary::removeScope ( int  scope = -1  ) 

Definition at line 245 of file Dictionary.cc.

void Dictionary::restoreScope (  ) 

Definition at line 221 of file Dictionary.cc.

void Dictionary::saveScope (  ) 

Definition at line 213 of file Dictionary.cc.


Member Data Documentation

Definition at line 70 of file Dictionary.hh.

int Dictionary::currentScope [protected]

Definition at line 69 of file Dictionary.hh.

Definition at line 68 of file Dictionary.hh.

int Dictionary::nbuckets [protected]

Definition at line 71 of file Dictionary.hh.

int Dictionary::nscopes [protected]

Definition at line 69 of file Dictionary.hh.

unsigned char Dictionary::randomNumbers [static, protected]
Initial value:
  
{       
    1, 14,110, 25, 97,174,132,119,138,170,125,118, 27,233,140, 51,
    87,197,177,107,234,169, 56, 68, 30,  7,173, 73,188, 40, 36, 65,
    49,213,104,190, 57,211,148,223, 48,115, 15,  2, 67,186,210, 28,
    12,181,103, 70, 22, 58, 75, 78,183,167,238,157,124,147,172,144,
    176,161,141, 86, 60, 66,128, 83,156,241, 79, 46,168,198, 41,254,
    178, 85,253,237,250,154,133, 88, 35,206, 95,116,252,192, 54,221,
    102,218,255,240, 82,106,158,201, 61,  3, 89,  9, 42,155,159, 93,
    166, 80, 50, 34,175,195,100, 99, 26,150, 16,145,  4, 33,  8,189,
    121, 64, 77, 72,208,245,130,122,143, 55,105,134, 29,164,185,194,
    193,239,101,242,  5,171,126, 11, 74, 59,137,228,108,191,232,139,
    6, 24, 81, 20,127, 17, 91, 92,251,151,225,207, 21, 98,113,112,
    84,226, 18,214,199,187, 13, 32, 94,220,224,212,247,204,196, 43,
    249,236, 45,244,111,182,153,136,129, 90,217,202, 19,165,231, 71,
    230,142, 96,227, 62,179,246,114,162, 53,160,215,205,180, 47,109,
    44, 38, 31,149,135,  0,216, 52, 63, 23, 37, 69, 39,117,146,184,
    163,200,222,235,248,243,219, 10,152,131,123,229,203, 76,120,209
}

Definition at line 72 of file Dictionary.hh.

Definition at line 68 of file Dictionary.hh.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


typelib
Author(s): Sylvain Joyeux/sylvain.joyeux@m4x.org
autogenerated on Fri Jan 11 09:36:57 2013