/** * \file atom/BondPairContainer.h * \brief A fake container for bonds * * Copyright 2007-2010 IMP Inventors. All rights reserved. */ #ifndef IMPATOM_BOND_PAIR_CONTAINER_H #define IMPATOM_BOND_PAIR_CONTAINER_H #include "atom_config.h" #include "bond_decorators.h" #include #include IMPATOM_BEGIN_NAMESPACE //! A container that returns pairs of the endpoints of the bonds. /** Turn a container of Bond particles into a container of ParticlePair objects of the endpoints. \ingroup bond \see Bonded */ class IMPATOMEXPORT BondPairContainer : public PairContainer { IMP::internal::OwnerPointer sc_; BondPairContainer(SingletonContainer *sc, bool); public: //! The container containing the bonds BondPairContainer(SingletonContainer *sc); static BondPairContainer *create_untracked_container(SingletonContainer *c) { BondPairContainer *lsc = new BondPairContainer(c, false); return lsc; } IMP_PAIR_CONTAINER(BondPairContainer); }; IMPATOM_END_NAMESPACE #endif /* IMPATOM_BOND_PAIR_CONTAINER_H */