IMP  2.1.1
The Integrative Modeling Platform
QuadContainerSet.h
Go to the documentation of this file.
1 /**
2  * \file IMP/container/QuadContainerSet.h
3  * \brief Store a set of QuadContainers
4  *
5  * This file is generated by a script (tools/maintenance/make-container).
6  * Do not edit directly.
7  *
8  * Copyright 2007-2013 IMP Inventors. All rights reserved.
9  */
10 
11 #ifndef IMPCONTAINER_QUAD_CONTAINER_SET_H
12 #define IMPCONTAINER_QUAD_CONTAINER_SET_H
13 
14 #include <IMP/container/container_config.h>
15 #include <IMP/QuadContainer.h>
16 #include <IMP/container_macros.h>
17 #include <IMP/kernel/internal/container_helpers.h>
18 #include <IMP/scoped.h>
19 
20 IMPCONTAINER_BEGIN_NAMESPACE
21 
22 //! Stores a set of QuadContainers
23 /** The input sets must be disjoint. This can change if there is
24  demand for it.
25 
26  \usesconstraint
27 */
28 class IMPCONTAINEREXPORT QuadContainerSet : public QuadContainer {
29  Ints versions_;
30  static QuadContainerSet *get_set(QuadContainer *c) {
31  return dynamic_cast<QuadContainerSet *>(c);
32  }
33 
34  public:
35  //! Construct and empty set
37  std::string name = "QuadContainerSet %1%");
38 
40  std::string name = "QuadContainerSet %1%");
41 
42  /** \brief apply modifer sm to all quad containers */
43  IMP_IMPLEMENT(void do_apply(const QuadModifier *sm) const);
44 
45  template <class M> void apply_generic(const M *m) const { apply(m); }
46 
49 
50  /** @name Methods to control the nested container
51 
52  This container merges a set of nested containers. To add
53  or remove nested containers, use the methods below.
54  */
55  /**@{*/
56  IMP_LIST_ACTION(public, QuadContainer, QuadContainers,
57  quad_container, quad_containers,
59  obj->set_was_used(true); versions_.clear();
60  },
61  {
62  }, );
63 /**@}*/
64 
65 #ifndef IMP_DOXYGEN
69 #endif
70 
71  IMP_IMPLEMENT(void do_before_evaluate());
72 };
73 
74 IMPCONTAINER_END_NAMESPACE
75 
76 #endif /* IMPCONTAINER_QUAD_CONTAINER_SET_H */
Import IMP/kernel/scoped.h in the namespace.
virtual ParticleIndexes get_all_possible_indexes() const =0
Get contained particles.
A shared container for Quads.
virtual ParticleIndexQuads get_indexes() const =0
virtual ParticleIndexQuads get_range_indexes() const =0
Import IMP/kernel/QuadContainer.h in the namespace.
IMP::base::Vector< IMP::base::Pointer< QuadContainer > > QuadContainers
void apply(const QuadModifier *sm) const
Apply a SingletonModifier to the contents.
Stores a set of QuadContainers.
Import IMP/kernel/container_macros.h in the namespace.
#define IMP_IMPLEMENT(signature)
IMP::base::Vector< IMP::base::WeakPointer< QuadContainer > > QuadContainersTemp
void apply_generic(const M *m) const
apply modifer sm to all quad containers
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object.
virtual ModelObjectsTemp do_get_inputs() const =0
A base class for modifiers of ParticleQuadsTemp.
Class for storing model, its restraints, constraints, and particles.