CHashTableExample Class Reference

List of all members.

Public Member Functions

 ~CHashTableExample ()
void ConstructDefaultHashSet ()
void ConstructOwnHashSet ()
void OperationsToHashSetL ()
void ConstructDefaultPtrHashSet ()
void ConstructOwnPtrHashSet ()
void OperationsToPtrHashSetL ()
void ConstructDefaultHashMap ()
void ConstructOwnHashMap ()
void OperationsToHashMapL ()
void ConstructDefaultPtrHashMap ()
void ConstructOwnPtrHashMap ()
void OperationsToPtrHashMapL ()

Static Public Member Functions

static CHashTableExampleNewL ()

Detailed Description

Demonstrates some uses of the Symbian platform hash table APIs of the User Library component.

The class demonstrates how to construct and operate a hash set, a hash set of pointers, a hash map and a hash map of pointers.

  • Construction of these includes
    • using the default hash and identity functions for integers and for descriptors
    • providing custom hash and identity functions
  • Operation of these includes
    • inserting items
    • finding items
    • removing items
    • iterating through items
    • closing and cleanup

Definition at line 92 of file hashtableexample.h.


Constructor & Destructor Documentation

CHashTableExample::~CHashTableExample (  ) 

Destructor

Definition at line 44 of file hashtableexample.cpp.


Member Function Documentation

CHashTableExample * CHashTableExample::NewL (  )  [static]

Allocates and constructs a CHashTableExample object. Initialises all member data to their default values.

Returns:
A CHashTableExample object

Definition at line 55 of file hashtableexample.cpp.

void CHashTableExample::ConstructDefaultHashSet (  ) 

Constructs a hash set using the default hash and identity functions for integers and for descriptors.

Definition at line 68 of file hashtableexample.cpp.

void CHashTableExample::ConstructOwnHashSet (  ) 

Constructs a hash set using the custom hash and identity functions to demonstrate the options. The objects declared aren't used elsewhere in the example.

Definition at line 120 of file hashtableexample.cpp.

void CHashTableExample::OperationsToHashSetL (  ) 

Applies various operations to hash set:

  • Inserting items
  • Finding items
  • Iterating items
  • Removing items
  • closing and cleanup items KErrNoMemory An attempt to allocate memory has failed KErrNotFound Item not found

Definition at line 143 of file hashtableexample.cpp.

void CHashTableExample::ConstructDefaultPtrHashSet (  ) 

Constructs a hash set of pointers using the default hash and identity functions for integers and for descriptors

Definition at line 228 of file hashtableexample.cpp.

void CHashTableExample::ConstructOwnPtrHashSet (  ) 

Constructs hash set of pointers using the custom hash and identity functions to demonstrate the options. The objects declared aren't used elsewhere in the example.

Definition at line 248 of file hashtableexample.cpp.

void CHashTableExample::OperationsToPtrHashSetL (  ) 

Applies various operations to hash set of pointers:

  • Inserting items
  • Finding items
  • Iterating items
  • Removing items.
  • Closing and cleanup items. KErrNoMemory An attempt to allocate memory has failed KErrNotFound Item not found

Definition at line 342 of file hashtableexample.cpp.

void CHashTableExample::ConstructDefaultHashMap (  ) 

Constructs a hash map using the default hash and identity functions for integers and for descriptors.

Definition at line 431 of file hashtableexample.cpp.

void CHashTableExample::ConstructOwnHashMap (  ) 

Constructs a hash map using the custom hash and identity functions to demonstrate the options. The objects declared aren't used elsewhere in the example.

Definition at line 451 of file hashtableexample.cpp.

void CHashTableExample::OperationsToHashMapL (  ) 

Applies various operations to hash map:

  • Inserting items
  • Finding items
  • Iterating items
  • Removing items
  • Closing and cleanup items. KErrNoMemory An attempt to allocate memory has failed KErrNotFound Item not found

Definition at line 474 of file hashtableexample.cpp.

void CHashTableExample::ConstructDefaultPtrHashMap (  ) 

Constructs hash map of pointers using the default hash and identity functions for integers and for descriptors.

Definition at line 552 of file hashtableexample.cpp.

void CHashTableExample::ConstructOwnPtrHashMap (  ) 

Constructs hash map of pointers using the custom hash and identity functions to demonstrate the options. The objects declared aren't used elsewhere in the example.

Definition at line 572 of file hashtableexample.cpp.

void CHashTableExample::OperationsToPtrHashMapL (  ) 

Applies various operations to hash map of pointers:

  • Inserting items
  • Finding items
  • Iterating items
  • Removing items
  • Closing and cleanup items. KErrNoMemory An attempt to allocate memory has failed KErrNotFound Item not found

Definition at line 595 of file hashtableexample.cpp.


Generated by  doxygen 1.6.2