HydraExpress™ C++ 2019 |
HydraExpress™ C++ API Reference Guide |
Product Documentation: HydraExpress C++ Documentation Home |
Provides an interface for iterating over any RWSF container type implementations. More...
#include <rwsf/core/Enumeration.h>
Public Member Functions | |
Enumeration () | |
Enumeration (const Enumeration< T > &rhs) | |
virtual | ~Enumeration () |
bool | hasMoreElements () const |
T | nextElement () |
Enumeration< T > & | operator= (const Enumeration< T > &rhs) |
Public Member Functions inherited from rwsf::HandleBase | |
bool | isValid (void) const |
bool | operator!= (const HandleBase &second) const |
bool | operator== (const HandleBase &second) const |
Additional Inherited Members | |
Protected Member Functions inherited from rwsf::HandleBase | |
HandleBase (void) | |
HandleBase (StaticCtor) | |
HandleBase (BodyBase *body) | |
HandleBase (const HandleBase &second) | |
virtual | ~HandleBase (void) |
BodyBase & | body (void) const |
HandleBase & | operator= (const HandleBase &second) |
rwsf::Enumeration holds a sequence of values of type T
. The class provides a convenient interface for iterating over a variety of different container type implementations. All RWSF container implementations can be accessed through the rwsf::Enumeration interface.
Basic usage example:
rwsf::Enumeration< T >::Enumeration | ( | ) |
Creates an empty enumeration. Use the copy constructor to create a valid enumeration.
rwsf::Enumeration< T >::Enumeration | ( | const Enumeration< T > & | rhs | ) |
Copy constructor. Attaches to and increments the reference count on the body instance of rhs.
|
virtual |
Detaches from the current body (if any), decrements its reference count, and deletes it if there are no other references.
bool rwsf::Enumeration< T >::hasMoreElements | ( | ) | const |
Returns true
if there are more elements in this enumeration, otherwise returns false
.
T rwsf::Enumeration< T >::nextElement | ( | ) |
Returns the next element if there are more elements, otherwise throws an rwsf::OutOfBoundsException("Invalid usage") exception.
Enumeration<T>& rwsf::Enumeration< T >::operator= | ( | const Enumeration< T > & | rhs | ) |
Assignment operator.
Copyright © 2019 Rogue Wave Software, Inc. All Rights Reserved. |