ESPResSo
Extensible Simulation Package for Research on Soft Matter Systems
Loading...
Searching...
No Matches
profiler/initialize.cpp
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2023 The ESPResSo project
3
*
4
* This file is part of ESPResSo.
5
*
6
* ESPResSo is free software: you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation, either version 3 of the License, or
9
* (at your option) any later version.
10
*
11
* ESPResSo is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU General Public License for more details.
15
*
16
* You should have received a copy of the GNU General Public License
17
* along with this program. If not, see <http://www.gnu.org/licenses/>.
18
*/
19
20
#include "
config/config.hpp
"
21
22
#include "
Caliper.hpp
"
23
24
#include <
script_interface/ObjectHandle.hpp
>
25
26
#include <
utils/Factory.hpp
>
27
28
namespace
ScriptInterface::Profiler
{
29
30
void
initialize
(
Utils::Factory<ObjectHandle>
*
om
) {
31
#ifdef CALIPER
32
om
->register_new<
Caliper
>(
"ScriptInterface::Profiler::Caliper"
);
33
#else
34
static_cast<
void
>
(
om
);
35
#endif
36
}
37
38
}
// namespace ScriptInterface::Profiler
Caliper.hpp
Factory.hpp
ObjectHandle.hpp
ScriptInterface::Profiler::Caliper
Definition
Caliper.hpp:34
Utils::Factory
Factory template.
Definition
Factory.hpp:78
config.hpp
This file contains the defaults for ESPResSo.
ScriptInterface::Profiler
Definition
Caliper.hpp:32
ScriptInterface::Profiler::initialize
void initialize(Utils::Factory< ObjectHandle > *om)
Definition
profiler/initialize.cpp:30
ScriptInterface::get_value
T get_value(Variant const &v)
Extract value of specific type T from a Variant.
Definition
get_value.hpp:400
src
script_interface
profiler
initialize.cpp
Generated on Fri Nov 22 2024 02:13:54 for ESPResSo by
1.9.8