ATLAS Offline Software
Loading...
Searching...
No Matches
Trk::InverseMultiMap< OrigMap, CmpT > Class Template Reference

An InverseMultiMap object built from a generic map or multimap allows for quick lookup of original (multi)map's key by original mapped value. More...

#include <InverseMultiMap.h>

Inheritance diagram for Trk::InverseMultiMap< OrigMap, CmpT >:
Collaboration diagram for Trk::InverseMultiMap< OrigMap, CmpT >:

Public Attributes

keys
 STL member.
elements
 STL member.

Detailed Description

template<class OrigMap, class CmpT = std::less<typename OrigMap::mapped_type>>
class Trk::InverseMultiMap< OrigMap, CmpT >

An InverseMultiMap object built from a generic map or multimap allows for quick lookup of original (multi)map's key by original mapped value.

Example of use:

...
PRD_MultiTruthCollection *origMap = ...; // retrieve from the SG
Trk::addToInverseMultiMap(&invMap, *origMap);
An InverseMultiMap object built from a generic map or multimap allows for quick lookup of original (m...
void addToInverseMultiMap(InverseMultiMap< OrigMap, CmpT > *result, const OrigMap &rec2truth)

Definition at line 41 of file InverseMultiMap.h.

Member Data Documentation

◆ elements

T std::multimap< K, T >::elements
inherited

STL member.

◆ keys

K std::multimap< K, T >::keys
inherited

STL member.


The documentation for this class was generated from the following file: