Mantid
Loading...
Searching...
No Matches
Classes | Namespaces | Macros | Typedefs
ICostFunction.h File Reference
#include "MantidAPI/CostFunctionFactory.h"
#include "MantidKernel/System.h"

Go to the source code of this file.

Classes

class  Mantid::API::ICostFunction
 An interface for specifying the cost function to be used with Fit algorithm or minimizers, for example, the default being least squares fitting. More...
 

Namespaces

namespace  Mantid
 Helper class which provides the Collimation Length for SANS instruments.
 
namespace  Mantid::API
 

Macros

#define DECLARE_COSTFUNCTION(classname, username)
 Macro for declaring a new type of cost functions to be used with the CostFunctionFactory. More...
 

Typedefs

using Mantid::API::ICostFunction_sptr = std::shared_ptr< ICostFunction >
 define a shared pointer to a cost function More...
 

Macro Definition Documentation

◆ DECLARE_COSTFUNCTION

#define DECLARE_COSTFUNCTION (   classname,
  username 
)
Value:
namespace { \
Mantid::Kernel::RegistrationHelper register_costfunction_##classname( \
((Mantid::API::CostFunctionFactory::Instance().subscribe<classname>(#username)), 0)); \
}
This class is simply used in the subscription of classes into the various factories in Mantid.
static T & Instance()
Return a reference to the Singleton instance, creating it if it does not already exist Creation is do...

Macro for declaring a new type of cost functions to be used with the CostFunctionFactory.

Definition at line 66 of file ICostFunction.h.