ESyS-Particle  4.0.1
ParticleComparer.h
00001 
00002 //                                                         //
00003 // Copyright (c) 2003-2011 by The University of Queensland //
00004 // Earth Systems Science Computational Centre (ESSCC)      //
00005 // http://www.uq.edu.au/esscc                              //
00006 //                                                         //
00007 // Primary Business: Brisbane, Queensland, Australia       //
00008 // Licensed under the Open Software License version 3.0    //
00009 // http://www.opensource.org/licenses/osl-3.0.php          //
00010 //                                                         //
00012 
00013 
00014 #ifndef ESYS_LSMPARTICLECOMPARER_H
00015 #define ESYS_LSMPARTICLECOMPARER_H
00016 
00017 namespace esys
00018 {
00019   namespace lsm
00020   {
00021     template <typename TmplParticle>
00022     class ParticleComparer
00023     {
00024     public:
00025       typedef TmplParticle Particle;
00026       ParticleComparer(const Particle &p);
00027       
00028       bool operator()(const Particle &p1, const Particle &p2) const;
00029       
00030       bool operator()(const Particle *p1, const Particle *p2) const;
00031 
00032     private:
00033       const Particle *m_pParticle;
00034     };
00035   }
00036 }
00037 
00038 #include "Geometry/ParticleComparer.hpp"
00039 
00040 #endif