IMP  2.0.1
The Integrative Modeling Platform
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-2013 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 {
21  double probability_;
22  unsigned int num_checked_;
23  public:
24  ChecksScoreState(double probability);
25 
26  unsigned int get_number_of_checked() const {
27  return num_checked_;
28  }
29 
31 };
32 
33 IMPCORE_END_NAMESPACE
34 
35 #endif /* IMPCORE_CHECKS_SCORE_STATE_H */