/** * \file ListTripletContainer.cpp \brief A list of ParticleTripletsTemp. * * 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/ListTripletContainer.h" #include "IMP/TripletModifier.h" #include "IMP/TripletScore.h" #include #include IMPCONTAINER_BEGIN_NAMESPACE ListTripletContainer ::ListTripletContainer(): P(){} ListTripletContainer ::ListTripletContainer(const ParticleTripletsTemp &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_triplets(ps); } ListTripletContainer ::ListTripletContainer(Model *m, std::string name): P(m, name){ } ListTripletContainer ::ListTripletContainer(Model *m, const char *name): P(m, name){ } void ListTripletContainer::do_show(std::ostream &out) const { IMP_CHECK_OBJECT(this); out << get_number_of_particle_triplets() << " Triplets" << std::endl; } IMPCONTAINER_END_NAMESPACE