parcel | Clownfish |
class variable | CFISH_HASHITERATOR |
struct symbol | cfish_HashIterator |
class nickname | cfish_HashIter |
header file | Clownfish/HashIterator.h |
Clownfish::HashIterator – Hashtable Iterator.
cfish_HashIterator* // incremented
cfish_HashIter_new(
cfish_Hash *hash
);
Return a HashIterator for hash
.
cfish_HashIterator*
cfish_HashIter_init(
cfish_HashIterator *self,
cfish_Hash *hash
);
Initialize a HashIterator for hash
.
bool
cfish_HashIter_Next(
cfish_HashIterator *self
);
Advance the iterator to the next key-value pair.
Returns: true if there’s another key-value pair, false if the iterator is exhausted.
cfish_String*
cfish_HashIter_Get_Key(
cfish_HashIterator *self
);
Return the key of the current key-value pair. It’s not allowed to call this method before Next() was called for the first time or after the iterator was exhausted.
cfish_Obj*
cfish_HashIter_Get_Value(
cfish_HashIterator *self
);
Return the value of the current key-value pair. It’s not allowed to call this method before Next() was called for the first time or after the iterator was exhausted.
Clownfish::HashIterator is a Clownfish::Obj.
Copyright © 2010-2015 The Apache Software Foundation, Licensed under the
Apache License, Version 2.0.
Apache Lucy, Lucy, Apache, the Apache feather logo, and the Apache Lucy project logo are trademarks of The
Apache Software Foundation. All other marks mentioned may be trademarks or registered trademarks of their
respective owners.