IMP logo
ListSingletonContainer.h
Go to the documentation of this file.
1 /**
2  * \file ListSingletonContainer.h \brief Store a list of ParticlesTemp
3  *
4  * This file is generated by a script (core/tools/make-container).
5  * Do not edit directly.
6  *
7  * Copyright 2007-2012 IMP Inventors. All rights reserved.
8  */
9 
10 #ifndef IMPCONTAINER_LIST_SINGLETON_CONTAINER_H
11 #define IMPCONTAINER_LIST_SINGLETON_CONTAINER_H
12 
13 #include "container_config.h"
14 #include <IMP/internal/InternalListSingletonContainer.h>
15 
16 IMPCONTAINER_BEGIN_NAMESPACE
17 
18 //! Store a list of ParticlesTemp
19 /** \note The indexes can change when particles are inserted
20  as the list is maintained in sorted order.
21  */
22 class IMPCONTAINEREXPORT ListSingletonContainer:
23 #if defined(IMP_DOXYGEN) || defined(SWIG)
24 public SingletonContainer
25 #else
26 public IMP::internal::InternalListSingletonContainer
27 #endif
28 {
29  typedef IMP::internal::InternalListSingletonContainer P;
30 public:
32 
33  //! construct and pass an initial set of Singletons
35  std::string name);
36 
38  std::string name= "ListSingletonContainer %1%");
39  ListSingletonContainer(Model *m, const char *name);
40 
41 #if defined(IMP_DOXYGEN) || defined(SWIG)
42  /** @name Methods to control the contained objects
43 
44  This container stores a list of Singleton objects. To manipulate
45  the list use these methods.
46  */
47  /**@{*/
48  void add_particle(Particle* vt);
49  void add_particles(const ParticlesTemp &c);
50  void set_particles(ParticlesTemp c);
51  void clear_particles();
52  /**@}*/
54 #else
56 #endif
57 };
58 
59 IMP_OBJECTS(ListSingletonContainer,ListSingletonContainers);
60 
61 IMPCONTAINER_END_NAMESPACE
62 
63 #endif /* IMPCONTAINER_LIST_SINGLETON_CONTAINER_H */

Generated on Tue May 22 2012 23:33:14 for IMP by doxygen 1.8.1