KDevelop API Documentation

Lookup Class Reference

Fast keyword lookup. More...

#include <lookup.h>

List of all members.

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 HashEntryfindEntry (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 HashEntryfindEntry (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

int Lookup::find const struct HashTable table,
const QChar c,
unsigned int  len
[static]
 

Definition at line 75 of file lookup.cpp.

References find(), findEntry(), len, and HashEntry::value.

int Lookup::find const struct HashTable table,
const QString s
[static]
 

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.

References find().

Referenced by find().

const HashEntry * Lookup::findEntry const struct HashTable table,
const QChar c,
unsigned int  len
[static]
 

Definition at line 29 of file lookup.cpp.

References HashTable::entries, findEntry(), hash(), HashTable::hashSize, len, HashEntry::next, HashEntry::s, and HashTable::type.

const HashEntry * Lookup::findEntry const struct HashTable table,
const QString s
[static]
 

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.

References findEntry().

Referenced by find(), and findEntry().

unsigned int Lookup::hash const char *  s  )  [static]
 

Definition at line 104 of file lookup.cpp.

References hash().

unsigned int Lookup::hash const QChar c,
unsigned int  len
[static]
 

Definition at line 89 of file lookup.cpp.

References hash(), and len.

unsigned int Lookup::hash const QString key  )  [static]
 

Calculate the hash value for a given key.

Definition at line 99 of file lookup.cpp.

References hash().

Referenced by findEntry(), and hash().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for KDevelop Version 3.0.4.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Oct 6 17:39:26 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003