Generic iterator class.
Generic iterator class. This class represents a position in a list (see GList) or a map (see GMap). As demonstrated by the following examples, this class should be used to iterate over the objects contained in a list or a map:void print_list(GList<GString> a) { for (GPosition i = a ; i; ++i) printf("%s\n", (const char*) a[i] ); } void print_list_backwards(GList<GString> a) { for (GPosition i = a.lastpos() ; i; --i) printf("%s\n", (const char*) a[i] ); }GPosition objects should only be used with the list or map for which they have been created (using the member functions firstpos or lastpos of the container). Furthermore, you should never use a GPosition object which designates a list element which has been removed from the list (using member function del or by other means.)
GPosition(const GPosition &ref)
operator int() const
int operator !() const
GPosition& operator ++()
GPosition& operator --()
Alphabetic index HTML hierarchy of classes or Java