ESyS-Particle  4.0.1
InteractionGroup.hpp
1 
2 // //
3 // Copyright (c) 2003-2011 by The University of Queensland //
4 // Earth Systems Science Computational Centre (ESSCC) //
5 // http://www.uq.edu.au/esscc //
6 // //
7 // Primary Business: Brisbane, Queensland, Australia //
8 // Licensed under the Open Software License version 3.0 //
9 // http://www.opensource.org/licenses/osl-3.0.php //
10 // //
12 
13 template <class T>
14 bool APairInteractionGroup<T>::isIn(int id1,int id2)
15 {
16  return (m_set.find(pair<int,int>(id1,id2))!=m_set.end());
17 }