RHashTableBase Class Reference
Base class used in the derivation of RHashSet<T>, RPtrHashSet<T>, RHashMap<K,V> and RPtrHashMap<K,V>.
This class provides a general hash table implementation using probe sequences generated by pseudo-double hashing. The class is internal and is not intended for use.
Nested Classes and Structures
-
RHashTableBase::Defaults
-
RHashTableBase::Defaults< TDesC16 *, RHashTableBase::EDefaultSpecifier_Normal >
-
RHashTableBase::Defaults< TDesC16, RHashTableBase::EDefaultSpecifier_Normal >
-
RHashTableBase::Defaults< TDesC8 *, RHashTableBase::EDefaultSpecifier_Normal >
-
RHashTableBase::Defaults< TDesC8, RHashTableBase::EDefaultSpecifier_Normal >
-
RHashTableBase::Defaults< TInt *, RHashTableBase::EDefaultSpecifier_Normal >
-
RHashTableBase::Defaults< TInt, RHashTableBase::EDefaultSpecifier_Normal >
-
RHashTableBase::Defaults< TInt32 *, RHashTableBase::EDefaultSpecifier_Normal >
-
RHashTableBase::Defaults< TInt32, RHashTableBase::EDefaultSpecifier_Normal >
-
RHashTableBase::Defaults< TUint *, RHashTableBase::EDefaultSpecifier_Normal >
-
RHashTableBase::Defaults< TUint, RHashTableBase::EDefaultSpecifier_Normal >
-
RHashTableBase::Defaults< TUint32 *, RHashTableBase::EDefaultSpecifier_Normal >
-
RHashTableBase::Defaults< TUint32, RHashTableBase::EDefaultSpecifier_Normal >
-
RHashTableBase::SElement
Protected Member Functions
|
|
RHashTableBase
(
TGeneralHashFunction32
,
TGeneralIdentityRelation
,
TInt
,
TInt
)
|
IMPORT_C void
|
Close
()
|
IMPORT_C void
|
ConsistencyCheck
(
TUint32
*,
TUint32
*,
TUint32
,
TUint32
*)
|
IMPORT_C
TInt
|
Count
()
|
IMPORT_C
TAny
*
|
Find
(const
TAny
*,
TInt
)
|
IMPORT_C
TAny
*
|
FindL
(const
TAny
*,
TInt
)
|
TInt
|
Insert
(const
TAny
*,
TAny
*&)
|
IMPORT_C
TInt
|
PtrInsert
(const
TAny
*, const
TAny
*)
|
IMPORT_C void
|
PtrInsertL
(const
TAny
*, const
TAny
*)
|
IMPORT_C
TInt
|
Remove
(const
TAny
*)
|
IMPORT_C
TInt
|
Reserve
(
TInt
)
|
IMPORT_C void
|
ReserveL
(
TInt
)
|
IMPORT_C
TInt
|
ValueInsert
(const
TAny
*,
TInt
, const
TAny
*,
TInt
,
TInt
)
|
IMPORT_C void
|
ValueInsertL
(const
TAny
*,
TInt
, const
TAny
*,
TInt
,
TInt
)
|
Constructor & Destructor Documentation
RHashTableBase(TGeneralHashFunction32, TGeneralIdentityRelation, TInt, TInt)
Member Functions Documentation
Close()
IMPORT_C void
|
Close
|
(
|
)
|
[protected]
|
ConsistencyCheck(TUint32 *, TUint32 *, TUint32, TUint32 *)
IMPORT_C void
|
ConsistencyCheck
|
(
|
TUint32
*
|
aDeleted = 0,
|
|
TUint32
*
|
aComparisons = 0,
|
|
TUint32
|
aChainLimit = 0,
|
|
TUint32
*
|
aChainInfo = 0
|
|
)
|
[protected]
|
Count()
IMPORT_C
TInt
|
Count
|
(
|
)
|
const [protected]
|
ElementC(TInt)
const
SElement
*
|
ElementC
|
(
|
TInt
|
aIndex
|
)
|
const [private, inline]
|
ExpandTable(TInt)
TInt
|
ExpandTable
|
(
|
TInt
|
aNewIndexBits
|
)
|
[private]
|
Find(const TAny *, TInt)
IMPORT_C
TAny
*
|
Find
|
(
|
const
TAny
*
|
aKey,
|
|
TInt
|
aOffset = 0
|
|
)
|
const [protected]
|
FindL(const TAny *, TInt)
IMPORT_C
TAny
*
|
FindL
|
(
|
const
TAny
*
|
aKey,
|
|
TInt
|
aOffset = 0
|
|
)
|
const [protected]
|
GetKey(const SElement *)
TAny
*
|
GetKey
|
(
|
const
SElement
*
|
aElement
|
)
|
const [private, inline]
|
Insert(const TAny *, TAny *&)
TInt
|
Insert
|
(
|
const
TAny
*
|
aKey,
|
|
TAny
*&
|
aElement
|
|
)
|
[protected]
|
PtrInsert(const TAny *, const TAny *)
IMPORT_C
TInt
|
PtrInsert
|
(
|
const
TAny
*
|
aKey,
|
|
const
TAny
*
|
aValue
|
|
)
|
[protected]
|
PtrInsertL(const TAny *, const TAny *)
IMPORT_C void
|
PtrInsertL
|
(
|
const
TAny
*
|
aKey,
|
|
const
TAny
*
|
aValue
|
|
)
|
[protected]
|
ReformTable(TUint)
void
|
ReformTable
|
(
|
TUint
|
aNewIndexBits
|
)
|
[private]
|
Remove(const TAny *)
IMPORT_C
TInt
|
Remove
|
(
|
const
TAny
*
|
aKey
|
)
|
[protected]
|
Reserve(TInt)
IMPORT_C
TInt
|
Reserve
|
(
|
TInt
|
aCount
|
)
|
[protected]
|
ReserveL(TInt)
IMPORT_C void
|
ReserveL
|
(
|
TInt
|
aCount
|
)
|
[protected]
|
SetThresholds()
void
|
SetThresholds
|
(
|
)
|
[private]
|
ShrinkTable()
void
|
ShrinkTable
|
(
|
)
|
[private]
|
ValueInsert(const TAny *, TInt, const TAny *, TInt, TInt)
IMPORT_C
TInt
|
ValueInsert
|
(
|
const
TAny
*
|
aKey,
|
|
TInt
|
aKeySize,
|
|
const
TAny
*
|
aValue,
|
|
TInt
|
aValueOffset,
|
|
TInt
|
aValueSize
|
|
)
|
[protected]
|
ValueInsertL(const TAny *, TInt, const TAny *, TInt, TInt)
IMPORT_C void
|
ValueInsertL
|
(
|
const
TAny
*
|
aKey,
|
|
TInt
|
aKeySize,
|
|
const
TAny
*
|
aValue,
|
|
TInt
|
aValueOffset,
|
|
TInt
|
aValueSize
|
|
)
|
[protected]
|
VerifyReform()
void
|
VerifyReform
|
(
|
)
|
[private]
|
Member Enumerations Documentation
Enum TElementState
Enumerators
EEmpty = 0
|
|
EDeleted = 1
|
|
EGen0 = 2
|
|
EGen1 = 3
|
|
EStateMask = 3
|
|
EOccupiedMask = 2
|
|
Member Data Documentation
TInt
iElementSize
TInt
|
iElementSize
|
[private]
|
TAny * iElements
TAny
*
|
iElements
|
[private]
|
TGeneralHashFunction32
iHashFunc
TGeneralIdentityRelation
iIdFunc
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.