IMP logo
IMP Reference Guide  2.6.0
The Integrative Modeling Platform
ListQuadContainer.h
Go to the documentation of this file.
1 // Autogenerated by ../../../../tmp/nightly-build-38828/imp-2.6.0/tools/build/make_containers.py
2 // from ../../../../tmp/nightly-build-38828/imp-2.6.0/tools/build/container_templates/container/ListClassnameContainer.h
3 // Do not edit - any changes will be lost!
4 
5 /**
6  * \file IMP/container/ListQuadContainer.h
7  * \brief Store a list of ParticleIndexQuads.
8  *
9  * Copyright 2007-2016 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/object_macros.h>
17 #include <IMP/internal/StaticListContainer.h>
18 #include <IMP/QuadContainer.h>
19 #include <IMP/QuadModifier.h>
20 #include <IMP/base_types.h>
21 
22 IMPCONTAINER_BEGIN_NAMESPACE
23 
24 //! Store a list of 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 ScoreState).
32  */
33 class IMPCONTAINEREXPORT ListQuadContainer :
34 #if defined(IMP_DOXYGEN) || defined(SWIG)
35  public QuadContainer
36 #else
37  public IMP::internal::StaticListContainer<QuadContainer>
38 #endif
39  {
40  typedef IMP::internal::StaticListContainer<QuadContainer> P;
41 
42  public:
43  ListQuadContainer(Model *m, const ParticleIndexQuads &contents,
44  std::string name = "ListQuadContainer%1%");
45 
47  std::string name = "ListQuadContainer%1%");
48 
49  /** \deprecated_at{2.5} Use set() with indexes instead */
50  IMPCONTAINER_DEPRECATED_METHOD_DECL(2.5)
51  void set_particle_quads(const ParticleQuadsTemp &ps);
52 
53  /** \deprecated_at{2.5} Use set() instead */
54  IMPCONTAINER_DEPRECATED_METHOD_DECL(2.5)
55  void set_particle_quads(const ParticleIndexQuads &contents);
56 #ifndef IMP_DOXYGEN
58  std::string name = "ListQuadContainer %1%");
59  ListQuadContainer(Model *m, const char *name);
60 
61  /** \deprecated_at{2.5} Use add() with indexes instead */
62  IMPCONTAINER_DEPRECATED_METHOD_DECL(2.5)
63  void add_particle_quad(const ParticleQuad& vt);
64 
65  /** \deprecated_at{2.5} Use add() with indexes instead */
66  IMPCONTAINER_DEPRECATED_METHOD_DECL(2.5)
67  void add_particle_quads(const ParticleQuadsTemp &c);
68 
69  /** \deprecated_at{2.5} Use clear() instead */
70  IMPCONTAINER_DEPRECATED_METHOD_DECL(2.5)
71  void clear_particle_quads();
72 #endif
73 #if defined(SWIG) || defined(IMP_DOXYGEN)
74  //! Add a single const ParticleIndexQuad& to the container.
75  void add(const ParticleIndexQuad& vt);
76 
77  //! Add ParticleIndexQuads to the container.
78  void add(const ParticleIndexQuads &c);
79 
80  //! Set the contents of the container to the given ParticleIndexQuads.
81  void set(ParticleIndexQuads cp);
82 
83  //! Clear the contents of the container.
84  void clear();
85 #endif
86 
87 #ifdef SWIG
91  void do_apply(const QuadModifier *sm) const;
93 
94  private:
95  std::size_t do_get_contents_hash() const;
96 #endif
98 };
99 
101 
102 IMPCONTAINER_END_NAMESPACE
103 
104 #endif /* IMPCONTAINER_LIST_QUAD_CONTAINER_H */
Various general useful macros for IMP.
Basic types used by IMP.
Store a list of ParticleIndexQuads.
A class to store an fixed array of same-typed values.
Definition: Array.h:33
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object.
Definition: object_macros.h:25
A container for Quads.
Class for storing model, its restraints, constraints, and particles.
Definition: Model.h:72
A Modifier on ParticleQuadsTemp.
A shared container for Quads.
Definition: QuadContainer.h:37
#define IMP_OBJECTS(Name, PluralName)
Define the types for storing sets of objects.
Definition: object_macros.h:42
virtual ParticleIndexes get_all_possible_indexes() const =0
Get contained particles.
virtual ParticleIndexQuads get_range_indexes() const =0
virtual ParticleIndexQuads get_indexes() const =0
A base class for modifiers of ParticleQuadsTemp.
Definition: QuadModifier.h:32
virtual ModelObjectsTemp do_get_inputs() const =0