#include <OTC/collctn/anchor.hh> class OTC_Anchor : public OTC_Linkable {
public:
static os_typespec* get_os_typespec();
inline OTC_Anchor();
~OTC_Anchor();
};
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.
inline OTC_Anchor();
~OTC_Anchor();
unlink()
from the OTC_Linkable
destructor.
OTC_Anchor
must always be created on the
free store using new
.
OTC_Linkable
, OTC_Link
, OTC_LinkIterator