IMP  2.4.0
The Integrative Modeling Platform
LogOptimizerState.h
Go to the documentation of this file.
1 /**
2  * \file IMP/display/LogOptimizerState.h
3  * \brief Write geometry to a file during optimization
4  *
5  * Copyright 2007-2015 IMP Inventors. All rights reserved.
6  */
7 
8 #ifndef IMPDISPLAY_LOG_OPTIMIZER_STATE_H
9 #define IMPDISPLAY_LOG_OPTIMIZER_STATE_H
10 
11 #include <IMP/display/display_config.h>
12 #include "declare_Geometry.h"
13 #include "Writer.h"
15 #include <IMP/display/geometry.h>
16 #include <IMP/base/Pointer.h>
17 #include <IMP/kernel/internal/utility.h>
18 #include <vector>
19 
20 IMPDISPLAY_BEGIN_NAMESPACE
21 
22 /** Write to a Writer periodically.
23  */
24 class IMPDISPLAYEXPORT WriteOptimizerState : public kernel::OptimizerState {
26 
27  public:
29  void write(WriterAdaptor w) const;
30  IMP_LIST_ACTION(public, Geometry, Geometries, geometry, geometries,
31  Geometry *, Geometries, , , );
32 
33  protected:
34  virtual void do_update(unsigned int) IMP_OVERRIDE;
36 };
37 
38 IMPDISPLAY_END_NAMESPACE
39 
40 #endif /* IMPDISPLAY_LOG_OPTIMIZER_STATE_H */
virtual void do_update(unsigned int)
The base class for geometry.
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.
Implement geometry for the basic shapes from IMP.algebra.
Base class for writing geometry to a file.
Shared optimizer state.
A nullptr-initialized pointer to an IMP Object.
Backwards compatibility header.
#define IMP_OVERRIDE
Cause a compile error if this method does not override a parent method.
Class for storing model, its restraints, constraints, and particles.
Definition: kernel/Model.h:73