NAME

OTC_ListI - Base functionality for a list.

SYNOPSIS


#include <OTC/collctn/listi.hh>

class OTC_ListI
{
  public:
    ~OTC_ListI();
    OTC_ListI();
    OTC_ListI(OTC_ListI const& theList);
    inline OTC_LinkList* list() const;
    inline OTC_AVLTree* tree() const;
    inline u_int population() const;
    inline OTC_Boolean isEmpty() const;
    inline void removeAll();
    inline void removeFirst();
    inline void removeLast();
    void removeItem(int theIndex);
    void removeRange(int theStart, u_int theLength);
    inline void removeRange(OTC_Range theRange);
    OTC_Link* first() const;
    OTC_Link* last() const;
    OTC_Link* item(int theIndex) const;
    inline void addFirst(OTC_Link* theLink);
    inline void addLast(OTC_Link* theLink);
    void addBeforeItem(OTC_Link* theLink, int theIndex);
};

CLASS TYPE

Abstract

DESCRIPTION

The OTC_ListI class encapsulates the base functionality for implementing OTC_List.

INITIALISATION

OTC_ListI();
OTC_ListI(OTC_ListI const& theList);

QUERY

inline OTC_LinkList* list() const;
inline OTC_AVLTree* tree() const;
inline u_int population() const;
inline OTC_Boolean isEmpty() const;

REMOVAL

inline void removeAll();
inline void removeFirst();
inline void removeLast();
void removeItem(int theIndex);
void removeRange(int theStart, u_int theLength);
inline void removeRange(OTC_Range theRange);

RETRIEVAL

OTC_Link* first() const;
OTC_Link* last() const;
OTC_Link* item(int theIndex) const;

ADDITION

inline void addFirst(OTC_Link* theLink);
inline void addLast(OTC_Link* theLink);
void addBeforeItem(OTC_Link* theLink, int theIndex);

LIBRARY

OTC

AUTHOR(S)

Graham Dumpleton

COPYRIGHT

Copyright 1994 DUMPLETON SOFTWARE CONSULTING PTY LIMITED