IMP  2.2.0
The Integrative Modeling Platform
DynamicListTripletContainer.h
Go to the documentation of this file.
1 /**
2  * \file IMP/container/DynamicListTripletContainer.h
3  * \brief Store a list of kernel::ParticleTripletsTemp
4  *
5  * WARNING This file was generated from DynamicListTripletContainer.h
6  * in /tmp/nightly-build-28832/imp-2.2.0/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_DYNAMIC_LIST_TRIPLET_CONTAINER_H
13 #define IMPCONTAINER_DYNAMIC_LIST_TRIPLET_CONTAINER_H
14 
15 #include <IMP/container/container_config.h>
16 #include <IMP/base/object_macros.h>
17 #include <IMP/kernel/internal/DynamicListContainer.h>
18 
19 IMPCONTAINER_BEGIN_NAMESPACE
20 
21 //! Store a kernel::ParticleIndexTriplets
22 /** In contrast to ListTripletContainer, this list is designed to act
23  as the output of a ScoreState or another container. The key difference
24  is that it uses the passed Container to define the list of all
25  possible contents of the container.
26  */
27 class IMPCONTAINEREXPORT DynamicListTripletContainer :
28 #if defined(IMP_DOXYGEN) || defined(SWIG)
29  public TripletContainer
30 #else
31  public IMP::kernel::internal::DynamicListContainer<
32  kernel::TripletContainer>
33 #endif
34  {
35  typedef IMP::kernel::internal::DynamicListContainer<
37 
38  public:
39  DynamicListTripletContainer(Container *m, std::string name =
40  "ListTripletContainer %1%");
41 
42  /** @name Methods to control the contained objects
43 
44  This container stores a list of Triplet objects. To manipulate
45  the list use these methods.
46  */
47  /**@{*/
48  void add_particle_triplet(const kernel::ParticleTriplet& vt);
49  void add_particle_triplets(const kernel::ParticleTripletsTemp &c);
50  void set_particle_triplets(kernel::ParticleTripletsTemp c);
51  void clear_particle_triplets();
52 /**@}*/
53 #ifdef SWIG
57  void do_apply(const TripletModifier *sm) const;
59 #endif
61 };
62 
64 
65 IMPCONTAINER_END_NAMESPACE
66 
67 #endif /* IMPCONTAINER_DYNAMIC_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.
virtual kernel::ParticleIndexTriplets get_indexes() const =0
Store a kernel::ParticleIndexTriplets.
virtual kernel::ParticleIndexTriplets get_range_indexes() const =0
A class to store an fixed array of same-typed values.
Definition: base/Array.h:33
Abstract class for containers of particles.
#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.