template<class TYPE> class GContainer: public GContainerBase

Abstract base template class for all containers.

Inheritance:


Public Methods

[more]virtual const TYPE* get(const GPosition &pos) const
Returns a constant pointer to the object located in this container at position pos.
[more]virtual TYPE* get(const GPosition &pos)
Returns a pointer to a object located in this container at position pos.


Inherited from GContainerBase:

Public Methods

ovirtual int size() const
ovirtual GPosition firstpos() const
ovirtual GPosition lastpos() const
ovirtual void nextpos(GPosition &pos) const
ovirtual void prevpos(GPosition &pos) const


Documentation

Abstract base template class for all containers. This abstract class provides virtual functions for accessing the elements of a container regardless of its nature (GArray, GList, or GMap).
ovirtual const TYPE* get(const GPosition &pos) const
Returns a constant pointer to the object located in this container at position pos. This function returns the null pointer if position pos is not a valid position for this container.

ovirtual TYPE* get(const GPosition &pos)
Returns a pointer to a object located in this container at position pos. This function returns the null pointer if position pos is not a valid position for this container.


Direct child classes:
GList
GArray

Alphabetic index HTML hierarchy of classes or Java