NAME
OTC_Anchor -
Anchor point for objects in a linked list.
SYNOPSIS
#include <OTC/collctn/anchor.hh>
class OTC_Anchor : public OTC_Linkable
{
public:
static os_typespec* get_os_typespec();
inline OTC_Anchor();
~OTC_Anchor();
};
CLASS TYPE
Concrete
DESCRIPTION
The class OTC_Anchor is special derived version of the class
OTC_Linkable. The class is used as the anchor point on which to
hang linked lists of objects. The class, when used in pairs, also
serves the purpose of marking the boundaries of the range of an
iterator in a linked list.
CONSTRUCTION
inline OTC_Anchor();
DESTRUCTION
~OTC_Anchor();
Results in the invokation of unlink()
from the OTC_Linkable destructor.
NOTES
Instances of OTC_Anchor must always be created on the
free store using new.
SEE ALSO
OTC_Linkable, OTC_Link, OTC_LinkIterator
LIBRARY
OTC
AUTHOR(S)
Graham Dumpleton
COPYRIGHT
Copyright 1992 1993 OTC LIMITED
Copyright 1994 DUMPLETON SOFTWARE CONSULTING PTY LIMITED