CCAFFEINE
0.8.8
|
#include <HashEnum.h>
Public Member Functions | |
HashEnum (Object **ary, int count) | |
boolean | hasMoreElements () |
Object * | nextElement () |
Private Attributes | |
Object ** | vector |
int | posn |
int | vector_count |
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.
jcpp::HashEnum::HashEnum | ( | Object ** | ary, |
int | count | ||
) |
The array ary is hence forth memory managed by the enum.
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.
Object** jcpp::HashEnum::vector [private] |
we take ary and make a vector out of it.
int jcpp::HashEnum::posn [private] |
next element pointer