00001 /** 00002 * \file DistancePairScore.h 00003 * \brief A Score on the distance between a pair of particles. 00004 * 00005 * Copyright 2007-2010 IMP Inventors. All rights reserved. 00006 */ 00007 00008 #ifndef IMPCORE_DISTANCE_PAIR_SCORE_H 00009 #define IMPCORE_DISTANCE_PAIR_SCORE_H 00010 00011 #include "core_config.h" 00012 #include <IMP/PairScore.h> 00013 #include <IMP/UnaryFunction.h> 00014 #include <IMP/Pointer.h> 00015 00016 IMPCORE_BEGIN_NAMESPACE 00017 00018 //! Apply a function to the distance between two particles. 00019 /** \see SphereDistancePairScore 00020 */ 00021 class IMPCOREEXPORT DistancePairScore : public PairScore 00022 { 00023 IMP::internal::OwnerPointer<UnaryFunction> f_; 00024 public: 00025 DistancePairScore(UnaryFunction *f); 00026 IMP_SIMPLE_PAIR_SCORE(DistancePairScore); 00027 }; 00028 00029 IMPCORE_END_NAMESPACE 00030 00031 #endif /* IMPCORE_DISTANCE_PAIR_SCORE_H */