19 m_nParameterAccessAttempts(0)
69 return pExternalParameters;
77 for (
const TheMap::value_type &pandoraMapEntry :
m_theMap)
79 for (
const AlgTypeToParametersMap::value_type &algorithmMapEntry : pandoraMapEntry.second)
80 delete algorithmMapEntry.second;
88 return ((m_theMap.count(&
pandora) > 0) && (m_theMap.at(&
pandora).count(algorithmType) > 0));
98 return m_theMap.at(&
pandora).at(algorithmType);
106 if (!pExternalParameters)
107 return STATUS_CODE_INVALID_PARAMETER;
109 if (!m_theMap[&
pandora].insert(AlgTypeToParametersMap::value_type(algorithmType, pExternalParameters)).second)
110 return STATUS_CODE_ALREADY_PRESENT;
112 return STATUS_CODE_SUCCESS;
122 AlgTypeToParametersMap::iterator iter(algTypeToParametersMap.find(algorithmType));
124 if (algTypeToParametersMap.end() != iter)
127 algTypeToParametersMap.erase(iter);
External parameters class.
ExternalParameters()
Default constructor.
unsigned int m_nParameterAccessAttempts
The number of attempts made to access the external parameters.
void RegisterParameterAccessAttempt()
Register an attempt to access the external parameters during algorithm configuration.
virtual ~ExternalParameters()
Destructor.
const std::string & GetType() const
Get the type.
const Pandora & GetPandora() const
Get the associated pandora instance.
StatusCodeException class.
StatusCode
The StatusCode enum.