Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

#include <e32hashtab.h>
Link against: euser.lib

Class DefaultHash

class DefaultHash;

Description

A set of common hashing functions for frequently occurring types.

Members

Defined in DefaultHash:

See also:


Member functions


Integer(const TInt &)

IMPORT_C static TUint32 Integer(const TInt &);

Description

Calculate a 32 bit hash from a 32 bit integer.

Parameters

const TInt &

Return value

TUint32

The calculated 32 bit hash value.


Des8(const TDesC8 &)

IMPORT_C static TUint32 Des8(const TDesC8 &);

Description

Calculate a 32 bit hash from an 8 bit descriptor.

Parameters

const TDesC8 &

The descriptor to be hashed.

Return value

TUint32

The calculated 32 bit hash value.


Des16(const TDesC16 &)

IMPORT_C static TUint32 Des16(const TDesC16 &);

Description

Calculate a 32 bit hash from a 16 bit descriptor.

Parameters

const TDesC16 &

The descriptor to be hashed.

Return value

TUint32

The calculated 32 bit hash value.


IntegerPtr(TInt *const &)

IMPORT_C static TUint32 IntegerPtr(TInt *const &);

Description

Calculate a 32 bit hash from a TInt pointer.

Parameters

TInt *const &

The TInt pointer to be hashed.

Return value

TUint32

The calculated 32 bit hash value.


Des8Ptr(TDesC8 *const &)

IMPORT_C static TUint32 Des8Ptr(TDesC8 *const &);

Description

Calculate a 32 bit hash from a TDesC8 pointer.

Parameters

TDesC8 *const &

The TDesC8 pointer to be hashed.

Return value

TUint32

The calculated 32 bit hash value.


Des16Ptr(TDesC16 *const &)

IMPORT_C static TUint32 Des16Ptr(TDesC16 *const &);

Description

Calculate a 32 bit hash from a TDesC16 pointer.

Parameters

TDesC16 *const &

The TDesC16 pointer to be hashed.

Return value

TUint32

The calculated 32 bit hash value.