ATLAS Offline Software
PairIndexMap.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
3  */
4 
6 
7 namespace InDetDD {
8  void
10  m_map[std::make_pair(first, second)] = value;
11  }
12 
13  int
14  PairIndexMap::find(int first, int second) const {
15  MapType::const_iterator iter = m_map.find(std::make_pair(first, second));
16  if (iter == m_map.end()) return -1;
17 
18  return iter->second;
19  }
20 }
python.SystemOfUnits.second
int second
Definition: SystemOfUnits.py:120
athena.value
value
Definition: athena.py:122
PairIndexMap.h
InDetDD::PairIndexMap::find
int find(int first, int second) const
Definition: PairIndexMap.cxx:14
InDetDD
Message Stream Member.
Definition: FakeTrackBuilder.h:8
DeMoScan.first
bool first
Definition: DeMoScan.py:534
InDetDD::PairIndexMap::m_map
MapType m_map
Definition: PairIndexMap.h:24
InDetDD::PairIndexMap::add
void add(int first, int second, int value)
Definition: PairIndexMap.cxx:9