T
.
#include <OTC/collctn/bucket.hh> template<class T> class OTC_Bucket : public OTC_Link {
public:
static os_typespec* get_os_typespec();
~OTC_Bucket();
OTC_Bucket(T const& aItem);
inline T& item();
};
T
within a linked
list. In order to manage resources, when parameterised over
a pointer type, it is possible to define an explicit version
of OTC_BaseActions
. This allows specific actions to be performed
at the point that an object is added into the bucket, and when the
bucket is deleted.
~OTC_Bucket();
OTC_BaseActions<T>::remove()
on the item in the bucket.
OTC_Bucket(T const& aItem);
aItem
.
Invokes OTC_BaseActions<T>::add()
on the item, at the point of placing
it into the bucket.
inline T& item();
OTC_Link
, OTC_Linkable
, OTC_Anchor
, OTC_BaseActions