12 #ifndef IMPKERNEL_DECLARE_QUAD_CONTAINER_H
13 #define IMPKERNEL_DECLARE_QUAD_CONTAINER_H
15 #include <IMP/kernel/kernel_config.h>
16 #include "internal/IndexingIterator.h"
19 #include "internal/container_helpers.h"
21 #include "internal/OwnerPointer.h"
32 IMPKERNEL_BEGIN_NAMESPACE
45 std::string name=
"QuadContainer %1%");
70 return IMP::kernel::internal::get_particle(get_model(),
75 return IMP::kernel::internal::get_particle(get_model(),
78 unsigned int get_number()
const {
return get_indexes().size();}
80 bool get_provides_access()
const;
86 template <
class Functor>
87 Functor for_each(Functor f) {
90 return std::for_each(vs.begin(), vs.end(), f);
100 #if IMP_HAS_DEPRECATED
118 get_particle_quad(
unsigned int i)
const;
123 virtual bool do_get_provides_access()
const {
return false;}
133 #if !defined(SWIG) && !defined(IMP_DOXYGEN)
146 std::string name=
"QuadContainerAdaptor%1%");
150 IMPKERNEL_END_NAMESPACE