Loki::SmartPointer< AbstractProduct, OwnershipPolicy, ConversionPolicy, CheckingPolicy, ConstnessPolicy > Class Template Reference
[Encapsulation policies]

Encapsulate the object in a SmartPtr with FunctionStorage policy. More...

#include <SPCachedFactory.h>

List of all members.

Protected Types

typedef CallBackSP ProductReturn

Protected Member Functions

 SmartPointer ()
virtual ~SmartPointer ()
ProductReturn encapsulate (AbstractProduct *pProduct)
AbstractProduct * release (ProductReturn &pProduct)
const char * name ()


Detailed Description

template<class AbstractProduct, template< class > class OwnershipPolicy = RefCounted, class ConversionPolicy = DisallowConversion, template< class > class CheckingPolicy = AssertCheck, template< class > class ConstnessPolicy = LOKI_DEFAULT_CONSTNESS>
class Loki::SmartPointer< AbstractProduct, OwnershipPolicy, ConversionPolicy, CheckingPolicy, ConstnessPolicy >

Encapsulate the object in a SmartPtr with FunctionStorage policy.

The object will come back to the Cache as soon as no more SmartPtr are referencing this object. You can customize the SmartPointer with the standard SmartPtr policies (OwnershipPolicy, ConversionPolicy, CheckingPolicy, ConstnessPolicy) but StoragePolicy is forced to FunctionStorage.

Definition at line 165 of file SPCachedFactory.h.


The documentation for this class was generated from the following file:
Generated on Sun Feb 25 16:52:48 2007 for Loki by  doxygen 1.5.1-p1