|
CCAFFEINE
0.8.8
|
#include <GenericHashEnum.h>


Public Member Functions | |
| GenericHashEnum (HashKey **ary, int count) | |
| virtual boolean | hasMoreElements () |
| virtual Object * | nextElement () |
Private Attributes | |
| HashKey ** | 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::GenericHashEnum::GenericHashEnum | ( | HashKey ** | ary, |
| int | count | ||
| ) |
The array ary is hence forth memory managed by the enum.
| virtual boolean jcpp::GenericHashEnum::hasMoreElements | ( | ) | [virtual] |
Returns true while enumeration has more elements available
Implements jcpp::Enumeration.
| virtual Object* jcpp::GenericHashEnum::nextElement | ( | ) | [virtual] |
fetches the next element or returns 0 if none left.
Implements jcpp::Enumeration.
HashKey** jcpp::GenericHashEnum::vector [private] |
we take ary and make a vector out of it.
int jcpp::GenericHashEnum::posn [private] |
next element pointer
1.7.6.1