lumiera::test::Factory1 Class Reference

Factory creating refcounting TargetO pointers and using placement Allocation.

Inheritance diagram for lumiera::test::Factory1:

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

Collaboration graph
[legend]

List of all members.

Public Types

typedef shared_ptr< TargetOPType

Public Member Functions

PType operator() (uint param)
 specialized Factory method doing placement new and invoking a special constructor.

Protected Member Functions

PType wrap (TargetO *tO)
 note: providing custom deleter func

Static Protected Member Functions

static void * alloc ()
 returning raw mem for new object
static void destroy (TargetO *victim)
 call dtor but don't delete mem

Static Protected Attributes

static char buff []
 we place our (single) instance here


Detailed Description

Definition at line 129 of file factoryspecialtest.cpp.


Member Function Documentation

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

Definition at line 137 of file factoryspecialtest.cpp.

References alloc(), and wrap().

00137 { return wrap (new(alloc()) TargetO(param) ); }

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