IMP  2.3.0
The Integrative Modeling Platform
TripletsOptimizerState.h
Go to the documentation of this file.
1 /**
2  * \file IMP/container/TripletsOptimizerState.h
3  * \brief Use a TripletModifier applied to a kernel::ParticleTripletsTemp to
4  * maintain an invariant
5  *
6  * WARNING This file was generated from TripletsOptimizerState.h
7  * in /tmp/nightly-build-54722/imp-2.3.0/tools/build/container_templates/container
8  * by tools/build/make_containers.py.
9  *
10  * Copyright 2007-2014 IMP Inventors. All rights reserved.
11  */
12 
13 #ifndef IMPCONTAINER_TRIPLETS_OPTIMIZER_STATE_H
14 #define IMPCONTAINER_TRIPLETS_OPTIMIZER_STATE_H
15 
16 #include <IMP/container/container_config.h>
17 #include <IMP/TripletContainer.h>
18 #include <IMP/TripletModifier.h>
19 #include <IMP/OptimizerState.h>
20 #include <IMP/base/Pointer.h>
21 
22 IMPKERNEL_BEGIN_NAMESPACE
23 // for swig
24 class TripletContainer;
25 class TripletModifier;
26 IMPKERNEL_END_NAMESPACE
27 
28 IMPCONTAINER_BEGIN_NAMESPACE
29 //! Apply a TripletFunction to a TripletContainer to maintain an invariant
30 /** \ingroup restraint
31  \see TripletOptimizerState
32  */
33 class IMPCONTAINEREXPORT TripletsOptimizerState : public OptimizerState {
36 
37  public:
38  /** \param[in] c The Container to hold the elements to process
39  \param[in] gf The TripletModifier to apply to all elements.
40  \param[in] name The name to use for this Object
41  */
42  TripletsOptimizerState(TripletContainerAdaptor c, TripletModifier *gf,
43  std::string name = "TripletsOptimizerState %1%");
44 
45  virtual void update() IMP_OVERRIDE;
47 };
48 
50 
51 IMPCONTAINER_END_NAMESPACE
52 
53 #endif /* IMPCONTAINER_TRIPLETS_OPTIMIZER_STATE_H */
A base class for modifiers of kernel::ParticleTripletsTemp.
Import IMP/kernel/TripletContainer.h in the namespace.
IMP::kernel::TripletContainer TripletContainer
A smart pointer to a ref-counted Object that is a class member.
Definition: Pointer.h:147
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object.
Definition: object_macros.h:25
Shared optimizer state that is invoked upon commitment of new coordinates.
Apply a TripletFunction to a TripletContainer to maintain an invariant.
IMP::kernel::TripletModifier TripletModifier
virtual void update()
Called when the Optimizer accepts a new conformation.
#define IMP_OBJECTS(Name, PluralName)
Define the types for storing sets of objects.
Definition: object_macros.h:52
A nullptr-initialized pointer to an IMP Object.
Import IMP/kernel/OptimizerState.h in the namespace.
Import IMP/kernel/TripletModifier.h in the namespace.
#define IMP_OVERRIDE
Cause a compile error if this method does not override a parent method.