IMP logo
IMP Reference Guide  2.6.1
The Integrative Modeling Platform
QuadContainerSet.h
Go to the documentation of this file.
1 // Autogenerated by ../../../../tmp/nightly-build-59000/imp-2.6.1/tools/build/make_containers.py
2 // from ../../../../tmp/nightly-build-59000/imp-2.6.1/tools/build/container_templates/container/ClassnameContainerSet.h
3 // Do not edit - any changes will be lost!
4 
5 /**
6  * \file IMP/container/QuadContainerSet.h
7  * \brief Store a set of QuadContainers
8  *
9  * Copyright 2007-2016 IMP Inventors. All rights reserved.
10  */
11 
12 #ifndef IMPCONTAINER_QUAD_CONTAINER_SET_H
13 #define IMPCONTAINER_QUAD_CONTAINER_SET_H
14 
15 #include <IMP/container/container_config.h>
16 #include <IMP/QuadContainer.h>
17 #include <IMP/container_macros.h>
18 #include <IMP/internal/container_helpers.h>
19 #include <IMP/scoped.h>
20 
21 IMPCONTAINER_BEGIN_NAMESPACE
22 
23 //! Stores a set of QuadContainers
24 /** The input sets must be disjoint. This can change if there is
25  demand for it.
26 
27  \usesconstraint
28 */
29 class IMPCONTAINEREXPORT QuadContainerSet : public QuadContainer {
30  Ints versions_;
31  static QuadContainerSet *get_set(QuadContainer *c) {
32  return dynamic_cast<QuadContainerSet *>(c);
33  }
34  virtual std::size_t do_get_contents_hash() const IMP_OVERRIDE;
35 
36  public:
37  //! Construct and empty set
39  std::string name = "QuadContainerSet %1%");
40 
42  std::string name = "QuadContainerSet %1%");
43 
44  /** \brief apply modifier sm to all quad containers */
45  IMP_IMPLEMENT(void do_apply(const QuadModifier *sm) const);
46 
47  template <class M>
48  void apply_generic(const M *m) const {
49  apply(m);
50  }
51 
54 
55  /** @name Methods to control the nested container
56 
57  This container merges a set of nested containers. To add
58  or remove nested containers, use the methods below.
59  */
60  /**@{*/
61  IMP_LIST_ACTION(public, QuadContainer, QuadContainers,
62  quad_container, quad_containers,
64  {
65  obj->set_was_used(true);
66  versions_.clear();
67  },
68  {}, );
69 /**@}*/
70 
71 #ifndef IMP_DOXYGEN
75 #endif
76 };
77 
78 IMPCONTAINER_END_NAMESPACE
79 
80 #endif /* IMPCONTAINER_QUAD_CONTAINER_SET_H */
Various general useful functions for IMP.
void apply(const QuadModifier *sm) const
Apply a SingletonModifier to the contents.
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object.
Definition: object_macros.h:25
A container for Quads.
#define IMP_IMPLEMENT(signature)
Stores a set of QuadContainers.
Macros to define containers of objects.
Class for storing model, its restraints, constraints, and particles.
Definition: Model.h:72
void apply_generic(const M *m) const
apply modifier sm to all quad containers
A shared container for Quads.
Definition: QuadContainer.h:37
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
#define IMP_OVERRIDE
Cause a compile error if this method does not override a parent method.