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
21
#include "
AbstractSimulationHandler.h
"
22
23
namespace
core
24
{
25
AbstractSimulationHandler::~AbstractSimulationHandler
() =
default
;
26
27
AbstractSimulationHandler
&
AbstractSimulationHandler::operator=
(
const
AbstractSimulationHandler
& rhs)
28
{
29
if
(
this
== &rhs)
30
return
*
this
;
31
32
_currentFrame
= rhs.
_currentFrame
;
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
AbstractSimulationHandler.h
core::AbstractSimulationHandler
The AbstractSimulationHandler class handles simulation frames for the current circuit.
Definition:
AbstractSimulationHandler.h:33
core::AbstractSimulationHandler::_frameData
floats _frameData
Definition:
AbstractSimulationHandler.h:92
core::AbstractSimulationHandler::_unit
std::string _unit
Definition:
AbstractSimulationHandler.h:90
core::AbstractSimulationHandler::_nbFrames
uint32_t _nbFrames
Definition:
AbstractSimulationHandler.h:87
core::AbstractSimulationHandler::_frameSize
uint64_t _frameSize
Definition:
AbstractSimulationHandler.h:88
core::AbstractSimulationHandler::~AbstractSimulationHandler
virtual ~AbstractSimulationHandler()
core::AbstractSimulationHandler::operator=
AbstractSimulationHandler & operator=(const AbstractSimulationHandler &rhs)
Definition:
AbstractSimulationHandler.cpp:27
core::AbstractSimulationHandler::_dt
double _dt
Definition:
AbstractSimulationHandler.h:89
core::AbstractSimulationHandler::_currentFrame
uint32_t _currentFrame
Definition:
AbstractSimulationHandler.h:86
core::AbstractSimulationHandler::_getBoundedFrame
uint32_t _getBoundedFrame(const uint32_t frame) const
Definition:
AbstractSimulationHandler.cpp:42
core
Definition:
BaseWindow.cpp:53
platform
core
common
simulation
AbstractSimulationHandler.cpp
Generated by
1.9.1