ESyS-Particle  4.0.1
WallInteraction.hpp
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 #ifndef __WALLINTERACTION_HPP
00014 #define __WALLINTERACTION_HPP
00015 
00016 template <class T>
00017 AWallInteraction<T>::AWallInteraction(T* p,CWall* w,bool iflag)
00018 {
00019   m_p=p;
00020   m_wall=w;
00021   m_inner_flag=iflag;
00022   m_init=true;
00023 }
00024 
00031 template <class T>
00032 bool AWallInteraction<T>::hasTag(int tag ,int mask) const
00033 {
00034   int tag1=m_p->getTag();
00035 
00036   return ((tag1 & mask)==(tag & mask));
00037 }
00038 
00039 #endif  // for the error of redefination !