/** * \file StateAdaptor.h * \brief XXXXXXXXXXXXXX * * Copyright 2007-2010 IMP Inventors. All rights reserved. */ #ifndef IMPMISC_STATE_ADAPTOR_H #define IMPMISC_STATE_ADAPTOR_H #include "misc_config.h" #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::internal::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 */