lumiera::test::Factory2 Class Reference

Factory usable if object can be constructed only by friends.

Inheritance diagram for lumiera::test::Factory2:

Inheritance graph
[legend]
Collaboration diagram for lumiera::test::Factory2:

Collaboration graph
[legend]

List of all members.

Public Types

typedef shared_ptr< ParanoidObjPType

Public Member Functions

PType operator() (uint param)
 allowed to call ctor because it's a friend of ParanoidObj.

Static Protected Member Functions

static void destroy (ParanoidObj *victim)
 custom deleter func is allowed to call ~ParanoidObj() because of friendship


Detailed Description

Definition at line 153 of file factoryspecialtest.cpp.


Member Function Documentation

PType lumiera::test::Factory2::operator() ( uint  param  )  [inline]

Note passing custom deleter.

Definition at line 162 of file factoryspecialtest.cpp.

References destroy().

00162 { return PType (new ParanoidObj(param), &destroy); }

Here is the call graph for this function:


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

Generated on Sat Aug 16 18:10:45 2008 for Lumiera by  doxygen 1.5.5