IMP logo
IMP Reference Guide  2.20.2
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-2022 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"
14 #include <IMP/OptimizerState.h>
15 #include <IMP/display/geometry.h>
16 #include <IMP/Pointer.h>
17 #include <IMP/internal/utility.h>
18 #include <vector>
19 
20 IMPDISPLAY_BEGIN_NAMESPACE
21 
22 /** Write to a Writer periodically.
23  */
24 class IMPDISPLAYEXPORT WriteOptimizerState : public 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) override;
36 };
37 
38 IMPDISPLAY_END_NAMESPACE
39 
40 #endif /* IMPDISPLAY_LOG_OPTIMIZER_STATE_H */
The base class for geometry.
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object.
Definition: object_macros.h:25
virtual void do_update(unsigned int)
Implement geometry for the basic shapes from IMP.algebra.
Class for storing model, its restraints, constraints, and particles.
Definition: Model.h:86
Base class for writing geometry to a file.
A smart pointer to a ref-counted Object that is a class member.
Definition: Pointer.h:143
A nullptr-initialized pointer to an IMP Object.
Shared optimizer state that is invoked upon commitment of new coordinates.
Shared optimizer state.
Backwards compatibility header.