|
Code_TYMPAN
4.4.0
Industrial site acoustic simulation
|
This helper class halves and restore the traffic flow of the road. More...

Public Member Functions | |
| TrafficHalfer (TYRoute &road) | |
| ~TrafficHalfer () | |
Private Attributes | |
| TYRoute & | road |
This helper class halves and restore the traffic flow of the road.
Because the traffic flow is halved as part of the emission computation and must be restored whatever happens we use an helper class which halves the traffic on construction and restore it on destruction. This is akin to the RAII idiom or the context managers in Python.
| TYRoute::TrafficHalfer::TrafficHalfer | ( | TYRoute & | road | ) |
| TYRoute::TrafficHalfer::~TrafficHalfer | ( | ) |
Definition at line 664 of file TYRoute.cpp.