Lookup Class Reference
Fast keyword lookup. More...
#include <lookup.h>
Static Public Member Functions | |
int | find (const struct HashTable *table, const QString &s) |
Find an entry in the table, and return its value (i.e. | |
int | find (const struct HashTable *table, const QChar *c, unsigned int len) |
const HashEntry * | findEntry (const struct HashTable *table, const QString &s) |
Find an entry in the table, and return the entry This variant gives access to the other attributes of the entry, especially the attr field. | |
const HashEntry * | findEntry (const struct HashTable *table, const QChar *c, unsigned int len) |
unsigned int | hash (const QString &key) |
Calculate the hash value for a given key. | |
unsigned int | hash (const QChar *c, unsigned int len) |
unsigned int | hash (const char *s) |
Detailed Description
Fast keyword lookup.
Definition at line 93 of file lookup.h.
Member Function Documentation
|
Definition at line 75 of file lookup.cpp. References findEntry(), len, and HashEntry::value. |
|
Find an entry in the table, and return its value (i.e. the value field of HashEntry) Definition at line 84 of file lookup.cpp. Referenced by Lexer::nextToken(). |
|
Definition at line 29 of file lookup.cpp. References HashTable::entries, hash(), HashTable::hashSize, len, HashEntry::next, HashEntry::s, and HashTable::type. |
|
Find an entry in the table, and return the entry This variant gives access to the other attributes of the entry, especially the attr field.
Definition at line 69 of file lookup.cpp. Referenced by find(). |
|
Definition at line 104 of file lookup.cpp. |
|
Definition at line 89 of file lookup.cpp. |
|
Calculate the hash value for a given key.
Definition at line 99 of file lookup.cpp. Referenced by findEntry(). |
The documentation for this class was generated from the following files:
- lib/cppparser/lookup.h
- lib/cppparser/lookup.cpp