IMP
2.0.0
The Integrative Modeling Platform
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
StateAdaptor.h
Go to the documentation of this file.
1
/**
2
* \file IMP/misc/StateAdaptor.h
3
* \brief XXXXXXXXXXXXXX
4
*
5
* Copyright 2007-2013 IMP Inventors. All rights reserved.
6
*/
7
8
#ifndef IMPMISC_STATE_ADAPTOR_H
9
#define IMPMISC_STATE_ADAPTOR_H
10
11
#include <IMP/misc/misc_config.h>
12
13
#include <
IMP/OptimizerState.h
>
14
#include <
IMP/ScoreState.h
>
15
#include <
IMP/score_state_macros.h
>
16
17
IMPMISC_BEGIN_NAMESPACE
18
19
//! Allow OptimizerStates to be used as ScoreStates
20
/** You can have up to two, one for before, and one for after.
21
*/
22
class
IMPMISCEXPORT
StateAdaptor
:
public
ScoreState
23
{
24
IMP::OwnerPointer<OptimizerState> before_, after_;
25
public
:
26
//! set the before and after states
27
StateAdaptor
(
OptimizerState
*before,
OptimizerState
*after);
28
29
IMP_SCORE_STATE
(
StateAdaptor
);
30
};
31
32
33
IMPMISC_END_NAMESPACE
34
35
#endif
/* IMPMISC_STATE_ADAPTOR_H */