std::map<ParticipantSpecificInfoKey::Type, UIntN> ParticipantGetSpecificInfo_001::getParticipantSpecificInfo(
    UIntN participantIndex, const std::vector<ParticipantSpecificInfoKey::Type>& requestedInfo)
{
    updateCacheIfCleared();

    std::map<ParticipantSpecificInfoKey::Type, UIntN> resultMap;

    for (auto it = requestedInfo.cbegin(); it != requestedInfo.cend(); it++)
    {
        try
        {
            UIntN temperature = m_cachedData.at(*it);
            resultMap.insert(std::pair<ParticipantSpecificInfoKey::Type, UIntN>(*it, temperature));
        }
        catch (...)
        {
            // if the primitive isn't available in m_cachedData we receive an exception and
            // we don't add this item to the map
        }
    }

    return resultMap;
}
Beispiel #2
0
DomainPriority DomainPriority_001::getDomainPriority(UIntN participantIndex, UIntN domainIndex)
{
    updateCacheIfCleared(domainIndex);
    return m_currentPriority;
}