Blue Brain BioExplorer
AbstractSimulationHandler.cpp
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2015-2024, EPFL/Blue Brain Project
3  * All rights reserved. Do not distribute without permission.
4  *
5  * This file is part of Blue Brain BioExplorer <https://github.com/BlueBrain/BioExplorer>
6  *
7  * This library is free software; you can redistribute it and/or modify it under
8  * the terms of the GNU Lesser General Public License version 3.0 as published
9  * by the Free Software Foundation.
10  *
11  * This library is distributed in the hope that it will be useful, but WITHOUT
12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
13  * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
14  * details.
15  *
16  * You should have received a copy of the GNU Lesser General Public License
17  * along with this library; if not, write to the Free Software Foundation, Inc.,
18  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19  */
20 
22 
23 namespace core
24 {
26 
28 {
29  if (this == &rhs)
30  return *this;
31 
33  _nbFrames = rhs._nbFrames;
34  _frameSize = rhs._frameSize;
35  _dt = rhs._dt;
36  _unit = rhs._unit;
37  _frameData = rhs._frameData;
38 
39  return *this;
40 }
41 
42 uint32_t AbstractSimulationHandler::_getBoundedFrame(const uint32_t frame) const
43 {
44  return _nbFrames == 0 ? frame : frame % _nbFrames;
45 }
46 } // namespace core
The AbstractSimulationHandler class handles simulation frames for the current circuit.
AbstractSimulationHandler & operator=(const AbstractSimulationHandler &rhs)
uint32_t _getBoundedFrame(const uint32_t frame) const