Falcon::GarbageItem Class Reference

Creates a garbageable version of an item. More...

#include <item.h>

Inheritance diagram for Falcon::GarbageItem:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 GarbageItem (const Item &origin)
Itemorigin ()
 Returns the item part stored in this garbage item.
const Itemorigin () const
 Returns the item part stored in this garbage item.
virtual ~GarbageItem ()


Detailed Description

Creates a garbageable version of an item.

This class repeats the structure of an item holding an instance of it, but it derives from Garbageable. This makes it a vessel for item references.

It must be created by a MemPool with the MemPool::referenceItem() method.


Constructor & Destructor Documentation

Falcon::GarbageItem::GarbageItem ( const Item origin  )  [inline]

virtual Falcon::GarbageItem::~GarbageItem (  )  [inline, virtual]


Member Function Documentation

Item& Falcon::GarbageItem::origin (  )  [inline]

Returns the item part stored in this garbage item.

Returns:
the held item.

const Item& Falcon::GarbageItem::origin (  )  const [inline]

Returns the item part stored in this garbage item.

Returns:
the held item.

Referenced by Falcon::Item::dereference().


The documentation for this class was generated from the following file:

Generated on Mon Oct 19 10:11:35 2009 for Falcon_Core by  doxygen 1.5.8