umbrello API Documentation

Lookup Class Reference

Fast keyword lookup. More...

#include <lookup.h>

List of all members.

Static Public Member Functions

static int find (const struct HashTable *table, const QString &s)
 Find an entry in the table, and return its value (i.e.
static int find (const struct HashTable *table, const QChar *c, unsigned int len)
static 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.
static const HashEntryfindEntry (const struct HashTable *table, const QChar *c, unsigned int len)
static unsigned int hash (const QString &key)
 Calculate the hash value for a given key.
static unsigned int hash (const QChar *c, unsigned int len)
static 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 QString &  s
[static]
 

Find an entry in the table, and return its value (i.e.

the value field of HashEntry)

Definition at line 86 of file lookup.cpp.

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 71 of file lookup.cpp.

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

Calculate the hash value for a given key.

Definition at line 101 of file lookup.cpp.


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for umbrello Version 3.1.0.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Tue Jun 26 08:08:05 2007 by doxygen 1.4.1 written by Dimitri van Heesch, © 1997-2003