Code_TYMPAN
4.4.0
Industrial site acoustic simulation
Tympan
solvers
9613
DefaultSolver
TYEtapeDefaultSolver.cpp
Go to the documentation of this file.
1
/*
2
* Copyright (C) <2012-2024> <EDF-DTG> <FRANCE>
3
* This file is part of Code_TYMPAN (R).
4
* Code_TYMPAN (R) is free software: you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License as published by
6
* the Free Software Foundation, either version 3 of the License, or
7
* (at your option) any later version.
8
* Code_TYMPAN (R) is distributed in the hope that it will be useful,
9
* but WITHOUT ANY WARRANTY; without even the implied warranty of
10
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
11
* See the GNU General Public License for more details.
12
* You should have received a copy of the GNU General Public License along
13
* with Code_TYMPAN (R). If not, see <https://www.gnu.org/licenses/>.
14
*/
15
16
#include "
TYEtapeDefaultSolver.h
"
17
18
// TYEtape::TYEtape() {}
19
20
// TYEtape::TYEtape(const TYEtape& other)
21
//{
22
// *this = other;
23
// }
24
25
// TYEtape::~TYEtape() {}
26
27
TYEtapeDefaultSolver
&
TYEtapeDefaultSolver::operator=
(
const
TYEtapeDefaultSolver
& other)
28
{
29
if
(
this
!= &other)
30
{
31
TYEtape::operator=
(other);
32
_Absorption
= other.
_Absorption
;
33
_Attenuation
= other.
_Attenuation
;
34
}
35
return
*
this
;
36
}
37
38
bool
TYEtapeDefaultSolver::operator==
(
const
TYEtapeDefaultSolver
& other)
const
39
{
40
if
(
this
!= &other)
41
{
42
if
(TYEtape::operator!=(other))
43
{
44
return
false
;
45
}
46
if
(
_Absorption
!= other.
_Absorption
)
47
{
48
return
false
;
49
}
50
if
(
_Attenuation
!= other.
_Attenuation
)
51
{
52
return
false
;
53
}
54
}
55
return
true
;
56
}
57
58
bool
TYEtapeDefaultSolver::operator!=
(
const
TYEtapeDefaultSolver
& other)
const
59
{
60
return
!
operator==
(other);
61
}
62
63
// acoustic_event* TYEtape::asEvent() const
64
//{
65
// acoustic_event* returned_event = new acoustic_event();
66
// returned_event->pos = _pt;
67
// returned_event->type = _type;
68
// return returned_event;
69
// }
TYEtapeDefaultSolver.h
TYEtapeDefaultSolver
Definition:
TYEtapeDefaultSolver.h:48
TYEtapeDefaultSolver::operator=
TYEtapeDefaultSolver & operator=(const TYEtapeDefaultSolver &other)
Operator =.
Definition:
TYEtapeDefaultSolver.cpp:27
TYEtapeDefaultSolver::operator!=
bool operator!=(const TYEtapeDefaultSolver &other) const
Operator !=.
Definition:
TYEtapeDefaultSolver.cpp:58
TYEtapeDefaultSolver::_Absorption
OSpectreComplex _Absorption
absorption Spectrum
Definition:
TYEtapeDefaultSolver.h:107
TYEtapeDefaultSolver::operator==
bool operator==(const TYEtapeDefaultSolver &other) const
Operator ==.
Definition:
TYEtapeDefaultSolver.cpp:38
TYEtapeDefaultSolver::_Attenuation
OSpectre _Attenuation
attenuation Spectrum
Definition:
TYEtapeDefaultSolver.h:108
TYEtape::operator=
TYEtape & operator=(const TYEtape &other)
Operator =.
Definition:
TYEtape.cpp:27
Generated on Wed May 13 2026 12:41:19 for Code_TYMPAN by
1.9.1