ATLAS Offline Software
Loading...
Searching...
No Matches
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
7namespace InDetDD {
8 void
9 PairIndexMap::add(int first, int second, int value) {
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}
int find(int first, int second) const
void add(int first, int second, int value)
Message Stream Member.