Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

rutz::factory_base Class Reference

#include <rutz/factory.h>

Collaboration diagram for rutz::factory_base:

Collaboration graph
[legend]
List of all members.

Detailed Description

Non-template helper class for rutz::factory.

Definition at line 115 of file factory.h.

Public Types

typedef void( fallback_t )(const rutz::fstring &)

Public Member Functions

 factory_base () throw ()
 Default constructor sets the fallback to null.
virtual ~factory_base () throw ()
 Virtual no-throw destructor for proper inheritance.
void set_fallback (rutz::shared_ptr< factory_fallback > f)
 Change the fallback object.
void set_fallback (fallback_t *fptr)
 Change the fallback function.
void try_fallback (const rutz::fstring &key) const
 Try running the fallback function for the given key.


Constructor & Destructor Documentation

rutz::factory_base::factory_base  )  throw ()
 

Default constructor sets the fallback to null.

Definition at line 71 of file factory.cc.

References GVX_TRACE.

rutz::factory_base::~factory_base  )  throw () [virtual]
 

Virtual no-throw destructor for proper inheritance.

Definition at line 78 of file factory.cc.

References GVX_TRACE.


Member Function Documentation

void rutz::factory_base::set_fallback fallback_t fptr  ) 
 

Change the fallback function.

Definition at line 90 of file factory.cc.

References GVX_TRACE, and rutz::make_shared().

void rutz::factory_base::set_fallback rutz::shared_ptr< factory_fallback f  ) 
 

Change the fallback object.

Definition at line 83 of file factory.cc.

References GVX_TRACE.

Referenced by rutz::factory< nub::ref< P > >::set_fallback().

void rutz::factory_base::try_fallback const rutz::fstring key  )  const
 

Try running the fallback function for the given key.

Definition at line 96 of file factory.cc.

References rutz::shared_ptr< T >::get(), and GVX_TRACE.

Referenced by rutz::factory< nub::ref< P > >::find_creator().


The documentation for this class was generated from the following files:
Generated on Sun Nov 22 13:51:42 2009 for iLab Neuromorphic Vision Toolkit by  doxygen 1.4.4