Loading...
Searching...
No Matches
modelFactory.h
Go to the documentation of this file.
// -*- Mode: C++; tab-width: 2; -*-
// vi: set ts=2:
//
#ifndef BALL_QSAR_MODELFACTORY_H
#define BALL_QSAR_MODELFACTORY_H
#ifndef BALL_CONCEPT_FACTORY_H
#include <BALL/CONCEPT/factory.h>
#endif
#ifndef MODEL
#include <BALL/QSAR/Model.h>
#endif
#ifndef QSARH
#include <BALL/QSAR/QSARData.h>
#endif
namespace BALL
{
namespace QSAR
{
//typedef Model* (*CreateMethod) (const QSARData& q);
template <typename T>
class ModelFactory
{
public:
static T* create(const QSARData& q)
{
return new T(q);
}
static T* createKernel1(const QSARData& q, int k, double p1, double p2)
{
return new T(q,k,p1,p2);
}
static T* createKernel2(const QSARData& q, String s1, String s2)
{
return new T(q,s1,s2);
}
};
}
}
#endif // BALL_QSAR_MODELFACTORY_H
Model.h
QSARData.h
BALL::QSAR::ModelFactory
Definition modelFactory.h:30
BALL::QSAR::ModelFactory::createKernel1
static T * createKernel1(const QSARData &q, int k, double p1, double p2)
Definition modelFactory.h:38
BALL::QSAR::ModelFactory::createKernel2
static T * createKernel2(const QSARData &q, String s1, String s2)
Definition modelFactory.h:43
BALL::QSAR::ModelFactory::create
static T * create(const QSARData &q)
Definition modelFactory.h:33
BALL::QSAR::QSARData
Definition QSARData.h:56
BALL::String
Definition string.h:57
factory.h
BALL::QSAR
Definition allModel.h:17
BALL
Definition constants.h:13