ESyS-Particle  2.3.4
SphereBodyInteraction.hpp
Go to the documentation of this file.
1 // //
3 // Copyright (c) 2003-2017 by The University of Queensland //
4 // Centre for Geoscience Computing //
5 // http://earth.uq.edu.au/centre-geoscience-computing //
6 // //
7 // Primary Business: Brisbane, Queensland, Australia //
8 // Licensed under the Open Software License version 3.0 //
9 // http://www.apache.org/licenses/LICENSE-2.0 //
10 // //
12 
13 #ifndef __SPHEREBODYINTERACTION_HPP
14 #define __SPHEREBODYINTERACTION_HPP
15 
16 template <class T>
18 {
19  m_p=p;
20  m_sphere=w;
21  m_inner_flag=iflag;
22  m_init=true;
23 }
24 
31 template <class T>
32 bool ASphereBodyInteraction<T>::hasTag(int tag ,int mask) const
33 {
34  int tag1=m_p->getTag();
35 
36  return ((tag1 & mask)==(tag & mask));
37 }
38 
39 #endif // __SPHEREBODYINTERACTION_HPP
ASphereBodyInteraction::ASphereBodyInteraction
ASphereBodyInteraction(T *, CSphereBody *, bool iflag=true)
Definition: SphereBodyInteraction.hpp:17
CSphereBody
base class for spherical non-inertial bodies (similar to simple walls)
Definition: SphereBody.h:40
ASphereBodyInteraction::hasTag
virtual bool hasTag(int, int) const
Definition: SphereBodyInteraction.hpp:32