Cute Chess  0.1
Public Member Functions | List of all members
ClassRegistration< T > Class Template Reference

A class for registering a new subclass of the templated class. More...

#include <classregistry.h>

Public Member Functions

 ClassRegistration (ClassRegistry< T > *registry, typename ClassRegistry< T >::Factory factory, const QString &key)
 

Detailed Description

template<class T>
class ClassRegistration< T >

A class for registering a new subclass of the templated class.

Constructor & Destructor Documentation

template<class T >
ClassRegistration< T >::ClassRegistration ( ClassRegistry< T > *  registry,
typename ClassRegistry< T >::Factory  factory,
const QString key 
)
inline

Creates a new registration object and adds (registers) a new class to a class registry.

Parameters
registryA registry where the class is added.
factoryA factory function for creating instances of the class.
keyA key (class name) associated with the class.

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