Entropy Piano Tuner  1.1.3 (documentation not yet complete)
An open-source experimental software for piano tuning by entropy minimization
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
AlgorithmFactory< AlgorithmClass > Class Template Reference

The AlgorithmFactory class is a template class to be created with the actual Algorithm. More...

#include <algorithmfactory.h>

+ Inheritance diagram for AlgorithmFactory< AlgorithmClass >:
+ Collaboration diagram for AlgorithmFactory< AlgorithmClass >:

Protected Member Functions

 AlgorithmFactory (const AlgorithmFactoryDescription &description)
 
virtual std::unique_ptr
< Algorithm
createAlgorithm (const Piano &piano)
 
- Protected Member Functions inherited from AlgorithmFactoryBase
 AlgorithmFactoryBase (const AlgorithmFactoryDescription &description)
 
void loadDefaultParams ()
 

Private Member Functions

template<>
const AlgorithmFactory
< entropyminimizer::EntropyMinimizer
mSingleton (AlgorithmFactoryDescription("entropyminimizer"))
 
template<>
const AlgorithmFactory
< examplealgorithm::ExampleAlgorithm
mSingleton (AlgorithmFactoryDescription("examplealgorithm"))
 
template<>
const AlgorithmFactory
< pitchraise::PitchRaise
mSingleton (AlgorithmFactoryDescription("pitchraise"))
 
template<>
const AlgorithmFactory
< resettorecording::ResetToRecording
mSingleton (AlgorithmFactoryDescription("resettorecording"))
 

Static Private Attributes

static const AlgorithmFactory mSingleton
 

Additional Inherited Members

- Public Member Functions inherited from AlgorithmFactoryBase
AlgorithmFactoryDescriptiongetDescription ()
 
- Protected Attributes inherited from AlgorithmFactoryBase
AlgorithmFactoryDescription mDescription
 

Detailed Description

template<typename AlgorithmClass>
class AlgorithmFactory< AlgorithmClass >

The AlgorithmFactory class is a template class to be created with the actual Algorithm.

It overwrites the createAlgorithm method of AlgorithmFactoryBase for creating the AlgorithmClass template argument.

Definition at line 65 of file algorithmfactory.h.

Constructor & Destructor Documentation

template<typename AlgorithmClass>
AlgorithmFactory< AlgorithmClass >::AlgorithmFactory ( const AlgorithmFactoryDescription description)
inlineprotected

Definition at line 71 of file algorithmfactory.h.

Member Function Documentation

template<typename AlgorithmClass>
virtual std::unique_ptr<Algorithm> AlgorithmFactory< AlgorithmClass >::createAlgorithm ( const Piano piano)
inlineprotectedvirtual

Implements AlgorithmFactoryBase.

Definition at line 76 of file algorithmfactory.h.

+ Here is the call graph for this function:

template<>
const AlgorithmFactory< pitchraise::PitchRaise > AlgorithmFactory< pitchraise::PitchRaise >::mSingleton ( AlgorithmFactoryDescription("pitchraise")  )
private

Member Data Documentation

template<typename AlgorithmClass>
const AlgorithmFactory AlgorithmFactory< AlgorithmClass >::mSingleton
staticprivate

Definition at line 68 of file algorithmfactory.h.


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