System::Collections::Generic::ReverseEnumerator clase
Contenido
[
Ocultar
]ReverseEnumerator class
Enumerator that reverse-iterates through container. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument.
template<typename Container,typename Element>class ReverseEnumerator : public System::Collections::Generic::IEnumerator<typename Container::value_type>
| Parámetro | Descripción |
|---|---|
| Contenedor | Contenedor para iterar. |
| Element | Tipo de elemento. |
Métodos
| Método | Descripción |
|---|---|
| get_Current() const override | Obtiene el elemento ‘actual’. |
| IsValid() const | Comprueba si se llamó a MoveNext() y no se alcanzó el final. |
| MoveNext() override | Incremento al estilo de enumerador. |
| Reset() override | Restablece el enumerador para permitir volver a enumerar los elementos. |
| ReverseEnumerator(const Object::ptr&, Container&) | Inicializa el iterador. |
| virtual ~ReverseEnumerator() | Destructor. |
Ver también
- Class IEnumerator
- Namespace System::Collections::Generic
- Library Aspose.Page for C++