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>
| Parameter | Περιγραφή |
|---|---|
| Κοντέινερ | Τύπος container τύπου STL. |
| Element | Τύπος στοιχείου. |
Μέθοδοι
| Μέθοδος | Περιγραφή |
|---|---|
| BaseEnumerator(const Object::ptr&, Container&) | Αρχικοποιεί τον iterator. |
| IsValid() const | Ελέγχει εάν κλήθηκε το MoveNext() και δεν έχει φτάσει το τέλος. |
| MoveNext() override | Αύξηση σε στυλ enumerator. |
| Reset() override | Επαναφέρει τον enumerator για να επιτρέψει την επανεξέταση των στοιχείων. |
Δείτε επίσης
- Class IEnumerator
- Namespace System::Collections::Generic
- Library Aspose.Page for C++