IMP  2.2.1
The Integrative Modeling Platform
ListTripletContainer.h
Go to the documentation of this file.
1 /**
2  * \file IMP/container/ListTripletContainer.h
3  * \brief Store a list of kernel::ParticleTripletsTemp
4  *
5  * WARNING This file was generated from ListTripletContainer.h
6  * in /tmp/nightly-build-90828/imp-2.2.1/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_TRIPLET_CONTAINER_H
13 #define IMPCONTAINER_LIST_TRIPLET_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::ParticleIndexTriplets
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 DynamicListTripletContainer if you want to change the contents
31  frequently (eg via a kernel::ScoreState).
32  */
33 class IMPCONTAINEREXPORT ListTripletContainer :
34 #if defined(IMP_DOXYGEN) || defined(SWIG)
35  public TripletContainer
36 #else
37  public IMP::kernel::internal::StaticListContainer<
38  kernel::TripletContainer>
39 #endif
40  {
41  typedef IMP::kernel::internal::StaticListContainer<kernel::TripletContainer>
42  P;
43 
44  public:
46  std::string name = "ListTripletContainer%1%");
47 
49  std::string name = "ListTripletContainer%1%");
50 
51  void set_particle_triplets(const kernel::ParticleTripletsTemp &ps);
52  void set_particle_triplets(const kernel::ParticleIndexTriplets &contents);
53 #ifndef IMP_DOXYGEN
55  std::string name = "ListTripletContainer %1%");
56  ListTripletContainer(kernel::Model *m, const char *name);
57 
58  void add_particle_triplet(const kernel::ParticleTriplet& vt);
59  void add_particle_triplets(const kernel::ParticleTripletsTemp &c);
60  void clear_particle_triplets();
61 #endif
62 #ifdef SWIG
66  void do_apply(const TripletModifier *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_TRIPLET_CONTAINER_H */
A shared container for Triplets.
virtual ParticleIndexes get_all_possible_indexes() const =0
Get contained particles.
A base class for modifiers of kernel::ParticleTripletsTemp.
Store a kernel::ParticleIndexTriplets.
A Modifier on kernel::ParticleTripletsTemp.
virtual kernel::ParticleIndexTriplets get_indexes() const =0
Basic types used by IMP.
A container for Triplets.
virtual kernel::ParticleIndexTriplets get_range_indexes() const =0
A class to store an fixed array of same-typed values.
Definition: base/Array.h:33
#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
Various general useful macros for IMP.
Class for storing model, its restraints, constraints, and particles.
Definition: kernel/Model.h:72