CMS 3D CMS Logo

Public Member Functions

FFTJetDict< Key, T, Compare, Allocator > Struct Template Reference

#include <FFTJetDict.h>

Inheritance diagram for FFTJetDict< Key, T, Compare, Allocator >:
map

List of all members.

Public Member Functions

Toperator[] (const Key &) const

Detailed Description

template<class Key, class T, class Compare = std::less<Key>, class Allocator = std::allocator<std::pair<const Key,T> >>
struct FFTJetDict< Key, T, Compare, Allocator >

Definition at line 18 of file FFTJetDict.h.


Member Function Documentation

template<class Key , class T , class Compare , class Allocator >
T & FFTJetDict< Key, T, Compare, Allocator >::operator[] ( const Key &  key) const [inline]

Definition at line 25 of file FFTJetDict.h.

References end, Exception, and spr::find().

{
    typename FFTJetDict<Key,T,Compare,Allocator>::const_iterator it = 
        this->find(key);
    if (it == std::map<Key,T,Compare,Allocator>::end())
        throw cms::Exception("KeyNotFound")
            << "FFTJetDict: key \"" << key << "\" not found\n";
    return const_cast<T&>(it->second);
}