/** * \file IMP/misc/StateAdaptor.h * \brief XXXXXXXXXXXXXX * * Copyright 2007-2013 IMP Inventors. All rights reserved. */ #ifndef IMPMISC_STATE_ADAPTOR_H #define IMPMISC_STATE_ADAPTOR_H #include #include #include #include IMPMISC_BEGIN_NAMESPACE //! Allow OptimizerStates to be used as ScoreStates /** You can have up to two, one for before, and one for after. */ class IMPMISCEXPORT StateAdaptor: public ScoreState { IMP::OwnerPointer before_, after_; public: //! set the before and after states StateAdaptor(OptimizerState *before, OptimizerState *after); IMP_SCORE_STATE(StateAdaptor); }; IMPMISC_END_NAMESPACE #endif /* IMPMISC_STATE_ADAPTOR_H */