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>
매개변수설명
컨테이너반복할 컨테이너.
Element요소 타입.

메서드

메서드설명
get_Current() const override‘현재’ 요소를 가져옵니다.
IsValid() const끝에 도달하지 않았으며 MoveNext()가 호출되었는지 확인합니다.
MoveNext() override열거자 스타일 증가.
Reset() override요소를 다시 열거할 수 있도록 열거자를 재설정합니다.
ReverseEnumerator(const Object::ptr&, Container&)반복자를 초기화합니다.
virtual ~ReverseEnumerator()소멸자.

또 보기