Classe System::Collections::Generic::ReverseEnumerator

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>
ParamètreDescription
ConteneurConteneur à parcourir.
ÉlémentType d’élément.

Méthodes

MéthodeDescription
get_Current() const overrideObtient l’élément ‘courant’.
IsValid() constVérifie si MoveNext() a été appelé et que la fin n’a pas été atteinte.
MoveNext() overrideIncrémentation de type énumérateur.
Reset() overrideRéinitialise l’énumérateur pour permettre de réénumérer les éléments.
ReverseEnumerator(const Object::ptr&, Container&)Initialise l’itérateur.
virtual ~ReverseEnumerator()Destructeur.

Voir aussi