#include <FitAlgorithmMap.h>
Public Member Functions | ||||
const FitAlgorithm & | getAlgorithm (string variableName) const throw (Sct::InvalidArgument) | |||
Get the algorithm associated with the given variable name
| ||||
bool | setAlgorithm (string variableName, auto_ptr< FitAlgorithm >) throw () | |||
Sets the algorithm for ConfigurationVariables with variableName to the given FitAlgorithm. | ||||
std::list< string > | listAlgorithms () const | |||
list the available algorithms | ||||
Static Public Member Functions | ||||
static FitAlgorithmMap & | instance () | |||
Get the instance of the Map. | ||||
Private Member Functions | ||||
FitAlgorithmMap () | ||||
Private Attributes | ||||
map< string, shared_ptr< FitAlgorithm > > | algMap |
The Fitter uses the map to determine which FitAlgorithm to ask to create the FitScanResult object. The Map is of course a singleton.
Make this thread-safe
Definition at line 33 of file FitAlgorithmMap.h.
|
Get the algorithm associated with the given variable name
|
|
Get the instance of the Map.
Definition at line 10 of file FitAlgorithmMap.cpp. References FitAlgorithmMap(). Referenced by SctFitter::Fitter::listFitAlgorithms(), SctFitter::ThresholdFitAlgorithm2::putInMap(), and SctFitter::ThresholdFitAlgorithm::putInMap(). Here is the call graph for this function: ![]() |
|
list the available algorithms
Definition at line 34 of file FitAlgorithmMap.cpp. References algMap. Referenced by SctFitter::Fitter::listFitAlgorithms(). |
|
Sets the algorithm for ConfigurationVariables with variableName to the given FitAlgorithm. Note that auto_ptr is used to denote object transfer
Definition at line 29 of file FitAlgorithmMap.cpp. Referenced by SctFitter::ThresholdFitAlgorithm2::putInMap(), and SctFitter::ThresholdFitAlgorithm::putInMap(). |