#include <StringMap.h>
Classes | |
class | MatchByNumber |
class | MatchByString |
Public Types | |
typedef vector_type::const_iterator | const_iterator |
typedef std::pair< std::string, int32_t > | value_type |
typedef std::vector< value_type > | vector_type |
Public Member Functions | |
void | add (const std::string &string, int32_t value) |
const_iterator | begin () const |
void | clear () |
const_iterator | end () const |
const_iterator | find (const std::string &string) const |
const_iterator | find (int32_t number) const |
int32_t | operator[] (const std::string &string) const |
const std::string & | operator[] (int32_t number) const |
size_t | size () const |
void | sort () |
Private Attributes | |
std::vector< std::pair< std::string, int32_t > > | entries_ |
Definition at line 8 of file StringMap.h.
typedef vector_type::const_iterator StringMap::const_iterator |
Definition at line 12 of file StringMap.h.
typedef std::pair<std::string, int32_t> StringMap::value_type |
Definition at line 10 of file StringMap.h.
typedef std::vector<value_type> StringMap::vector_type |
Definition at line 11 of file StringMap.h.
void StringMap::add | ( | const std::string & | string, |
int32_t | value | ||
) |
Definition at line 3 of file StringMap.cc.
References entries_.
Referenced by counter.Counter::register(), SequenceTypes.Task::remove(), and SequenceTypes.Task::replace().
|
inline |
Definition at line 31 of file StringMap.h.
References entries_.
Referenced by edm::ParameterSetConverter::convertParameterSets().
void StringMap::clear | ( | void | ) |
Definition at line 11 of file StringMap.cc.
References entries_.
Referenced by Vispa.Views.WidgetView.WidgetView::closeEvent(), Vispa.Views.BoxDecayView.BoxDecayView::closeEvent(), Vispa.Share.FindAlgorithm.FindAlgorithm::findUsingFindDialog(), Vispa.Views.LineDecayView.LineDecayView::setDataObjects(), Vispa.Views.WidgetView.WidgetView::setDataObjects(), BeautifulSoup.Tag::setString(), Vispa.Views.TreeView.TreeView::updateContent(), Vispa.Views.TableView.TableView::updateContent(), Vispa.Views.BoxDecayView.BoxDecayView::updateContent(), and Vispa.Views.PropertyView.PropertyView::updateContent().
|
inline |
Definition at line 32 of file StringMap.h.
References entries_.
Referenced by edm::ParameterSetConverter::convertParameterSets(), Types.LuminosityBlockRange::cppID(), Types.EventRange::cppID(), find(), and operator[]().
StringMap::const_iterator StringMap::find | ( | const std::string & | string | ) | const |
Definition at line 26 of file StringMap.cc.
References end(), entries_, match(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by BeautifulSoup.Tag::__getattr__(), BeautifulSoup.Tag::firstText(), and operator[]().
StringMap::const_iterator StringMap::find | ( | int32_t | number | ) | const |
Definition at line 31 of file StringMap.cc.
References entries_.
Referenced by BeautifulSoup.Tag::__getattr__(), and BeautifulSoup.Tag::firstText().
int32_t StringMap::operator[] | ( | const std::string & | string | ) | const |
return associated number, or -1 if no one is found in case the association is not unque, the choice of the returned value is undetermined note: works only after it's sorted
Definition at line 15 of file StringMap.cc.
References end(), entries_, match(), and AlCaHLTBitMon_QueryRunRegistry::string.
const std::string & StringMap::operator[] | ( | int32_t | number | ) | const |
return associated string, or "" if none is there in case the association is not unque, the choice of the returned value is undetermined note: works only after it's sorted
Definition at line 20 of file StringMap.cc.
References end(), find(), match(), and AlCaHLTBitMon_QueryRunRegistry::string.
|
inline |
Definition at line 34 of file StringMap.h.
References entries_.
Referenced by ntupleDataFormat._Collection::__iter__(), and ntupleDataFormat._Collection::__len__().
void StringMap::sort | ( | ) |
Definition at line 7 of file StringMap.cc.
References entries_.
|
private |
Definition at line 52 of file StringMap.h.
Referenced by add(), begin(), clear(), end(), find(), operator[](), size(), and sort().