/** * \file AttributeSingletonScore.h * \brief A score based on the unmodified value of an attribute. * * Copyright 2007-2010 IMP Inventors. All rights reserved. */ #ifndef IMPCORE_ATTRIBUTE_SINGLETON_SCORE_H #define IMPCORE_ATTRIBUTE_SINGLETON_SCORE_H #include "core_config.h" #include #include #include IMPCORE_BEGIN_NAMESPACE //! Apply a function to an attribute. /** This Score scores a particle by passing an attribute value directly to a UnaryFunction. */ class IMPCOREEXPORT AttributeSingletonScore : public SingletonScore { IMP::internal::OwnerPointer f_; FloatKey k_; public: //! Apply function f to attribete k AttributeSingletonScore(UnaryFunction *f, FloatKey k); IMP_SIMPLE_SINGLETON_SCORE(AttributeSingletonScore); }; IMPCORE_END_NAMESPACE #endif /* IMPCORE_ATTRIBUTE_SINGLETON_SCORE_H */