/** * \file InContainerPairFilter.h \brief A filter for Pairs. * * This file is generated by a script (core/tools/make-containers). * Do not edit directly. * * Copyright 2007-2010 Sali Lab. All rights reserved. */ #ifndef IMPCONTAINER_IN_CONTAINER_PAIR_FILTER_H #define IMPCONTAINER_IN_CONTAINER_PAIR_FILTER_H #include "container_config.h" #include #include IMPCONTAINER_BEGIN_NAMESPACE //! A filter which returns true if a container containers the Pair /** Stores a searchable shared collection of Pairs. \ingroup restraints Implementors should see IMP_PAIR_FILTER(). */ class IMPCONTAINEREXPORT InContainerPairFilter : public PairFilter { IMP::internal::OwnerPointer c_; public: InContainerPairFilter(PairContainer *c, std::string name="PairFilter %1%"); IMP_PAIR_FILTER(InContainerPairFilter); }; inline bool InContainerPairFilter ::get_contains_particle_pair(const ParticlePair& p) const { return c_->get_contains_particle_pair(p); } IMP_OBJECTS(InContainerPairFilter, InContainerPairFilters); IMPCONTAINER_END_NAMESPACE #endif /* IMPCONTAINER_IN_CONTAINER_PAIR_FILTER_H */