23 template<
class KeyType,
class ValueType>
33 using BoxEntry = std::pair<KeyType, ValueType>;
37 using Iterator =
typename std::vector<BoxEntry>::iterator;
45 ValueType*
find(
const KeyType& aKey)
51 { return entry.first == aKey; }
53 return (foundPos ==
m_container.end() ?
nullptr : &foundPos->second);
Minimal container storing a pair of < KeyType, ValueType>
void push_back(std::pair< KeyType, ValueType > newPair)
push_back for new pair given
Iterator begin()
returns iterator for container: begin
std::pair< KeyType, ValueType > BoxEntry
typedef for readable entry-type
ValueType * find(const KeyType &aKey)
for given key a pointer to the value is returned.
unsigned int size() const
returns number of entries in container:
ConstIterator end() const
returns iterator for container: end
typename std::vector< BoxEntry >::iterator Iterator
typedef for more readable iterator-type
Iterator end()
returns iterator for container: end
ConstIterator begin() const
returns iterator for container: begin
void push_back(std::pair< KeyType, ValueType > &newPair)
push_back for new pair given
std::vector< std::pair< KeyType, ValueType > > m_container
the container containing the keys and values
typename std::vector< BoxEntry >::const_iterator ConstIterator
typedef for more readable iterator-type
Abstract base class for different kinds of events.