00001 /** 00002 * \file FixedRefiner.h 00003 * \brief A particle refiner which returns a fixed set of particles 00004 * 00005 * Copyright 2007-2010 IMP Inventors. All rights reserved. 00006 */ 00007 00008 #ifndef IMPCORE_FIXED_REFINER_H 00009 #define IMPCORE_FIXED_REFINER_H 00010 00011 #include "core_config.h" 00012 00013 #include <IMP/PairContainer.h> 00014 #include <IMP/SingletonContainer.h> 00015 #include <IMP/Refiner.h> 00016 #include <IMP/container_macros.h> 00017 00018 IMPCORE_BEGIN_NAMESPACE 00019 00020 //! The refiner can refine any particle by returning a fixed set 00021 /** 00022 */ 00023 class IMPCOREEXPORT FixedRefiner: public Refiner 00024 { 00025 IMP_LIST(private, Particle, particle, Particle*, Particles); 00026 public: 00027 //! Store the set of particles 00028 FixedRefiner(const Particles &ps); 00029 00030 IMP_REFINER(FixedRefiner); 00031 }; 00032 00033 00034 IMPCORE_END_NAMESPACE 00035 00036 #endif /* IMPCORE_FIXED_REFINER_H */