/** * \file ListPairContainer.cpp \brief A list of ParticlePairsTemp. * * This file is generated by a script (core/tools/make-container). * Do not edit directly. * * Copyright 2007-2010 IMP Inventors. All rights reserved. * */ #include "IMP/container/ListPairContainer.h" #include "IMP/PairModifier.h" #include "IMP/PairScore.h" #include #include IMPCONTAINER_BEGIN_NAMESPACE ListPairContainer ::ListPairContainer(): P(){} ListPairContainer ::ListPairContainer(const ParticlePairsTemp &ps, std::string name): P(P::get_model(ps.begin(), ps.end()), name) { IMP_USAGE_CHECK(is_ok(ps.begin(), ps.end()), "All particles must belong to the same model."); set_particle_pairs(ps); } ListPairContainer ::ListPairContainer(Model *m, std::string name): P(m, name){ } ListPairContainer ::ListPairContainer(Model *m, const char *name): P(m, name){ } void ListPairContainer::do_show(std::ostream &out) const { IMP_CHECK_OBJECT(this); out << get_number_of_particle_pairs() << " Pairs" << std::endl; } IMPCONTAINER_END_NAMESPACE