IMP  2.1.0
The Integrative Modeling Platform
TripletContainerSet.h
Go to the documentation of this file.
1 /**
2  * \file IMP/container/TripletContainerSet.h
3  * \brief Store a set of TripletContainers
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_TRIPLET_CONTAINER_SET_H
12 #define IMPCONTAINER_TRIPLET_CONTAINER_SET_H
13 
14 #include <IMP/container/container_config.h>
15 #include <IMP/TripletContainer.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 TripletContainers
23 /** The input sets must be disjoint. This can change if there is
24  demand for it.
25 
26  \usesconstraint
27 */
28 class IMPCONTAINEREXPORT TripletContainerSet : public TripletContainer {
29  Ints versions_;
30  static TripletContainerSet *get_set(TripletContainer *c) {
31  return dynamic_cast<TripletContainerSet *>(c);
32  }
33 
34  public:
35  //! Construct and empty set
37  std::string name = "TripletContainerSet %1%");
38 
40  std::string name = "TripletContainerSet %1%");
41 
42  /** \brief apply modifer sm to all triplet containers */
43  IMP_IMPLEMENT(void do_apply(const TripletModifier *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, TripletContainer, TripletContainers,
57  triplet_container, triplet_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_TRIPLET_CONTAINER_SET_H */
void apply_generic(const M *m) const
apply modifer sm to all triplet containers
A shared container for Triplets.
Import IMP/kernel/scoped.h in the namespace.
IMP::base::Vector< IMP::base::WeakPointer< TripletContainer > > TripletContainersTemp
virtual ParticleIndexes get_all_possible_indexes() const =0
Get contained particles.
A base class for modifiers of ParticleTripletsTemp.
Import IMP/kernel/TripletContainer.h in the namespace.
Import IMP/kernel/container_macros.h in the namespace.
#define IMP_IMPLEMENT(signature)
virtual ParticleIndexTriplets get_range_indexes() const =0
void apply(const TripletModifier *sm) const
Apply a SingletonModifier to the contents.
virtual ParticleIndexTriplets get_indexes() const =0
IMP::base::Vector< IMP::base::Pointer< TripletContainer > > TripletContainers
Stores a set of TripletContainers.
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object.
virtual ModelObjectsTemp do_get_inputs() const =0
Class for storing model, its restraints, constraints, and particles.