NAME

OTC_Holder - Holder to hold an instance of type T.

SYNOPSIS


#include <OTC/collctn/holder.hh>

template<class T>
class OTC_Holder : public OTC_Link
{
  public:
    static os_typespec* get_os_typespec();
    ~OTC_Holder();
    OTC_Holder(T const& aItem);
    inline T& item();
};

CLASS TYPE

Concrete

DESCRIPTION

This class is a holder for an item of type T within a linked list. Note that when parameterised over a pointer type, the object held is not deleted when the holder is destroyed.

DESTRUCTION

~OTC_Holder();

INITIALISATION

OTC_Holder(T const& aItem);

RETRIEVAL

inline T& item();

SEE ALSO

OTC_Link, OTC_Bucket

LIBRARY

OTC

AUTHOR(S)

Graham Dumpleton

COPYRIGHT

Copyright 1992 1993 OTC LIMITED
Copyright 1994 DUMPLETON SOFTWARE CONSULTING PTY LIMITED