ATLAS Offline Software
Public Attributes | List of all members
Trk::InverseMultiMap< OrigMap, CmpT > Class Template Reference

#include <InverseMultiMap.h>

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

Public Attributes

keys
 STL member. More...
 
elements
 STL member. More...
 

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);

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:
Trk::addToInverseMultiMap
void addToInverseMultiMap(InverseMultiMap< OrigMap, CmpT > *result, const OrigMap &rec2truth)
Definition: InverseMultiMap.h:50
Trk::InverseMultiMap
Definition: InverseMultiMap.h:45
InverseMultiMap.h