CCAFFEINE  0.8.8
Public Member Functions | Private Attributes
jcpp::GenericHashEnum Class Reference

#include <GenericHashEnum.h>

Inheritance diagram for jcpp::GenericHashEnum:
Inheritance graph
[legend]
Collaboration diagram for jcpp::GenericHashEnum:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 GenericHashEnum (HashKey **ary, int count)
virtual boolean hasMoreElements ()
virtual ObjectnextElement ()

Private Attributes

HashKey ** vector
int posn
int vector_count

Detailed Description

This enumeration class is used in conjunction with a javalike hash table. The exception to this behavior is that unlike java, adding/deleting in a hashtable after starting the enumeration is not supported.


Constructor & Destructor Documentation

jcpp::GenericHashEnum::GenericHashEnum ( HashKey **  ary,
int  count 
)

The array ary is hence forth memory managed by the enum.


Member Function Documentation

virtual boolean jcpp::GenericHashEnum::hasMoreElements ( ) [virtual]

Returns true while enumeration has more elements available

Implements jcpp::Enumeration.

fetches the next element or returns 0 if none left.

Implements jcpp::Enumeration.


Member Data Documentation

we take ary and make a vector out of it.

next element pointer


The documentation for this class was generated from the following file: