IMP
2.0.1
The Integrative Modeling Platform
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
PairContainerSet.h
Go to the documentation of this file.
1
/**
2
* \file IMP/container/PairContainerSet.h
3
* \brief Store a set of PairContainers
4
*
5
* This file is generated by a script (tools/maintenance/make-container).
6
* Do not edit directly.
7
*
8
* Copyright 2007-2013 IMP Inventors. All rights reserved.
9
*/
10
11
#ifndef IMPCONTAINER_PAIR_CONTAINER_SET_H
12
#define IMPCONTAINER_PAIR_CONTAINER_SET_H
13
14
#include <IMP/container/container_config.h>
15
#include <
IMP/PairContainer.h
>
16
#include <
IMP/container_macros.h
>
17
#include <IMP/internal/container_helpers.h>
18
#include <
IMP/scoped.h
>
19
20
IMPCONTAINER_BEGIN_NAMESPACE
21
22
//! Stores a set of PairContainers
23
/** The input sets must be disjoint. This can change if there is
24
demand for it.
25
26
\usesconstraint
27
*/
28
class
IMPCONTAINEREXPORT
PairContainerSet
29
:
public
PairContainer
30
{
31
static
PairContainerSet
* get_set(
PairContainer
* c) {
32
return
dynamic_cast<
PairContainerSet
*
>
(c);
33
}
34
public
:
35
//! Construct and empty set
36
PairContainerSet
(
Model
*m,
37
std::string name=
"PairContainerSet %1%"
);
38
39
PairContainerSet
(
const
PairContainersTemp
&pc,
40
std::string name=
"PairContainerSet %1%"
);
41
42
/** \brief apply modifer sm to all pair containers */
43
IMP_IMPLEMENT
(
void
do_apply(
const
PairModifier
*sm)
const
);
44
45
template
<
class
M>
46
void
apply_generic
(
const
M*m)
const
{
47
apply
(m);
48
}
49
50
ParticleIndexes
get_all_possible_indexes
()
const
;
51
IMP_OBJECT
(
PairContainerSet
);
52
53
/** @name Methods to control the nested container
54
55
This container merges a set of nested containers. To add
56
or remove nested containers, use the methods below.
57
*/
58
/**@{*/
59
IMP_LIST_ACTION(
public
,
PairContainer
,
PairContainers
,
60
pair_container, pair_containers,
61
PairContainer
*,
PairContainers
,
62
{
63
obj->set_was_used(
true
);
64
set_is_changed
(
true
);
65
},{},
66
);
67
/**@}*/
68
69
#ifndef IMP_DOXYGEN
70
ParticleIndexPairs
get_indexes
()
const
;
71
ParticleIndexPairs
get_range_indexes
()
const
;
72
ModelObjectsTemp
do_get_inputs
()
const
;
73
#endif
74
75
IMP_IMPLEMENT
(
void
do_before_evaluate());
76
};
77
78
79
IMPCONTAINER_END_NAMESPACE
80
81
#endif
/* IMPCONTAINER_PAIR_CONTAINER_SET_H */