IMP logo
IMP Reference Guide  2.18.0
The Integrative Modeling Platform
EventPairsOptimizerState.h
Go to the documentation of this file.
1 // Autogenerated by ../../../../tmp/nightly-build-407/imp-2.18.0/tools/build/make_containers.py
2 // from ../../../../tmp/nightly-build-407/imp-2.18.0/tools/build/container_templates/container/EventClassnamesOptimizerState.h
3 // Do not edit - any changes will be lost!
4 
5 /**
6  * \file IMP/container/EventPairsOptimizerState.h
7  * \brief Define some predicates.
8  *
9  * Copyright 2007-2022 IMP Inventors. All rights reserved.
10  */
11 
12 #ifndef IMPCONTAINER_EVENT_PAIRS_OPTIMIZER_STATE_H
13 #define IMPCONTAINER_EVENT_PAIRS_OPTIMIZER_STATE_H
14 
15 #include <IMP/container/container_config.h>
16 #include <IMP/PairPredicate.h>
17 #include <IMP/OptimizerState.h>
18 #include <IMP/PairContainer.h>
19 
20 IMPCONTAINER_BEGIN_NAMESPACE
21 
22 /** Raise an IMP::EventException when a certain condition is met.
23  Currently the supported logic is when the number of items in the
24  container for which the predicate returns a certain value is in the
25  range [min_count, max_count).
26  */
27 class IMPCONTAINEREXPORT EventPairsOptimizerState : public OptimizerState {
30  int v_;
31  int min_, max_;
32 
33  public:
35  PairContainerAdaptor container, int value,
36  int min_count, int max_count,
37  std::string name =
38  "ConstPairPredicate%1%");
39  virtual void do_update(unsigned int call) override;
41 };
42 
43 IMPCONTAINER_END_NAMESPACE
44 
45 #endif /* IMPCONTAINER_EVENT_PAIRS_OPTIMIZER_STATE_H */
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object.
Definition: object_macros.h:25
virtual void do_update(unsigned int)
A container for Pairs.
Define PairPredicate.
A smart pointer to a ref-counted Object that is a class member.
Definition: Pointer.h:146
Abstract predicate function.
Definition: PairPredicate.h:31
Shared optimizer state that is invoked upon commitment of new coordinates.
Shared optimizer state.