IMP  2.0.1
The Integrative Modeling Platform
DynamicListPairContainer.h
Go to the documentation of this file.
1 /**
2  * \file IMP/container/DynamicListPairContainer.h
3  * \brief Store a list of ParticlePairsTemp
4  *
5  * WARNING This file was generated from DynamicListPairContainer.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_PAIR_CONTAINER_H
13 #define IMPCONTAINER_DYNAMIC_LIST_PAIR_CONTAINER_H
14 
15 #include <IMP/container/container_config.h>
16 #include <IMP/internal/InternalDynamicListPairContainer.h>
17 
18 IMPCONTAINER_BEGIN_NAMESPACE
19 
20 //! Store a list of ParticlePairsTemp
21 /** In contrast to ListPairContainer, 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 DynamicListPairContainer:
27 #if defined(IMP_DOXYGEN) || defined(SWIG)
28 public PairContainer
29 #else
30 public IMP::kernel::internal::InternalDynamicListPairContainer
31 #endif
32 {
33  typedef IMP::kernel::internal::InternalDynamicListPairContainer P;
34 public:
36  std::string name= "ListPairContainer %1%");
37 
38  /** @name Methods to control the contained objects
39 
40  This container stores a list of Pair objects. To manipulate
41  the list use these methods.
42  */
43  /**@{*/
44  void add_particle_pair(const ParticlePair& vt);
45  void add_particle_pairs(const ParticlePairsTemp &c);
46  void set_particle_pairs(ParticlePairsTemp c);
47  void clear_particle_pairs();
48  /**@}*/
49 #ifdef SWIG
51 #endif
52 };
53 
54 IMP_OBJECTS(DynamicListPairContainer,DynamicListPairContainers);
55 
56 IMPCONTAINER_END_NAMESPACE
57 
58 #endif /* IMPCONTAINER_DYNAMIC_LIST_PAIR_CONTAINER_H */