 |
Belle II Software
release-05-02-19
|
25 template<
class KeyType,
class ValueType>
30 std::vector<std::pair<KeyType, ValueType> >
m_container;
35 using BoxEntry = std::pair<KeyType, ValueType>;
39 using Iterator =
typename std::vector<BoxEntry>::iterator;
47 ValueType*
find(
const KeyType& aKey)
53 { return entry.first == aKey; }
55 return (foundPos ==
m_container.end() ?
nullptr : &foundPos->second);
Iterator end()
returns iterator for container: end
std::vector< std::pair< KeyType, ValueType > > m_container
the container containing the keys and values
typename std::vector< BoxEntry >::iterator Iterator
typedef for more readable iterator-type
typename std::vector< BoxEntry >::const_iterator ConstIterator
typedef for more readable iterator-type
ValueType * find(const KeyType &aKey)
for given key a pointer to the value is returned.
std::pair< KeyType, ValueType > BoxEntry
typedef for readable entry-type
unsigned int size() const
returns number of entries in container:
Abstract base class for different kinds of events.
void push_back(std::pair< KeyType, ValueType > &newPair)
push_back for new pair given
Iterator begin()
returns iterator for container: begin