public

Inheritance Graph

graph BT
	PointerHolderCreator
	click PointerHolderCreator "classUtil_1_1PointerHolderCreator"

Description

Creator for objects that holds a single instance.

This functor stores a pointer to a single instance of typeObjectType. It returns that pointer every time a creation is requested.

Parameters

ObjectType
Concrete type of object that will be pointed to

Author: Benjamin Eikel

Date: 2012-02-08

Public Functions

   
   
  PointerHolderCreator(ObjectType * ptr)
   
ObjectType * operator()()

Documentation

function
Util::PointerHolderCreator::PointerHolderCreator

public inline
     
     
PointerHolderCreator( ObjectType * ptr )

Defined in Util/Factory/Factory.h:104


function
Util::PointerHolderCreator::operator()

public inline
   
   
ObjectType * operator()( )

Defined in Util/Factory/Factory.h:106