IMP  2.2.0
The Integrative Modeling Platform
ListQuadContainer.h
Go to the documentation of this file.
1 /**
2  * \file IMP/container/ListQuadContainer.h
3  * \brief Store a list of kernel::ParticleQuadsTemp
4  *
5  * WARNING This file was generated from ListQuadContainer.h
6  * in /tmp/nightly-build-28832/imp-2.2.0/tools/build/container_templates/container
7  * by tools/maintenance/setup_containers.py.
8  *
9  * Copyright 2007-2014 IMP Inventors. All rights reserved.
10  */
11 
12 #ifndef IMPCONTAINER_LIST_QUAD_CONTAINER_H
13 #define IMPCONTAINER_LIST_QUAD_CONTAINER_H
14 
15 #include <IMP/container/container_config.h>
16 #include <IMP/base/object_macros.h>
17 #include <IMP/kernel/internal/StaticListContainer.h>
20 #include <IMP/kernel/base_types.h>
21 
22 IMPCONTAINER_BEGIN_NAMESPACE
23 
24 //! Store a kernel::ParticleIndexQuads
25 /** \note The order may change when particles are inserted
26  as the list is maintained in sorted order.
27 
28  \note Changing the contents of the container is a fairly heavy
29  weight operation as it resets part of the dependency graph. Use
30  a DynamicListQuadContainer if you want to change the contents
31  frequently (eg via a kernel::ScoreState).
32  */
33 class IMPCONTAINEREXPORT ListQuadContainer :
34 #if defined(IMP_DOXYGEN) || defined(SWIG)
35  public QuadContainer
36 #else
37  public IMP::kernel::internal::StaticListContainer<
38  kernel::QuadContainer>
39 #endif
40  {
41  typedef IMP::kernel::internal::StaticListContainer<kernel::QuadContainer>
42  P;
43 
44  public:
46  std::string name = "ListQuadContainer%1%");
47 
49  std::string name = "ListQuadContainer%1%");
50 
51  void set_particle_quads(const kernel::ParticleQuadsTemp &ps);
52  void set_particle_quads(const kernel::ParticleIndexQuads &contents);
53 #ifndef IMP_DOXYGEN
55  std::string name = "ListQuadContainer %1%");
56  ListQuadContainer(kernel::Model *m, const char *name);
57 
58  void add_particle_quad(const kernel::ParticleQuad& vt);
59  void add_particle_quads(const kernel::ParticleQuadsTemp &c);
60  void clear_particle_quads();
61 #endif
62 #ifdef SWIG
66  void do_apply(const QuadModifier *sm) const;
68 
69  private:
70  std::size_t do_get_contents_hash() const;
71 #endif
73 };
74 
76 
77 IMPCONTAINER_END_NAMESPACE
78 
79 #endif /* IMPCONTAINER_LIST_QUAD_CONTAINER_H */
A Modifier on kernel::ParticleQuadsTemp.
virtual ParticleIndexes get_all_possible_indexes() const =0
Get contained particles.
A container for Quads.
virtual kernel::ParticleIndexQuads get_indexes() const =0
A shared container for Quads.
Store a kernel::ParticleIndexQuads.
Basic types used by IMP.
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object.
#define IMP_OBJECTS(Name, PluralName)
Define the types for storing sets of objects.
virtual ModelObjectsTemp do_get_inputs() const =0
virtual kernel::ParticleIndexQuads get_range_indexes() const =0
Various general useful macros for IMP.
A base class for modifiers of kernel::ParticleQuadsTemp.
Class for storing model, its restraints, constraints, and particles.
Definition: kernel/Model.h:72