Mantid
Loading...
Searching...
No Matches
Framework
API
src
CostFunctionFactory.cpp
Go to the documentation of this file.
1
// Mantid Repository : https://github.com/mantidproject/mantid
2
//
3
// Copyright © 2018 ISIS Rutherford Appleton Laboratory UKRI,
4
// NScD Oak Ridge National Laboratory, European Spallation Source,
5
// Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS
6
// SPDX - License - Identifier: GPL - 3.0 +
7
#include "
MantidAPI/CostFunctionFactory.h
"
8
#include "
MantidAPI/ICostFunction.h
"
9
#include "
MantidKernel/LibraryManager.h
"
10
11
namespace
Mantid::API
{
12
13
CostFunctionFactoryImpl::CostFunctionFactoryImpl
() : Kernel::
DynamicFactory
<
ICostFunction
>() {
14
// we need to make sure the library manager has been loaded before we
15
// are constructed so that it is destroyed after us and thus does
16
// not close any loaded DLLs with loaded algorithms in them
17
Mantid::Kernel::LibraryManager::Instance();
18
}
19
20
}
// namespace Mantid::API
CostFunctionFactory.h
ICostFunction.h
LibraryManager.h
Mantid::API::CostFunctionFactoryImpl::CostFunctionFactoryImpl
CostFunctionFactoryImpl()
Private Constructor for singleton class.
Definition
CostFunctionFactory.cpp:13
Mantid::API::ICostFunction
An interface for specifying the cost function to be used with Fit algorithm or minimizers,...
Definition
ICostFunction.h:24
Mantid::Kernel::DynamicFactory
The dynamic factory is a base dynamic factory for serving up objects in response to requests from oth...
Definition
DynamicFactory.h:47
Mantid::API
Definition
AbsorptionCorrection.h:20
Generated by
1.9.8