home
about
news
download
doc
source
systems
tests
bugs
contact
IMP Reference Guide
2.14.0
The Integrative Modeling Platform
IMP Manual
Reference Guide
Tutorial Index
Modules
Classes
Examples
include
IMP
core
version 2.14.0
ChecksScoreState.h
Go to the documentation of this file.
1
/**
2
* \file IMP/core/ChecksScoreState.h \brief Turn checks on and off.
3
*
4
* Copyright 2007-2020 IMP Inventors. All rights reserved.
5
*/
6
7
#ifndef IMPCORE_CHECKS_SCORE_STATE_H
8
#define IMPCORE_CHECKS_SCORE_STATE_H
9
10
#include <IMP/core/core_config.h>
11
#include <
IMP/macros.h
>
12
#include <
IMP/Particle.h
>
13
#include <
IMP/ScoreState.h
>
14
15
IMPCORE_BEGIN_NAMESPACE
16
17
/** Turn checks on with a given probability each evaluate call.
18
*/
19
class
IMPCOREEXPORT
ChecksScoreState
:
public
ScoreState
{
20
double
probability_;
21
unsigned
int
num_checked_;
22
23
public
:
24
ChecksScoreState
(
Model
*m,
double
probability);
25
26
unsigned
int
get_number_of_checked()
const
{
return
num_checked_; }
27
28
virtual
void
do_before_evaluate()
IMP_OVERRIDE
;
29
virtual
void
do_after_evaluate(
DerivativeAccumulator
*da)
IMP_OVERRIDE
;
30
virtual
ModelObjectsTemp
do_get_outputs
()
const
IMP_OVERRIDE
;
31
virtual
ModelObjectsTemp
do_get_inputs
()
const
IMP_OVERRIDE
;
32
IMP_OBJECT_METHODS
(
ChecksScoreState
);
33
};
34
35
IMPCORE_END_NAMESPACE
36
37
#endif
/* IMPCORE_CHECKS_SCORE_STATE_H */
IMP_OBJECT_METHODS
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object.
Definition:
object_macros.h:25
IMP::core::ChecksScoreState
Definition:
ChecksScoreState.h:19
macros.h
Various general useful macros for IMP.
IMP::Vector
A more IMP-like version of the std::vector.
Definition:
Vector.h:39
IMP::Model
Class for storing model, its restraints, constraints, and particles.
Definition:
Model.h:72
IMP::ScoreState
ScoreStates maintain invariants in the Model.
Definition:
ScoreState.h:53
ScoreState.h
Shared score state.
Particle.h
Classes to handle individual model particles. (Note that implementation of inline functions is in int...
IMP::ModelObject::do_get_outputs
virtual ModelObjectsTemp do_get_outputs() const =0
IMP::ModelObject::do_get_inputs
virtual ModelObjectsTemp do_get_inputs() const =0
IMP_OVERRIDE
#define IMP_OVERRIDE
Cause a compile error if this method does not override a parent method.
Definition:
compiler_macros.h:78
IMP::DerivativeAccumulator
Class for adding derivatives from restraints to the model.
Definition:
DerivativeAccumulator.h:25