System::Collections::Generic::BaseEnumerator 클래스

BaseEnumerator class

Enumerator definition to wrap STL-styled types for C#-styled usage. Makes no assertions on container structure except for existance of sequental iterator. Uses begin() and end() functions. 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 BaseEnumerator : public System::Collections::Generic::IEnumerator<Element>
매개변수설명
컨테이너STL 스타일 컨테이너 타입.
Element요소 타입.

메서드

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

또 보기