rutz::creator_from_func< base_t, derived_t > Class Template Reference

Implements rutz::creator_base by calling a function pointer. More...

#include <rutz/factory.h>

Inheritance diagram for rutz::creator_from_func< base_t, derived_t >:

Inheritance graph
[legend]
Collaboration diagram for rutz::creator_from_func< base_t, derived_t >:

Collaboration graph
[legend]

List of all members.

Public Types

typedef derived_t(* creator_func_t )()
 Creator function type.
typedef base_t base_t

Public Member Functions

 creator_from_func (creator_func_t func)
 Construct with a creator function.
virtual rutz::creator_base
< base_t > * 
clone () const
 Clone operator.
virtual base_t create ()
 Create an object using the creator function.


Detailed Description

template<class base_t, class derived_t>
class rutz::creator_from_func< base_t, derived_t >

Implements rutz::creator_base by calling a function pointer.

rutz::creator_from_func implements the rutz::creator_base interface by storing a pointer to function that returns an object of the appropriate type.

Definition at line 78 of file factory.h.


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

The software described here is Copyright (c) 1998-2005, Rob Peters.
This page was generated Wed Dec 3 06:56:33 2008 by Doxygen version 1.5.5.