VCF::EnumeratorMapContainer< COLLECTION, COLLECTION_TYPE > Class Template Reference
EnumeratorMapContainer is based on some COLLECTION class that represents an associative collection of some sort, i.e. More...
#include <vcf/FoundationKit/Enumerator.h>
Inheritance diagram for VCF::EnumeratorMapContainer< COLLECTION, COLLECTION_TYPE >:

Public Member Functions | |
| EnumeratorMapContainer (COLLECTION &container) | |
| EnumeratorMapContainer () | |
| virtual | ~EnumeratorMapContainer () |
| virtual void | initContainer (COLLECTION &container) |
| virtual Enumerator< COLLECTION_TYPE > * | getEnumerator () const |
| virtual bool | hasMoreElements (const bool &backward=false) const |
| indicates whether there are any more children to enumerate through | |
| virtual COLLECTION_TYPE | nextElement () |
| returns the next element in the enumeration. | |
| virtual COLLECTION_TYPE | prevElement () |
| returns the previous element in the enumeration. | |
| virtual void | reset (const bool &backward=false) const |
| Resets the Enumerator's internal iterator back to the beginning (or end, if backward is true). | |
Detailed Description
template<class COLLECTION, class COLLECTION_TYPE>
class VCF::EnumeratorMapContainer< COLLECTION, COLLECTION_TYPE >
EnumeratorMapContainer is based on some COLLECTION class that represents an associative collection of some sort, i.e.
std::map<>
The internal implementation counts on the collection having a common interface to STL's collection classes.
The collection must support forward and reverse iterators
The COLLECTION type specifies the full collection associated with the enumerator.
For example, an enumerator container of Object* using a std::map as it's collection type would look like this:
EnumeratorMapContainer<std::map<String,Object*>,Object*> objectMapEnumerator;
Constructor & Destructor Documentation
|
||||||||||
|
|
|
|||||||||
|
|
|
|||||||||
|
|
Member Function Documentation
|
|||||||||
|
|
|
||||||||||
|
indicates whether there are any more children to enumerate through
Implements VCF::Enumerator< COLLECTION_TYPE >. |
|
||||||||||
|
|
|
|||||||||
|
returns the next element in the enumeration. Moves the internal iterator forward
Implements VCF::Enumerator< COLLECTION_TYPE >. |
|
|||||||||
|
returns the previous element in the enumeration. Moves the internal iterator backward
Implements VCF::Enumerator< COLLECTION_TYPE >. |
|
||||||||||
|
Resets the Enumerator's internal iterator back to the beginning (or end, if backward is true).
Implements VCF::Enumerator< COLLECTION_TYPE >. |
The documentation for this class was generated from the following file:
- vcf/FoundationKit/Enumerator.h
