ESyS-Particle
2.3.4
WallInteraction.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 __WALLINTERACTION_HPP
14
#define __WALLINTERACTION_HPP
15
16
template
<
class
T>
17
AWallInteraction<T>::AWallInteraction
(T* p,
CWall
* w,
bool
iflag)
18
{
19
m_p=p;
20
m_wall=w;
21
m_inner_flag=iflag;
22
m_init=
true
;
23
}
24
31
template
<
class
T>
32
bool
AWallInteraction<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 // for the error of redefination !
CWall
base class for all walls
Definition:
Wall.h:40
AWallInteraction::hasTag
virtual bool hasTag(int, int) const
Definition:
WallInteraction.hpp:32
AWallInteraction::AWallInteraction
AWallInteraction(T *, CWall *, bool iflag=true)
Definition:
WallInteraction.hpp:17
Model
WallInteraction.hpp
Generated by
1.8.20