eOn 3.2.0
Long-timescale dynamics: aKMC, NEB, parallel replica
☾
Toggle main menu visibility
Loading...
Searching...
No Matches
ForceCallTimer.h
Go to the documentation of this file.
1
/*
2
** This file is part of eOn.
3
**
4
** SPDX-License-Identifier: BSD-3-Clause
5
**
6
** Copyright (c) 2010--present, eOn Development Team
7
** All rights reserved.
8
**
9
** Repo:
10
** https://github.com/TheochemUI/eOn
11
*/
12
#pragma once
13
#include "
Potential.h
"
14
15
namespace
eonc
{
16
22
class
ForceCallTimer
{
23
size_t
&
target_
;
24
const
Potential
&
pot_
;
25
size_t
initial_
;
26
27
public
:
28
ForceCallTimer
(
size_t
&target,
const
Potential
&
pot
)
29
:
target_
(target),
pot_
(
pot
),
initial_
(
pot
.forceCallCounter.load()) {}
30
~ForceCallTimer
() {
target_
+=
pot_
.forceCallCounter.load() -
initial_
; }
31
32
// Non-copyable, non-movable
33
ForceCallTimer
(
const
ForceCallTimer
&) =
delete
;
34
ForceCallTimer
&
operator=
(
const
ForceCallTimer
&) =
delete
;
35
};
36
37
}
// namespace eonc
Potential.h
eonc::ForceCallTimer::pot_
const Potential & pot_
Definition
ForceCallTimer.h:24
eonc::ForceCallTimer::ForceCallTimer
ForceCallTimer(const ForceCallTimer &)=delete
eonc::ForceCallTimer::initial_
size_t initial_
Definition
ForceCallTimer.h:25
eonc::ForceCallTimer::operator=
ForceCallTimer & operator=(const ForceCallTimer &)=delete
eonc::ForceCallTimer::ForceCallTimer
ForceCallTimer(size_t &target, const Potential &pot)
Definition
ForceCallTimer.h:28
eonc::ForceCallTimer::~ForceCallTimer
~ForceCallTimer()
Definition
ForceCallTimer.h:30
eonc::ForceCallTimer::target_
size_t & target_
Definition
ForceCallTimer.h:23
eonc::Potential
Definition
Potential.h:45
eonc::pot
Definition
ExternalCommand.h:22
eonc
RAII resource manager for the ARTn C library with global synchronization.
Definition
ARTnSaddleSearch.cpp:23
include
eon
ForceCallTimer.h
Generated by
1.17.0
Generated by
Doxygen 1.17.0
Analytics by
Antics
provided by
TurtleTech ehf