IMP  2.0.1
The Integrative Modeling Platform
DynamicListSingletonContainer.h
Go to the documentation of this file.
1 /**
2  * \file IMP/container/DynamicListSingletonContainer.h
3  * \brief Store a list of ParticlesTemp
4  *
5  * WARNING This file was generated from DynamicListSingletonContainer.h
6  * in /tmp/nightly-build-36540/imp-2.0.1/tools/build/container_templates/container
7  * by tools/maintenance/setup_containers.py.
8  *
9  * Copyright 2007-2013 IMP Inventors. All rights reserved.
10  */
11 
12 #ifndef IMPCONTAINER_DYNAMIC_LIST_SINGLETON_CONTAINER_H
13 #define IMPCONTAINER_DYNAMIC_LIST_SINGLETON_CONTAINER_H
14 
15 #include <IMP/container/container_config.h>
16 #include <IMP/internal/InternalDynamicListSingletonContainer.h>
17 
18 IMPCONTAINER_BEGIN_NAMESPACE
19 
20 //! Store a list of ParticlesTemp
21 /** In contrast to ListSingletonContainer, this list is designed to act
22  as the output of a ScoreState or another container. The key difference
23  is that it uses the passed Container to define the list of all
24  possible contents of the container.
25  */
26 class IMPCONTAINEREXPORT DynamicListSingletonContainer:
27 #if defined(IMP_DOXYGEN) || defined(SWIG)
28 public SingletonContainer
29 #else
30 public IMP::kernel::internal::InternalDynamicListSingletonContainer
31 #endif
32 {
33  typedef IMP::kernel::internal::InternalDynamicListSingletonContainer P;
34 public:
36  std::string name= "ListSingletonContainer %1%");
37 
38  /** @name Methods to control the contained objects
39 
40  This container stores a list of Singleton objects. To manipulate
41  the list use these methods.
42  */
43  /**@{*/
44  void add_particle(Particle* vt);
45  void add_particles(const ParticlesTemp &c);
46  void set_particles(ParticlesTemp c);
47  void clear_particles();
48  /**@}*/
49 #ifdef SWIG
51 #endif
52 };
53 
54 IMP_OBJECTS(DynamicListSingletonContainer,DynamicListSingletonContainers);
55 
56 IMPCONTAINER_END_NAMESPACE
57 
58 #endif /* IMPCONTAINER_DYNAMIC_LIST_SINGLETON_CONTAINER_H */