IMP logo
IMP Reference Guide  develop.7482b7c7af, 2026/12/05
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>
16#include <IMP/Pointer.h>
17#include <IMP/internal/utility.h>
18#include <vector>
19
20IMPDISPLAY_BEGIN_NAMESPACE
21
22/** Write to a Writer periodically.
23 */
24class IMPDISPLAYEXPORT WriteOptimizerState : public OptimizerState {
26
27 public:
28 WriteOptimizerState(Model *m, WriterAdaptor w);
29 void write(WriterAdaptor w) const;
30 IMP_LIST_ACTION(public, Geometry, Geometries, geometry, geometries,
32
33 protected:
34 virtual void do_update(unsigned int) override;
35 IMP_OBJECT_METHODS(WriteOptimizerState);
36};
37
38IMPDISPLAY_END_NAMESPACE
39
40#endif /* IMPDISPLAY_LOG_OPTIMIZER_STATE_H */
Shared optimizer state.
A nullptr-initialized pointer to an IMP Object.
Base class for writing geometry to a file.
OptimizerState(Model *m, std::string name)
Constructor.
The base class for geometry.
virtual void do_update(unsigned int) override
list geometries
A Python list of Geometries.
Implement geometry for the basic shapes from IMP.algebra.
Backwards compatibility header.
IMP::Vector< IMP::Pointer< Geometry > > Geometries
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object.
A smart pointer to a ref-counted Object that is a class member.
Definition Pointer.h:144