IMP  2.0.1
The Integrative Modeling Platform
EventPairsOptimizerState.h
Go to the documentation of this file.
1 /**
2  * \file IMP/container/EventPairsOptimizerState.h
3  * \brief Define some predicates.
4  *
5  * WARNING This file was generated from EventPairsOptimizerState.h
6  * in /tmp/nightly-build-36540/imp-2.0.1/tools/build/container_templates/container
7  * by tools/maintenance/setup_containers.py.
8  *
9  * Copyright 2007-2013 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>
20 
21 IMPCONTAINER_BEGIN_NAMESPACE
22 
23 /** Raise an IMP::base::EventException when a certain condition is met.
24  Currently the supported logic is when the number of items in the
25  container for which the predicate returns a certain value is in the
26  range [min_count, max_count).
27  */
28 class IMPCONTAINEREXPORT EventPairsOptimizerState:
29  public OptimizerState {
30  IMP::OwnerPointer<PairPredicate> pred_;
31  IMP::OwnerPointer<PairContainer> container_;
32  int v_;
33  int min_, max_;
34 public:
36  PairContainerAdaptor container,
37  int value, int min_count, int max_count,
38  std::string name="ConstPairPredicate%1%");
40 };
41 
42 IMPCONTAINER_END_NAMESPACE
43 
44 #endif /* IMPCONTAINER_EVENT_PAIRS_OPTIMIZER_STATE_H */