Belle II Software development
|
Minimal container storing a pair of < KeyType, ValueType> More...
#include <KeyValBox.h>
Public Types | |
using | BoxEntry = std::pair< KeyType, ValueType > |
typedef for readable entry-type | |
using | Iterator = typename std::vector< BoxEntry >::iterator |
typedef for more readable iterator-type | |
using | ConstIterator = typename std::vector< BoxEntry >::const_iterator |
typedef for more readable iterator-type | |
Public Member Functions | |
ValueType * | find (const KeyType &aKey) |
for given key a pointer to the value is returned. | |
void | push_back (std::pair< KeyType, ValueType > &newPair) |
push_back for new pair given | |
void | push_back (std::pair< KeyType, ValueType > newPair) |
push_back for new pair given | |
Iterator | begin () |
returns iterator for container: begin | |
ConstIterator | begin () const |
returns iterator for container: begin | |
Iterator | end () |
returns iterator for container: end | |
ConstIterator | end () const |
returns iterator for container: end | |
unsigned int | size () const |
returns number of entries in container: | |
Protected Attributes | |
std::vector< std::pair< KeyType, ValueType > > | m_container |
the container containing the keys and values | |
Minimal container storing a pair of < KeyType, ValueType>
Definition at line 24 of file KeyValBox.h.
using BoxEntry = std::pair<KeyType, ValueType> |
typedef for readable entry-type
Definition at line 33 of file KeyValBox.h.
using ConstIterator = typename std::vector<BoxEntry>::const_iterator |
typedef for more readable iterator-type
Definition at line 41 of file KeyValBox.h.
typedef for more readable iterator-type
Definition at line 37 of file KeyValBox.h.
|
inline |
returns iterator for container: begin
Definition at line 66 of file KeyValBox.h.
|
inline |
|
inline |
|
inline |
|
inline |
for given key a pointer to the value is returned.
If key was invalid, a nullptr-ptr will be returned
Definition at line 45 of file KeyValBox.h.
|
inline |
push_back for new pair given
Definition at line 58 of file KeyValBox.h.
|
inline |
push_back for new pair given
Definition at line 62 of file KeyValBox.h.
|
inline |
|
protected |
the container containing the keys and values
Definition at line 28 of file KeyValBox.h.