IMP  2.2.0
The Integrative Modeling Platform
EventTripletsOptimizerState.h
Go to the documentation of this file.
1 /**
2  * \file IMP/container/EventTripletsOptimizerState.h
3  * \brief Define some predicates.
4  *
5  * WARNING This file was generated from EventTripletsOptimizerState.h
6  * in /tmp/nightly-build-28832/imp-2.2.0/tools/build/container_templates/container
7  * by tools/maintenance/setup_containers.py.
8  *
9  * Copyright 2007-2014 IMP Inventors. All rights reserved.
10  */
11 
12 #ifndef IMPCONTAINER_EVENT_TRIPLETS_OPTIMIZER_STATE_H
13 #define IMPCONTAINER_EVENT_TRIPLETS_OPTIMIZER_STATE_H
14 
15 #include <IMP/container/container_config.h>
16 #include <IMP/TripletPredicate.h>
17 #include <IMP/OptimizerState.h>
18 #include <IMP/TripletContainer.h>
19 
20 IMPCONTAINER_BEGIN_NAMESPACE
21 
22 /** Raise an IMP::base::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 EventTripletsOptimizerState : public OptimizerState {
30  int v_;
31  int min_, max_;
32 
33  public:
35  TripletContainerAdaptor container, int value,
36  int min_count, int max_count,
37  std::string name =
38  "ConstTripletPredicate%1%");
39  virtual void update() IMP_OVERRIDE;
41 };
42 
43 IMPCONTAINER_END_NAMESPACE
44 
45 #endif /* IMPCONTAINER_EVENT_TRIPLETS_OPTIMIZER_STATE_H */
Import IMP/kernel/TripletContainer.h in the namespace.
A smart pointer to a ref-counted Object that is a class memeber.
Definition: base/Pointer.h:147
Import IMP/kernel/TripletPredicate.h in the namespace.
Shared optimizer state that is invoked upon commitment of new coordinates.
Abstract predicate function.
virtual void update()
Called when the Optimizer accepts a new conformation.
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object.
Import IMP/kernel/OptimizerState.h in the namespace.