jcpp::HashEnum Class Reference

#include <HashEnum.h>

Inheritance diagram for jcpp::HashEnum:

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

Collaboration graph
[legend]

List of all members.

Public Member Functions

 HashEnum (Object **ary, int count)
boolean hasMoreElements ()
ObjectnextElement ()

Private Attributes

Object ** 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::HashEnum::HashEnum ( Object **  ary,
int  count 
)

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


Member Function Documentation

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

Returns true while enumeration has more elements available

Implements jcpp::Enumeration.

Object* jcpp::HashEnum::nextElement (  )  [virtual]

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.

int jcpp::HashEnum::posn [private]

next element pointer


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

Generated on Thu Sep 17 08:21:31 2009 for CCAFFEINE by  doxygen 1.5.9