#include <FitAlgorithmMap.h>
Inheritance diagram for SctFitter::FitAlgorithmMap:
Public Member Functions | |||
const FitAlgorithm & | getAlgorithm (const ConfigurationVariable &variable) const throw (Sct::InvalidArgument) | ||
Get the algorithm associated with the given variable
| |||
bool | setAlgorithm (string variableName, auto_ptr< FitAlgorithm >) throw () | ||
Sets the algorithm for ConfigurationVariables with variableName to the given FitAlgorithm. | |||
Static Public Member Functions | |||
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.
|
Definition at line 55 of file FitAlgorithmMap.h. Referenced by instance(). |
|
Get the algorithm associated with the given variable
Definition at line 15 of file FitAlgorithmMap.cpp. References Sct::AbstractThrowable::setSeverity(). |
|
Get the instance of the Map.
Definition at line 10 of file FitAlgorithmMap.cpp. References FitAlgorithmMap(). |
|
Sets the algorithm for ConfigurationVariables with variableName to the given FitAlgorithm. Note that auto_ptr is used to denote object transfer
Definition at line 24 of file FitAlgorithmMap.cpp. |
|
Definition at line 56 of file FitAlgorithmMap.h. |