IMP logo
IMP Reference Guide  develop.345e71cb9a,2026/08/10
The Integrative Modeling Platform
container/__init__.py
1 # This file was automatically generated by SWIG (https://www.swig.org).
2 # Version 4.5.0
3 #
4 # Do not make changes to this file unless you know what you are doing - modify
5 # the SWIG interface file instead.
6 
7 
8 # This wrapper is part of IMP,
9 # Copyright 2007-2026 IMP Inventors. All rights reserved.
10 
11 
12 
13 import warnings
14 
15 
16 
17 import typing
18 import _IMP_container
19 
20 import builtins as __builtin__
21 
22 def _swig_repr(self):
23  try:
24  strthis = "proxy of " + self.this.__repr__()
25  except __builtin__.Exception:
26  strthis = ""
27  return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
28 
29 
30 def _swig_setattr_nondynamic_instance_variable(set):
31  def set_instance_attr(self, name, value):
32  if name == "this":
33  set(self, name, value)
34  elif name == "thisown":
35  self.this.own(value)
36  elif hasattr(self, name) and isinstance(getattr(type(self), name), property):
37  set(self, name, value)
38  else:
39  raise AttributeError("You cannot add instance attributes to %s" % self)
40  return set_instance_attr
41 
42 
43 def _swig_setattr_nondynamic_class_variable(set):
44  def set_class_attr(cls, name, value):
45  if hasattr(cls, name) and not isinstance(getattr(cls, name), property):
46  set(cls, name, value)
47  else:
48  raise AttributeError("You cannot add class attributes to %s" % cls)
49  return set_class_attr
50 
51 
52 class _SwigNonDynamicMeta(type):
53  """Meta class to enforce nondynamic attributes (no new attributes) for a class"""
54  __setattr__ = _swig_setattr_nondynamic_class_variable(type.__setattr__)
55 
56 
57 import weakref
58 
59 class IMP_CONTAINER_SwigPyIterator(object):
60  r"""Proxy of C++ swig::IMP_CONTAINER_SwigPyIterator class."""
61 
62  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
63 
64  def __init__(self, *args, **kwargs):
65  raise AttributeError("No constructor defined - class is abstract")
66  __repr__ = _swig_repr
67  __swig_destroy__ = _IMP_container.delete_IMP_CONTAINER_SwigPyIterator
68 
69  def value(self):
70  r"""value(IMP_CONTAINER_SwigPyIterator self) -> PyObject *"""
71  return _IMP_container.IMP_CONTAINER_SwigPyIterator_value(self)
72 
73  def incr(self, n=1):
74  r"""incr(IMP_CONTAINER_SwigPyIterator self, size_t n=1) -> IMP_CONTAINER_SwigPyIterator"""
75  return _IMP_container.IMP_CONTAINER_SwigPyIterator_incr(self, n)
76 
77  def decr(self, n=1):
78  r"""decr(IMP_CONTAINER_SwigPyIterator self, size_t n=1) -> IMP_CONTAINER_SwigPyIterator"""
79  return _IMP_container.IMP_CONTAINER_SwigPyIterator_decr(self, n)
80 
81  def distance(self, x):
82  r"""distance(IMP_CONTAINER_SwigPyIterator self, IMP_CONTAINER_SwigPyIterator x) -> ptrdiff_t"""
83  return _IMP_container.IMP_CONTAINER_SwigPyIterator_distance(self, x)
84 
85  def equal(self, x):
86  r"""equal(IMP_CONTAINER_SwigPyIterator self, IMP_CONTAINER_SwigPyIterator x) -> bool"""
87  return _IMP_container.IMP_CONTAINER_SwigPyIterator_equal(self, x)
88 
89  def copy(self):
90  r"""copy(IMP_CONTAINER_SwigPyIterator self) -> IMP_CONTAINER_SwigPyIterator"""
91  return _IMP_container.IMP_CONTAINER_SwigPyIterator_copy(self)
92 
93  def __next__(self):
94  r"""__next__(IMP_CONTAINER_SwigPyIterator self) -> PyObject *"""
95  return _IMP_container.IMP_CONTAINER_SwigPyIterator___next__(self)
96 
97  def previous(self):
98  r"""previous(IMP_CONTAINER_SwigPyIterator self) -> PyObject *"""
99  return _IMP_container.IMP_CONTAINER_SwigPyIterator_previous(self)
100 
101  def advance(self, n):
102  r"""advance(IMP_CONTAINER_SwigPyIterator self, ptrdiff_t n) -> IMP_CONTAINER_SwigPyIterator"""
103  return _IMP_container.IMP_CONTAINER_SwigPyIterator_advance(self, n)
104 
105  def __eq__(self, x):
106  r"""__eq__(IMP_CONTAINER_SwigPyIterator self, IMP_CONTAINER_SwigPyIterator x) -> bool"""
107  return _IMP_container.IMP_CONTAINER_SwigPyIterator___eq__(self, x)
108 
109  def __ne__(self, x):
110  r"""__ne__(IMP_CONTAINER_SwigPyIterator self, IMP_CONTAINER_SwigPyIterator x) -> bool"""
111  return _IMP_container.IMP_CONTAINER_SwigPyIterator___ne__(self, x)
112 
113  def __iadd__(self, n):
114  r"""__iadd__(IMP_CONTAINER_SwigPyIterator self, ptrdiff_t n) -> IMP_CONTAINER_SwigPyIterator"""
115  return _IMP_container.IMP_CONTAINER_SwigPyIterator___iadd__(self, n)
116 
117  def __isub__(self, n):
118  r"""__isub__(IMP_CONTAINER_SwigPyIterator self, ptrdiff_t n) -> IMP_CONTAINER_SwigPyIterator"""
119  return _IMP_container.IMP_CONTAINER_SwigPyIterator___isub__(self, n)
120 
121  def __add__(self, n):
122  r"""__add__(IMP_CONTAINER_SwigPyIterator self, ptrdiff_t n) -> IMP_CONTAINER_SwigPyIterator"""
123  return _IMP_container.IMP_CONTAINER_SwigPyIterator___add__(self, n)
124 
125  def __sub__(self, *args):
126  r"""
127  __sub__(IMP_CONTAINER_SwigPyIterator self, ptrdiff_t n) -> IMP_CONTAINER_SwigPyIterator
128  __sub__(IMP_CONTAINER_SwigPyIterator self, IMP_CONTAINER_SwigPyIterator x) -> ptrdiff_t
129  """
130  return _IMP_container.IMP_CONTAINER_SwigPyIterator___sub__(self, *args)
131  def __iter__(self):
132  return self
133 
134 # Register IMP_CONTAINER_SwigPyIterator in _IMP_container:
135 _IMP_container.IMP_CONTAINER_SwigPyIterator_swigregister(IMP_CONTAINER_SwigPyIterator)
136 
137 _value_types=[]
138 _object_types=[]
139 _raii_types=[]
140 _plural_types=[]
141 
142 IMP_DEBUG = _IMP_container.IMP_DEBUG
143 
144 IMP_RELEASE = _IMP_container.IMP_RELEASE
145 
146 IMP_SILENT = _IMP_container.IMP_SILENT
147 
148 IMP_PROGRESS = _IMP_container.IMP_PROGRESS
149 
150 IMP_TERSE = _IMP_container.IMP_TERSE
151 
152 IMP_VERBOSE = _IMP_container.IMP_VERBOSE
153 
154 IMP_MEMORY = _IMP_container.IMP_MEMORY
155 
156 IMP_NONE = _IMP_container.IMP_NONE
157 
158 IMP_USAGE = _IMP_container.IMP_USAGE
159 
160 IMP_INTERNAL = _IMP_container.IMP_INTERNAL
161 
162 IMP_KERNEL_HAS_LOG4CXX = _IMP_container.IMP_KERNEL_HAS_LOG4CXX
163 
164 IMP_COMPILER_HAS_CEREAL_RAW_POINTER = _IMP_container.IMP_COMPILER_HAS_CEREAL_RAW_POINTER
165 
166 IMP_COMPILER_HAS_DEBUG_VECTOR = _IMP_container.IMP_COMPILER_HAS_DEBUG_VECTOR
167 
168 IMP_COMPILER_HAS_RANDOM_SHUFFLE = _IMP_container.IMP_COMPILER_HAS_RANDOM_SHUFFLE
169 
170 IMP_COMPILER_HAS_THREE_WAY = _IMP_container.IMP_COMPILER_HAS_THREE_WAY
171 
172 IMP_KERNEL_HAS_BOOST_RANDOM = _IMP_container.IMP_KERNEL_HAS_BOOST_RANDOM
173 
174 IMP_KERNEL_HAS_NUMPY = _IMP_container.IMP_KERNEL_HAS_NUMPY
175 
176 IMP_KERNEL_HAS_BOOST_SYSTEM = _IMP_container.IMP_KERNEL_HAS_BOOST_SYSTEM
177 
178 IMP_KERNEL_HAS_GPERFTOOLS = _IMP_container.IMP_KERNEL_HAS_GPERFTOOLS
179 
180 IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER = _IMP_container.IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER
181 
182 IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER = _IMP_container.IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER
183 
184 IMPKERNEL_SHOW_WARNINGS = _IMP_container.IMPKERNEL_SHOW_WARNINGS
185 
186 
187 import sys
188 class _DirectorObjects:
189  """@internal Simple class to keep references to director objects
190  to prevent premature deletion."""
191  def __init__(self):
192  self._objects = []
193  def register(self, obj):
194  """Take a reference to a director object; will only work for
195  refcounted C++ classes"""
196  if hasattr(obj, 'get_ref_count'):
197  self._objects.append(obj)
198  def cleanup(self):
199  """Only drop our reference and allow cleanup by Python if no other
200  Python references exist (we hold 3 references: one in self._objects,
201  one in x, and one in the argument list for getrefcount) *and* no
202  other C++ references exist (the Python object always holds one)"""
203  objs = [x for x in self._objects if sys.getrefcount(x) > 3 \
204  or x.get_ref_count() > 1]
205 # Do in two steps so the references are kept until the end of the
206 # function (deleting references may trigger a fresh call to this method)
207  self._objects = objs
208  def get_object_count(self):
209  """Get number of director objects (useful for testing only)"""
210  return len(self._objects)
211 _director_objects = _DirectorObjects()
212 
213 class _ostream(object):
214  r"""Proxy of C++ std::ostream class."""
215 
216  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
217 
218  def __init__(self, *args, **kwargs):
219  raise AttributeError("No constructor defined")
220  __repr__ = _swig_repr
221 
222  def write(self, osa_buf):
223  r"""write(_ostream self, char const * osa_buf)"""
224  return _IMP_container._ostream_write(self, osa_buf)
225 
226 # Register _ostream in _IMP_container:
227 _IMP_container._ostream_swigregister(_ostream)
228 IMP_C_OPEN_BINARY = _IMP_container.IMP_C_OPEN_BINARY
229 
230 import IMP
231 IMP_CGAL_HAS_BOOST_FILESYSTEM = _IMP_container.IMP_CGAL_HAS_BOOST_FILESYSTEM
232 
233 IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS = _IMP_container.IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS
234 
235 IMP_CGAL_HAS_BOOST_RANDOM = _IMP_container.IMP_CGAL_HAS_BOOST_RANDOM
236 
237 IMP_CGAL_HAS_NUMPY = _IMP_container.IMP_CGAL_HAS_NUMPY
238 
239 IMPCGAL_SHOW_WARNINGS = _IMP_container.IMPCGAL_SHOW_WARNINGS
240 
241 import IMP.cgal
242 IMP_ALGEBRA_HAS_IMP_CGAL = _IMP_container.IMP_ALGEBRA_HAS_IMP_CGAL
243 
244 IMP_ALGEBRA_HAS_BOOST_FILESYSTEM = _IMP_container.IMP_ALGEBRA_HAS_BOOST_FILESYSTEM
245 
246 IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS = _IMP_container.IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS
247 
248 IMP_ALGEBRA_HAS_BOOST_RANDOM = _IMP_container.IMP_ALGEBRA_HAS_BOOST_RANDOM
249 
250 IMP_ALGEBRA_HAS_CGAL = _IMP_container.IMP_ALGEBRA_HAS_CGAL
251 
252 IMP_ALGEBRA_HAS_NUMPY = _IMP_container.IMP_ALGEBRA_HAS_NUMPY
253 
254 IMP_ALGEBRA_HAS_ANN = _IMP_container.IMP_ALGEBRA_HAS_ANN
255 
256 IMPALGEBRA_SHOW_WARNINGS = _IMP_container.IMPALGEBRA_SHOW_WARNINGS
257 
258 import IMP.algebra
259 IMP_DISPLAY_HAS_IMP_CGAL = _IMP_container.IMP_DISPLAY_HAS_IMP_CGAL
260 
261 IMP_DISPLAY_HAS_BOOST_FILESYSTEM = _IMP_container.IMP_DISPLAY_HAS_BOOST_FILESYSTEM
262 
263 IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS = _IMP_container.IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS
264 
265 IMP_DISPLAY_HAS_BOOST_RANDOM = _IMP_container.IMP_DISPLAY_HAS_BOOST_RANDOM
266 
267 IMP_DISPLAY_HAS_CGAL = _IMP_container.IMP_DISPLAY_HAS_CGAL
268 
269 IMP_DISPLAY_HAS_NUMPY = _IMP_container.IMP_DISPLAY_HAS_NUMPY
270 
271 IMPDISPLAY_SHOW_WARNINGS = _IMP_container.IMPDISPLAY_SHOW_WARNINGS
272 
273 import IMP.display
274 IMP_SCORE_FUNCTOR_HAS_IMP_CGAL = _IMP_container.IMP_SCORE_FUNCTOR_HAS_IMP_CGAL
275 
276 IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM = _IMP_container.IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM
277 
278 IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS = _IMP_container.IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS
279 
280 IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM = _IMP_container.IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM
281 
282 IMP_SCORE_FUNCTOR_HAS_CGAL = _IMP_container.IMP_SCORE_FUNCTOR_HAS_CGAL
283 
284 IMP_SCORE_FUNCTOR_HAS_HDF5 = _IMP_container.IMP_SCORE_FUNCTOR_HAS_HDF5
285 
286 IMP_SCORE_FUNCTOR_HAS_NUMPY = _IMP_container.IMP_SCORE_FUNCTOR_HAS_NUMPY
287 
288 IMPSCOREFUNCTOR_SHOW_WARNINGS = _IMP_container.IMPSCOREFUNCTOR_SHOW_WARNINGS
289 
290 import IMP.score_functor
291 IMP_CORE_HAS_IMP_CGAL = _IMP_container.IMP_CORE_HAS_IMP_CGAL
292 
293 IMP_CORE_HAS_IMP_KERNEL = _IMP_container.IMP_CORE_HAS_IMP_KERNEL
294 
295 IMP_CORE_HAS_BOOST_FILESYSTEM = _IMP_container.IMP_CORE_HAS_BOOST_FILESYSTEM
296 
297 IMP_CORE_HAS_BOOST_PROGRAMOPTIONS = _IMP_container.IMP_CORE_HAS_BOOST_PROGRAMOPTIONS
298 
299 IMP_CORE_HAS_BOOST_RANDOM = _IMP_container.IMP_CORE_HAS_BOOST_RANDOM
300 
301 IMP_CORE_HAS_CGAL = _IMP_container.IMP_CORE_HAS_CGAL
302 
303 IMP_CORE_HAS_HDF5 = _IMP_container.IMP_CORE_HAS_HDF5
304 
305 IMP_CORE_HAS_NUMPY = _IMP_container.IMP_CORE_HAS_NUMPY
306 
307 IMPCORE_SHOW_WARNINGS = _IMP_container.IMPCORE_SHOW_WARNINGS
308 
309 import IMP.core
310 IMP_CONTAINER_HAS_IMP_ALGEBRA = _IMP_container.IMP_CONTAINER_HAS_IMP_ALGEBRA
311 
312 IMP_CONTAINER_HAS_IMP_CGAL = _IMP_container.IMP_CONTAINER_HAS_IMP_CGAL
313 
314 IMP_CONTAINER_HAS_IMP_DISPLAY = _IMP_container.IMP_CONTAINER_HAS_IMP_DISPLAY
315 
316 IMP_CONTAINER_HAS_IMP_KERNEL = _IMP_container.IMP_CONTAINER_HAS_IMP_KERNEL
317 
318 IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR = _IMP_container.IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR
319 
320 IMP_CONTAINER_HAS_BOOST_FILESYSTEM = _IMP_container.IMP_CONTAINER_HAS_BOOST_FILESYSTEM
321 
322 IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS = _IMP_container.IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS
323 
324 IMP_CONTAINER_HAS_BOOST_RANDOM = _IMP_container.IMP_CONTAINER_HAS_BOOST_RANDOM
325 
326 IMP_CONTAINER_HAS_CGAL = _IMP_container.IMP_CONTAINER_HAS_CGAL
327 
328 IMP_CONTAINER_HAS_HDF5 = _IMP_container.IMP_CONTAINER_HAS_HDF5
329 
330 IMP_CONTAINER_HAS_NUMPY = _IMP_container.IMP_CONTAINER_HAS_NUMPY
331 
332 IMP_CONTAINER_HAS_PYTHON_IHM = _IMP_container.IMP_CONTAINER_HAS_PYTHON_IHM
333 
334 IMP_CONTAINER_HAS_GOOGLE_DENSE_HASH_MAP = _IMP_container.IMP_CONTAINER_HAS_GOOGLE_DENSE_HASH_MAP
335 
336 IMP_CONTAINER_HAS_ROBIN_MAP = _IMP_container.IMP_CONTAINER_HAS_ROBIN_MAP
337 
338 IMPCONTAINER_SHOW_WARNINGS = _IMP_container.IMPCONTAINER_SHOW_WARNINGS
339 
340 
341 _object_types.append("AllBipartitePairContainer")
342 
343 
344 def _object_cast_to_AllBipartitePairContainer(o):
345  r"""_object_cast_to_AllBipartitePairContainer(Object o) -> AllBipartitePairContainer"""
346  return _IMP_container._object_cast_to_AllBipartitePairContainer(o)
347 
348 _object_types.append("AllPairContainer")
349 
350 
351 def _object_cast_to_AllPairContainer(o):
352  r"""_object_cast_to_AllPairContainer(Object o) -> AllPairContainer"""
353  return _IMP_container._object_cast_to_AllPairContainer(o)
354 
355 _object_types.append("CloseBipartitePairContainer")
356 
357 
358 def _object_cast_to_CloseBipartitePairContainer(o):
359  r"""_object_cast_to_CloseBipartitePairContainer(Object o) -> CloseBipartitePairContainer"""
360  return _IMP_container._object_cast_to_CloseBipartitePairContainer(o)
361 
362 _object_types.append("ClosePairContainer")
363 
364 
365 def _object_cast_to_ClosePairContainer(o):
366  r"""_object_cast_to_ClosePairContainer(Object o) -> ClosePairContainer"""
367  return _IMP_container._object_cast_to_ClosePairContainer(o)
368 
369 _object_types.append("ConnectingPairContainer")
370 
371 
372 def _object_cast_to_ConnectingPairContainer(o):
373  r"""_object_cast_to_ConnectingPairContainer(Object o) -> ConnectingPairContainer"""
374  return _IMP_container._object_cast_to_ConnectingPairContainer(o)
375 
376 _object_types.append("ConsecutivePairContainer")
377 
378 
379 def _object_cast_to_ConsecutivePairContainer(o):
380  r"""_object_cast_to_ConsecutivePairContainer(Object o) -> ConsecutivePairContainer"""
381  return _IMP_container._object_cast_to_ConsecutivePairContainer(o)
382 
383 _object_types.append("ExclusiveConsecutivePairContainer")
384 
385 
386 def _object_cast_to_ExclusiveConsecutivePairContainer(o):
387  r"""_object_cast_to_ExclusiveConsecutivePairContainer(Object o) -> ExclusiveConsecutivePairContainer"""
388  return _IMP_container._object_cast_to_ExclusiveConsecutivePairContainer(o)
389 
390 _object_types.append("ExclusiveConsecutivePairFilter")
391 
392 
393 def _object_cast_to_ExclusiveConsecutivePairFilter(o):
394  r"""_object_cast_to_ExclusiveConsecutivePairFilter(Object o) -> ExclusiveConsecutivePairFilter"""
395  return _IMP_container._object_cast_to_ExclusiveConsecutivePairFilter(o)
396 
397 _object_types.append("ConsecutivePairFilter")
398 
399 
400 def _object_cast_to_ConsecutivePairFilter(o):
401  r"""_object_cast_to_ConsecutivePairFilter(Object o) -> ConsecutivePairFilter"""
402  return _IMP_container._object_cast_to_ConsecutivePairFilter(o)
403 
404 _object_types.append("ListPairContainer")
405 
406 
407 def _object_cast_to_ListPairContainer(o):
408  r"""_object_cast_to_ListPairContainer(Object o) -> ListPairContainer"""
409  return _IMP_container._object_cast_to_ListPairContainer(o)
410 
411 _object_types.append("ListQuadContainer")
412 
413 
414 def _object_cast_to_ListQuadContainer(o):
415  r"""_object_cast_to_ListQuadContainer(Object o) -> ListQuadContainer"""
416  return _IMP_container._object_cast_to_ListQuadContainer(o)
417 
418 _object_types.append("ListSingletonContainer")
419 
420 
421 def _object_cast_to_ListSingletonContainer(o):
422  r"""_object_cast_to_ListSingletonContainer(Object o) -> ListSingletonContainer"""
423  return _IMP_container._object_cast_to_ListSingletonContainer(o)
424 
425 _object_types.append("ListTripletContainer")
426 
427 
428 def _object_cast_to_ListTripletContainer(o):
429  r"""_object_cast_to_ListTripletContainer(Object o) -> ListTripletContainer"""
430  return _IMP_container._object_cast_to_ListTripletContainer(o)
431 
432 _object_types.append("DynamicListPairContainer")
433 
434 
435 def _object_cast_to_DynamicListPairContainer(o):
436  r"""_object_cast_to_DynamicListPairContainer(Object o) -> DynamicListPairContainer"""
437  return _IMP_container._object_cast_to_DynamicListPairContainer(o)
438 
439 _object_types.append("DynamicListQuadContainer")
440 
441 
442 def _object_cast_to_DynamicListQuadContainer(o):
443  r"""_object_cast_to_DynamicListQuadContainer(Object o) -> DynamicListQuadContainer"""
444  return _IMP_container._object_cast_to_DynamicListQuadContainer(o)
445 
446 _object_types.append("DynamicListSingletonContainer")
447 
448 
449 def _object_cast_to_DynamicListSingletonContainer(o):
450  r"""_object_cast_to_DynamicListSingletonContainer(Object o) -> DynamicListSingletonContainer"""
451  return _IMP_container._object_cast_to_DynamicListSingletonContainer(o)
452 
453 _object_types.append("DynamicListTripletContainer")
454 
455 
456 def _object_cast_to_DynamicListTripletContainer(o):
457  r"""_object_cast_to_DynamicListTripletContainer(Object o) -> DynamicListTripletContainer"""
458  return _IMP_container._object_cast_to_DynamicListTripletContainer(o)
459 
460 _object_types.append("MinimumPairRestraint")
461 
462 
463 def _object_cast_to_MinimumPairRestraint(o):
464  r"""_object_cast_to_MinimumPairRestraint(Object o) -> MinimumPairRestraint"""
465  return _IMP_container._object_cast_to_MinimumPairRestraint(o)
466 
467 _object_types.append("MinimumPairScore")
468 
469 
470 def _object_cast_to_MinimumPairScore(o):
471  r"""_object_cast_to_MinimumPairScore(Object o) -> MinimumPairScore"""
472  return _IMP_container._object_cast_to_MinimumPairScore(o)
473 
474 _object_types.append("MinimumQuadRestraint")
475 
476 
477 def _object_cast_to_MinimumQuadRestraint(o):
478  r"""_object_cast_to_MinimumQuadRestraint(Object o) -> MinimumQuadRestraint"""
479  return _IMP_container._object_cast_to_MinimumQuadRestraint(o)
480 
481 _object_types.append("MinimumQuadScore")
482 
483 
484 def _object_cast_to_MinimumQuadScore(o):
485  r"""_object_cast_to_MinimumQuadScore(Object o) -> MinimumQuadScore"""
486  return _IMP_container._object_cast_to_MinimumQuadScore(o)
487 
488 _object_types.append("MinimumSingletonRestraint")
489 
490 
491 def _object_cast_to_MinimumSingletonRestraint(o):
492  r"""_object_cast_to_MinimumSingletonRestraint(Object o) -> MinimumSingletonRestraint"""
493  return _IMP_container._object_cast_to_MinimumSingletonRestraint(o)
494 
495 _object_types.append("MinimumSingletonScore")
496 
497 
498 def _object_cast_to_MinimumSingletonScore(o):
499  r"""_object_cast_to_MinimumSingletonScore(Object o) -> MinimumSingletonScore"""
500  return _IMP_container._object_cast_to_MinimumSingletonScore(o)
501 
502 _object_types.append("MinimumTripletRestraint")
503 
504 
505 def _object_cast_to_MinimumTripletRestraint(o):
506  r"""_object_cast_to_MinimumTripletRestraint(Object o) -> MinimumTripletRestraint"""
507  return _IMP_container._object_cast_to_MinimumTripletRestraint(o)
508 
509 _object_types.append("MinimumTripletScore")
510 
511 
512 def _object_cast_to_MinimumTripletScore(o):
513  r"""_object_cast_to_MinimumTripletScore(Object o) -> MinimumTripletScore"""
514  return _IMP_container._object_cast_to_MinimumTripletScore(o)
515 
516 _object_types.append("PairContainerSet")
517 
518 
519 def _object_cast_to_PairContainerSet(o):
520  r"""_object_cast_to_PairContainerSet(Object o) -> PairContainerSet"""
521  return _IMP_container._object_cast_to_PairContainerSet(o)
522 
523 _object_types.append("PairsConstraint")
524 
525 
526 def _object_cast_to_PairsConstraint(o):
527  r"""_object_cast_to_PairsConstraint(Object o) -> PairsConstraint"""
528  return _IMP_container._object_cast_to_PairsConstraint(o)
529 
530 _object_types.append("PairsOptimizerState")
531 
532 
533 def _object_cast_to_PairsOptimizerState(o):
534  r"""_object_cast_to_PairsOptimizerState(Object o) -> PairsOptimizerState"""
535  return _IMP_container._object_cast_to_PairsOptimizerState(o)
536 
537 _object_types.append("PairsRestraint")
538 
539 
540 def _object_cast_to_PairsRestraint(o):
541  r"""_object_cast_to_PairsRestraint(Object o) -> PairsRestraint"""
542  return _IMP_container._object_cast_to_PairsRestraint(o)
543 
544 _object_types.append("QuadContainerSet")
545 
546 
547 def _object_cast_to_QuadContainerSet(o):
548  r"""_object_cast_to_QuadContainerSet(Object o) -> QuadContainerSet"""
549  return _IMP_container._object_cast_to_QuadContainerSet(o)
550 
551 _object_types.append("QuadsConstraint")
552 
553 
554 def _object_cast_to_QuadsConstraint(o):
555  r"""_object_cast_to_QuadsConstraint(Object o) -> QuadsConstraint"""
556  return _IMP_container._object_cast_to_QuadsConstraint(o)
557 
558 _object_types.append("QuadsOptimizerState")
559 
560 
561 def _object_cast_to_QuadsOptimizerState(o):
562  r"""_object_cast_to_QuadsOptimizerState(Object o) -> QuadsOptimizerState"""
563  return _IMP_container._object_cast_to_QuadsOptimizerState(o)
564 
565 _object_types.append("QuadsRestraint")
566 
567 
568 def _object_cast_to_QuadsRestraint(o):
569  r"""_object_cast_to_QuadsRestraint(Object o) -> QuadsRestraint"""
570  return _IMP_container._object_cast_to_QuadsRestraint(o)
571 
572 _object_types.append("SingletonContainerSet")
573 
574 
575 def _object_cast_to_SingletonContainerSet(o):
576  r"""_object_cast_to_SingletonContainerSet(Object o) -> SingletonContainerSet"""
577  return _IMP_container._object_cast_to_SingletonContainerSet(o)
578 
579 _object_types.append("SingletonsConstraint")
580 
581 
582 def _object_cast_to_SingletonsConstraint(o):
583  r"""_object_cast_to_SingletonsConstraint(Object o) -> SingletonsConstraint"""
584  return _IMP_container._object_cast_to_SingletonsConstraint(o)
585 
586 _object_types.append("SingletonsOptimizerState")
587 
588 
589 def _object_cast_to_SingletonsOptimizerState(o):
590  r"""_object_cast_to_SingletonsOptimizerState(Object o) -> SingletonsOptimizerState"""
591  return _IMP_container._object_cast_to_SingletonsOptimizerState(o)
592 
593 _object_types.append("SingletonsRestraint")
594 
595 
596 def _object_cast_to_SingletonsRestraint(o):
597  r"""_object_cast_to_SingletonsRestraint(Object o) -> SingletonsRestraint"""
598  return _IMP_container._object_cast_to_SingletonsRestraint(o)
599 
600 _object_types.append("TripletContainerSet")
601 
602 
603 def _object_cast_to_TripletContainerSet(o):
604  r"""_object_cast_to_TripletContainerSet(Object o) -> TripletContainerSet"""
605  return _IMP_container._object_cast_to_TripletContainerSet(o)
606 
607 _object_types.append("TripletsConstraint")
608 
609 
610 def _object_cast_to_TripletsConstraint(o):
611  r"""_object_cast_to_TripletsConstraint(Object o) -> TripletsConstraint"""
612  return _IMP_container._object_cast_to_TripletsConstraint(o)
613 
614 _object_types.append("TripletsOptimizerState")
615 
616 
617 def _object_cast_to_TripletsOptimizerState(o):
618  r"""_object_cast_to_TripletsOptimizerState(Object o) -> TripletsOptimizerState"""
619  return _IMP_container._object_cast_to_TripletsOptimizerState(o)
620 
621 _object_types.append("TripletsRestraint")
622 
623 
624 def _object_cast_to_TripletsRestraint(o):
625  r"""_object_cast_to_TripletsRestraint(Object o) -> TripletsRestraint"""
626  return _IMP_container._object_cast_to_TripletsRestraint(o)
627 
628 _object_types.append("InContainerSingletonFilter")
629 
630 
631 def _object_cast_to_InContainerSingletonFilter(o):
632  r"""_object_cast_to_InContainerSingletonFilter(Object o) -> InContainerSingletonFilter"""
633  return _IMP_container._object_cast_to_InContainerSingletonFilter(o)
634 
635 _object_types.append("InContainerPairFilter")
636 
637 
638 def _object_cast_to_InContainerPairFilter(o):
639  r"""_object_cast_to_InContainerPairFilter(Object o) -> InContainerPairFilter"""
640  return _IMP_container._object_cast_to_InContainerPairFilter(o)
641 
642 _object_types.append("InContainerTripletFilter")
643 
644 
645 def _object_cast_to_InContainerTripletFilter(o):
646  r"""_object_cast_to_InContainerTripletFilter(Object o) -> InContainerTripletFilter"""
647  return _IMP_container._object_cast_to_InContainerTripletFilter(o)
648 
649 _object_types.append("InContainerQuadFilter")
650 
651 
652 def _object_cast_to_InContainerQuadFilter(o):
653  r"""_object_cast_to_InContainerQuadFilter(Object o) -> InContainerQuadFilter"""
654  return _IMP_container._object_cast_to_InContainerQuadFilter(o)
655 
656 _object_types.append("SingletonContainerStatistics")
657 
658 
659 def _object_cast_to_SingletonContainerStatistics(o):
660  r"""_object_cast_to_SingletonContainerStatistics(Object o) -> SingletonContainerStatistics"""
661  return _IMP_container._object_cast_to_SingletonContainerStatistics(o)
662 
663 _object_types.append("PairContainerStatistics")
664 
665 
666 def _object_cast_to_PairContainerStatistics(o):
667  r"""_object_cast_to_PairContainerStatistics(Object o) -> PairContainerStatistics"""
668  return _IMP_container._object_cast_to_PairContainerStatistics(o)
669 
670 _object_types.append("TripletContainerStatistics")
671 
672 
673 def _object_cast_to_TripletContainerStatistics(o):
674  r"""_object_cast_to_TripletContainerStatistics(Object o) -> TripletContainerStatistics"""
675  return _IMP_container._object_cast_to_TripletContainerStatistics(o)
676 
677 _object_types.append("QuadContainerStatistics")
678 
679 
680 def _object_cast_to_QuadContainerStatistics(o):
681  r"""_object_cast_to_QuadContainerStatistics(Object o) -> QuadContainerStatistics"""
682  return _IMP_container._object_cast_to_QuadContainerStatistics(o)
683 
684 _object_types.append("EventSingletonsOptimizerState")
685 
686 
687 def _object_cast_to_EventSingletonsOptimizerState(o):
688  r"""_object_cast_to_EventSingletonsOptimizerState(Object o) -> EventSingletonsOptimizerState"""
689  return _IMP_container._object_cast_to_EventSingletonsOptimizerState(o)
690 
691 _object_types.append("EventPairsOptimizerState")
692 
693 
694 def _object_cast_to_EventPairsOptimizerState(o):
695  r"""_object_cast_to_EventPairsOptimizerState(Object o) -> EventPairsOptimizerState"""
696  return _IMP_container._object_cast_to_EventPairsOptimizerState(o)
697 
698 _object_types.append("EventTripletsOptimizerState")
699 
700 
701 def _object_cast_to_EventTripletsOptimizerState(o):
702  r"""_object_cast_to_EventTripletsOptimizerState(Object o) -> EventTripletsOptimizerState"""
703  return _IMP_container._object_cast_to_EventTripletsOptimizerState(o)
704 
705 _object_types.append("EventQuadsOptimizerState")
706 
707 
708 def _object_cast_to_EventQuadsOptimizerState(o):
709  r"""_object_cast_to_EventQuadsOptimizerState(Object o) -> EventQuadsOptimizerState"""
710  return _IMP_container._object_cast_to_EventQuadsOptimizerState(o)
711 
712 _object_types.append("PredicateSingletonsRestraint")
713 
714 
715 def _object_cast_to_PredicateSingletonsRestraint(o):
716  r"""_object_cast_to_PredicateSingletonsRestraint(Object o) -> PredicateSingletonsRestraint"""
717  return _IMP_container._object_cast_to_PredicateSingletonsRestraint(o)
718 
719 _object_types.append("PredicatePairsRestraint")
720 
721 
722 def _object_cast_to_PredicatePairsRestraint(o):
723  r"""_object_cast_to_PredicatePairsRestraint(Object o) -> PredicatePairsRestraint"""
724  return _IMP_container._object_cast_to_PredicatePairsRestraint(o)
725 
726 _object_types.append("PredicateTripletsRestraint")
727 
728 
729 def _object_cast_to_PredicateTripletsRestraint(o):
730  r"""_object_cast_to_PredicateTripletsRestraint(Object o) -> PredicateTripletsRestraint"""
731  return _IMP_container._object_cast_to_PredicateTripletsRestraint(o)
732 
733 _object_types.append("PredicateQuadsRestraint")
734 
735 
736 def _object_cast_to_PredicateQuadsRestraint(o):
737  r"""_object_cast_to_PredicateQuadsRestraint(Object o) -> PredicateQuadsRestraint"""
738  return _IMP_container._object_cast_to_PredicateQuadsRestraint(o)
739 
740 _object_types.append("DistributeSingletonsScoreState")
741 
742 
743 def _object_cast_to_DistributeSingletonsScoreState(o):
744  r"""_object_cast_to_DistributeSingletonsScoreState(Object o) -> DistributeSingletonsScoreState"""
745  return _IMP_container._object_cast_to_DistributeSingletonsScoreState(o)
746 
747 _object_types.append("DistributePairsScoreState")
748 
749 
750 def _object_cast_to_DistributePairsScoreState(o):
751  r"""_object_cast_to_DistributePairsScoreState(Object o) -> DistributePairsScoreState"""
752  return _IMP_container._object_cast_to_DistributePairsScoreState(o)
753 
754 _object_types.append("DistributeTripletsScoreState")
755 
756 
757 def _object_cast_to_DistributeTripletsScoreState(o):
758  r"""_object_cast_to_DistributeTripletsScoreState(Object o) -> DistributeTripletsScoreState"""
759  return _IMP_container._object_cast_to_DistributeTripletsScoreState(o)
760 
761 _object_types.append("DistributeQuadsScoreState")
762 
763 
764 def _object_cast_to_DistributeQuadsScoreState(o):
765  r"""_object_cast_to_DistributeQuadsScoreState(Object o) -> DistributeQuadsScoreState"""
766  return _IMP_container._object_cast_to_DistributeQuadsScoreState(o)
767 class AllBipartitePairContainer(IMP.PairContainer):
768  r"""Proxy of C++ IMP::container::AllBipartitePairContainer class."""
769 
770  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
771 
772  def __init__(self, *args):
773  r"""__init__(AllBipartitePairContainer self, _SingletonContainerAdaptor a, _SingletonContainerAdaptor b, std::string name="AllBipartitePairContainer%1%") -> AllBipartitePairContainer"""
774  _IMP_container.AllBipartitePairContainer_swiginit(self, _IMP_container.new_AllBipartitePairContainer(*args))
775 
776  def do_get_inputs(self):
777  r"""do_get_inputs(AllBipartitePairContainer self) -> IMP::ModelObjectsTemp"""
778  return _IMP_container.AllBipartitePairContainer_do_get_inputs(self)
779 
780  def do_apply(self, sm):
781  r"""do_apply(AllBipartitePairContainer self, PairModifier sm)"""
782  return _IMP_container.AllBipartitePairContainer_do_apply(self, sm)
783 
784  def do_apply_moved(self, sm, moved_pis, reset_pis):
785  r"""do_apply_moved(AllBipartitePairContainer self, PairModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
786  return _IMP_container.AllBipartitePairContainer_do_apply_moved(self, sm, moved_pis, reset_pis)
787 
788  def get_version_info(self):
789  r"""get_version_info(AllBipartitePairContainer self) -> VersionInfo"""
790  return _IMP_container.AllBipartitePairContainer_get_version_info(self)
791  __swig_destroy__ = _IMP_container.delete_AllBipartitePairContainer
792 
793  def __str__(self):
794  r"""__str__(AllBipartitePairContainer self) -> std::string"""
795  return _IMP_container.AllBipartitePairContainer___str__(self)
796 
797  def __repr__(self):
798  r"""__repr__(AllBipartitePairContainer self) -> std::string"""
799  return _IMP_container.AllBipartitePairContainer___repr__(self)
800 
801  @staticmethod
802  def get_from(o):
803  return _object_cast_to_AllBipartitePairContainer(o)
804 
805 
806  def _get_static_contents(self):
807  return self.get_contents()
808 
809 
810 # Register AllBipartitePairContainer in _IMP_container:
811 _IMP_container.AllBipartitePairContainer_swigregister(AllBipartitePairContainer)
812 class AllPairContainer(IMP.PairContainer):
813  r"""Proxy of C++ IMP::container::AllPairContainer class."""
814 
815  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
816 
817  def __init__(self, *args):
818  r"""__init__(AllPairContainer self, _SingletonContainerAdaptor c, std::string name="AllPairContainer%1%") -> AllPairContainer"""
819  _IMP_container.AllPairContainer_swiginit(self, _IMP_container.new_AllPairContainer(*args))
820 
821  def do_get_inputs(self):
822  r"""do_get_inputs(AllPairContainer self) -> IMP::ModelObjectsTemp"""
823  return _IMP_container.AllPairContainer_do_get_inputs(self)
824 
825  def do_apply(self, sm):
826  r"""do_apply(AllPairContainer self, PairModifier sm)"""
827  return _IMP_container.AllPairContainer_do_apply(self, sm)
828 
829  def do_apply_moved(self, sm, moved_pis, reset_pis):
830  r"""do_apply_moved(AllPairContainer self, PairModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
831  return _IMP_container.AllPairContainer_do_apply_moved(self, sm, moved_pis, reset_pis)
832 
833  def get_version_info(self):
834  r"""get_version_info(AllPairContainer self) -> VersionInfo"""
835  return _IMP_container.AllPairContainer_get_version_info(self)
836  __swig_destroy__ = _IMP_container.delete_AllPairContainer
837 
838  def __str__(self):
839  r"""__str__(AllPairContainer self) -> std::string"""
840  return _IMP_container.AllPairContainer___str__(self)
841 
842  def __repr__(self):
843  r"""__repr__(AllPairContainer self) -> std::string"""
844  return _IMP_container.AllPairContainer___repr__(self)
845 
846  @staticmethod
847  def get_from(o):
848  return _object_cast_to_AllPairContainer(o)
849 
850 
851  def _get_static_contents(self):
852  return self.get_contents()
853 
854 
855 # Register AllPairContainer in _IMP_container:
856 _IMP_container.AllPairContainer_swigregister(AllPairContainer)
857 class CloseBipartitePairContainer(IMP.PairContainer):
858  r"""Proxy of C++ IMP::container::CloseBipartitePairContainer class."""
859 
860  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
861 
862  def __init__(self, *args):
863  r"""
864  __init__(CloseBipartitePairContainer self, _SingletonContainerAdaptor a, _SingletonContainerAdaptor b, double distance, double slack=1, std::string name="CloseBipartitePairContainer%1%") -> CloseBipartitePairContainer
865  __init__(CloseBipartitePairContainer self, _SingletonContainerAdaptor a, _SingletonContainerAdaptor b, double distance, ClosePairsFinder cpf, double slack=1, std::string name="CloseBipartitePairContainer%1%") -> CloseBipartitePairContainer
866  __init__(CloseBipartitePairContainer self) -> CloseBipartitePairContainer
867  """
868  _IMP_container.CloseBipartitePairContainer_swiginit(self, _IMP_container.new_CloseBipartitePairContainer(*args))
869  def __get_pair_filters(self): return IMP._list_util.VarList(getdimfunc=self.get_number_of_pair_filters, getfunc=self.get_pair_filter, erasefunc=self.erase_pair_filter, appendfunc=self.add_pair_filter, extendfunc=self.add_pair_filters, clearfunc=self.clear_pair_filters, indexfunc=self._python_index_pair_filter)
870  def __set_pair_filters(self, obj): IMP._list_util.set_varlist(self.pair_filters, obj)
871  def __del_pair_filters(self): IMP._list_util.del_varlist(self.pair_filters)
872  pair_filters = property(__get_pair_filters, __set_pair_filters, __del_pair_filters, doc="List of ##ucnames")
873 
874  def remove_pair_filter(self, d):
875  r"""remove_pair_filter(CloseBipartitePairContainer self, PairPredicate d)"""
876  return _IMP_container.CloseBipartitePairContainer_remove_pair_filter(self, d)
877 
878  def _python_index_pair_filter(self, d, start, stop):
879  r"""_python_index_pair_filter(CloseBipartitePairContainer self, PairPredicate d, unsigned int start, unsigned int stop) -> unsigned int"""
880  return _IMP_container.CloseBipartitePairContainer__python_index_pair_filter(self, d, start, stop)
881 
882  def remove_pair_filters(self, d):
883  r"""remove_pair_filters(CloseBipartitePairContainer self, IMP::PairPredicates const & d)"""
884  return _IMP_container.CloseBipartitePairContainer_remove_pair_filters(self, d)
885 
886  def set_pair_filters(self, ps):
887  r"""set_pair_filters(CloseBipartitePairContainer self, IMP::PairPredicates const & ps)"""
888  return _IMP_container.CloseBipartitePairContainer_set_pair_filters(self, ps)
889 
890  def set_pair_filters_order(self, objs):
891  r"""set_pair_filters_order(CloseBipartitePairContainer self, IMP::PairPredicates const & objs)"""
892  return _IMP_container.CloseBipartitePairContainer_set_pair_filters_order(self, objs)
893 
894  def add_pair_filter(self, obj):
895  r"""add_pair_filter(CloseBipartitePairContainer self, PairPredicate obj) -> unsigned int"""
896  return _IMP_container.CloseBipartitePairContainer_add_pair_filter(self, obj)
897 
898  def add_pair_filters(self, objs):
899  r"""add_pair_filters(CloseBipartitePairContainer self, IMP::PairPredicates const & objs)"""
900  return _IMP_container.CloseBipartitePairContainer_add_pair_filters(self, objs)
901 
902  def clear_pair_filters(self):
903  r"""clear_pair_filters(CloseBipartitePairContainer self)"""
904  return _IMP_container.CloseBipartitePairContainer_clear_pair_filters(self)
905 
906  def get_number_of_pair_filters(self):
907  r"""get_number_of_pair_filters(CloseBipartitePairContainer self) -> unsigned int"""
908  return _IMP_container.CloseBipartitePairContainer_get_number_of_pair_filters(self)
909 
910  def get_has_pair_filters(self):
911  r"""get_has_pair_filters(CloseBipartitePairContainer self) -> bool"""
912  return _IMP_container.CloseBipartitePairContainer_get_has_pair_filters(self)
913 
914  def get_pair_filter(self, i):
915  r"""get_pair_filter(CloseBipartitePairContainer self, unsigned int i) -> PairPredicate"""
916  return _IMP_container.CloseBipartitePairContainer_get_pair_filter(self, i)
917 
918  def get_pair_filters(self):
919  r"""get_pair_filters(CloseBipartitePairContainer self) -> IMP::PairPredicates"""
920  return _IMP_container.CloseBipartitePairContainer_get_pair_filters(self)
921 
922  def erase_pair_filter(self, i):
923  r"""erase_pair_filter(CloseBipartitePairContainer self, unsigned int i)"""
924  return _IMP_container.CloseBipartitePairContainer_erase_pair_filter(self, i)
925 
926  def reserve_pair_filters(self, sz):
927  r"""reserve_pair_filters(CloseBipartitePairContainer self, unsigned int sz)"""
928  return _IMP_container.CloseBipartitePairContainer_reserve_pair_filters(self, sz)
929 
930  def do_get_inputs(self):
931  r"""do_get_inputs(CloseBipartitePairContainer self) -> IMP::ModelObjectsTemp"""
932  return _IMP_container.CloseBipartitePairContainer_do_get_inputs(self)
933 
934  def do_apply(self, sm):
935  r"""do_apply(CloseBipartitePairContainer self, PairModifier sm)"""
936  return _IMP_container.CloseBipartitePairContainer_do_apply(self, sm)
937 
938  def get_version_info(self):
939  r"""get_version_info(CloseBipartitePairContainer self) -> VersionInfo"""
940  return _IMP_container.CloseBipartitePairContainer_get_version_info(self)
941  __swig_destroy__ = _IMP_container.delete_CloseBipartitePairContainer
942 
943  def __str__(self):
944  r"""__str__(CloseBipartitePairContainer self) -> std::string"""
945  return _IMP_container.CloseBipartitePairContainer___str__(self)
946 
947  def __repr__(self):
948  r"""__repr__(CloseBipartitePairContainer self) -> std::string"""
949  return _IMP_container.CloseBipartitePairContainer___repr__(self)
950 
951  @staticmethod
952  def get_from(o):
953  return _object_cast_to_CloseBipartitePairContainer(o)
954 
955 
956  def _get_as_binary(self):
957  r"""_get_as_binary(CloseBipartitePairContainer self) -> PyObject *"""
958  return _IMP_container.CloseBipartitePairContainer__get_as_binary(self)
959 
960  def _set_from_binary(self, p):
961  r"""_set_from_binary(CloseBipartitePairContainer self, PyObject * p)"""
962  return _IMP_container.CloseBipartitePairContainer__set_from_binary(self, p)
963 
964  def __getstate__(self):
965  p = self._get_as_binary()
966  if len(self.__dict__) > 1:
967  d = self.__dict__.copy()
968  del d['this']
969  p = (d, p)
970  return p
971 
972  def __setstate__(self, p):
973  if not hasattr(self, 'this'):
974  self.__init__()
975  if isinstance(p, tuple):
976  d, p = p
977  self.__dict__.update(d)
978  return self._set_from_binary(p)
979 
980 
981  def _get_static_contents(self):
982  warnings.warn("No JAX support for close pairs, so using all "
983  "possible pairs; this may be slow.", IMP.JAXWarning)
984  return self.get_range_indexes()
985 
986 
987 # Register CloseBipartitePairContainer in _IMP_container:
988 _IMP_container.CloseBipartitePairContainer_swigregister(CloseBipartitePairContainer)
989 class ClosePairContainer(IMP.PairContainer):
990  r"""Proxy of C++ IMP::container::ClosePairContainer class."""
991 
992  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
993 
994  def __init__(self, *args):
995  r"""
996  __init__(ClosePairContainer self, _SingletonContainerAdaptor c, double distance_cutoff, double slack=1, std::string name="ClosePairContainer%1%") -> ClosePairContainer
997  __init__(ClosePairContainer self, _SingletonContainerAdaptor c, double distance_cutoff, ClosePairsFinder cpf, double slack=1, std::string name="ClosePairContainer%1%") -> ClosePairContainer
998  __init__(ClosePairContainer self) -> ClosePairContainer
999  """
1000  _IMP_container.ClosePairContainer_swiginit(self, _IMP_container.new_ClosePairContainer(*args))
1001  def __get_pair_filters(self): return IMP._list_util.VarList(getdimfunc=self.get_number_of_pair_filters, getfunc=self.get_pair_filter, erasefunc=self.erase_pair_filter, appendfunc=self.add_pair_filter, extendfunc=self.add_pair_filters, clearfunc=self.clear_pair_filters, indexfunc=self._python_index_pair_filter)
1002  def __set_pair_filters(self, obj): IMP._list_util.set_varlist(self.pair_filters, obj)
1003  def __del_pair_filters(self): IMP._list_util.del_varlist(self.pair_filters)
1004  pair_filters = property(__get_pair_filters, __set_pair_filters, __del_pair_filters, doc="List of ##ucnames")
1005 
1006  def remove_pair_filter(self, d):
1007  r"""remove_pair_filter(ClosePairContainer self, PairPredicate d)"""
1008  return _IMP_container.ClosePairContainer_remove_pair_filter(self, d)
1009 
1010  def _python_index_pair_filter(self, d, start, stop):
1011  r"""_python_index_pair_filter(ClosePairContainer self, PairPredicate d, unsigned int start, unsigned int stop) -> unsigned int"""
1012  return _IMP_container.ClosePairContainer__python_index_pair_filter(self, d, start, stop)
1013 
1014  def remove_pair_filters(self, d):
1015  r"""remove_pair_filters(ClosePairContainer self, IMP::PairPredicates const & d)"""
1016  return _IMP_container.ClosePairContainer_remove_pair_filters(self, d)
1017 
1018  def set_pair_filters(self, ps):
1019  r"""set_pair_filters(ClosePairContainer self, IMP::PairPredicates const & ps)"""
1020  return _IMP_container.ClosePairContainer_set_pair_filters(self, ps)
1021 
1022  def set_pair_filters_order(self, objs):
1023  r"""set_pair_filters_order(ClosePairContainer self, IMP::PairPredicates const & objs)"""
1024  return _IMP_container.ClosePairContainer_set_pair_filters_order(self, objs)
1025 
1026  def add_pair_filter(self, obj):
1027  r"""add_pair_filter(ClosePairContainer self, PairPredicate obj) -> unsigned int"""
1028  return _IMP_container.ClosePairContainer_add_pair_filter(self, obj)
1029 
1030  def add_pair_filters(self, objs):
1031  r"""add_pair_filters(ClosePairContainer self, IMP::PairPredicates const & objs)"""
1032  return _IMP_container.ClosePairContainer_add_pair_filters(self, objs)
1033 
1034  def clear_pair_filters(self):
1035  r"""clear_pair_filters(ClosePairContainer self)"""
1036  return _IMP_container.ClosePairContainer_clear_pair_filters(self)
1037 
1038  def get_number_of_pair_filters(self):
1039  r"""get_number_of_pair_filters(ClosePairContainer self) -> unsigned int"""
1040  return _IMP_container.ClosePairContainer_get_number_of_pair_filters(self)
1041 
1042  def get_has_pair_filters(self):
1043  r"""get_has_pair_filters(ClosePairContainer self) -> bool"""
1044  return _IMP_container.ClosePairContainer_get_has_pair_filters(self)
1045 
1046  def get_pair_filter(self, i):
1047  r"""get_pair_filter(ClosePairContainer self, unsigned int i) -> PairPredicate"""
1048  return _IMP_container.ClosePairContainer_get_pair_filter(self, i)
1049 
1050  def get_pair_filters(self):
1051  r"""get_pair_filters(ClosePairContainer self) -> IMP::PairPredicates"""
1052  return _IMP_container.ClosePairContainer_get_pair_filters(self)
1053 
1054  def erase_pair_filter(self, i):
1055  r"""erase_pair_filter(ClosePairContainer self, unsigned int i)"""
1056  return _IMP_container.ClosePairContainer_erase_pair_filter(self, i)
1057 
1058  def reserve_pair_filters(self, sz):
1059  r"""reserve_pair_filters(ClosePairContainer self, unsigned int sz)"""
1060  return _IMP_container.ClosePairContainer_reserve_pair_filters(self, sz)
1061 
1062  def set_slack(self, s):
1063  r"""set_slack(ClosePairContainer self, double s)"""
1064  return _IMP_container.ClosePairContainer_set_slack(self, s)
1065 
1066  def get_slack(self):
1067  r"""get_slack(ClosePairContainer self) -> double"""
1068  return _IMP_container.ClosePairContainer_get_slack(self)
1069 
1070  def do_get_inputs(self):
1071  r"""do_get_inputs(ClosePairContainer self) -> IMP::ModelObjectsTemp"""
1072  return _IMP_container.ClosePairContainer_do_get_inputs(self)
1073 
1074  def do_apply(self, sm):
1075  r"""do_apply(ClosePairContainer self, PairModifier sm)"""
1076  return _IMP_container.ClosePairContainer_do_apply(self, sm)
1077 
1078  def get_number_of_update_calls(self):
1079  r"""get_number_of_update_calls(ClosePairContainer self) -> unsigned int"""
1080  return _IMP_container.ClosePairContainer_get_number_of_update_calls(self)
1081 
1082  def get_number_of_full_rebuilds(self):
1083  r"""get_number_of_full_rebuilds(ClosePairContainer self) -> unsigned int"""
1084  return _IMP_container.ClosePairContainer_get_number_of_full_rebuilds(self)
1085 
1086  def get_number_of_partial_rebuilds(self):
1087  r"""get_number_of_partial_rebuilds(ClosePairContainer self) -> unsigned int"""
1088  return _IMP_container.ClosePairContainer_get_number_of_partial_rebuilds(self)
1089 
1090  def get_version_info(self):
1091  r"""get_version_info(ClosePairContainer self) -> VersionInfo"""
1092  return _IMP_container.ClosePairContainer_get_version_info(self)
1093  __swig_destroy__ = _IMP_container.delete_ClosePairContainer
1094 
1095  def __str__(self):
1096  r"""__str__(ClosePairContainer self) -> std::string"""
1097  return _IMP_container.ClosePairContainer___str__(self)
1098 
1099  def __repr__(self):
1100  r"""__repr__(ClosePairContainer self) -> std::string"""
1101  return _IMP_container.ClosePairContainer___repr__(self)
1102 
1103  @staticmethod
1104  def get_from(o):
1105  return _object_cast_to_ClosePairContainer(o)
1106 
1107 
1108  def _get_as_binary(self):
1109  r"""_get_as_binary(ClosePairContainer self) -> PyObject *"""
1110  return _IMP_container.ClosePairContainer__get_as_binary(self)
1111 
1112  def _set_from_binary(self, p):
1113  r"""_set_from_binary(ClosePairContainer self, PyObject * p)"""
1114  return _IMP_container.ClosePairContainer__set_from_binary(self, p)
1115 
1116  def __getstate__(self):
1117  p = self._get_as_binary()
1118  if len(self.__dict__) > 1:
1119  d = self.__dict__.copy()
1120  del d['this']
1121  p = (d, p)
1122  return p
1123 
1124  def __setstate__(self, p):
1125  if not hasattr(self, 'this'):
1126  self.__init__()
1127  if isinstance(p, tuple):
1128  d, p = p
1129  self.__dict__.update(d)
1130  return self._set_from_binary(p)
1131 
1132 
1133  def _get_static_contents(self):
1134  warnings.warn("No JAX support for close pairs, so using all "
1135  "possible pairs; this may be slow.", IMP.JAXWarning)
1136  return self.get_range_indexes()
1137 
1138 
1139 # Register ClosePairContainer in _IMP_container:
1140 _IMP_container.ClosePairContainer_swigregister(ClosePairContainer)
1141 
1142 def get_slack_estimate(m, ps, upper_bound, step, restraints, derivatives, opt, cpc):
1143  r"""get_slack_estimate(Model m, IMP::ParticleIndexes ps, double upper_bound, double step, IMP::RestraintsTemp const & restraints, bool derivatives, Optimizer opt, ClosePairContainer cpc) -> double"""
1144  return _IMP_container.get_slack_estimate(m, ps, upper_bound, step, restraints, derivatives, opt, cpc)
1145 class ConnectingPairContainer(IMP.PairContainer):
1146  r"""Proxy of C++ IMP::container::ConnectingPairContainer class."""
1147 
1148  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1149 
1150  def __init__(self, sc, error):
1151  r"""__init__(ConnectingPairContainer self, SingletonContainer sc, double error) -> ConnectingPairContainer"""
1152  _IMP_container.ConnectingPairContainer_swiginit(self, _IMP_container.new_ConnectingPairContainer(sc, error))
1153 
1154  def do_get_inputs(self):
1155  r"""do_get_inputs(ConnectingPairContainer self) -> IMP::ModelObjectsTemp"""
1156  return _IMP_container.ConnectingPairContainer_do_get_inputs(self)
1157 
1158  def do_apply(self, sm):
1159  r"""do_apply(ConnectingPairContainer self, PairModifier sm)"""
1160  return _IMP_container.ConnectingPairContainer_do_apply(self, sm)
1161 
1162  def get_version_info(self):
1163  r"""get_version_info(ConnectingPairContainer self) -> VersionInfo"""
1164  return _IMP_container.ConnectingPairContainer_get_version_info(self)
1165  __swig_destroy__ = _IMP_container.delete_ConnectingPairContainer
1166 
1167  def __str__(self):
1168  r"""__str__(ConnectingPairContainer self) -> std::string"""
1169  return _IMP_container.ConnectingPairContainer___str__(self)
1170 
1171  def __repr__(self):
1172  r"""__repr__(ConnectingPairContainer self) -> std::string"""
1173  return _IMP_container.ConnectingPairContainer___repr__(self)
1174 
1175  @staticmethod
1176  def get_from(o):
1177  return _object_cast_to_ConnectingPairContainer(o)
1178 
1179 
1180 # Register ConnectingPairContainer in _IMP_container:
1181 _IMP_container.ConnectingPairContainer_swigregister(ConnectingPairContainer)
1182 class ConsecutivePairContainer(IMP.PairContainer):
1183  r"""Proxy of C++ IMP::container::ConsecutivePairContainer class."""
1184 
1185  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1186 
1187  def __init__(self, *args):
1188  r"""__init__(ConsecutivePairContainer self, Model m, IMP::ParticleIndexes const & ps, std::string name="ConsecutivePairContainer%1%") -> ConsecutivePairContainer"""
1189  _IMP_container.ConsecutivePairContainer_swiginit(self, _IMP_container.new_ConsecutivePairContainer(*args))
1190 
1191  def do_get_inputs(self):
1192  r"""do_get_inputs(ConsecutivePairContainer self) -> IMP::ModelObjectsTemp"""
1193  return _IMP_container.ConsecutivePairContainer_do_get_inputs(self)
1194 
1195  def do_apply(self, sm):
1196  r"""do_apply(ConsecutivePairContainer self, PairModifier sm)"""
1197  return _IMP_container.ConsecutivePairContainer_do_apply(self, sm)
1198 
1199  def do_apply_moved(self, sm, moved_pis, reset_pis):
1200  r"""do_apply_moved(ConsecutivePairContainer self, PairModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
1201  return _IMP_container.ConsecutivePairContainer_do_apply_moved(self, sm, moved_pis, reset_pis)
1202 
1203  def get_version_info(self):
1204  r"""get_version_info(ConsecutivePairContainer self) -> VersionInfo"""
1205  return _IMP_container.ConsecutivePairContainer_get_version_info(self)
1206  __swig_destroy__ = _IMP_container.delete_ConsecutivePairContainer
1207 
1208  def __str__(self):
1209  r"""__str__(ConsecutivePairContainer self) -> std::string"""
1210  return _IMP_container.ConsecutivePairContainer___str__(self)
1211 
1212  def __repr__(self):
1213  r"""__repr__(ConsecutivePairContainer self) -> std::string"""
1214  return _IMP_container.ConsecutivePairContainer___repr__(self)
1215 
1216  @staticmethod
1217  def get_from(o):
1218  return _object_cast_to_ConsecutivePairContainer(o)
1219 
1220 
1221 # Register ConsecutivePairContainer in _IMP_container:
1222 _IMP_container.ConsecutivePairContainer_swigregister(ConsecutivePairContainer)
1223 class ConsecutivePairFilter(IMP.PairPredicate):
1224  r"""Proxy of C++ IMP::container::ConsecutivePairFilter class."""
1225 
1226  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1227 
1228  def __init__(self, cpc):
1229  r"""__init__(ConsecutivePairFilter self, ConsecutivePairContainer cpc) -> ConsecutivePairFilter"""
1230  _IMP_container.ConsecutivePairFilter_swiginit(self, _IMP_container.new_ConsecutivePairFilter(cpc))
1231 
1232  def do_get_inputs(self, m, pi):
1233  r"""do_get_inputs(ConsecutivePairFilter self, Model m, IMP::ParticleIndexes const & pi) -> IMP::ModelObjectsTemp"""
1234  return _IMP_container.ConsecutivePairFilter_do_get_inputs(self, m, pi)
1235 
1236  def get_value(self, *args):
1237  r"""
1238  get_value(ConsecutivePairFilter self, IMP::ParticlePair const & a) -> int
1239  get_value(ConsecutivePairFilter self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
1240  """
1241  return _IMP_container.ConsecutivePairFilter_get_value(self, *args)
1242 
1243  def get_value_index(self, *args):
1244  r"""
1245  get_value_index(ConsecutivePairFilter self, Model arg2, IMP::ParticleIndexPair const & pip) -> int
1246  get_value_index(ConsecutivePairFilter self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
1247  """
1248  return _IMP_container.ConsecutivePairFilter_get_value_index(self, *args)
1249 
1250  def get_version_info(self):
1251  r"""get_version_info(ConsecutivePairFilter self) -> VersionInfo"""
1252  return _IMP_container.ConsecutivePairFilter_get_version_info(self)
1253  __swig_destroy__ = _IMP_container.delete_ConsecutivePairFilter
1254 
1255  def __str__(self):
1256  r"""__str__(ConsecutivePairFilter self) -> std::string"""
1257  return _IMP_container.ConsecutivePairFilter___str__(self)
1258 
1259  def __repr__(self):
1260  r"""__repr__(ConsecutivePairFilter self) -> std::string"""
1261  return _IMP_container.ConsecutivePairFilter___repr__(self)
1262 
1263  @staticmethod
1264  def get_from(o):
1265  return _object_cast_to_ConsecutivePairFilter(o)
1266 
1267 
1268 # Register ConsecutivePairFilter in _IMP_container:
1269 _IMP_container.ConsecutivePairFilter_swigregister(ConsecutivePairFilter)
1270 class ExclusiveConsecutivePairContainer(IMP.PairContainer):
1271  r"""Proxy of C++ IMP::container::ExclusiveConsecutivePairContainer class."""
1272 
1273  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1274 
1275  def __init__(self, *args):
1276  r"""__init__(ExclusiveConsecutivePairContainer self, Model m, IMP::ParticleIndexes const & ps, std::string name="ExclusiveConsecutivePairContainer%1%") -> ExclusiveConsecutivePairContainer"""
1277  _IMP_container.ExclusiveConsecutivePairContainer_swiginit(self, _IMP_container.new_ExclusiveConsecutivePairContainer(*args))
1278 
1279  def do_get_inputs(self):
1280  r"""do_get_inputs(ExclusiveConsecutivePairContainer self) -> IMP::ModelObjectsTemp"""
1281  return _IMP_container.ExclusiveConsecutivePairContainer_do_get_inputs(self)
1282 
1283  def do_apply(self, sm):
1284  r"""do_apply(ExclusiveConsecutivePairContainer self, PairModifier sm)"""
1285  return _IMP_container.ExclusiveConsecutivePairContainer_do_apply(self, sm)
1286 
1287  def do_apply_moved(self, sm, moved_pis, reset_pis):
1288  r"""do_apply_moved(ExclusiveConsecutivePairContainer self, PairModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
1289  return _IMP_container.ExclusiveConsecutivePairContainer_do_apply_moved(self, sm, moved_pis, reset_pis)
1290 
1291  def get_version_info(self):
1292  r"""get_version_info(ExclusiveConsecutivePairContainer self) -> VersionInfo"""
1293  return _IMP_container.ExclusiveConsecutivePairContainer_get_version_info(self)
1294  __swig_destroy__ = _IMP_container.delete_ExclusiveConsecutivePairContainer
1295 
1296  def __str__(self):
1297  r"""__str__(ExclusiveConsecutivePairContainer self) -> std::string"""
1298  return _IMP_container.ExclusiveConsecutivePairContainer___str__(self)
1299 
1300  def __repr__(self):
1301  r"""__repr__(ExclusiveConsecutivePairContainer self) -> std::string"""
1302  return _IMP_container.ExclusiveConsecutivePairContainer___repr__(self)
1303 
1304  @staticmethod
1305  def get_from(o):
1306  return _object_cast_to_ExclusiveConsecutivePairContainer(o)
1307 
1308 
1309 # Register ExclusiveConsecutivePairContainer in _IMP_container:
1310 _IMP_container.ExclusiveConsecutivePairContainer_swigregister(ExclusiveConsecutivePairContainer)
1311 class ExclusiveConsecutivePairFilter(IMP.PairPredicate):
1312  r"""Proxy of C++ IMP::container::ExclusiveConsecutivePairFilter class."""
1313 
1314  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1315 
1316  def __init__(self):
1317  r"""__init__(ExclusiveConsecutivePairFilter self) -> ExclusiveConsecutivePairFilter"""
1318  _IMP_container.ExclusiveConsecutivePairFilter_swiginit(self, _IMP_container.new_ExclusiveConsecutivePairFilter())
1319 
1320  def do_get_inputs(self, m, pi):
1321  r"""do_get_inputs(ExclusiveConsecutivePairFilter self, Model m, IMP::ParticleIndexes const & pi) -> IMP::ModelObjectsTemp"""
1322  return _IMP_container.ExclusiveConsecutivePairFilter_do_get_inputs(self, m, pi)
1323 
1324  def get_value(self, *args):
1325  r"""
1326  get_value(ExclusiveConsecutivePairFilter self, IMP::ParticlePair const & a) -> int
1327  get_value(ExclusiveConsecutivePairFilter self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
1328  """
1329  return _IMP_container.ExclusiveConsecutivePairFilter_get_value(self, *args)
1330 
1331  def get_value_index(self, *args):
1332  r"""
1333  get_value_index(ExclusiveConsecutivePairFilter self, Model m, IMP::ParticleIndexPair const & pip) -> int
1334  get_value_index(ExclusiveConsecutivePairFilter self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
1335  """
1336  return _IMP_container.ExclusiveConsecutivePairFilter_get_value_index(self, *args)
1337 
1338  def get_version_info(self):
1339  r"""get_version_info(ExclusiveConsecutivePairFilter self) -> VersionInfo"""
1340  return _IMP_container.ExclusiveConsecutivePairFilter_get_version_info(self)
1341  __swig_destroy__ = _IMP_container.delete_ExclusiveConsecutivePairFilter
1342 
1343  def __str__(self):
1344  r"""__str__(ExclusiveConsecutivePairFilter self) -> std::string"""
1345  return _IMP_container.ExclusiveConsecutivePairFilter___str__(self)
1346 
1347  def __repr__(self):
1348  r"""__repr__(ExclusiveConsecutivePairFilter self) -> std::string"""
1349  return _IMP_container.ExclusiveConsecutivePairFilter___repr__(self)
1350 
1351  @staticmethod
1352  def get_from(o):
1353  return _object_cast_to_ExclusiveConsecutivePairFilter(o)
1354 
1355 
1356 # Register ExclusiveConsecutivePairFilter in _IMP_container:
1357 _IMP_container.ExclusiveConsecutivePairFilter_swigregister(ExclusiveConsecutivePairFilter)
1358 class ListPairContainer(IMP.PairContainer):
1359  r"""Proxy of C++ IMP::container::ListPairContainer class."""
1360 
1361  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1362 
1363  def __init__(self, *args):
1364  r"""
1365  __init__(ListPairContainer self, Model m, IMP::ParticleIndexPairs const & contents, std::string name="ListPairContainer%1%") -> ListPairContainer
1366  __init__(ListPairContainer self, Model m, std::string name="ListPairContainer %1%") -> ListPairContainer
1367  __init__(ListPairContainer self, Model m, char const * name) -> ListPairContainer
1368  __init__(ListPairContainer self) -> ListPairContainer
1369  """
1370  _IMP_container.ListPairContainer_swiginit(self, _IMP_container.new_ListPairContainer(*args))
1371 
1372  def add(self, *args):
1373  r"""
1374  add(ListPairContainer self, IMP::ParticleIndexPair const & vt)
1375  add(ListPairContainer self, IMP::ParticleIndexPairs const & c)
1376  """
1377  return _IMP_container.ListPairContainer_add(self, *args)
1378 
1379  def set(self, cp):
1380  r"""set(ListPairContainer self, IMP::ParticleIndexPairs cp)"""
1381  return _IMP_container.ListPairContainer_set(self, cp)
1382 
1383  def clear(self):
1384  r"""clear(ListPairContainer self)"""
1385  return _IMP_container.ListPairContainer_clear(self)
1386 
1387  def do_get_inputs(self):
1388  r"""do_get_inputs(ListPairContainer self) -> IMP::ModelObjectsTemp"""
1389  return _IMP_container.ListPairContainer_do_get_inputs(self)
1390 
1391  def do_apply(self, sm):
1392  r"""do_apply(ListPairContainer self, PairModifier sm)"""
1393  return _IMP_container.ListPairContainer_do_apply(self, sm)
1394 
1395  def do_apply_moved(self, sm, moved_pis, reset_pis):
1396  r"""do_apply_moved(ListPairContainer self, PairModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
1397  return _IMP_container.ListPairContainer_do_apply_moved(self, sm, moved_pis, reset_pis)
1398 
1399  def get_version_info(self):
1400  r"""get_version_info(ListPairContainer self) -> VersionInfo"""
1401  return _IMP_container.ListPairContainer_get_version_info(self)
1402  __swig_destroy__ = _IMP_container.delete_ListPairContainer
1403 
1404  def __str__(self):
1405  r"""__str__(ListPairContainer self) -> std::string"""
1406  return _IMP_container.ListPairContainer___str__(self)
1407 
1408  def __repr__(self):
1409  r"""__repr__(ListPairContainer self) -> std::string"""
1410  return _IMP_container.ListPairContainer___repr__(self)
1411 
1412  @staticmethod
1413  def get_from(o):
1414  return _object_cast_to_ListPairContainer(o)
1415 
1416 
1417  def _get_as_binary(self):
1418  r"""_get_as_binary(ListPairContainer self) -> PyObject *"""
1419  return _IMP_container.ListPairContainer__get_as_binary(self)
1420 
1421  def _set_from_binary(self, p):
1422  r"""_set_from_binary(ListPairContainer self, PyObject * p)"""
1423  return _IMP_container.ListPairContainer__set_from_binary(self, p)
1424 
1425  def __getstate__(self):
1426  p = self._get_as_binary()
1427  if len(self.__dict__) > 1:
1428  d = self.__dict__.copy()
1429  del d['this']
1430  p = (d, p)
1431  return p
1432 
1433  def __setstate__(self, p):
1434  if not hasattr(self, 'this'):
1435  self.__init__()
1436  if isinstance(p, tuple):
1437  d, p = p
1438  self.__dict__.update(d)
1439  return self._set_from_binary(p)
1440 
1441 
1442  def _get_static_contents(self):
1443  return self.get_contents()
1444 
1445 
1446 # Register ListPairContainer in _IMP_container:
1447 _IMP_container.ListPairContainer_swigregister(ListPairContainer)
1448 class ListQuadContainer(IMP.QuadContainer):
1449  r"""Proxy of C++ IMP::container::ListQuadContainer class."""
1450 
1451  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1452 
1453  def __init__(self, *args):
1454  r"""
1455  __init__(ListQuadContainer self, Model m, IMP::ParticleIndexQuads const & contents, std::string name="ListQuadContainer%1%") -> ListQuadContainer
1456  __init__(ListQuadContainer self, Model m, std::string name="ListQuadContainer %1%") -> ListQuadContainer
1457  __init__(ListQuadContainer self, Model m, char const * name) -> ListQuadContainer
1458  __init__(ListQuadContainer self) -> ListQuadContainer
1459  """
1460  _IMP_container.ListQuadContainer_swiginit(self, _IMP_container.new_ListQuadContainer(*args))
1461 
1462  def add(self, *args):
1463  r"""
1464  add(ListQuadContainer self, IMP::ParticleIndexQuad const & vt)
1465  add(ListQuadContainer self, IMP::ParticleIndexQuads const & c)
1466  """
1467  return _IMP_container.ListQuadContainer_add(self, *args)
1468 
1469  def set(self, cp):
1470  r"""set(ListQuadContainer self, IMP::ParticleIndexQuads cp)"""
1471  return _IMP_container.ListQuadContainer_set(self, cp)
1472 
1473  def clear(self):
1474  r"""clear(ListQuadContainer self)"""
1475  return _IMP_container.ListQuadContainer_clear(self)
1476 
1477  def do_get_inputs(self):
1478  r"""do_get_inputs(ListQuadContainer self) -> IMP::ModelObjectsTemp"""
1479  return _IMP_container.ListQuadContainer_do_get_inputs(self)
1480 
1481  def do_apply(self, sm):
1482  r"""do_apply(ListQuadContainer self, QuadModifier sm)"""
1483  return _IMP_container.ListQuadContainer_do_apply(self, sm)
1484 
1485  def do_apply_moved(self, sm, moved_pis, reset_pis):
1486  r"""do_apply_moved(ListQuadContainer self, QuadModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
1487  return _IMP_container.ListQuadContainer_do_apply_moved(self, sm, moved_pis, reset_pis)
1488 
1489  def get_version_info(self):
1490  r"""get_version_info(ListQuadContainer self) -> VersionInfo"""
1491  return _IMP_container.ListQuadContainer_get_version_info(self)
1492  __swig_destroy__ = _IMP_container.delete_ListQuadContainer
1493 
1494  def __str__(self):
1495  r"""__str__(ListQuadContainer self) -> std::string"""
1496  return _IMP_container.ListQuadContainer___str__(self)
1497 
1498  def __repr__(self):
1499  r"""__repr__(ListQuadContainer self) -> std::string"""
1500  return _IMP_container.ListQuadContainer___repr__(self)
1501 
1502  @staticmethod
1503  def get_from(o):
1504  return _object_cast_to_ListQuadContainer(o)
1505 
1506 
1507  def _get_as_binary(self):
1508  r"""_get_as_binary(ListQuadContainer self) -> PyObject *"""
1509  return _IMP_container.ListQuadContainer__get_as_binary(self)
1510 
1511  def _set_from_binary(self, p):
1512  r"""_set_from_binary(ListQuadContainer self, PyObject * p)"""
1513  return _IMP_container.ListQuadContainer__set_from_binary(self, p)
1514 
1515  def __getstate__(self):
1516  p = self._get_as_binary()
1517  if len(self.__dict__) > 1:
1518  d = self.__dict__.copy()
1519  del d['this']
1520  p = (d, p)
1521  return p
1522 
1523  def __setstate__(self, p):
1524  if not hasattr(self, 'this'):
1525  self.__init__()
1526  if isinstance(p, tuple):
1527  d, p = p
1528  self.__dict__.update(d)
1529  return self._set_from_binary(p)
1530 
1531 
1532 # Register ListQuadContainer in _IMP_container:
1533 _IMP_container.ListQuadContainer_swigregister(ListQuadContainer)
1534 class ListSingletonContainer(IMP.SingletonContainer):
1535  r"""Proxy of C++ IMP::container::ListSingletonContainer class."""
1536 
1537  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1538 
1539  def __init__(self, *args):
1540  r"""
1541  __init__(ListSingletonContainer self, Model m, IMP::ParticleIndexes const & contents, std::string name="ListSingletonContainer%1%") -> ListSingletonContainer
1542  __init__(ListSingletonContainer self, Model m, std::string name="ListSingletonContainer %1%") -> ListSingletonContainer
1543  __init__(ListSingletonContainer self, Model m, char const * name) -> ListSingletonContainer
1544  __init__(ListSingletonContainer self) -> ListSingletonContainer
1545  """
1546  _IMP_container.ListSingletonContainer_swiginit(self, _IMP_container.new_ListSingletonContainer(*args))
1547 
1548  def add(self, *args):
1549  r"""
1550  add(ListSingletonContainer self, ParticleIndex vt)
1551  add(ListSingletonContainer self, IMP::ParticleIndexes const & c)
1552  """
1553  return _IMP_container.ListSingletonContainer_add(self, *args)
1554 
1555  def set(self, cp):
1556  r"""set(ListSingletonContainer self, IMP::ParticleIndexes cp)"""
1557  return _IMP_container.ListSingletonContainer_set(self, cp)
1558 
1559  def clear(self):
1560  r"""clear(ListSingletonContainer self)"""
1561  return _IMP_container.ListSingletonContainer_clear(self)
1562 
1563  def do_get_inputs(self):
1564  r"""do_get_inputs(ListSingletonContainer self) -> IMP::ModelObjectsTemp"""
1565  return _IMP_container.ListSingletonContainer_do_get_inputs(self)
1566 
1567  def do_apply(self, sm):
1568  r"""do_apply(ListSingletonContainer self, SingletonModifier sm)"""
1569  return _IMP_container.ListSingletonContainer_do_apply(self, sm)
1570 
1571  def do_apply_moved(self, sm, moved_pis, reset_pis):
1572  r"""do_apply_moved(ListSingletonContainer self, SingletonModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
1573  return _IMP_container.ListSingletonContainer_do_apply_moved(self, sm, moved_pis, reset_pis)
1574 
1575  def get_version_info(self):
1576  r"""get_version_info(ListSingletonContainer self) -> VersionInfo"""
1577  return _IMP_container.ListSingletonContainer_get_version_info(self)
1578  __swig_destroy__ = _IMP_container.delete_ListSingletonContainer
1579 
1580  def __str__(self):
1581  r"""__str__(ListSingletonContainer self) -> std::string"""
1582  return _IMP_container.ListSingletonContainer___str__(self)
1583 
1584  def __repr__(self):
1585  r"""__repr__(ListSingletonContainer self) -> std::string"""
1586  return _IMP_container.ListSingletonContainer___repr__(self)
1587 
1588  @staticmethod
1589  def get_from(o):
1590  return _object_cast_to_ListSingletonContainer(o)
1591 
1592 
1593  def _get_as_binary(self):
1594  r"""_get_as_binary(ListSingletonContainer self) -> PyObject *"""
1595  return _IMP_container.ListSingletonContainer__get_as_binary(self)
1596 
1597  def _set_from_binary(self, p):
1598  r"""_set_from_binary(ListSingletonContainer self, PyObject * p)"""
1599  return _IMP_container.ListSingletonContainer__set_from_binary(self, p)
1600 
1601  def __getstate__(self):
1602  p = self._get_as_binary()
1603  if len(self.__dict__) > 1:
1604  d = self.__dict__.copy()
1605  del d['this']
1606  p = (d, p)
1607  return p
1608 
1609  def __setstate__(self, p):
1610  if not hasattr(self, 'this'):
1611  self.__init__()
1612  if isinstance(p, tuple):
1613  d, p = p
1614  self.__dict__.update(d)
1615  return self._set_from_binary(p)
1616 
1617 
1618  def _get_static_contents(self):
1619  return self.get_contents()
1620 
1621 
1622 # Register ListSingletonContainer in _IMP_container:
1623 _IMP_container.ListSingletonContainer_swigregister(ListSingletonContainer)
1624 class ListTripletContainer(IMP.TripletContainer):
1625  r"""Proxy of C++ IMP::container::ListTripletContainer class."""
1626 
1627  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1628 
1629  def __init__(self, *args):
1630  r"""
1631  __init__(ListTripletContainer self, Model m, IMP::ParticleIndexTriplets const & contents, std::string name="ListTripletContainer%1%") -> ListTripletContainer
1632  __init__(ListTripletContainer self, Model m, std::string name="ListTripletContainer %1%") -> ListTripletContainer
1633  __init__(ListTripletContainer self, Model m, char const * name) -> ListTripletContainer
1634  __init__(ListTripletContainer self) -> ListTripletContainer
1635  """
1636  _IMP_container.ListTripletContainer_swiginit(self, _IMP_container.new_ListTripletContainer(*args))
1637 
1638  def add(self, *args):
1639  r"""
1640  add(ListTripletContainer self, IMP::ParticleIndexTriplet const & vt)
1641  add(ListTripletContainer self, IMP::ParticleIndexTriplets const & c)
1642  """
1643  return _IMP_container.ListTripletContainer_add(self, *args)
1644 
1645  def set(self, cp):
1646  r"""set(ListTripletContainer self, IMP::ParticleIndexTriplets cp)"""
1647  return _IMP_container.ListTripletContainer_set(self, cp)
1648 
1649  def clear(self):
1650  r"""clear(ListTripletContainer self)"""
1651  return _IMP_container.ListTripletContainer_clear(self)
1652 
1653  def do_get_inputs(self):
1654  r"""do_get_inputs(ListTripletContainer self) -> IMP::ModelObjectsTemp"""
1655  return _IMP_container.ListTripletContainer_do_get_inputs(self)
1656 
1657  def do_apply(self, sm):
1658  r"""do_apply(ListTripletContainer self, TripletModifier sm)"""
1659  return _IMP_container.ListTripletContainer_do_apply(self, sm)
1660 
1661  def do_apply_moved(self, sm, moved_pis, reset_pis):
1662  r"""do_apply_moved(ListTripletContainer self, TripletModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
1663  return _IMP_container.ListTripletContainer_do_apply_moved(self, sm, moved_pis, reset_pis)
1664 
1665  def get_version_info(self):
1666  r"""get_version_info(ListTripletContainer self) -> VersionInfo"""
1667  return _IMP_container.ListTripletContainer_get_version_info(self)
1668  __swig_destroy__ = _IMP_container.delete_ListTripletContainer
1669 
1670  def __str__(self):
1671  r"""__str__(ListTripletContainer self) -> std::string"""
1672  return _IMP_container.ListTripletContainer___str__(self)
1673 
1674  def __repr__(self):
1675  r"""__repr__(ListTripletContainer self) -> std::string"""
1676  return _IMP_container.ListTripletContainer___repr__(self)
1677 
1678  @staticmethod
1679  def get_from(o):
1680  return _object_cast_to_ListTripletContainer(o)
1681 
1682 
1683  def _get_as_binary(self):
1684  r"""_get_as_binary(ListTripletContainer self) -> PyObject *"""
1685  return _IMP_container.ListTripletContainer__get_as_binary(self)
1686 
1687  def _set_from_binary(self, p):
1688  r"""_set_from_binary(ListTripletContainer self, PyObject * p)"""
1689  return _IMP_container.ListTripletContainer__set_from_binary(self, p)
1690 
1691  def __getstate__(self):
1692  p = self._get_as_binary()
1693  if len(self.__dict__) > 1:
1694  d = self.__dict__.copy()
1695  del d['this']
1696  p = (d, p)
1697  return p
1698 
1699  def __setstate__(self, p):
1700  if not hasattr(self, 'this'):
1701  self.__init__()
1702  if isinstance(p, tuple):
1703  d, p = p
1704  self.__dict__.update(d)
1705  return self._set_from_binary(p)
1706 
1707 
1708 # Register ListTripletContainer in _IMP_container:
1709 _IMP_container.ListTripletContainer_swigregister(ListTripletContainer)
1710 class DynamicListPairContainer(IMP.PairContainer):
1711  r"""Proxy of C++ IMP::container::DynamicListPairContainer class."""
1712 
1713  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1714 
1715  def __init__(self, *args, **kwargs):
1716  raise AttributeError("No constructor defined - class is abstract")
1717 
1718  def add(self, *args):
1719  r"""
1720  add(DynamicListPairContainer self, IMP::ParticleIndexPair const & vt)
1721  add(DynamicListPairContainer self, IMP::ParticleIndexPairs const & c)
1722  """
1723  return _IMP_container.DynamicListPairContainer_add(self, *args)
1724 
1725  def set(self, cp):
1726  r"""set(DynamicListPairContainer self, IMP::ParticleIndexPairs cp)"""
1727  return _IMP_container.DynamicListPairContainer_set(self, cp)
1728 
1729  def clear(self):
1730  r"""clear(DynamicListPairContainer self)"""
1731  return _IMP_container.DynamicListPairContainer_clear(self)
1732 
1733  def do_get_inputs(self):
1734  r"""do_get_inputs(DynamicListPairContainer self) -> IMP::ModelObjectsTemp"""
1735  return _IMP_container.DynamicListPairContainer_do_get_inputs(self)
1736 
1737  def do_apply(self, sm):
1738  r"""do_apply(DynamicListPairContainer self, PairModifier sm)"""
1739  return _IMP_container.DynamicListPairContainer_do_apply(self, sm)
1740 
1741  def do_apply_moved(self, sm, moved_pis, reset_pis):
1742  r"""do_apply_moved(DynamicListPairContainer self, PairModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
1743  return _IMP_container.DynamicListPairContainer_do_apply_moved(self, sm, moved_pis, reset_pis)
1744 
1745  def get_version_info(self):
1746  r"""get_version_info(DynamicListPairContainer self) -> VersionInfo"""
1747  return _IMP_container.DynamicListPairContainer_get_version_info(self)
1748  __swig_destroy__ = _IMP_container.delete_DynamicListPairContainer
1749 
1750  def __str__(self):
1751  r"""__str__(DynamicListPairContainer self) -> std::string"""
1752  return _IMP_container.DynamicListPairContainer___str__(self)
1753 
1754  def __repr__(self):
1755  r"""__repr__(DynamicListPairContainer self) -> std::string"""
1756  return _IMP_container.DynamicListPairContainer___repr__(self)
1757 
1758  @staticmethod
1759  def get_from(o):
1760  return _object_cast_to_DynamicListPairContainer(o)
1761 
1762 
1763 # Register DynamicListPairContainer in _IMP_container:
1764 _IMP_container.DynamicListPairContainer_swigregister(DynamicListPairContainer)
1765 class DynamicListQuadContainer(IMP.QuadContainer):
1766  r"""Proxy of C++ IMP::container::DynamicListQuadContainer class."""
1767 
1768  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1769 
1770  def __init__(self, *args, **kwargs):
1771  raise AttributeError("No constructor defined - class is abstract")
1772 
1773  def add(self, *args):
1774  r"""
1775  add(DynamicListQuadContainer self, IMP::ParticleIndexQuad const & vt)
1776  add(DynamicListQuadContainer self, IMP::ParticleIndexQuads const & c)
1777  """
1778  return _IMP_container.DynamicListQuadContainer_add(self, *args)
1779 
1780  def set(self, cp):
1781  r"""set(DynamicListQuadContainer self, IMP::ParticleIndexQuads cp)"""
1782  return _IMP_container.DynamicListQuadContainer_set(self, cp)
1783 
1784  def clear(self):
1785  r"""clear(DynamicListQuadContainer self)"""
1786  return _IMP_container.DynamicListQuadContainer_clear(self)
1787 
1788  def do_get_inputs(self):
1789  r"""do_get_inputs(DynamicListQuadContainer self) -> IMP::ModelObjectsTemp"""
1790  return _IMP_container.DynamicListQuadContainer_do_get_inputs(self)
1791 
1792  def do_apply(self, sm):
1793  r"""do_apply(DynamicListQuadContainer self, QuadModifier sm)"""
1794  return _IMP_container.DynamicListQuadContainer_do_apply(self, sm)
1795 
1796  def do_apply_moved(self, sm, moved_pis, reset_pis):
1797  r"""do_apply_moved(DynamicListQuadContainer self, QuadModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
1798  return _IMP_container.DynamicListQuadContainer_do_apply_moved(self, sm, moved_pis, reset_pis)
1799 
1800  def get_version_info(self):
1801  r"""get_version_info(DynamicListQuadContainer self) -> VersionInfo"""
1802  return _IMP_container.DynamicListQuadContainer_get_version_info(self)
1803  __swig_destroy__ = _IMP_container.delete_DynamicListQuadContainer
1804 
1805  def __str__(self):
1806  r"""__str__(DynamicListQuadContainer self) -> std::string"""
1807  return _IMP_container.DynamicListQuadContainer___str__(self)
1808 
1809  def __repr__(self):
1810  r"""__repr__(DynamicListQuadContainer self) -> std::string"""
1811  return _IMP_container.DynamicListQuadContainer___repr__(self)
1812 
1813  @staticmethod
1814  def get_from(o):
1815  return _object_cast_to_DynamicListQuadContainer(o)
1816 
1817 
1818 # Register DynamicListQuadContainer in _IMP_container:
1819 _IMP_container.DynamicListQuadContainer_swigregister(DynamicListQuadContainer)
1820 class DynamicListSingletonContainer(IMP.SingletonContainer):
1821  r"""Proxy of C++ IMP::container::DynamicListSingletonContainer class."""
1822 
1823  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1824 
1825  def __init__(self, *args, **kwargs):
1826  raise AttributeError("No constructor defined - class is abstract")
1827 
1828  def add(self, *args):
1829  r"""
1830  add(DynamicListSingletonContainer self, ParticleIndex vt)
1831  add(DynamicListSingletonContainer self, IMP::ParticleIndexes const & c)
1832  """
1833  return _IMP_container.DynamicListSingletonContainer_add(self, *args)
1834 
1835  def set(self, cp):
1836  r"""set(DynamicListSingletonContainer self, IMP::ParticleIndexes cp)"""
1837  return _IMP_container.DynamicListSingletonContainer_set(self, cp)
1838 
1839  def clear(self):
1840  r"""clear(DynamicListSingletonContainer self)"""
1841  return _IMP_container.DynamicListSingletonContainer_clear(self)
1842 
1843  def do_get_inputs(self):
1844  r"""do_get_inputs(DynamicListSingletonContainer self) -> IMP::ModelObjectsTemp"""
1845  return _IMP_container.DynamicListSingletonContainer_do_get_inputs(self)
1846 
1847  def do_apply(self, sm):
1848  r"""do_apply(DynamicListSingletonContainer self, SingletonModifier sm)"""
1849  return _IMP_container.DynamicListSingletonContainer_do_apply(self, sm)
1850 
1851  def do_apply_moved(self, sm, moved_pis, reset_pis):
1852  r"""do_apply_moved(DynamicListSingletonContainer self, SingletonModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
1853  return _IMP_container.DynamicListSingletonContainer_do_apply_moved(self, sm, moved_pis, reset_pis)
1854 
1855  def get_version_info(self):
1856  r"""get_version_info(DynamicListSingletonContainer self) -> VersionInfo"""
1857  return _IMP_container.DynamicListSingletonContainer_get_version_info(self)
1858  __swig_destroy__ = _IMP_container.delete_DynamicListSingletonContainer
1859 
1860  def __str__(self):
1861  r"""__str__(DynamicListSingletonContainer self) -> std::string"""
1862  return _IMP_container.DynamicListSingletonContainer___str__(self)
1863 
1864  def __repr__(self):
1865  r"""__repr__(DynamicListSingletonContainer self) -> std::string"""
1866  return _IMP_container.DynamicListSingletonContainer___repr__(self)
1867 
1868  @staticmethod
1869  def get_from(o):
1870  return _object_cast_to_DynamicListSingletonContainer(o)
1871 
1872 
1873 # Register DynamicListSingletonContainer in _IMP_container:
1874 _IMP_container.DynamicListSingletonContainer_swigregister(DynamicListSingletonContainer)
1875 class DynamicListTripletContainer(IMP.TripletContainer):
1876  r"""Proxy of C++ IMP::container::DynamicListTripletContainer class."""
1877 
1878  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1879 
1880  def __init__(self, *args, **kwargs):
1881  raise AttributeError("No constructor defined - class is abstract")
1882 
1883  def add(self, *args):
1884  r"""
1885  add(DynamicListTripletContainer self, IMP::ParticleIndexTriplet const & vt)
1886  add(DynamicListTripletContainer self, IMP::ParticleIndexTriplets const & c)
1887  """
1888  return _IMP_container.DynamicListTripletContainer_add(self, *args)
1889 
1890  def set(self, cp):
1891  r"""set(DynamicListTripletContainer self, IMP::ParticleIndexTriplets cp)"""
1892  return _IMP_container.DynamicListTripletContainer_set(self, cp)
1893 
1894  def clear(self):
1895  r"""clear(DynamicListTripletContainer self)"""
1896  return _IMP_container.DynamicListTripletContainer_clear(self)
1897 
1898  def do_get_inputs(self):
1899  r"""do_get_inputs(DynamicListTripletContainer self) -> IMP::ModelObjectsTemp"""
1900  return _IMP_container.DynamicListTripletContainer_do_get_inputs(self)
1901 
1902  def do_apply(self, sm):
1903  r"""do_apply(DynamicListTripletContainer self, TripletModifier sm)"""
1904  return _IMP_container.DynamicListTripletContainer_do_apply(self, sm)
1905 
1906  def do_apply_moved(self, sm, moved_pis, reset_pis):
1907  r"""do_apply_moved(DynamicListTripletContainer self, TripletModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
1908  return _IMP_container.DynamicListTripletContainer_do_apply_moved(self, sm, moved_pis, reset_pis)
1909 
1910  def get_version_info(self):
1911  r"""get_version_info(DynamicListTripletContainer self) -> VersionInfo"""
1912  return _IMP_container.DynamicListTripletContainer_get_version_info(self)
1913  __swig_destroy__ = _IMP_container.delete_DynamicListTripletContainer
1914 
1915  def __str__(self):
1916  r"""__str__(DynamicListTripletContainer self) -> std::string"""
1917  return _IMP_container.DynamicListTripletContainer___str__(self)
1918 
1919  def __repr__(self):
1920  r"""__repr__(DynamicListTripletContainer self) -> std::string"""
1921  return _IMP_container.DynamicListTripletContainer___repr__(self)
1922 
1923  @staticmethod
1924  def get_from(o):
1925  return _object_cast_to_DynamicListTripletContainer(o)
1926 
1927 
1928 # Register DynamicListTripletContainer in _IMP_container:
1929 _IMP_container.DynamicListTripletContainer_swigregister(DynamicListTripletContainer)
1930 class MinimumPairRestraint(IMP.Restraint):
1931  r"""Proxy of C++ IMP::container::MinimumPairRestraint class."""
1932 
1933  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1934 
1935  def __init__(self, *args):
1936  r"""__init__(MinimumPairRestraint self, PairScore f, _PairContainerAdaptor c, unsigned int n=1, std::string name="MinimumPairRestraint %1%") -> MinimumPairRestraint"""
1937  _IMP_container.MinimumPairRestraint_swiginit(self, _IMP_container.new_MinimumPairRestraint(*args))
1938 
1939  def do_get_inputs(self):
1940  r"""do_get_inputs(MinimumPairRestraint self) -> IMP::ModelObjectsTemp"""
1941  return _IMP_container.MinimumPairRestraint_do_get_inputs(self)
1942 
1943  def get_version_info(self):
1944  r"""get_version_info(MinimumPairRestraint self) -> VersionInfo"""
1945  return _IMP_container.MinimumPairRestraint_get_version_info(self)
1946  __swig_destroy__ = _IMP_container.delete_MinimumPairRestraint
1947 
1948  def set_n(self, n):
1949  r"""set_n(MinimumPairRestraint self, unsigned int n)"""
1950  return _IMP_container.MinimumPairRestraint_set_n(self, n)
1951 
1952  def do_create_current_decomposition(self):
1953  r"""do_create_current_decomposition(MinimumPairRestraint self) -> IMP::Restraints"""
1954  return _IMP_container.MinimumPairRestraint_do_create_current_decomposition(self)
1955 
1956  def __str__(self):
1957  r"""__str__(MinimumPairRestraint self) -> std::string"""
1958  return _IMP_container.MinimumPairRestraint___str__(self)
1959 
1960  def __repr__(self):
1961  r"""__repr__(MinimumPairRestraint self) -> std::string"""
1962  return _IMP_container.MinimumPairRestraint___repr__(self)
1963 
1964  @staticmethod
1965  def get_from(o):
1966  return _object_cast_to_MinimumPairRestraint(o)
1967 
1968 
1969 # Register MinimumPairRestraint in _IMP_container:
1970 _IMP_container.MinimumPairRestraint_swigregister(MinimumPairRestraint)
1971 class MinimumPairScore(IMP.PairScore):
1972  r"""Proxy of C++ IMP::container::MinimumPairScore class."""
1973 
1974  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1975 
1976  def __init__(self, *args):
1977  r"""__init__(MinimumPairScore self, IMP::PairScoresTemp const & scores, unsigned int n=1, std::string name="PairScore %1%") -> MinimumPairScore"""
1978  _IMP_container.MinimumPairScore_swiginit(self, _IMP_container.new_MinimumPairScore(*args))
1979 
1980  def do_get_inputs(self, m, pis):
1981  r"""do_get_inputs(MinimumPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
1982  return _IMP_container.MinimumPairScore_do_get_inputs(self, m, pis)
1983 
1984  def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
1985  r"""evaluate_indexes(MinimumPairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
1986  return _IMP_container.MinimumPairScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
1987 
1988  def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
1989  r"""evaluate_indexes_scores(MinimumPairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
1990  return _IMP_container.MinimumPairScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
1991 
1992  def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
1993  r"""evaluate_indexes_delta(MinimumPairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, std::vector< unsigned int,std::allocator< unsigned int > > const & indexes, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
1994  return _IMP_container.MinimumPairScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
1995 
1996  def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
1997  r"""evaluate_if_good_indexes(MinimumPairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, double max, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
1998  return _IMP_container.MinimumPairScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
1999 
2000  def get_version_info(self):
2001  r"""get_version_info(MinimumPairScore self) -> VersionInfo"""
2002  return _IMP_container.MinimumPairScore_get_version_info(self)
2003  __swig_destroy__ = _IMP_container.delete_MinimumPairScore
2004 
2005  def do_create_current_decomposition(self, m, vt):
2006  r"""do_create_current_decomposition(MinimumPairScore self, Model m, IMP::ParticleIndexPair const & vt) -> IMP::Restraints"""
2007  return _IMP_container.MinimumPairScore_do_create_current_decomposition(self, m, vt)
2008 
2009  def __str__(self):
2010  r"""__str__(MinimumPairScore self) -> std::string"""
2011  return _IMP_container.MinimumPairScore___str__(self)
2012 
2013  def __repr__(self):
2014  r"""__repr__(MinimumPairScore self) -> std::string"""
2015  return _IMP_container.MinimumPairScore___repr__(self)
2016 
2017  @staticmethod
2018  def get_from(o):
2019  return _object_cast_to_MinimumPairScore(o)
2020 
2021 
2022 # Register MinimumPairScore in _IMP_container:
2023 _IMP_container.MinimumPairScore_swigregister(MinimumPairScore)
2024 class MinimumQuadRestraint(IMP.Restraint):
2025  r"""Proxy of C++ IMP::container::MinimumQuadRestraint class."""
2026 
2027  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2028 
2029  def __init__(self, *args):
2030  r"""__init__(MinimumQuadRestraint self, QuadScore f, _QuadContainerAdaptor c, unsigned int n=1, std::string name="MinimumQuadRestraint %1%") -> MinimumQuadRestraint"""
2031  _IMP_container.MinimumQuadRestraint_swiginit(self, _IMP_container.new_MinimumQuadRestraint(*args))
2032 
2033  def do_get_inputs(self):
2034  r"""do_get_inputs(MinimumQuadRestraint self) -> IMP::ModelObjectsTemp"""
2035  return _IMP_container.MinimumQuadRestraint_do_get_inputs(self)
2036 
2037  def get_version_info(self):
2038  r"""get_version_info(MinimumQuadRestraint self) -> VersionInfo"""
2039  return _IMP_container.MinimumQuadRestraint_get_version_info(self)
2040  __swig_destroy__ = _IMP_container.delete_MinimumQuadRestraint
2041 
2042  def set_n(self, n):
2043  r"""set_n(MinimumQuadRestraint self, unsigned int n)"""
2044  return _IMP_container.MinimumQuadRestraint_set_n(self, n)
2045 
2046  def do_create_current_decomposition(self):
2047  r"""do_create_current_decomposition(MinimumQuadRestraint self) -> IMP::Restraints"""
2048  return _IMP_container.MinimumQuadRestraint_do_create_current_decomposition(self)
2049 
2050  def __str__(self):
2051  r"""__str__(MinimumQuadRestraint self) -> std::string"""
2052  return _IMP_container.MinimumQuadRestraint___str__(self)
2053 
2054  def __repr__(self):
2055  r"""__repr__(MinimumQuadRestraint self) -> std::string"""
2056  return _IMP_container.MinimumQuadRestraint___repr__(self)
2057 
2058  @staticmethod
2059  def get_from(o):
2060  return _object_cast_to_MinimumQuadRestraint(o)
2061 
2062 
2063 # Register MinimumQuadRestraint in _IMP_container:
2064 _IMP_container.MinimumQuadRestraint_swigregister(MinimumQuadRestraint)
2065 class MinimumQuadScore(IMP.QuadScore):
2066  r"""Proxy of C++ IMP::container::MinimumQuadScore class."""
2067 
2068  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2069 
2070  def __init__(self, *args):
2071  r"""__init__(MinimumQuadScore self, IMP::QuadScoresTemp const & scores, unsigned int n=1, std::string name="QuadScore %1%") -> MinimumQuadScore"""
2072  _IMP_container.MinimumQuadScore_swiginit(self, _IMP_container.new_MinimumQuadScore(*args))
2073 
2074  def do_get_inputs(self, m, pis):
2075  r"""do_get_inputs(MinimumQuadScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
2076  return _IMP_container.MinimumQuadScore_do_get_inputs(self, m, pis)
2077 
2078  def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
2079  r"""evaluate_indexes(MinimumQuadScore self, Model m, IMP::ParticleIndexQuads const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
2080  return _IMP_container.MinimumQuadScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
2081 
2082  def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
2083  r"""evaluate_indexes_scores(MinimumQuadScore self, Model m, IMP::ParticleIndexQuads const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
2084  return _IMP_container.MinimumQuadScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
2085 
2086  def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
2087  r"""evaluate_indexes_delta(MinimumQuadScore self, Model m, IMP::ParticleIndexQuads const & p, DerivativeAccumulator da, std::vector< unsigned int,std::allocator< unsigned int > > const & indexes, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
2088  return _IMP_container.MinimumQuadScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
2089 
2090  def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
2091  r"""evaluate_if_good_indexes(MinimumQuadScore self, Model m, IMP::ParticleIndexQuads const & p, DerivativeAccumulator da, double max, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
2092  return _IMP_container.MinimumQuadScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
2093 
2094  def get_version_info(self):
2095  r"""get_version_info(MinimumQuadScore self) -> VersionInfo"""
2096  return _IMP_container.MinimumQuadScore_get_version_info(self)
2097  __swig_destroy__ = _IMP_container.delete_MinimumQuadScore
2098 
2099  def do_create_current_decomposition(self, m, vt):
2100  r"""do_create_current_decomposition(MinimumQuadScore self, Model m, IMP::ParticleIndexQuad const & vt) -> IMP::Restraints"""
2101  return _IMP_container.MinimumQuadScore_do_create_current_decomposition(self, m, vt)
2102 
2103  def __str__(self):
2104  r"""__str__(MinimumQuadScore self) -> std::string"""
2105  return _IMP_container.MinimumQuadScore___str__(self)
2106 
2107  def __repr__(self):
2108  r"""__repr__(MinimumQuadScore self) -> std::string"""
2109  return _IMP_container.MinimumQuadScore___repr__(self)
2110 
2111  @staticmethod
2112  def get_from(o):
2113  return _object_cast_to_MinimumQuadScore(o)
2114 
2115 
2116 # Register MinimumQuadScore in _IMP_container:
2117 _IMP_container.MinimumQuadScore_swigregister(MinimumQuadScore)
2118 class MinimumSingletonRestraint(IMP.Restraint):
2119  r"""Proxy of C++ IMP::container::MinimumSingletonRestraint class."""
2120 
2121  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2122 
2123  def __init__(self, *args):
2124  r"""__init__(MinimumSingletonRestraint self, SingletonScore f, _SingletonContainerAdaptor c, unsigned int n=1, std::string name="MinimumSingletonRestraint %1%") -> MinimumSingletonRestraint"""
2125  _IMP_container.MinimumSingletonRestraint_swiginit(self, _IMP_container.new_MinimumSingletonRestraint(*args))
2126 
2127  def do_get_inputs(self):
2128  r"""do_get_inputs(MinimumSingletonRestraint self) -> IMP::ModelObjectsTemp"""
2129  return _IMP_container.MinimumSingletonRestraint_do_get_inputs(self)
2130 
2131  def get_version_info(self):
2132  r"""get_version_info(MinimumSingletonRestraint self) -> VersionInfo"""
2133  return _IMP_container.MinimumSingletonRestraint_get_version_info(self)
2134  __swig_destroy__ = _IMP_container.delete_MinimumSingletonRestraint
2135 
2136  def set_n(self, n):
2137  r"""set_n(MinimumSingletonRestraint self, unsigned int n)"""
2138  return _IMP_container.MinimumSingletonRestraint_set_n(self, n)
2139 
2140  def do_create_current_decomposition(self):
2141  r"""do_create_current_decomposition(MinimumSingletonRestraint self) -> IMP::Restraints"""
2142  return _IMP_container.MinimumSingletonRestraint_do_create_current_decomposition(self)
2143 
2144  def __str__(self):
2145  r"""__str__(MinimumSingletonRestraint self) -> std::string"""
2146  return _IMP_container.MinimumSingletonRestraint___str__(self)
2147 
2148  def __repr__(self):
2149  r"""__repr__(MinimumSingletonRestraint self) -> std::string"""
2150  return _IMP_container.MinimumSingletonRestraint___repr__(self)
2151 
2152  @staticmethod
2153  def get_from(o):
2154  return _object_cast_to_MinimumSingletonRestraint(o)
2155 
2156 
2157 # Register MinimumSingletonRestraint in _IMP_container:
2158 _IMP_container.MinimumSingletonRestraint_swigregister(MinimumSingletonRestraint)
2159 class MinimumSingletonScore(IMP.SingletonScore):
2160  r"""Proxy of C++ IMP::container::MinimumSingletonScore class."""
2161 
2162  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2163 
2164  def __init__(self, *args):
2165  r"""__init__(MinimumSingletonScore self, IMP::SingletonScoresTemp const & scores, unsigned int n=1, std::string name="SingletonScore %1%") -> MinimumSingletonScore"""
2166  _IMP_container.MinimumSingletonScore_swiginit(self, _IMP_container.new_MinimumSingletonScore(*args))
2167 
2168  def do_get_inputs(self, m, pis):
2169  r"""do_get_inputs(MinimumSingletonScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
2170  return _IMP_container.MinimumSingletonScore_do_get_inputs(self, m, pis)
2171 
2172  def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
2173  r"""evaluate_indexes(MinimumSingletonScore self, Model m, IMP::ParticleIndexes const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
2174  return _IMP_container.MinimumSingletonScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
2175 
2176  def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
2177  r"""evaluate_indexes_scores(MinimumSingletonScore self, Model m, IMP::ParticleIndexes const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
2178  return _IMP_container.MinimumSingletonScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
2179 
2180  def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
2181  r"""evaluate_indexes_delta(MinimumSingletonScore self, Model m, IMP::ParticleIndexes const & p, DerivativeAccumulator da, std::vector< unsigned int,std::allocator< unsigned int > > const & indexes, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
2182  return _IMP_container.MinimumSingletonScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
2183 
2184  def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
2185  r"""evaluate_if_good_indexes(MinimumSingletonScore self, Model m, IMP::ParticleIndexes const & p, DerivativeAccumulator da, double max, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
2186  return _IMP_container.MinimumSingletonScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
2187 
2188  def get_version_info(self):
2189  r"""get_version_info(MinimumSingletonScore self) -> VersionInfo"""
2190  return _IMP_container.MinimumSingletonScore_get_version_info(self)
2191  __swig_destroy__ = _IMP_container.delete_MinimumSingletonScore
2192 
2193  def do_create_current_decomposition(self, m, vt):
2194  r"""do_create_current_decomposition(MinimumSingletonScore self, Model m, ParticleIndex vt) -> IMP::Restraints"""
2195  return _IMP_container.MinimumSingletonScore_do_create_current_decomposition(self, m, vt)
2196 
2197  def __str__(self):
2198  r"""__str__(MinimumSingletonScore self) -> std::string"""
2199  return _IMP_container.MinimumSingletonScore___str__(self)
2200 
2201  def __repr__(self):
2202  r"""__repr__(MinimumSingletonScore self) -> std::string"""
2203  return _IMP_container.MinimumSingletonScore___repr__(self)
2204 
2205  @staticmethod
2206  def get_from(o):
2207  return _object_cast_to_MinimumSingletonScore(o)
2208 
2209 
2210 # Register MinimumSingletonScore in _IMP_container:
2211 _IMP_container.MinimumSingletonScore_swigregister(MinimumSingletonScore)
2212 class MinimumTripletRestraint(IMP.Restraint):
2213  r"""Proxy of C++ IMP::container::MinimumTripletRestraint class."""
2214 
2215  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2216 
2217  def __init__(self, *args):
2218  r"""__init__(MinimumTripletRestraint self, TripletScore f, _TripletContainerAdaptor c, unsigned int n=1, std::string name="MinimumTripletRestraint %1%") -> MinimumTripletRestraint"""
2219  _IMP_container.MinimumTripletRestraint_swiginit(self, _IMP_container.new_MinimumTripletRestraint(*args))
2220 
2221  def do_get_inputs(self):
2222  r"""do_get_inputs(MinimumTripletRestraint self) -> IMP::ModelObjectsTemp"""
2223  return _IMP_container.MinimumTripletRestraint_do_get_inputs(self)
2224 
2225  def get_version_info(self):
2226  r"""get_version_info(MinimumTripletRestraint self) -> VersionInfo"""
2227  return _IMP_container.MinimumTripletRestraint_get_version_info(self)
2228  __swig_destroy__ = _IMP_container.delete_MinimumTripletRestraint
2229 
2230  def set_n(self, n):
2231  r"""set_n(MinimumTripletRestraint self, unsigned int n)"""
2232  return _IMP_container.MinimumTripletRestraint_set_n(self, n)
2233 
2234  def do_create_current_decomposition(self):
2235  r"""do_create_current_decomposition(MinimumTripletRestraint self) -> IMP::Restraints"""
2236  return _IMP_container.MinimumTripletRestraint_do_create_current_decomposition(self)
2237 
2238  def __str__(self):
2239  r"""__str__(MinimumTripletRestraint self) -> std::string"""
2240  return _IMP_container.MinimumTripletRestraint___str__(self)
2241 
2242  def __repr__(self):
2243  r"""__repr__(MinimumTripletRestraint self) -> std::string"""
2244  return _IMP_container.MinimumTripletRestraint___repr__(self)
2245 
2246  @staticmethod
2247  def get_from(o):
2248  return _object_cast_to_MinimumTripletRestraint(o)
2249 
2250 
2251 # Register MinimumTripletRestraint in _IMP_container:
2252 _IMP_container.MinimumTripletRestraint_swigregister(MinimumTripletRestraint)
2253 class MinimumTripletScore(IMP.TripletScore):
2254  r"""Proxy of C++ IMP::container::MinimumTripletScore class."""
2255 
2256  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2257 
2258  def __init__(self, *args):
2259  r"""__init__(MinimumTripletScore self, IMP::TripletScoresTemp const & scores, unsigned int n=1, std::string name="TripletScore %1%") -> MinimumTripletScore"""
2260  _IMP_container.MinimumTripletScore_swiginit(self, _IMP_container.new_MinimumTripletScore(*args))
2261 
2262  def do_get_inputs(self, m, pis):
2263  r"""do_get_inputs(MinimumTripletScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
2264  return _IMP_container.MinimumTripletScore_do_get_inputs(self, m, pis)
2265 
2266  def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
2267  r"""evaluate_indexes(MinimumTripletScore self, Model m, IMP::ParticleIndexTriplets const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
2268  return _IMP_container.MinimumTripletScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
2269 
2270  def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
2271  r"""evaluate_indexes_scores(MinimumTripletScore self, Model m, IMP::ParticleIndexTriplets const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
2272  return _IMP_container.MinimumTripletScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
2273 
2274  def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
2275  r"""evaluate_indexes_delta(MinimumTripletScore self, Model m, IMP::ParticleIndexTriplets const & p, DerivativeAccumulator da, std::vector< unsigned int,std::allocator< unsigned int > > const & indexes, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
2276  return _IMP_container.MinimumTripletScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
2277 
2278  def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
2279  r"""evaluate_if_good_indexes(MinimumTripletScore self, Model m, IMP::ParticleIndexTriplets const & p, DerivativeAccumulator da, double max, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
2280  return _IMP_container.MinimumTripletScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
2281 
2282  def get_version_info(self):
2283  r"""get_version_info(MinimumTripletScore self) -> VersionInfo"""
2284  return _IMP_container.MinimumTripletScore_get_version_info(self)
2285  __swig_destroy__ = _IMP_container.delete_MinimumTripletScore
2286 
2287  def do_create_current_decomposition(self, m, vt):
2288  r"""do_create_current_decomposition(MinimumTripletScore self, Model m, IMP::ParticleIndexTriplet const & vt) -> IMP::Restraints"""
2289  return _IMP_container.MinimumTripletScore_do_create_current_decomposition(self, m, vt)
2290 
2291  def __str__(self):
2292  r"""__str__(MinimumTripletScore self) -> std::string"""
2293  return _IMP_container.MinimumTripletScore___str__(self)
2294 
2295  def __repr__(self):
2296  r"""__repr__(MinimumTripletScore self) -> std::string"""
2297  return _IMP_container.MinimumTripletScore___repr__(self)
2298 
2299  @staticmethod
2300  def get_from(o):
2301  return _object_cast_to_MinimumTripletScore(o)
2302 
2303 
2304 # Register MinimumTripletScore in _IMP_container:
2305 _IMP_container.MinimumTripletScore_swigregister(MinimumTripletScore)
2306 class PairContainerSet(IMP.PairContainer):
2307  r"""Proxy of C++ IMP::container::PairContainerSet class."""
2308 
2309  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2310 
2311  def __init__(self, *args):
2312  r"""
2313  __init__(PairContainerSet self, Model m, std::string name="PairContainerSet %1%") -> PairContainerSet
2314  __init__(PairContainerSet self, IMP::PairContainersTemp const & pc, std::string name="PairContainerSet %1%") -> PairContainerSet
2315  """
2316  _IMP_container.PairContainerSet_swiginit(self, _IMP_container.new_PairContainerSet(*args))
2317 
2318  def do_apply(self, sm):
2319  r"""do_apply(PairContainerSet self, PairModifier sm)"""
2320  return _IMP_container.PairContainerSet_do_apply(self, sm)
2321 
2322  def do_apply_moved(self, sm, moved_pis, reset_pis):
2323  r"""do_apply_moved(PairContainerSet self, PairModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
2324  return _IMP_container.PairContainerSet_do_apply_moved(self, sm, moved_pis, reset_pis)
2325 
2326  def get_version_info(self):
2327  r"""get_version_info(PairContainerSet self) -> VersionInfo"""
2328  return _IMP_container.PairContainerSet_get_version_info(self)
2329  __swig_destroy__ = _IMP_container.delete_PairContainerSet
2330  def __get_pair_containers(self): return IMP._list_util.VarList(getdimfunc=self.get_number_of_pair_containers, getfunc=self.get_pair_container, erasefunc=self.erase_pair_container, appendfunc=self.add_pair_container, extendfunc=self.add_pair_containers, clearfunc=self.clear_pair_containers, indexfunc=self._python_index_pair_container)
2331  def __set_pair_containers(self, obj): IMP._list_util.set_varlist(self.pair_containers, obj)
2332  def __del_pair_containers(self): IMP._list_util.del_varlist(self.pair_containers)
2333  pair_containers = property(__get_pair_containers, __set_pair_containers, __del_pair_containers, doc="List of ##ucnames")
2334 
2335  def remove_pair_container(self, d):
2336  r"""remove_pair_container(PairContainerSet self, PairContainer d)"""
2337  return _IMP_container.PairContainerSet_remove_pair_container(self, d)
2338 
2339  def _python_index_pair_container(self, d, start, stop):
2340  r"""_python_index_pair_container(PairContainerSet self, PairContainer d, unsigned int start, unsigned int stop) -> unsigned int"""
2341  return _IMP_container.PairContainerSet__python_index_pair_container(self, d, start, stop)
2342 
2343  def remove_pair_containers(self, d):
2344  r"""remove_pair_containers(PairContainerSet self, IMP::PairContainers const & d)"""
2345  return _IMP_container.PairContainerSet_remove_pair_containers(self, d)
2346 
2347  def set_pair_containers(self, ps):
2348  r"""set_pair_containers(PairContainerSet self, IMP::PairContainers const & ps)"""
2349  return _IMP_container.PairContainerSet_set_pair_containers(self, ps)
2350 
2351  def set_pair_containers_order(self, objs):
2352  r"""set_pair_containers_order(PairContainerSet self, IMP::PairContainers const & objs)"""
2353  return _IMP_container.PairContainerSet_set_pair_containers_order(self, objs)
2354 
2355  def add_pair_container(self, obj):
2356  r"""add_pair_container(PairContainerSet self, PairContainer obj) -> unsigned int"""
2357  return _IMP_container.PairContainerSet_add_pair_container(self, obj)
2358 
2359  def add_pair_containers(self, objs):
2360  r"""add_pair_containers(PairContainerSet self, IMP::PairContainers const & objs)"""
2361  return _IMP_container.PairContainerSet_add_pair_containers(self, objs)
2362 
2363  def clear_pair_containers(self):
2364  r"""clear_pair_containers(PairContainerSet self)"""
2365  return _IMP_container.PairContainerSet_clear_pair_containers(self)
2366 
2367  def get_number_of_pair_containers(self):
2368  r"""get_number_of_pair_containers(PairContainerSet self) -> unsigned int"""
2369  return _IMP_container.PairContainerSet_get_number_of_pair_containers(self)
2370 
2371  def get_has_pair_containers(self):
2372  r"""get_has_pair_containers(PairContainerSet self) -> bool"""
2373  return _IMP_container.PairContainerSet_get_has_pair_containers(self)
2374 
2375  def get_pair_container(self, i):
2376  r"""get_pair_container(PairContainerSet self, unsigned int i) -> PairContainer"""
2377  return _IMP_container.PairContainerSet_get_pair_container(self, i)
2378 
2379  def get_pair_containers(self):
2380  r"""get_pair_containers(PairContainerSet self) -> IMP::PairContainers"""
2381  return _IMP_container.PairContainerSet_get_pair_containers(self)
2382 
2383  def erase_pair_container(self, i):
2384  r"""erase_pair_container(PairContainerSet self, unsigned int i)"""
2385  return _IMP_container.PairContainerSet_erase_pair_container(self, i)
2386 
2387  def reserve_pair_containers(self, sz):
2388  r"""reserve_pair_containers(PairContainerSet self, unsigned int sz)"""
2389  return _IMP_container.PairContainerSet_reserve_pair_containers(self, sz)
2390 
2391  def do_get_inputs(self):
2392  r"""do_get_inputs(PairContainerSet self) -> IMP::ModelObjectsTemp"""
2393  return _IMP_container.PairContainerSet_do_get_inputs(self)
2394 
2395  def __str__(self):
2396  r"""__str__(PairContainerSet self) -> std::string"""
2397  return _IMP_container.PairContainerSet___str__(self)
2398 
2399  def __repr__(self):
2400  r"""__repr__(PairContainerSet self) -> std::string"""
2401  return _IMP_container.PairContainerSet___repr__(self)
2402 
2403  @staticmethod
2404  def get_from(o):
2405  return _object_cast_to_PairContainerSet(o)
2406 
2407 
2408 # Register PairContainerSet in _IMP_container:
2409 _IMP_container.PairContainerSet_swigregister(PairContainerSet)
2410 class PairsConstraint(IMP.Constraint):
2411  r"""Proxy of C++ IMP::container::PairsConstraint class."""
2412 
2413  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2414 
2415  def __init__(self, *args):
2416  r"""
2417  __init__(PairsConstraint self, PairModifier before, PairModifier after, _PairContainerAdaptor c, std::string name="PairsConstraint %1%") -> PairsConstraint
2418  __init__(PairsConstraint self) -> PairsConstraint
2419  """
2420  _IMP_container.PairsConstraint_swiginit(self, _IMP_container.new_PairsConstraint(*args))
2421 
2422  def get_before_modifier(self):
2423  r"""get_before_modifier(PairsConstraint self) -> PairModifier"""
2424  return _IMP_container.PairsConstraint_get_before_modifier(self)
2425 
2426  def get_container(self):
2427  r"""get_container(PairsConstraint self) -> PairContainer"""
2428  return _IMP_container.PairsConstraint_get_container(self)
2429 
2430  def get_version_info(self):
2431  r"""get_version_info(PairsConstraint self) -> VersionInfo"""
2432  return _IMP_container.PairsConstraint_get_version_info(self)
2433  __swig_destroy__ = _IMP_container.delete_PairsConstraint
2434 
2435  def __str__(self):
2436  r"""__str__(PairsConstraint self) -> std::string"""
2437  return _IMP_container.PairsConstraint___str__(self)
2438 
2439  def __repr__(self):
2440  r"""__repr__(PairsConstraint self) -> std::string"""
2441  return _IMP_container.PairsConstraint___repr__(self)
2442 
2443  @staticmethod
2444  def get_from(o):
2445  return _object_cast_to_PairsConstraint(o)
2446 
2447 
2448  def _get_as_binary(self):
2449  r"""_get_as_binary(PairsConstraint self) -> PyObject *"""
2450  return _IMP_container.PairsConstraint__get_as_binary(self)
2451 
2452  def _set_from_binary(self, p):
2453  r"""_set_from_binary(PairsConstraint self, PyObject * p)"""
2454  return _IMP_container.PairsConstraint__set_from_binary(self, p)
2455 
2456  def __getstate__(self):
2457  p = self._get_as_binary()
2458  if len(self.__dict__) > 1:
2459  d = self.__dict__.copy()
2460  del d['this']
2461  p = (d, p)
2462  return p
2463 
2464  def __setstate__(self, p):
2465  if not hasattr(self, 'this'):
2466  self.__init__()
2467  if isinstance(p, tuple):
2468  d, p = p
2469  self.__dict__.update(d)
2470  return self._set_from_binary(p)
2471 
2472 
2473 # Register PairsConstraint in _IMP_container:
2474 _IMP_container.PairsConstraint_swigregister(PairsConstraint)
2475 class PairsOptimizerState(IMP.OptimizerState):
2476  r"""Proxy of C++ IMP::container::PairsOptimizerState class."""
2477 
2478  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2479 
2480  def __init__(self, *args):
2481  r"""__init__(PairsOptimizerState self, _PairContainerAdaptor c, PairModifier gf, std::string name="PairsOptimizerState %1%") -> PairsOptimizerState"""
2482  _IMP_container.PairsOptimizerState_swiginit(self, _IMP_container.new_PairsOptimizerState(*args))
2483 
2484  def do_update(self, call):
2485  r"""do_update(PairsOptimizerState self, unsigned int call)"""
2486  return _IMP_container.PairsOptimizerState_do_update(self, call)
2487 
2488  def get_version_info(self):
2489  r"""get_version_info(PairsOptimizerState self) -> VersionInfo"""
2490  return _IMP_container.PairsOptimizerState_get_version_info(self)
2491  __swig_destroy__ = _IMP_container.delete_PairsOptimizerState
2492 
2493  def __str__(self):
2494  r"""__str__(PairsOptimizerState self) -> std::string"""
2495  return _IMP_container.PairsOptimizerState___str__(self)
2496 
2497  def __repr__(self):
2498  r"""__repr__(PairsOptimizerState self) -> std::string"""
2499  return _IMP_container.PairsOptimizerState___repr__(self)
2500 
2501  @staticmethod
2502  def get_from(o):
2503  return _object_cast_to_PairsOptimizerState(o)
2504 
2505 
2506 # Register PairsOptimizerState in _IMP_container:
2507 _IMP_container.PairsOptimizerState_swigregister(PairsOptimizerState)
2508 class PairsRestraint(IMP.Restraint):
2509  r"""Proxy of C++ IMP::container::PairsRestraint class."""
2510 
2511  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2512 
2513  def __init__(self, *args):
2514  r"""
2515  __init__(PairsRestraint self, PairScore ss, _PairContainerAdaptor pc, std::string name="PairsRestraint %1%") -> PairsRestraint
2516  __init__(PairsRestraint self) -> PairsRestraint
2517  """
2518  _IMP_container.PairsRestraint_swiginit(self, _IMP_container.new_PairsRestraint(*args))
2519 
2520  def get_score_object(self):
2521  r"""get_score_object(PairsRestraint self) -> PairScore"""
2522  return _IMP_container.PairsRestraint_get_score_object(self)
2523 
2524  def get_container(self):
2525  r"""get_container(PairsRestraint self) -> PairContainer"""
2526  return _IMP_container.PairsRestraint_get_container(self)
2527 
2528  def do_get_inputs(self):
2529  r"""do_get_inputs(PairsRestraint self) -> IMP::ModelObjectsTemp"""
2530  return _IMP_container.PairsRestraint_do_get_inputs(self)
2531 
2532  def get_version_info(self):
2533  r"""get_version_info(PairsRestraint self) -> VersionInfo"""
2534  return _IMP_container.PairsRestraint_get_version_info(self)
2535  __swig_destroy__ = _IMP_container.delete_PairsRestraint
2536 
2537  def __str__(self):
2538  r"""__str__(PairsRestraint self) -> std::string"""
2539  return _IMP_container.PairsRestraint___str__(self)
2540 
2541  def __repr__(self):
2542  r"""__repr__(PairsRestraint self) -> std::string"""
2543  return _IMP_container.PairsRestraint___repr__(self)
2544 
2545  @staticmethod
2546  def get_from(o):
2547  return _object_cast_to_PairsRestraint(o)
2548 
2549 
2550  def _get_as_binary(self):
2551  r"""_get_as_binary(PairsRestraint self) -> PyObject *"""
2552  return _IMP_container.PairsRestraint__get_as_binary(self)
2553 
2554  def _set_from_binary(self, p):
2555  r"""_set_from_binary(PairsRestraint self, PyObject * p)"""
2556  return _IMP_container.PairsRestraint__set_from_binary(self, p)
2557 
2558  def __getstate__(self):
2559  p = self._get_as_binary()
2560  if len(self.__dict__) > 1:
2561  d = self.__dict__.copy()
2562  del d['this']
2563  p = (d, p)
2564  return p
2565 
2566  def __setstate__(self, p):
2567  if not hasattr(self, 'this'):
2568  self.__init__()
2569  if isinstance(p, tuple):
2570  d, p = p
2571  self.__dict__.update(d)
2572  return self._set_from_binary(p)
2573 
2574 
2575  def _get_jax(self):
2576  from . import _jax_util
2577  return _jax_util._get_jax_container_restraint(self)
2578 
2579 
2580 # Register PairsRestraint in _IMP_container:
2581 _IMP_container.PairsRestraint_swigregister(PairsRestraint)
2582 class QuadContainerSet(IMP.QuadContainer):
2583  r"""Proxy of C++ IMP::container::QuadContainerSet class."""
2584 
2585  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2586 
2587  def __init__(self, *args):
2588  r"""
2589  __init__(QuadContainerSet self, Model m, std::string name="QuadContainerSet %1%") -> QuadContainerSet
2590  __init__(QuadContainerSet self, IMP::QuadContainersTemp const & pc, std::string name="QuadContainerSet %1%") -> QuadContainerSet
2591  """
2592  _IMP_container.QuadContainerSet_swiginit(self, _IMP_container.new_QuadContainerSet(*args))
2593 
2594  def do_apply(self, sm):
2595  r"""do_apply(QuadContainerSet self, QuadModifier sm)"""
2596  return _IMP_container.QuadContainerSet_do_apply(self, sm)
2597 
2598  def do_apply_moved(self, sm, moved_pis, reset_pis):
2599  r"""do_apply_moved(QuadContainerSet self, QuadModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
2600  return _IMP_container.QuadContainerSet_do_apply_moved(self, sm, moved_pis, reset_pis)
2601 
2602  def get_version_info(self):
2603  r"""get_version_info(QuadContainerSet self) -> VersionInfo"""
2604  return _IMP_container.QuadContainerSet_get_version_info(self)
2605  __swig_destroy__ = _IMP_container.delete_QuadContainerSet
2606  def __get_quad_containers(self): return IMP._list_util.VarList(getdimfunc=self.get_number_of_quad_containers, getfunc=self.get_quad_container, erasefunc=self.erase_quad_container, appendfunc=self.add_quad_container, extendfunc=self.add_quad_containers, clearfunc=self.clear_quad_containers, indexfunc=self._python_index_quad_container)
2607  def __set_quad_containers(self, obj): IMP._list_util.set_varlist(self.quad_containers, obj)
2608  def __del_quad_containers(self): IMP._list_util.del_varlist(self.quad_containers)
2609  quad_containers = property(__get_quad_containers, __set_quad_containers, __del_quad_containers, doc="List of ##ucnames")
2610 
2611  def remove_quad_container(self, d):
2612  r"""remove_quad_container(QuadContainerSet self, QuadContainer d)"""
2613  return _IMP_container.QuadContainerSet_remove_quad_container(self, d)
2614 
2615  def _python_index_quad_container(self, d, start, stop):
2616  r"""_python_index_quad_container(QuadContainerSet self, QuadContainer d, unsigned int start, unsigned int stop) -> unsigned int"""
2617  return _IMP_container.QuadContainerSet__python_index_quad_container(self, d, start, stop)
2618 
2619  def remove_quad_containers(self, d):
2620  r"""remove_quad_containers(QuadContainerSet self, IMP::QuadContainers const & d)"""
2621  return _IMP_container.QuadContainerSet_remove_quad_containers(self, d)
2622 
2623  def set_quad_containers(self, ps):
2624  r"""set_quad_containers(QuadContainerSet self, IMP::QuadContainers const & ps)"""
2625  return _IMP_container.QuadContainerSet_set_quad_containers(self, ps)
2626 
2627  def set_quad_containers_order(self, objs):
2628  r"""set_quad_containers_order(QuadContainerSet self, IMP::QuadContainers const & objs)"""
2629  return _IMP_container.QuadContainerSet_set_quad_containers_order(self, objs)
2630 
2631  def add_quad_container(self, obj):
2632  r"""add_quad_container(QuadContainerSet self, QuadContainer obj) -> unsigned int"""
2633  return _IMP_container.QuadContainerSet_add_quad_container(self, obj)
2634 
2635  def add_quad_containers(self, objs):
2636  r"""add_quad_containers(QuadContainerSet self, IMP::QuadContainers const & objs)"""
2637  return _IMP_container.QuadContainerSet_add_quad_containers(self, objs)
2638 
2639  def clear_quad_containers(self):
2640  r"""clear_quad_containers(QuadContainerSet self)"""
2641  return _IMP_container.QuadContainerSet_clear_quad_containers(self)
2642 
2643  def get_number_of_quad_containers(self):
2644  r"""get_number_of_quad_containers(QuadContainerSet self) -> unsigned int"""
2645  return _IMP_container.QuadContainerSet_get_number_of_quad_containers(self)
2646 
2647  def get_has_quad_containers(self):
2648  r"""get_has_quad_containers(QuadContainerSet self) -> bool"""
2649  return _IMP_container.QuadContainerSet_get_has_quad_containers(self)
2650 
2651  def get_quad_container(self, i):
2652  r"""get_quad_container(QuadContainerSet self, unsigned int i) -> QuadContainer"""
2653  return _IMP_container.QuadContainerSet_get_quad_container(self, i)
2654 
2655  def get_quad_containers(self):
2656  r"""get_quad_containers(QuadContainerSet self) -> IMP::QuadContainers"""
2657  return _IMP_container.QuadContainerSet_get_quad_containers(self)
2658 
2659  def erase_quad_container(self, i):
2660  r"""erase_quad_container(QuadContainerSet self, unsigned int i)"""
2661  return _IMP_container.QuadContainerSet_erase_quad_container(self, i)
2662 
2663  def reserve_quad_containers(self, sz):
2664  r"""reserve_quad_containers(QuadContainerSet self, unsigned int sz)"""
2665  return _IMP_container.QuadContainerSet_reserve_quad_containers(self, sz)
2666 
2667  def do_get_inputs(self):
2668  r"""do_get_inputs(QuadContainerSet self) -> IMP::ModelObjectsTemp"""
2669  return _IMP_container.QuadContainerSet_do_get_inputs(self)
2670 
2671  def __str__(self):
2672  r"""__str__(QuadContainerSet self) -> std::string"""
2673  return _IMP_container.QuadContainerSet___str__(self)
2674 
2675  def __repr__(self):
2676  r"""__repr__(QuadContainerSet self) -> std::string"""
2677  return _IMP_container.QuadContainerSet___repr__(self)
2678 
2679  @staticmethod
2680  def get_from(o):
2681  return _object_cast_to_QuadContainerSet(o)
2682 
2683 
2684 # Register QuadContainerSet in _IMP_container:
2685 _IMP_container.QuadContainerSet_swigregister(QuadContainerSet)
2686 class QuadsConstraint(IMP.Constraint):
2687  r"""Proxy of C++ IMP::container::QuadsConstraint class."""
2688 
2689  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2690 
2691  def __init__(self, *args):
2692  r"""
2693  __init__(QuadsConstraint self, QuadModifier before, QuadModifier after, _QuadContainerAdaptor c, std::string name="QuadsConstraint %1%") -> QuadsConstraint
2694  __init__(QuadsConstraint self) -> QuadsConstraint
2695  """
2696  _IMP_container.QuadsConstraint_swiginit(self, _IMP_container.new_QuadsConstraint(*args))
2697 
2698  def get_before_modifier(self):
2699  r"""get_before_modifier(QuadsConstraint self) -> QuadModifier"""
2700  return _IMP_container.QuadsConstraint_get_before_modifier(self)
2701 
2702  def get_container(self):
2703  r"""get_container(QuadsConstraint self) -> QuadContainer"""
2704  return _IMP_container.QuadsConstraint_get_container(self)
2705 
2706  def get_version_info(self):
2707  r"""get_version_info(QuadsConstraint self) -> VersionInfo"""
2708  return _IMP_container.QuadsConstraint_get_version_info(self)
2709  __swig_destroy__ = _IMP_container.delete_QuadsConstraint
2710 
2711  def __str__(self):
2712  r"""__str__(QuadsConstraint self) -> std::string"""
2713  return _IMP_container.QuadsConstraint___str__(self)
2714 
2715  def __repr__(self):
2716  r"""__repr__(QuadsConstraint self) -> std::string"""
2717  return _IMP_container.QuadsConstraint___repr__(self)
2718 
2719  @staticmethod
2720  def get_from(o):
2721  return _object_cast_to_QuadsConstraint(o)
2722 
2723 
2724  def _get_as_binary(self):
2725  r"""_get_as_binary(QuadsConstraint self) -> PyObject *"""
2726  return _IMP_container.QuadsConstraint__get_as_binary(self)
2727 
2728  def _set_from_binary(self, p):
2729  r"""_set_from_binary(QuadsConstraint self, PyObject * p)"""
2730  return _IMP_container.QuadsConstraint__set_from_binary(self, p)
2731 
2732  def __getstate__(self):
2733  p = self._get_as_binary()
2734  if len(self.__dict__) > 1:
2735  d = self.__dict__.copy()
2736  del d['this']
2737  p = (d, p)
2738  return p
2739 
2740  def __setstate__(self, p):
2741  if not hasattr(self, 'this'):
2742  self.__init__()
2743  if isinstance(p, tuple):
2744  d, p = p
2745  self.__dict__.update(d)
2746  return self._set_from_binary(p)
2747 
2748 
2749 # Register QuadsConstraint in _IMP_container:
2750 _IMP_container.QuadsConstraint_swigregister(QuadsConstraint)
2751 class QuadsOptimizerState(IMP.OptimizerState):
2752  r"""Proxy of C++ IMP::container::QuadsOptimizerState class."""
2753 
2754  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2755 
2756  def __init__(self, *args):
2757  r"""__init__(QuadsOptimizerState self, _QuadContainerAdaptor c, QuadModifier gf, std::string name="QuadsOptimizerState %1%") -> QuadsOptimizerState"""
2758  _IMP_container.QuadsOptimizerState_swiginit(self, _IMP_container.new_QuadsOptimizerState(*args))
2759 
2760  def do_update(self, call):
2761  r"""do_update(QuadsOptimizerState self, unsigned int call)"""
2762  return _IMP_container.QuadsOptimizerState_do_update(self, call)
2763 
2764  def get_version_info(self):
2765  r"""get_version_info(QuadsOptimizerState self) -> VersionInfo"""
2766  return _IMP_container.QuadsOptimizerState_get_version_info(self)
2767  __swig_destroy__ = _IMP_container.delete_QuadsOptimizerState
2768 
2769  def __str__(self):
2770  r"""__str__(QuadsOptimizerState self) -> std::string"""
2771  return _IMP_container.QuadsOptimizerState___str__(self)
2772 
2773  def __repr__(self):
2774  r"""__repr__(QuadsOptimizerState self) -> std::string"""
2775  return _IMP_container.QuadsOptimizerState___repr__(self)
2776 
2777  @staticmethod
2778  def get_from(o):
2779  return _object_cast_to_QuadsOptimizerState(o)
2780 
2781 
2782 # Register QuadsOptimizerState in _IMP_container:
2783 _IMP_container.QuadsOptimizerState_swigregister(QuadsOptimizerState)
2784 class QuadsRestraint(IMP.Restraint):
2785  r"""Proxy of C++ IMP::container::QuadsRestraint class."""
2786 
2787  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2788 
2789  def __init__(self, *args):
2790  r"""
2791  __init__(QuadsRestraint self, QuadScore ss, _QuadContainerAdaptor pc, std::string name="QuadsRestraint %1%") -> QuadsRestraint
2792  __init__(QuadsRestraint self) -> QuadsRestraint
2793  """
2794  _IMP_container.QuadsRestraint_swiginit(self, _IMP_container.new_QuadsRestraint(*args))
2795 
2796  def get_score_object(self):
2797  r"""get_score_object(QuadsRestraint self) -> QuadScore"""
2798  return _IMP_container.QuadsRestraint_get_score_object(self)
2799 
2800  def get_container(self):
2801  r"""get_container(QuadsRestraint self) -> QuadContainer"""
2802  return _IMP_container.QuadsRestraint_get_container(self)
2803 
2804  def do_get_inputs(self):
2805  r"""do_get_inputs(QuadsRestraint self) -> IMP::ModelObjectsTemp"""
2806  return _IMP_container.QuadsRestraint_do_get_inputs(self)
2807 
2808  def get_version_info(self):
2809  r"""get_version_info(QuadsRestraint self) -> VersionInfo"""
2810  return _IMP_container.QuadsRestraint_get_version_info(self)
2811  __swig_destroy__ = _IMP_container.delete_QuadsRestraint
2812 
2813  def __str__(self):
2814  r"""__str__(QuadsRestraint self) -> std::string"""
2815  return _IMP_container.QuadsRestraint___str__(self)
2816 
2817  def __repr__(self):
2818  r"""__repr__(QuadsRestraint self) -> std::string"""
2819  return _IMP_container.QuadsRestraint___repr__(self)
2820 
2821  @staticmethod
2822  def get_from(o):
2823  return _object_cast_to_QuadsRestraint(o)
2824 
2825 
2826  def _get_as_binary(self):
2827  r"""_get_as_binary(QuadsRestraint self) -> PyObject *"""
2828  return _IMP_container.QuadsRestraint__get_as_binary(self)
2829 
2830  def _set_from_binary(self, p):
2831  r"""_set_from_binary(QuadsRestraint self, PyObject * p)"""
2832  return _IMP_container.QuadsRestraint__set_from_binary(self, p)
2833 
2834  def __getstate__(self):
2835  p = self._get_as_binary()
2836  if len(self.__dict__) > 1:
2837  d = self.__dict__.copy()
2838  del d['this']
2839  p = (d, p)
2840  return p
2841 
2842  def __setstate__(self, p):
2843  if not hasattr(self, 'this'):
2844  self.__init__()
2845  if isinstance(p, tuple):
2846  d, p = p
2847  self.__dict__.update(d)
2848  return self._set_from_binary(p)
2849 
2850 
2851 # Register QuadsRestraint in _IMP_container:
2852 _IMP_container.QuadsRestraint_swigregister(QuadsRestraint)
2853 class SingletonContainerSet(IMP.SingletonContainer):
2854  r"""Proxy of C++ IMP::container::SingletonContainerSet class."""
2855 
2856  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2857 
2858  def __init__(self, *args):
2859  r"""
2860  __init__(SingletonContainerSet self, Model m, std::string name="SingletonContainerSet %1%") -> SingletonContainerSet
2861  __init__(SingletonContainerSet self, IMP::SingletonContainersTemp const & pc, std::string name="SingletonContainerSet %1%") -> SingletonContainerSet
2862  """
2863  _IMP_container.SingletonContainerSet_swiginit(self, _IMP_container.new_SingletonContainerSet(*args))
2864 
2865  def do_apply(self, sm):
2866  r"""do_apply(SingletonContainerSet self, SingletonModifier sm)"""
2867  return _IMP_container.SingletonContainerSet_do_apply(self, sm)
2868 
2869  def do_apply_moved(self, sm, moved_pis, reset_pis):
2870  r"""do_apply_moved(SingletonContainerSet self, SingletonModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
2871  return _IMP_container.SingletonContainerSet_do_apply_moved(self, sm, moved_pis, reset_pis)
2872 
2873  def get_version_info(self):
2874  r"""get_version_info(SingletonContainerSet self) -> VersionInfo"""
2875  return _IMP_container.SingletonContainerSet_get_version_info(self)
2876  __swig_destroy__ = _IMP_container.delete_SingletonContainerSet
2877  def __get_singleton_containers(self): return IMP._list_util.VarList(getdimfunc=self.get_number_of_singleton_containers, getfunc=self.get_singleton_container, erasefunc=self.erase_singleton_container, appendfunc=self.add_singleton_container, extendfunc=self.add_singleton_containers, clearfunc=self.clear_singleton_containers, indexfunc=self._python_index_singleton_container)
2878  def __set_singleton_containers(self, obj): IMP._list_util.set_varlist(self.singleton_containers, obj)
2879  def __del_singleton_containers(self): IMP._list_util.del_varlist(self.singleton_containers)
2880  singleton_containers = property(__get_singleton_containers, __set_singleton_containers, __del_singleton_containers, doc="List of ##ucnames")
2881 
2882  def remove_singleton_container(self, d):
2883  r"""remove_singleton_container(SingletonContainerSet self, SingletonContainer d)"""
2884  return _IMP_container.SingletonContainerSet_remove_singleton_container(self, d)
2885 
2886  def _python_index_singleton_container(self, d, start, stop):
2887  r"""_python_index_singleton_container(SingletonContainerSet self, SingletonContainer d, unsigned int start, unsigned int stop) -> unsigned int"""
2888  return _IMP_container.SingletonContainerSet__python_index_singleton_container(self, d, start, stop)
2889 
2890  def remove_singleton_containers(self, d):
2891  r"""remove_singleton_containers(SingletonContainerSet self, IMP::SingletonContainers const & d)"""
2892  return _IMP_container.SingletonContainerSet_remove_singleton_containers(self, d)
2893 
2894  def set_singleton_containers(self, ps):
2895  r"""set_singleton_containers(SingletonContainerSet self, IMP::SingletonContainers const & ps)"""
2896  return _IMP_container.SingletonContainerSet_set_singleton_containers(self, ps)
2897 
2898  def set_singleton_containers_order(self, objs):
2899  r"""set_singleton_containers_order(SingletonContainerSet self, IMP::SingletonContainers const & objs)"""
2900  return _IMP_container.SingletonContainerSet_set_singleton_containers_order(self, objs)
2901 
2902  def add_singleton_container(self, obj):
2903  r"""add_singleton_container(SingletonContainerSet self, SingletonContainer obj) -> unsigned int"""
2904  return _IMP_container.SingletonContainerSet_add_singleton_container(self, obj)
2905 
2906  def add_singleton_containers(self, objs):
2907  r"""add_singleton_containers(SingletonContainerSet self, IMP::SingletonContainers const & objs)"""
2908  return _IMP_container.SingletonContainerSet_add_singleton_containers(self, objs)
2909 
2910  def clear_singleton_containers(self):
2911  r"""clear_singleton_containers(SingletonContainerSet self)"""
2912  return _IMP_container.SingletonContainerSet_clear_singleton_containers(self)
2913 
2914  def get_number_of_singleton_containers(self):
2915  r"""get_number_of_singleton_containers(SingletonContainerSet self) -> unsigned int"""
2916  return _IMP_container.SingletonContainerSet_get_number_of_singleton_containers(self)
2917 
2918  def get_has_singleton_containers(self):
2919  r"""get_has_singleton_containers(SingletonContainerSet self) -> bool"""
2920  return _IMP_container.SingletonContainerSet_get_has_singleton_containers(self)
2921 
2922  def get_singleton_container(self, i):
2923  r"""get_singleton_container(SingletonContainerSet self, unsigned int i) -> SingletonContainer"""
2924  return _IMP_container.SingletonContainerSet_get_singleton_container(self, i)
2925 
2926  def get_singleton_containers(self):
2927  r"""get_singleton_containers(SingletonContainerSet self) -> IMP::SingletonContainers"""
2928  return _IMP_container.SingletonContainerSet_get_singleton_containers(self)
2929 
2930  def erase_singleton_container(self, i):
2931  r"""erase_singleton_container(SingletonContainerSet self, unsigned int i)"""
2932  return _IMP_container.SingletonContainerSet_erase_singleton_container(self, i)
2933 
2934  def reserve_singleton_containers(self, sz):
2935  r"""reserve_singleton_containers(SingletonContainerSet self, unsigned int sz)"""
2936  return _IMP_container.SingletonContainerSet_reserve_singleton_containers(self, sz)
2937 
2938  def do_get_inputs(self):
2939  r"""do_get_inputs(SingletonContainerSet self) -> IMP::ModelObjectsTemp"""
2940  return _IMP_container.SingletonContainerSet_do_get_inputs(self)
2941 
2942  def __str__(self):
2943  r"""__str__(SingletonContainerSet self) -> std::string"""
2944  return _IMP_container.SingletonContainerSet___str__(self)
2945 
2946  def __repr__(self):
2947  r"""__repr__(SingletonContainerSet self) -> std::string"""
2948  return _IMP_container.SingletonContainerSet___repr__(self)
2949 
2950  @staticmethod
2951  def get_from(o):
2952  return _object_cast_to_SingletonContainerSet(o)
2953 
2954 
2955 # Register SingletonContainerSet in _IMP_container:
2956 _IMP_container.SingletonContainerSet_swigregister(SingletonContainerSet)
2957 class SingletonsConstraint(IMP.Constraint):
2958  r"""Proxy of C++ IMP::container::SingletonsConstraint class."""
2959 
2960  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2961 
2962  def __init__(self, *args):
2963  r"""
2964  __init__(SingletonsConstraint self, SingletonModifier before, SingletonModifier after, _SingletonContainerAdaptor c, std::string name="SingletonsConstraint %1%") -> SingletonsConstraint
2965  __init__(SingletonsConstraint self) -> SingletonsConstraint
2966  """
2967  _IMP_container.SingletonsConstraint_swiginit(self, _IMP_container.new_SingletonsConstraint(*args))
2968 
2969  def get_before_modifier(self):
2970  r"""get_before_modifier(SingletonsConstraint self) -> SingletonModifier"""
2971  return _IMP_container.SingletonsConstraint_get_before_modifier(self)
2972 
2973  def get_container(self):
2974  r"""get_container(SingletonsConstraint self) -> SingletonContainer"""
2975  return _IMP_container.SingletonsConstraint_get_container(self)
2976 
2977  def get_version_info(self):
2978  r"""get_version_info(SingletonsConstraint self) -> VersionInfo"""
2979  return _IMP_container.SingletonsConstraint_get_version_info(self)
2980  __swig_destroy__ = _IMP_container.delete_SingletonsConstraint
2981 
2982  def __str__(self):
2983  r"""__str__(SingletonsConstraint self) -> std::string"""
2984  return _IMP_container.SingletonsConstraint___str__(self)
2985 
2986  def __repr__(self):
2987  r"""__repr__(SingletonsConstraint self) -> std::string"""
2988  return _IMP_container.SingletonsConstraint___repr__(self)
2989 
2990  @staticmethod
2991  def get_from(o):
2992  return _object_cast_to_SingletonsConstraint(o)
2993 
2994 
2995  def _get_as_binary(self):
2996  r"""_get_as_binary(SingletonsConstraint self) -> PyObject *"""
2997  return _IMP_container.SingletonsConstraint__get_as_binary(self)
2998 
2999  def _set_from_binary(self, p):
3000  r"""_set_from_binary(SingletonsConstraint self, PyObject * p)"""
3001  return _IMP_container.SingletonsConstraint__set_from_binary(self, p)
3002 
3003  def __getstate__(self):
3004  p = self._get_as_binary()
3005  if len(self.__dict__) > 1:
3006  d = self.__dict__.copy()
3007  del d['this']
3008  p = (d, p)
3009  return p
3010 
3011  def __setstate__(self, p):
3012  if not hasattr(self, 'this'):
3013  self.__init__()
3014  if isinstance(p, tuple):
3015  d, p = p
3016  self.__dict__.update(d)
3017  return self._set_from_binary(p)
3018 
3019 
3020  def _get_jax(self):
3021  from . import _jax_util
3022  return _jax_util._get_jax_container_constraint(self)
3023 
3024 
3025 # Register SingletonsConstraint in _IMP_container:
3026 _IMP_container.SingletonsConstraint_swigregister(SingletonsConstraint)
3027 class SingletonsOptimizerState(IMP.OptimizerState):
3028  r"""Proxy of C++ IMP::container::SingletonsOptimizerState class."""
3029 
3030  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3031 
3032  def __init__(self, *args):
3033  r"""__init__(SingletonsOptimizerState self, _SingletonContainerAdaptor c, SingletonModifier gf, std::string name="SingletonsOptimizerState %1%") -> SingletonsOptimizerState"""
3034  _IMP_container.SingletonsOptimizerState_swiginit(self, _IMP_container.new_SingletonsOptimizerState(*args))
3035 
3036  def do_update(self, call):
3037  r"""do_update(SingletonsOptimizerState self, unsigned int call)"""
3038  return _IMP_container.SingletonsOptimizerState_do_update(self, call)
3039 
3040  def get_version_info(self):
3041  r"""get_version_info(SingletonsOptimizerState self) -> VersionInfo"""
3042  return _IMP_container.SingletonsOptimizerState_get_version_info(self)
3043  __swig_destroy__ = _IMP_container.delete_SingletonsOptimizerState
3044 
3045  def __str__(self):
3046  r"""__str__(SingletonsOptimizerState self) -> std::string"""
3047  return _IMP_container.SingletonsOptimizerState___str__(self)
3048 
3049  def __repr__(self):
3050  r"""__repr__(SingletonsOptimizerState self) -> std::string"""
3051  return _IMP_container.SingletonsOptimizerState___repr__(self)
3052 
3053  @staticmethod
3054  def get_from(o):
3055  return _object_cast_to_SingletonsOptimizerState(o)
3056 
3057 
3058 # Register SingletonsOptimizerState in _IMP_container:
3059 _IMP_container.SingletonsOptimizerState_swigregister(SingletonsOptimizerState)
3060 class SingletonsRestraint(IMP.Restraint):
3061  r"""Proxy of C++ IMP::container::SingletonsRestraint class."""
3062 
3063  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3064 
3065  def __init__(self, *args):
3066  r"""
3067  __init__(SingletonsRestraint self, SingletonScore ss, _SingletonContainerAdaptor pc, std::string name="SingletonsRestraint %1%") -> SingletonsRestraint
3068  __init__(SingletonsRestraint self) -> SingletonsRestraint
3069  """
3070  _IMP_container.SingletonsRestraint_swiginit(self, _IMP_container.new_SingletonsRestraint(*args))
3071 
3072  def get_score_object(self):
3073  r"""get_score_object(SingletonsRestraint self) -> SingletonScore"""
3074  return _IMP_container.SingletonsRestraint_get_score_object(self)
3075 
3076  def get_container(self):
3077  r"""get_container(SingletonsRestraint self) -> SingletonContainer"""
3078  return _IMP_container.SingletonsRestraint_get_container(self)
3079 
3080  def do_get_inputs(self):
3081  r"""do_get_inputs(SingletonsRestraint self) -> IMP::ModelObjectsTemp"""
3082  return _IMP_container.SingletonsRestraint_do_get_inputs(self)
3083 
3084  def get_version_info(self):
3085  r"""get_version_info(SingletonsRestraint self) -> VersionInfo"""
3086  return _IMP_container.SingletonsRestraint_get_version_info(self)
3087  __swig_destroy__ = _IMP_container.delete_SingletonsRestraint
3088 
3089  def __str__(self):
3090  r"""__str__(SingletonsRestraint self) -> std::string"""
3091  return _IMP_container.SingletonsRestraint___str__(self)
3092 
3093  def __repr__(self):
3094  r"""__repr__(SingletonsRestraint self) -> std::string"""
3095  return _IMP_container.SingletonsRestraint___repr__(self)
3096 
3097  @staticmethod
3098  def get_from(o):
3099  return _object_cast_to_SingletonsRestraint(o)
3100 
3101 
3102  def _get_as_binary(self):
3103  r"""_get_as_binary(SingletonsRestraint self) -> PyObject *"""
3104  return _IMP_container.SingletonsRestraint__get_as_binary(self)
3105 
3106  def _set_from_binary(self, p):
3107  r"""_set_from_binary(SingletonsRestraint self, PyObject * p)"""
3108  return _IMP_container.SingletonsRestraint__set_from_binary(self, p)
3109 
3110  def __getstate__(self):
3111  p = self._get_as_binary()
3112  if len(self.__dict__) > 1:
3113  d = self.__dict__.copy()
3114  del d['this']
3115  p = (d, p)
3116  return p
3117 
3118  def __setstate__(self, p):
3119  if not hasattr(self, 'this'):
3120  self.__init__()
3121  if isinstance(p, tuple):
3122  d, p = p
3123  self.__dict__.update(d)
3124  return self._set_from_binary(p)
3125 
3126 
3127  def _get_jax(self):
3128  from . import _jax_util
3129  return _jax_util._get_jax_container_restraint(self)
3130 
3131 
3132 # Register SingletonsRestraint in _IMP_container:
3133 _IMP_container.SingletonsRestraint_swigregister(SingletonsRestraint)
3134 class TripletContainerSet(IMP.TripletContainer):
3135  r"""Proxy of C++ IMP::container::TripletContainerSet class."""
3136 
3137  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3138 
3139  def __init__(self, *args):
3140  r"""
3141  __init__(TripletContainerSet self, Model m, std::string name="TripletContainerSet %1%") -> TripletContainerSet
3142  __init__(TripletContainerSet self, IMP::TripletContainersTemp const & pc, std::string name="TripletContainerSet %1%") -> TripletContainerSet
3143  """
3144  _IMP_container.TripletContainerSet_swiginit(self, _IMP_container.new_TripletContainerSet(*args))
3145 
3146  def do_apply(self, sm):
3147  r"""do_apply(TripletContainerSet self, TripletModifier sm)"""
3148  return _IMP_container.TripletContainerSet_do_apply(self, sm)
3149 
3150  def do_apply_moved(self, sm, moved_pis, reset_pis):
3151  r"""do_apply_moved(TripletContainerSet self, TripletModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
3152  return _IMP_container.TripletContainerSet_do_apply_moved(self, sm, moved_pis, reset_pis)
3153 
3154  def get_version_info(self):
3155  r"""get_version_info(TripletContainerSet self) -> VersionInfo"""
3156  return _IMP_container.TripletContainerSet_get_version_info(self)
3157  __swig_destroy__ = _IMP_container.delete_TripletContainerSet
3158  def __get_triplet_containers(self): return IMP._list_util.VarList(getdimfunc=self.get_number_of_triplet_containers, getfunc=self.get_triplet_container, erasefunc=self.erase_triplet_container, appendfunc=self.add_triplet_container, extendfunc=self.add_triplet_containers, clearfunc=self.clear_triplet_containers, indexfunc=self._python_index_triplet_container)
3159  def __set_triplet_containers(self, obj): IMP._list_util.set_varlist(self.triplet_containers, obj)
3160  def __del_triplet_containers(self): IMP._list_util.del_varlist(self.triplet_containers)
3161  triplet_containers = property(__get_triplet_containers, __set_triplet_containers, __del_triplet_containers, doc="List of ##ucnames")
3162 
3163  def remove_triplet_container(self, d):
3164  r"""remove_triplet_container(TripletContainerSet self, TripletContainer d)"""
3165  return _IMP_container.TripletContainerSet_remove_triplet_container(self, d)
3166 
3167  def _python_index_triplet_container(self, d, start, stop):
3168  r"""_python_index_triplet_container(TripletContainerSet self, TripletContainer d, unsigned int start, unsigned int stop) -> unsigned int"""
3169  return _IMP_container.TripletContainerSet__python_index_triplet_container(self, d, start, stop)
3170 
3171  def remove_triplet_containers(self, d):
3172  r"""remove_triplet_containers(TripletContainerSet self, IMP::TripletContainers const & d)"""
3173  return _IMP_container.TripletContainerSet_remove_triplet_containers(self, d)
3174 
3175  def set_triplet_containers(self, ps):
3176  r"""set_triplet_containers(TripletContainerSet self, IMP::TripletContainers const & ps)"""
3177  return _IMP_container.TripletContainerSet_set_triplet_containers(self, ps)
3178 
3179  def set_triplet_containers_order(self, objs):
3180  r"""set_triplet_containers_order(TripletContainerSet self, IMP::TripletContainers const & objs)"""
3181  return _IMP_container.TripletContainerSet_set_triplet_containers_order(self, objs)
3182 
3183  def add_triplet_container(self, obj):
3184  r"""add_triplet_container(TripletContainerSet self, TripletContainer obj) -> unsigned int"""
3185  return _IMP_container.TripletContainerSet_add_triplet_container(self, obj)
3186 
3187  def add_triplet_containers(self, objs):
3188  r"""add_triplet_containers(TripletContainerSet self, IMP::TripletContainers const & objs)"""
3189  return _IMP_container.TripletContainerSet_add_triplet_containers(self, objs)
3190 
3191  def clear_triplet_containers(self):
3192  r"""clear_triplet_containers(TripletContainerSet self)"""
3193  return _IMP_container.TripletContainerSet_clear_triplet_containers(self)
3194 
3195  def get_number_of_triplet_containers(self):
3196  r"""get_number_of_triplet_containers(TripletContainerSet self) -> unsigned int"""
3197  return _IMP_container.TripletContainerSet_get_number_of_triplet_containers(self)
3198 
3199  def get_has_triplet_containers(self):
3200  r"""get_has_triplet_containers(TripletContainerSet self) -> bool"""
3201  return _IMP_container.TripletContainerSet_get_has_triplet_containers(self)
3202 
3203  def get_triplet_container(self, i):
3204  r"""get_triplet_container(TripletContainerSet self, unsigned int i) -> TripletContainer"""
3205  return _IMP_container.TripletContainerSet_get_triplet_container(self, i)
3206 
3207  def get_triplet_containers(self):
3208  r"""get_triplet_containers(TripletContainerSet self) -> IMP::TripletContainers"""
3209  return _IMP_container.TripletContainerSet_get_triplet_containers(self)
3210 
3211  def erase_triplet_container(self, i):
3212  r"""erase_triplet_container(TripletContainerSet self, unsigned int i)"""
3213  return _IMP_container.TripletContainerSet_erase_triplet_container(self, i)
3214 
3215  def reserve_triplet_containers(self, sz):
3216  r"""reserve_triplet_containers(TripletContainerSet self, unsigned int sz)"""
3217  return _IMP_container.TripletContainerSet_reserve_triplet_containers(self, sz)
3218 
3219  def do_get_inputs(self):
3220  r"""do_get_inputs(TripletContainerSet self) -> IMP::ModelObjectsTemp"""
3221  return _IMP_container.TripletContainerSet_do_get_inputs(self)
3222 
3223  def __str__(self):
3224  r"""__str__(TripletContainerSet self) -> std::string"""
3225  return _IMP_container.TripletContainerSet___str__(self)
3226 
3227  def __repr__(self):
3228  r"""__repr__(TripletContainerSet self) -> std::string"""
3229  return _IMP_container.TripletContainerSet___repr__(self)
3230 
3231  @staticmethod
3232  def get_from(o):
3233  return _object_cast_to_TripletContainerSet(o)
3234 
3235 
3236 # Register TripletContainerSet in _IMP_container:
3237 _IMP_container.TripletContainerSet_swigregister(TripletContainerSet)
3238 class TripletsConstraint(IMP.Constraint):
3239  r"""Proxy of C++ IMP::container::TripletsConstraint class."""
3240 
3241  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3242 
3243  def __init__(self, *args):
3244  r"""
3245  __init__(TripletsConstraint self, TripletModifier before, TripletModifier after, _TripletContainerAdaptor c, std::string name="TripletsConstraint %1%") -> TripletsConstraint
3246  __init__(TripletsConstraint self) -> TripletsConstraint
3247  """
3248  _IMP_container.TripletsConstraint_swiginit(self, _IMP_container.new_TripletsConstraint(*args))
3249 
3250  def get_before_modifier(self):
3251  r"""get_before_modifier(TripletsConstraint self) -> TripletModifier"""
3252  return _IMP_container.TripletsConstraint_get_before_modifier(self)
3253 
3254  def get_container(self):
3255  r"""get_container(TripletsConstraint self) -> TripletContainer"""
3256  return _IMP_container.TripletsConstraint_get_container(self)
3257 
3258  def get_version_info(self):
3259  r"""get_version_info(TripletsConstraint self) -> VersionInfo"""
3260  return _IMP_container.TripletsConstraint_get_version_info(self)
3261  __swig_destroy__ = _IMP_container.delete_TripletsConstraint
3262 
3263  def __str__(self):
3264  r"""__str__(TripletsConstraint self) -> std::string"""
3265  return _IMP_container.TripletsConstraint___str__(self)
3266 
3267  def __repr__(self):
3268  r"""__repr__(TripletsConstraint self) -> std::string"""
3269  return _IMP_container.TripletsConstraint___repr__(self)
3270 
3271  @staticmethod
3272  def get_from(o):
3273  return _object_cast_to_TripletsConstraint(o)
3274 
3275 
3276  def _get_as_binary(self):
3277  r"""_get_as_binary(TripletsConstraint self) -> PyObject *"""
3278  return _IMP_container.TripletsConstraint__get_as_binary(self)
3279 
3280  def _set_from_binary(self, p):
3281  r"""_set_from_binary(TripletsConstraint self, PyObject * p)"""
3282  return _IMP_container.TripletsConstraint__set_from_binary(self, p)
3283 
3284  def __getstate__(self):
3285  p = self._get_as_binary()
3286  if len(self.__dict__) > 1:
3287  d = self.__dict__.copy()
3288  del d['this']
3289  p = (d, p)
3290  return p
3291 
3292  def __setstate__(self, p):
3293  if not hasattr(self, 'this'):
3294  self.__init__()
3295  if isinstance(p, tuple):
3296  d, p = p
3297  self.__dict__.update(d)
3298  return self._set_from_binary(p)
3299 
3300 
3301 # Register TripletsConstraint in _IMP_container:
3302 _IMP_container.TripletsConstraint_swigregister(TripletsConstraint)
3303 class TripletsOptimizerState(IMP.OptimizerState):
3304  r"""Proxy of C++ IMP::container::TripletsOptimizerState class."""
3305 
3306  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3307 
3308  def __init__(self, *args):
3309  r"""__init__(TripletsOptimizerState self, _TripletContainerAdaptor c, TripletModifier gf, std::string name="TripletsOptimizerState %1%") -> TripletsOptimizerState"""
3310  _IMP_container.TripletsOptimizerState_swiginit(self, _IMP_container.new_TripletsOptimizerState(*args))
3311 
3312  def do_update(self, call):
3313  r"""do_update(TripletsOptimizerState self, unsigned int call)"""
3314  return _IMP_container.TripletsOptimizerState_do_update(self, call)
3315 
3316  def get_version_info(self):
3317  r"""get_version_info(TripletsOptimizerState self) -> VersionInfo"""
3318  return _IMP_container.TripletsOptimizerState_get_version_info(self)
3319  __swig_destroy__ = _IMP_container.delete_TripletsOptimizerState
3320 
3321  def __str__(self):
3322  r"""__str__(TripletsOptimizerState self) -> std::string"""
3323  return _IMP_container.TripletsOptimizerState___str__(self)
3324 
3325  def __repr__(self):
3326  r"""__repr__(TripletsOptimizerState self) -> std::string"""
3327  return _IMP_container.TripletsOptimizerState___repr__(self)
3328 
3329  @staticmethod
3330  def get_from(o):
3331  return _object_cast_to_TripletsOptimizerState(o)
3332 
3333 
3334 # Register TripletsOptimizerState in _IMP_container:
3335 _IMP_container.TripletsOptimizerState_swigregister(TripletsOptimizerState)
3336 class TripletsRestraint(IMP.Restraint):
3337  r"""Proxy of C++ IMP::container::TripletsRestraint class."""
3338 
3339  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3340 
3341  def __init__(self, *args):
3342  r"""
3343  __init__(TripletsRestraint self, TripletScore ss, _TripletContainerAdaptor pc, std::string name="TripletsRestraint %1%") -> TripletsRestraint
3344  __init__(TripletsRestraint self) -> TripletsRestraint
3345  """
3346  _IMP_container.TripletsRestraint_swiginit(self, _IMP_container.new_TripletsRestraint(*args))
3347 
3348  def get_score_object(self):
3349  r"""get_score_object(TripletsRestraint self) -> TripletScore"""
3350  return _IMP_container.TripletsRestraint_get_score_object(self)
3351 
3352  def get_container(self):
3353  r"""get_container(TripletsRestraint self) -> TripletContainer"""
3354  return _IMP_container.TripletsRestraint_get_container(self)
3355 
3356  def do_get_inputs(self):
3357  r"""do_get_inputs(TripletsRestraint self) -> IMP::ModelObjectsTemp"""
3358  return _IMP_container.TripletsRestraint_do_get_inputs(self)
3359 
3360  def get_version_info(self):
3361  r"""get_version_info(TripletsRestraint self) -> VersionInfo"""
3362  return _IMP_container.TripletsRestraint_get_version_info(self)
3363  __swig_destroy__ = _IMP_container.delete_TripletsRestraint
3364 
3365  def __str__(self):
3366  r"""__str__(TripletsRestraint self) -> std::string"""
3367  return _IMP_container.TripletsRestraint___str__(self)
3368 
3369  def __repr__(self):
3370  r"""__repr__(TripletsRestraint self) -> std::string"""
3371  return _IMP_container.TripletsRestraint___repr__(self)
3372 
3373  @staticmethod
3374  def get_from(o):
3375  return _object_cast_to_TripletsRestraint(o)
3376 
3377 
3378  def _get_as_binary(self):
3379  r"""_get_as_binary(TripletsRestraint self) -> PyObject *"""
3380  return _IMP_container.TripletsRestraint__get_as_binary(self)
3381 
3382  def _set_from_binary(self, p):
3383  r"""_set_from_binary(TripletsRestraint self, PyObject * p)"""
3384  return _IMP_container.TripletsRestraint__set_from_binary(self, p)
3385 
3386  def __getstate__(self):
3387  p = self._get_as_binary()
3388  if len(self.__dict__) > 1:
3389  d = self.__dict__.copy()
3390  del d['this']
3391  p = (d, p)
3392  return p
3393 
3394  def __setstate__(self, p):
3395  if not hasattr(self, 'this'):
3396  self.__init__()
3397  if isinstance(p, tuple):
3398  d, p = p
3399  self.__dict__.update(d)
3400  return self._set_from_binary(p)
3401 
3402 
3403 # Register TripletsRestraint in _IMP_container:
3404 _IMP_container.TripletsRestraint_swigregister(TripletsRestraint)
3405 class InContainerSingletonFilter(IMP.SingletonPredicate):
3406  r"""Proxy of C++ IMP::container::InContainerSingletonFilter class."""
3407 
3408  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3409 
3410  def __init__(self, *args):
3411  r"""
3412  __init__(InContainerSingletonFilter self, SingletonContainer c, std::string name="SingletonFilter %1%") -> InContainerSingletonFilter
3413  __init__(InContainerSingletonFilter self, SingletonContainer c, bool handle_permutations, std::string name="SingletonFilter %1%") -> InContainerSingletonFilter
3414  """
3415  _IMP_container.InContainerSingletonFilter_swiginit(self, _IMP_container.new_InContainerSingletonFilter(*args))
3416 
3417  def do_get_inputs(self, m, pi):
3418  r"""do_get_inputs(InContainerSingletonFilter self, Model m, IMP::ParticleIndexes const & pi) -> IMP::ModelObjectsTemp"""
3419  return _IMP_container.InContainerSingletonFilter_do_get_inputs(self, m, pi)
3420 
3421  def get_value(self, *args):
3422  r"""
3423  get_value(InContainerSingletonFilter self, Particle a) -> int
3424  get_value(InContainerSingletonFilter self, IMP::ParticlesTemp const & o) -> IMP::Ints
3425  """
3426  return _IMP_container.InContainerSingletonFilter_get_value(self, *args)
3427 
3428  def get_value_index(self, *args):
3429  r"""
3430  get_value_index(InContainerSingletonFilter self, Model arg2, ParticleIndex vt) -> int
3431  get_value_index(InContainerSingletonFilter self, Model m, IMP::ParticleIndexes const & o) -> IMP::Ints
3432  """
3433  return _IMP_container.InContainerSingletonFilter_get_value_index(self, *args)
3434 
3435  def get_version_info(self):
3436  r"""get_version_info(InContainerSingletonFilter self) -> VersionInfo"""
3437  return _IMP_container.InContainerSingletonFilter_get_version_info(self)
3438  __swig_destroy__ = _IMP_container.delete_InContainerSingletonFilter
3439 
3440  def __str__(self):
3441  r"""__str__(InContainerSingletonFilter self) -> std::string"""
3442  return _IMP_container.InContainerSingletonFilter___str__(self)
3443 
3444  def __repr__(self):
3445  r"""__repr__(InContainerSingletonFilter self) -> std::string"""
3446  return _IMP_container.InContainerSingletonFilter___repr__(self)
3447 
3448  @staticmethod
3449  def get_from(o):
3450  return _object_cast_to_InContainerSingletonFilter(o)
3451 
3452 
3453 # Register InContainerSingletonFilter in _IMP_container:
3454 _IMP_container.InContainerSingletonFilter_swigregister(InContainerSingletonFilter)
3455 class InContainerPairFilter(IMP.PairPredicate):
3456  r"""Proxy of C++ IMP::container::InContainerPairFilter class."""
3457 
3458  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3459 
3460  def __init__(self, *args):
3461  r"""
3462  __init__(InContainerPairFilter self, PairContainer c, std::string name="PairFilter %1%") -> InContainerPairFilter
3463  __init__(InContainerPairFilter self, PairContainer c, bool handle_permutations, std::string name="PairFilter %1%") -> InContainerPairFilter
3464  """
3465  _IMP_container.InContainerPairFilter_swiginit(self, _IMP_container.new_InContainerPairFilter(*args))
3466 
3467  def do_get_inputs(self, m, pi):
3468  r"""do_get_inputs(InContainerPairFilter self, Model m, IMP::ParticleIndexes const & pi) -> IMP::ModelObjectsTemp"""
3469  return _IMP_container.InContainerPairFilter_do_get_inputs(self, m, pi)
3470 
3471  def get_value(self, *args):
3472  r"""
3473  get_value(InContainerPairFilter self, IMP::ParticlePair const & a) -> int
3474  get_value(InContainerPairFilter self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
3475  """
3476  return _IMP_container.InContainerPairFilter_get_value(self, *args)
3477 
3478  def get_value_index(self, *args):
3479  r"""
3480  get_value_index(InContainerPairFilter self, Model arg2, IMP::ParticleIndexPair const & vt) -> int
3481  get_value_index(InContainerPairFilter self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
3482  """
3483  return _IMP_container.InContainerPairFilter_get_value_index(self, *args)
3484 
3485  def get_version_info(self):
3486  r"""get_version_info(InContainerPairFilter self) -> VersionInfo"""
3487  return _IMP_container.InContainerPairFilter_get_version_info(self)
3488  __swig_destroy__ = _IMP_container.delete_InContainerPairFilter
3489 
3490  def __str__(self):
3491  r"""__str__(InContainerPairFilter self) -> std::string"""
3492  return _IMP_container.InContainerPairFilter___str__(self)
3493 
3494  def __repr__(self):
3495  r"""__repr__(InContainerPairFilter self) -> std::string"""
3496  return _IMP_container.InContainerPairFilter___repr__(self)
3497 
3498  @staticmethod
3499  def get_from(o):
3500  return _object_cast_to_InContainerPairFilter(o)
3501 
3502 
3503 # Register InContainerPairFilter in _IMP_container:
3504 _IMP_container.InContainerPairFilter_swigregister(InContainerPairFilter)
3505 class InContainerTripletFilter(IMP.TripletPredicate):
3506  r"""Proxy of C++ IMP::container::InContainerTripletFilter class."""
3507 
3508  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3509 
3510  def __init__(self, *args):
3511  r"""
3512  __init__(InContainerTripletFilter self, TripletContainer c, std::string name="TripletFilter %1%") -> InContainerTripletFilter
3513  __init__(InContainerTripletFilter self, TripletContainer c, bool handle_permutations, std::string name="TripletFilter %1%") -> InContainerTripletFilter
3514  """
3515  _IMP_container.InContainerTripletFilter_swiginit(self, _IMP_container.new_InContainerTripletFilter(*args))
3516 
3517  def do_get_inputs(self, m, pi):
3518  r"""do_get_inputs(InContainerTripletFilter self, Model m, IMP::ParticleIndexes const & pi) -> IMP::ModelObjectsTemp"""
3519  return _IMP_container.InContainerTripletFilter_do_get_inputs(self, m, pi)
3520 
3521  def get_value(self, *args):
3522  r"""
3523  get_value(InContainerTripletFilter self, IMP::ParticleTriplet const & a) -> int
3524  get_value(InContainerTripletFilter self, IMP::ParticleTripletsTemp const & o) -> IMP::Ints
3525  """
3526  return _IMP_container.InContainerTripletFilter_get_value(self, *args)
3527 
3528  def get_value_index(self, *args):
3529  r"""
3530  get_value_index(InContainerTripletFilter self, Model arg2, IMP::ParticleIndexTriplet const & vt) -> int
3531  get_value_index(InContainerTripletFilter self, Model m, IMP::ParticleIndexTriplets const & o) -> IMP::Ints
3532  """
3533  return _IMP_container.InContainerTripletFilter_get_value_index(self, *args)
3534 
3535  def get_version_info(self):
3536  r"""get_version_info(InContainerTripletFilter self) -> VersionInfo"""
3537  return _IMP_container.InContainerTripletFilter_get_version_info(self)
3538  __swig_destroy__ = _IMP_container.delete_InContainerTripletFilter
3539 
3540  def __str__(self):
3541  r"""__str__(InContainerTripletFilter self) -> std::string"""
3542  return _IMP_container.InContainerTripletFilter___str__(self)
3543 
3544  def __repr__(self):
3545  r"""__repr__(InContainerTripletFilter self) -> std::string"""
3546  return _IMP_container.InContainerTripletFilter___repr__(self)
3547 
3548  @staticmethod
3549  def get_from(o):
3550  return _object_cast_to_InContainerTripletFilter(o)
3551 
3552 
3553 # Register InContainerTripletFilter in _IMP_container:
3554 _IMP_container.InContainerTripletFilter_swigregister(InContainerTripletFilter)
3555 class InContainerQuadFilter(IMP.QuadPredicate):
3556  r"""Proxy of C++ IMP::container::InContainerQuadFilter class."""
3557 
3558  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3559 
3560  def __init__(self, *args):
3561  r"""
3562  __init__(InContainerQuadFilter self, QuadContainer c, std::string name="QuadFilter %1%") -> InContainerQuadFilter
3563  __init__(InContainerQuadFilter self, QuadContainer c, bool handle_permutations, std::string name="QuadFilter %1%") -> InContainerQuadFilter
3564  """
3565  _IMP_container.InContainerQuadFilter_swiginit(self, _IMP_container.new_InContainerQuadFilter(*args))
3566 
3567  def do_get_inputs(self, m, pi):
3568  r"""do_get_inputs(InContainerQuadFilter self, Model m, IMP::ParticleIndexes const & pi) -> IMP::ModelObjectsTemp"""
3569  return _IMP_container.InContainerQuadFilter_do_get_inputs(self, m, pi)
3570 
3571  def get_value(self, *args):
3572  r"""
3573  get_value(InContainerQuadFilter self, IMP::ParticleQuad const & a) -> int
3574  get_value(InContainerQuadFilter self, IMP::ParticleQuadsTemp const & o) -> IMP::Ints
3575  """
3576  return _IMP_container.InContainerQuadFilter_get_value(self, *args)
3577 
3578  def get_value_index(self, *args):
3579  r"""
3580  get_value_index(InContainerQuadFilter self, Model arg2, IMP::ParticleIndexQuad const & vt) -> int
3581  get_value_index(InContainerQuadFilter self, Model m, IMP::ParticleIndexQuads const & o) -> IMP::Ints
3582  """
3583  return _IMP_container.InContainerQuadFilter_get_value_index(self, *args)
3584 
3585  def get_version_info(self):
3586  r"""get_version_info(InContainerQuadFilter self) -> VersionInfo"""
3587  return _IMP_container.InContainerQuadFilter_get_version_info(self)
3588  __swig_destroy__ = _IMP_container.delete_InContainerQuadFilter
3589 
3590  def __str__(self):
3591  r"""__str__(InContainerQuadFilter self) -> std::string"""
3592  return _IMP_container.InContainerQuadFilter___str__(self)
3593 
3594  def __repr__(self):
3595  r"""__repr__(InContainerQuadFilter self) -> std::string"""
3596  return _IMP_container.InContainerQuadFilter___repr__(self)
3597 
3598  @staticmethod
3599  def get_from(o):
3600  return _object_cast_to_InContainerQuadFilter(o)
3601 
3602 
3603 # Register InContainerQuadFilter in _IMP_container:
3604 _IMP_container.InContainerQuadFilter_swigregister(InContainerQuadFilter)
3605 class SingletonContainerStatistics(IMP.ScoreState):
3606  r"""Proxy of C++ IMP::container::SingletonContainerStatistics class."""
3607 
3608  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3609 
3610  def __init__(self, c):
3611  r"""__init__(SingletonContainerStatistics self, _SingletonContainerAdaptor c) -> SingletonContainerStatistics"""
3612  _IMP_container.SingletonContainerStatistics_swiginit(self, _IMP_container.new_SingletonContainerStatistics(c))
3613 
3614  def show_statistics(self, out):
3615  r"""show_statistics(SingletonContainerStatistics self, _ostream out)"""
3616  return _IMP_container.SingletonContainerStatistics_show_statistics(self, out)
3617 
3618  def set_track_unique(self, tf):
3619  r"""set_track_unique(SingletonContainerStatistics self, bool tf)"""
3620  return _IMP_container.SingletonContainerStatistics_set_track_unique(self, tf)
3621 
3622  def do_before_evaluate(self):
3623  r"""do_before_evaluate(SingletonContainerStatistics self)"""
3624  return _IMP_container.SingletonContainerStatistics_do_before_evaluate(self)
3625 
3626  def do_after_evaluate(self, da):
3627  r"""do_after_evaluate(SingletonContainerStatistics self, DerivativeAccumulator da)"""
3628  return _IMP_container.SingletonContainerStatistics_do_after_evaluate(self, da)
3629 
3630  def do_get_inputs(self):
3631  r"""do_get_inputs(SingletonContainerStatistics self) -> IMP::ModelObjectsTemp"""
3632  return _IMP_container.SingletonContainerStatistics_do_get_inputs(self)
3633 
3634  def do_get_outputs(self):
3635  r"""do_get_outputs(SingletonContainerStatistics self) -> IMP::ModelObjectsTemp"""
3636  return _IMP_container.SingletonContainerStatistics_do_get_outputs(self)
3637 
3638  def get_version_info(self):
3639  r"""get_version_info(SingletonContainerStatistics self) -> VersionInfo"""
3640  return _IMP_container.SingletonContainerStatistics_get_version_info(self)
3641  __swig_destroy__ = _IMP_container.delete_SingletonContainerStatistics
3642 
3643  def __str__(self):
3644  r"""__str__(SingletonContainerStatistics self) -> std::string"""
3645  return _IMP_container.SingletonContainerStatistics___str__(self)
3646 
3647  def __repr__(self):
3648  r"""__repr__(SingletonContainerStatistics self) -> std::string"""
3649  return _IMP_container.SingletonContainerStatistics___repr__(self)
3650 
3651  @staticmethod
3652  def get_from(o):
3653  return _object_cast_to_SingletonContainerStatistics(o)
3654 
3655 
3656 # Register SingletonContainerStatistics in _IMP_container:
3657 _IMP_container.SingletonContainerStatistics_swigregister(SingletonContainerStatistics)
3658 class PairContainerStatistics(IMP.ScoreState):
3659  r"""Proxy of C++ IMP::container::PairContainerStatistics class."""
3660 
3661  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3662 
3663  def __init__(self, c):
3664  r"""__init__(PairContainerStatistics self, _PairContainerAdaptor c) -> PairContainerStatistics"""
3665  _IMP_container.PairContainerStatistics_swiginit(self, _IMP_container.new_PairContainerStatistics(c))
3666 
3667  def show_statistics(self, out):
3668  r"""show_statistics(PairContainerStatistics self, _ostream out)"""
3669  return _IMP_container.PairContainerStatistics_show_statistics(self, out)
3670 
3671  def set_track_unique(self, tf):
3672  r"""set_track_unique(PairContainerStatistics self, bool tf)"""
3673  return _IMP_container.PairContainerStatistics_set_track_unique(self, tf)
3674 
3675  def do_before_evaluate(self):
3676  r"""do_before_evaluate(PairContainerStatistics self)"""
3677  return _IMP_container.PairContainerStatistics_do_before_evaluate(self)
3678 
3679  def do_after_evaluate(self, da):
3680  r"""do_after_evaluate(PairContainerStatistics self, DerivativeAccumulator da)"""
3681  return _IMP_container.PairContainerStatistics_do_after_evaluate(self, da)
3682 
3683  def do_get_inputs(self):
3684  r"""do_get_inputs(PairContainerStatistics self) -> IMP::ModelObjectsTemp"""
3685  return _IMP_container.PairContainerStatistics_do_get_inputs(self)
3686 
3687  def do_get_outputs(self):
3688  r"""do_get_outputs(PairContainerStatistics self) -> IMP::ModelObjectsTemp"""
3689  return _IMP_container.PairContainerStatistics_do_get_outputs(self)
3690 
3691  def get_version_info(self):
3692  r"""get_version_info(PairContainerStatistics self) -> VersionInfo"""
3693  return _IMP_container.PairContainerStatistics_get_version_info(self)
3694  __swig_destroy__ = _IMP_container.delete_PairContainerStatistics
3695 
3696  def __str__(self):
3697  r"""__str__(PairContainerStatistics self) -> std::string"""
3698  return _IMP_container.PairContainerStatistics___str__(self)
3699 
3700  def __repr__(self):
3701  r"""__repr__(PairContainerStatistics self) -> std::string"""
3702  return _IMP_container.PairContainerStatistics___repr__(self)
3703 
3704  @staticmethod
3705  def get_from(o):
3706  return _object_cast_to_PairContainerStatistics(o)
3707 
3708 
3709 # Register PairContainerStatistics in _IMP_container:
3710 _IMP_container.PairContainerStatistics_swigregister(PairContainerStatistics)
3711 class TripletContainerStatistics(IMP.ScoreState):
3712  r"""Proxy of C++ IMP::container::TripletContainerStatistics class."""
3713 
3714  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3715 
3716  def __init__(self, c):
3717  r"""__init__(TripletContainerStatistics self, _TripletContainerAdaptor c) -> TripletContainerStatistics"""
3718  _IMP_container.TripletContainerStatistics_swiginit(self, _IMP_container.new_TripletContainerStatistics(c))
3719 
3720  def show_statistics(self, out):
3721  r"""show_statistics(TripletContainerStatistics self, _ostream out)"""
3722  return _IMP_container.TripletContainerStatistics_show_statistics(self, out)
3723 
3724  def set_track_unique(self, tf):
3725  r"""set_track_unique(TripletContainerStatistics self, bool tf)"""
3726  return _IMP_container.TripletContainerStatistics_set_track_unique(self, tf)
3727 
3728  def do_before_evaluate(self):
3729  r"""do_before_evaluate(TripletContainerStatistics self)"""
3730  return _IMP_container.TripletContainerStatistics_do_before_evaluate(self)
3731 
3732  def do_after_evaluate(self, da):
3733  r"""do_after_evaluate(TripletContainerStatistics self, DerivativeAccumulator da)"""
3734  return _IMP_container.TripletContainerStatistics_do_after_evaluate(self, da)
3735 
3736  def do_get_inputs(self):
3737  r"""do_get_inputs(TripletContainerStatistics self) -> IMP::ModelObjectsTemp"""
3738  return _IMP_container.TripletContainerStatistics_do_get_inputs(self)
3739 
3740  def do_get_outputs(self):
3741  r"""do_get_outputs(TripletContainerStatistics self) -> IMP::ModelObjectsTemp"""
3742  return _IMP_container.TripletContainerStatistics_do_get_outputs(self)
3743 
3744  def get_version_info(self):
3745  r"""get_version_info(TripletContainerStatistics self) -> VersionInfo"""
3746  return _IMP_container.TripletContainerStatistics_get_version_info(self)
3747  __swig_destroy__ = _IMP_container.delete_TripletContainerStatistics
3748 
3749  def __str__(self):
3750  r"""__str__(TripletContainerStatistics self) -> std::string"""
3751  return _IMP_container.TripletContainerStatistics___str__(self)
3752 
3753  def __repr__(self):
3754  r"""__repr__(TripletContainerStatistics self) -> std::string"""
3755  return _IMP_container.TripletContainerStatistics___repr__(self)
3756 
3757  @staticmethod
3758  def get_from(o):
3759  return _object_cast_to_TripletContainerStatistics(o)
3760 
3761 
3762 # Register TripletContainerStatistics in _IMP_container:
3763 _IMP_container.TripletContainerStatistics_swigregister(TripletContainerStatistics)
3764 class QuadContainerStatistics(IMP.ScoreState):
3765  r"""Proxy of C++ IMP::container::QuadContainerStatistics class."""
3766 
3767  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3768 
3769  def __init__(self, c):
3770  r"""__init__(QuadContainerStatistics self, _QuadContainerAdaptor c) -> QuadContainerStatistics"""
3771  _IMP_container.QuadContainerStatistics_swiginit(self, _IMP_container.new_QuadContainerStatistics(c))
3772 
3773  def show_statistics(self, out):
3774  r"""show_statistics(QuadContainerStatistics self, _ostream out)"""
3775  return _IMP_container.QuadContainerStatistics_show_statistics(self, out)
3776 
3777  def set_track_unique(self, tf):
3778  r"""set_track_unique(QuadContainerStatistics self, bool tf)"""
3779  return _IMP_container.QuadContainerStatistics_set_track_unique(self, tf)
3780 
3781  def do_before_evaluate(self):
3782  r"""do_before_evaluate(QuadContainerStatistics self)"""
3783  return _IMP_container.QuadContainerStatistics_do_before_evaluate(self)
3784 
3785  def do_after_evaluate(self, da):
3786  r"""do_after_evaluate(QuadContainerStatistics self, DerivativeAccumulator da)"""
3787  return _IMP_container.QuadContainerStatistics_do_after_evaluate(self, da)
3788 
3789  def do_get_inputs(self):
3790  r"""do_get_inputs(QuadContainerStatistics self) -> IMP::ModelObjectsTemp"""
3791  return _IMP_container.QuadContainerStatistics_do_get_inputs(self)
3792 
3793  def do_get_outputs(self):
3794  r"""do_get_outputs(QuadContainerStatistics self) -> IMP::ModelObjectsTemp"""
3795  return _IMP_container.QuadContainerStatistics_do_get_outputs(self)
3796 
3797  def get_version_info(self):
3798  r"""get_version_info(QuadContainerStatistics self) -> VersionInfo"""
3799  return _IMP_container.QuadContainerStatistics_get_version_info(self)
3800  __swig_destroy__ = _IMP_container.delete_QuadContainerStatistics
3801 
3802  def __str__(self):
3803  r"""__str__(QuadContainerStatistics self) -> std::string"""
3804  return _IMP_container.QuadContainerStatistics___str__(self)
3805 
3806  def __repr__(self):
3807  r"""__repr__(QuadContainerStatistics self) -> std::string"""
3808  return _IMP_container.QuadContainerStatistics___repr__(self)
3809 
3810  @staticmethod
3811  def get_from(o):
3812  return _object_cast_to_QuadContainerStatistics(o)
3813 
3814 
3815 # Register QuadContainerStatistics in _IMP_container:
3816 _IMP_container.QuadContainerStatistics_swigregister(QuadContainerStatistics)
3817 class EventSingletonsOptimizerState(IMP.OptimizerState):
3818  r"""Proxy of C++ IMP::container::EventSingletonsOptimizerState class."""
3819 
3820  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3821 
3822  def __init__(self, *args):
3823  r"""__init__(EventSingletonsOptimizerState self, SingletonPredicate pred, _SingletonContainerAdaptor container, int value, int min_count, int max_count, std::string name="ConstSingletonPredicate%1%") -> EventSingletonsOptimizerState"""
3824  _IMP_container.EventSingletonsOptimizerState_swiginit(self, _IMP_container.new_EventSingletonsOptimizerState(*args))
3825 
3826  def do_update(self, call):
3827  r"""do_update(EventSingletonsOptimizerState self, unsigned int call)"""
3828  return _IMP_container.EventSingletonsOptimizerState_do_update(self, call)
3829 
3830  def get_version_info(self):
3831  r"""get_version_info(EventSingletonsOptimizerState self) -> VersionInfo"""
3832  return _IMP_container.EventSingletonsOptimizerState_get_version_info(self)
3833  __swig_destroy__ = _IMP_container.delete_EventSingletonsOptimizerState
3834 
3835  def __str__(self):
3836  r"""__str__(EventSingletonsOptimizerState self) -> std::string"""
3837  return _IMP_container.EventSingletonsOptimizerState___str__(self)
3838 
3839  def __repr__(self):
3840  r"""__repr__(EventSingletonsOptimizerState self) -> std::string"""
3841  return _IMP_container.EventSingletonsOptimizerState___repr__(self)
3842 
3843  @staticmethod
3844  def get_from(o):
3845  return _object_cast_to_EventSingletonsOptimizerState(o)
3846 
3847 
3848 # Register EventSingletonsOptimizerState in _IMP_container:
3849 _IMP_container.EventSingletonsOptimizerState_swigregister(EventSingletonsOptimizerState)
3850 class EventPairsOptimizerState(IMP.OptimizerState):
3851  r"""Proxy of C++ IMP::container::EventPairsOptimizerState class."""
3852 
3853  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3854 
3855  def __init__(self, *args):
3856  r"""__init__(EventPairsOptimizerState self, PairPredicate pred, _PairContainerAdaptor container, int value, int min_count, int max_count, std::string name="ConstPairPredicate%1%") -> EventPairsOptimizerState"""
3857  _IMP_container.EventPairsOptimizerState_swiginit(self, _IMP_container.new_EventPairsOptimizerState(*args))
3858 
3859  def do_update(self, call):
3860  r"""do_update(EventPairsOptimizerState self, unsigned int call)"""
3861  return _IMP_container.EventPairsOptimizerState_do_update(self, call)
3862 
3863  def get_version_info(self):
3864  r"""get_version_info(EventPairsOptimizerState self) -> VersionInfo"""
3865  return _IMP_container.EventPairsOptimizerState_get_version_info(self)
3866  __swig_destroy__ = _IMP_container.delete_EventPairsOptimizerState
3867 
3868  def __str__(self):
3869  r"""__str__(EventPairsOptimizerState self) -> std::string"""
3870  return _IMP_container.EventPairsOptimizerState___str__(self)
3871 
3872  def __repr__(self):
3873  r"""__repr__(EventPairsOptimizerState self) -> std::string"""
3874  return _IMP_container.EventPairsOptimizerState___repr__(self)
3875 
3876  @staticmethod
3877  def get_from(o):
3878  return _object_cast_to_EventPairsOptimizerState(o)
3879 
3880 
3881 # Register EventPairsOptimizerState in _IMP_container:
3882 _IMP_container.EventPairsOptimizerState_swigregister(EventPairsOptimizerState)
3883 class EventTripletsOptimizerState(IMP.OptimizerState):
3884  r"""Proxy of C++ IMP::container::EventTripletsOptimizerState class."""
3885 
3886  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3887 
3888  def __init__(self, *args):
3889  r"""__init__(EventTripletsOptimizerState self, TripletPredicate pred, _TripletContainerAdaptor container, int value, int min_count, int max_count, std::string name="ConstTripletPredicate%1%") -> EventTripletsOptimizerState"""
3890  _IMP_container.EventTripletsOptimizerState_swiginit(self, _IMP_container.new_EventTripletsOptimizerState(*args))
3891 
3892  def do_update(self, call):
3893  r"""do_update(EventTripletsOptimizerState self, unsigned int call)"""
3894  return _IMP_container.EventTripletsOptimizerState_do_update(self, call)
3895 
3896  def get_version_info(self):
3897  r"""get_version_info(EventTripletsOptimizerState self) -> VersionInfo"""
3898  return _IMP_container.EventTripletsOptimizerState_get_version_info(self)
3899  __swig_destroy__ = _IMP_container.delete_EventTripletsOptimizerState
3900 
3901  def __str__(self):
3902  r"""__str__(EventTripletsOptimizerState self) -> std::string"""
3903  return _IMP_container.EventTripletsOptimizerState___str__(self)
3904 
3905  def __repr__(self):
3906  r"""__repr__(EventTripletsOptimizerState self) -> std::string"""
3907  return _IMP_container.EventTripletsOptimizerState___repr__(self)
3908 
3909  @staticmethod
3910  def get_from(o):
3911  return _object_cast_to_EventTripletsOptimizerState(o)
3912 
3913 
3914 # Register EventTripletsOptimizerState in _IMP_container:
3915 _IMP_container.EventTripletsOptimizerState_swigregister(EventTripletsOptimizerState)
3916 class EventQuadsOptimizerState(IMP.OptimizerState):
3917  r"""Proxy of C++ IMP::container::EventQuadsOptimizerState class."""
3918 
3919  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3920 
3921  def __init__(self, *args):
3922  r"""__init__(EventQuadsOptimizerState self, QuadPredicate pred, _QuadContainerAdaptor container, int value, int min_count, int max_count, std::string name="ConstQuadPredicate%1%") -> EventQuadsOptimizerState"""
3923  _IMP_container.EventQuadsOptimizerState_swiginit(self, _IMP_container.new_EventQuadsOptimizerState(*args))
3924 
3925  def do_update(self, call):
3926  r"""do_update(EventQuadsOptimizerState self, unsigned int call)"""
3927  return _IMP_container.EventQuadsOptimizerState_do_update(self, call)
3928 
3929  def get_version_info(self):
3930  r"""get_version_info(EventQuadsOptimizerState self) -> VersionInfo"""
3931  return _IMP_container.EventQuadsOptimizerState_get_version_info(self)
3932  __swig_destroy__ = _IMP_container.delete_EventQuadsOptimizerState
3933 
3934  def __str__(self):
3935  r"""__str__(EventQuadsOptimizerState self) -> std::string"""
3936  return _IMP_container.EventQuadsOptimizerState___str__(self)
3937 
3938  def __repr__(self):
3939  r"""__repr__(EventQuadsOptimizerState self) -> std::string"""
3940  return _IMP_container.EventQuadsOptimizerState___repr__(self)
3941 
3942  @staticmethod
3943  def get_from(o):
3944  return _object_cast_to_EventQuadsOptimizerState(o)
3945 
3946 
3947 # Register EventQuadsOptimizerState in _IMP_container:
3948 _IMP_container.EventQuadsOptimizerState_swigregister(EventQuadsOptimizerState)
3949 class PredicateSingletonsRestraint(IMP.Restraint):
3950  r"""Proxy of C++ IMP::container::PredicateSingletonsRestraint class."""
3951 
3952  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3953 
3954  def __init__(self, *args):
3955  r"""
3956  __init__(PredicateSingletonsRestraint self, SingletonPredicate pred, _SingletonContainerAdaptor input, std::string name="PredicateSingletonsRestraint %1%") -> PredicateSingletonsRestraint
3957  __init__(PredicateSingletonsRestraint self) -> PredicateSingletonsRestraint
3958  """
3959  _IMP_container.PredicateSingletonsRestraint_swiginit(self, _IMP_container.new_PredicateSingletonsRestraint(*args))
3960 
3961  def set_score(self, predicate_value, score):
3962  r"""set_score(PredicateSingletonsRestraint self, int predicate_value, SingletonScore score)"""
3963  return _IMP_container.PredicateSingletonsRestraint_set_score(self, predicate_value, score)
3964 
3965  def set_unknown_score(self, score):
3966  r"""set_unknown_score(PredicateSingletonsRestraint self, SingletonScore score)"""
3967  return _IMP_container.PredicateSingletonsRestraint_set_unknown_score(self, score)
3968 
3969  def set_is_complete(self, tf):
3970  r"""set_is_complete(PredicateSingletonsRestraint self, bool tf)"""
3971  return _IMP_container.PredicateSingletonsRestraint_set_is_complete(self, tf)
3972 
3973  def get_indexes(self, predicate_value):
3974  r"""get_indexes(PredicateSingletonsRestraint self, int predicate_value) -> IMP::ParticleIndexes"""
3975  return _IMP_container.PredicateSingletonsRestraint_get_indexes(self, predicate_value)
3976 
3977  def do_add_score_and_derivatives(self, sa):
3978  r"""do_add_score_and_derivatives(PredicateSingletonsRestraint self, ScoreAccumulator sa)"""
3979  return _IMP_container.PredicateSingletonsRestraint_do_add_score_and_derivatives(self, sa)
3980 
3981  def do_get_inputs(self):
3982  r"""do_get_inputs(PredicateSingletonsRestraint self) -> IMP::ModelObjectsTemp"""
3983  return _IMP_container.PredicateSingletonsRestraint_do_get_inputs(self)
3984 
3985  def get_version_info(self):
3986  r"""get_version_info(PredicateSingletonsRestraint self) -> VersionInfo"""
3987  return _IMP_container.PredicateSingletonsRestraint_get_version_info(self)
3988  __swig_destroy__ = _IMP_container.delete_PredicateSingletonsRestraint
3989 
3990  def __str__(self):
3991  r"""__str__(PredicateSingletonsRestraint self) -> std::string"""
3992  return _IMP_container.PredicateSingletonsRestraint___str__(self)
3993 
3994  def __repr__(self):
3995  r"""__repr__(PredicateSingletonsRestraint self) -> std::string"""
3996  return _IMP_container.PredicateSingletonsRestraint___repr__(self)
3997 
3998  @staticmethod
3999  def get_from(o):
4000  return _object_cast_to_PredicateSingletonsRestraint(o)
4001 
4002 
4003  def _get_as_binary(self):
4004  r"""_get_as_binary(PredicateSingletonsRestraint self) -> PyObject *"""
4005  return _IMP_container.PredicateSingletonsRestraint__get_as_binary(self)
4006 
4007  def _set_from_binary(self, p):
4008  r"""_set_from_binary(PredicateSingletonsRestraint self, PyObject * p)"""
4009  return _IMP_container.PredicateSingletonsRestraint__set_from_binary(self, p)
4010 
4011  def __getstate__(self):
4012  p = self._get_as_binary()
4013  if len(self.__dict__) > 1:
4014  d = self.__dict__.copy()
4015  del d['this']
4016  p = (d, p)
4017  return p
4018 
4019  def __setstate__(self, p):
4020  if not hasattr(self, 'this'):
4021  self.__init__()
4022  if isinstance(p, tuple):
4023  d, p = p
4024  self.__dict__.update(d)
4025  return self._set_from_binary(p)
4026 
4027 
4028 # Register PredicateSingletonsRestraint in _IMP_container:
4029 _IMP_container.PredicateSingletonsRestraint_swigregister(PredicateSingletonsRestraint)
4030 class PredicatePairsRestraint(IMP.Restraint):
4031  r"""Proxy of C++ IMP::container::PredicatePairsRestraint class."""
4032 
4033  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4034 
4035  def __init__(self, *args):
4036  r"""
4037  __init__(PredicatePairsRestraint self, PairPredicate pred, _PairContainerAdaptor input, std::string name="PredicatePairsRestraint %1%") -> PredicatePairsRestraint
4038  __init__(PredicatePairsRestraint self) -> PredicatePairsRestraint
4039  """
4040  _IMP_container.PredicatePairsRestraint_swiginit(self, _IMP_container.new_PredicatePairsRestraint(*args))
4041 
4042  def set_score(self, predicate_value, score):
4043  r"""set_score(PredicatePairsRestraint self, int predicate_value, PairScore score)"""
4044  return _IMP_container.PredicatePairsRestraint_set_score(self, predicate_value, score)
4045 
4046  def set_unknown_score(self, score):
4047  r"""set_unknown_score(PredicatePairsRestraint self, PairScore score)"""
4048  return _IMP_container.PredicatePairsRestraint_set_unknown_score(self, score)
4049 
4050  def set_is_complete(self, tf):
4051  r"""set_is_complete(PredicatePairsRestraint self, bool tf)"""
4052  return _IMP_container.PredicatePairsRestraint_set_is_complete(self, tf)
4053 
4054  def get_indexes(self, predicate_value):
4055  r"""get_indexes(PredicatePairsRestraint self, int predicate_value) -> IMP::ParticleIndexPairs"""
4056  return _IMP_container.PredicatePairsRestraint_get_indexes(self, predicate_value)
4057 
4058  def do_add_score_and_derivatives(self, sa):
4059  r"""do_add_score_and_derivatives(PredicatePairsRestraint self, ScoreAccumulator sa)"""
4060  return _IMP_container.PredicatePairsRestraint_do_add_score_and_derivatives(self, sa)
4061 
4062  def do_get_inputs(self):
4063  r"""do_get_inputs(PredicatePairsRestraint self) -> IMP::ModelObjectsTemp"""
4064  return _IMP_container.PredicatePairsRestraint_do_get_inputs(self)
4065 
4066  def get_version_info(self):
4067  r"""get_version_info(PredicatePairsRestraint self) -> VersionInfo"""
4068  return _IMP_container.PredicatePairsRestraint_get_version_info(self)
4069  __swig_destroy__ = _IMP_container.delete_PredicatePairsRestraint
4070 
4071  def __str__(self):
4072  r"""__str__(PredicatePairsRestraint self) -> std::string"""
4073  return _IMP_container.PredicatePairsRestraint___str__(self)
4074 
4075  def __repr__(self):
4076  r"""__repr__(PredicatePairsRestraint self) -> std::string"""
4077  return _IMP_container.PredicatePairsRestraint___repr__(self)
4078 
4079  @staticmethod
4080  def get_from(o):
4081  return _object_cast_to_PredicatePairsRestraint(o)
4082 
4083 
4084  def _get_as_binary(self):
4085  r"""_get_as_binary(PredicatePairsRestraint self) -> PyObject *"""
4086  return _IMP_container.PredicatePairsRestraint__get_as_binary(self)
4087 
4088  def _set_from_binary(self, p):
4089  r"""_set_from_binary(PredicatePairsRestraint self, PyObject * p)"""
4090  return _IMP_container.PredicatePairsRestraint__set_from_binary(self, p)
4091 
4092  def __getstate__(self):
4093  p = self._get_as_binary()
4094  if len(self.__dict__) > 1:
4095  d = self.__dict__.copy()
4096  del d['this']
4097  p = (d, p)
4098  return p
4099 
4100  def __setstate__(self, p):
4101  if not hasattr(self, 'this'):
4102  self.__init__()
4103  if isinstance(p, tuple):
4104  d, p = p
4105  self.__dict__.update(d)
4106  return self._set_from_binary(p)
4107 
4108 
4109 # Register PredicatePairsRestraint in _IMP_container:
4110 _IMP_container.PredicatePairsRestraint_swigregister(PredicatePairsRestraint)
4111 class PredicateTripletsRestraint(IMP.Restraint):
4112  r"""Proxy of C++ IMP::container::PredicateTripletsRestraint class."""
4113 
4114  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4115 
4116  def __init__(self, *args):
4117  r"""
4118  __init__(PredicateTripletsRestraint self, TripletPredicate pred, _TripletContainerAdaptor input, std::string name="PredicateTripletsRestraint %1%") -> PredicateTripletsRestraint
4119  __init__(PredicateTripletsRestraint self) -> PredicateTripletsRestraint
4120  """
4121  _IMP_container.PredicateTripletsRestraint_swiginit(self, _IMP_container.new_PredicateTripletsRestraint(*args))
4122 
4123  def set_score(self, predicate_value, score):
4124  r"""set_score(PredicateTripletsRestraint self, int predicate_value, TripletScore score)"""
4125  return _IMP_container.PredicateTripletsRestraint_set_score(self, predicate_value, score)
4126 
4127  def set_unknown_score(self, score):
4128  r"""set_unknown_score(PredicateTripletsRestraint self, TripletScore score)"""
4129  return _IMP_container.PredicateTripletsRestraint_set_unknown_score(self, score)
4130 
4131  def set_is_complete(self, tf):
4132  r"""set_is_complete(PredicateTripletsRestraint self, bool tf)"""
4133  return _IMP_container.PredicateTripletsRestraint_set_is_complete(self, tf)
4134 
4135  def get_indexes(self, predicate_value):
4136  r"""get_indexes(PredicateTripletsRestraint self, int predicate_value) -> IMP::ParticleIndexTriplets"""
4137  return _IMP_container.PredicateTripletsRestraint_get_indexes(self, predicate_value)
4138 
4139  def do_add_score_and_derivatives(self, sa):
4140  r"""do_add_score_and_derivatives(PredicateTripletsRestraint self, ScoreAccumulator sa)"""
4141  return _IMP_container.PredicateTripletsRestraint_do_add_score_and_derivatives(self, sa)
4142 
4143  def do_get_inputs(self):
4144  r"""do_get_inputs(PredicateTripletsRestraint self) -> IMP::ModelObjectsTemp"""
4145  return _IMP_container.PredicateTripletsRestraint_do_get_inputs(self)
4146 
4147  def get_version_info(self):
4148  r"""get_version_info(PredicateTripletsRestraint self) -> VersionInfo"""
4149  return _IMP_container.PredicateTripletsRestraint_get_version_info(self)
4150  __swig_destroy__ = _IMP_container.delete_PredicateTripletsRestraint
4151 
4152  def __str__(self):
4153  r"""__str__(PredicateTripletsRestraint self) -> std::string"""
4154  return _IMP_container.PredicateTripletsRestraint___str__(self)
4155 
4156  def __repr__(self):
4157  r"""__repr__(PredicateTripletsRestraint self) -> std::string"""
4158  return _IMP_container.PredicateTripletsRestraint___repr__(self)
4159 
4160  @staticmethod
4161  def get_from(o):
4162  return _object_cast_to_PredicateTripletsRestraint(o)
4163 
4164 
4165  def _get_as_binary(self):
4166  r"""_get_as_binary(PredicateTripletsRestraint self) -> PyObject *"""
4167  return _IMP_container.PredicateTripletsRestraint__get_as_binary(self)
4168 
4169  def _set_from_binary(self, p):
4170  r"""_set_from_binary(PredicateTripletsRestraint self, PyObject * p)"""
4171  return _IMP_container.PredicateTripletsRestraint__set_from_binary(self, p)
4172 
4173  def __getstate__(self):
4174  p = self._get_as_binary()
4175  if len(self.__dict__) > 1:
4176  d = self.__dict__.copy()
4177  del d['this']
4178  p = (d, p)
4179  return p
4180 
4181  def __setstate__(self, p):
4182  if not hasattr(self, 'this'):
4183  self.__init__()
4184  if isinstance(p, tuple):
4185  d, p = p
4186  self.__dict__.update(d)
4187  return self._set_from_binary(p)
4188 
4189 
4190 # Register PredicateTripletsRestraint in _IMP_container:
4191 _IMP_container.PredicateTripletsRestraint_swigregister(PredicateTripletsRestraint)
4192 class PredicateQuadsRestraint(IMP.Restraint):
4193  r"""Proxy of C++ IMP::container::PredicateQuadsRestraint class."""
4194 
4195  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4196 
4197  def __init__(self, *args):
4198  r"""
4199  __init__(PredicateQuadsRestraint self, QuadPredicate pred, _QuadContainerAdaptor input, std::string name="PredicateQuadsRestraint %1%") -> PredicateQuadsRestraint
4200  __init__(PredicateQuadsRestraint self) -> PredicateQuadsRestraint
4201  """
4202  _IMP_container.PredicateQuadsRestraint_swiginit(self, _IMP_container.new_PredicateQuadsRestraint(*args))
4203 
4204  def set_score(self, predicate_value, score):
4205  r"""set_score(PredicateQuadsRestraint self, int predicate_value, QuadScore score)"""
4206  return _IMP_container.PredicateQuadsRestraint_set_score(self, predicate_value, score)
4207 
4208  def set_unknown_score(self, score):
4209  r"""set_unknown_score(PredicateQuadsRestraint self, QuadScore score)"""
4210  return _IMP_container.PredicateQuadsRestraint_set_unknown_score(self, score)
4211 
4212  def set_is_complete(self, tf):
4213  r"""set_is_complete(PredicateQuadsRestraint self, bool tf)"""
4214  return _IMP_container.PredicateQuadsRestraint_set_is_complete(self, tf)
4215 
4216  def get_indexes(self, predicate_value):
4217  r"""get_indexes(PredicateQuadsRestraint self, int predicate_value) -> IMP::ParticleIndexQuads"""
4218  return _IMP_container.PredicateQuadsRestraint_get_indexes(self, predicate_value)
4219 
4220  def do_add_score_and_derivatives(self, sa):
4221  r"""do_add_score_and_derivatives(PredicateQuadsRestraint self, ScoreAccumulator sa)"""
4222  return _IMP_container.PredicateQuadsRestraint_do_add_score_and_derivatives(self, sa)
4223 
4224  def do_get_inputs(self):
4225  r"""do_get_inputs(PredicateQuadsRestraint self) -> IMP::ModelObjectsTemp"""
4226  return _IMP_container.PredicateQuadsRestraint_do_get_inputs(self)
4227 
4228  def get_version_info(self):
4229  r"""get_version_info(PredicateQuadsRestraint self) -> VersionInfo"""
4230  return _IMP_container.PredicateQuadsRestraint_get_version_info(self)
4231  __swig_destroy__ = _IMP_container.delete_PredicateQuadsRestraint
4232 
4233  def __str__(self):
4234  r"""__str__(PredicateQuadsRestraint self) -> std::string"""
4235  return _IMP_container.PredicateQuadsRestraint___str__(self)
4236 
4237  def __repr__(self):
4238  r"""__repr__(PredicateQuadsRestraint self) -> std::string"""
4239  return _IMP_container.PredicateQuadsRestraint___repr__(self)
4240 
4241  @staticmethod
4242  def get_from(o):
4243  return _object_cast_to_PredicateQuadsRestraint(o)
4244 
4245 
4246  def _get_as_binary(self):
4247  r"""_get_as_binary(PredicateQuadsRestraint self) -> PyObject *"""
4248  return _IMP_container.PredicateQuadsRestraint__get_as_binary(self)
4249 
4250  def _set_from_binary(self, p):
4251  r"""_set_from_binary(PredicateQuadsRestraint self, PyObject * p)"""
4252  return _IMP_container.PredicateQuadsRestraint__set_from_binary(self, p)
4253 
4254  def __getstate__(self):
4255  p = self._get_as_binary()
4256  if len(self.__dict__) > 1:
4257  d = self.__dict__.copy()
4258  del d['this']
4259  p = (d, p)
4260  return p
4261 
4262  def __setstate__(self, p):
4263  if not hasattr(self, 'this'):
4264  self.__init__()
4265  if isinstance(p, tuple):
4266  d, p = p
4267  self.__dict__.update(d)
4268  return self._set_from_binary(p)
4269 
4270 
4271 # Register PredicateQuadsRestraint in _IMP_container:
4272 _IMP_container.PredicateQuadsRestraint_swigregister(PredicateQuadsRestraint)
4273 class DistributeSingletonsScoreState(IMP.ScoreState):
4274  r"""Proxy of C++ IMP::container::DistributeSingletonsScoreState class."""
4275 
4276  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4277 
4278  def __init__(self, *args):
4279  r"""__init__(DistributeSingletonsScoreState self, _SingletonContainerAdaptor input, std::string name="DistributeSingletonsScoreState %1%") -> DistributeSingletonsScoreState"""
4280  _IMP_container.DistributeSingletonsScoreState_swiginit(self, _IMP_container.new_DistributeSingletonsScoreState(*args))
4281 
4282  def add_predicate(self, predicate, value):
4283  r"""add_predicate(DistributeSingletonsScoreState self, SingletonPredicate predicate, int value) -> DynamicListSingletonContainer"""
4284  return _IMP_container.DistributeSingletonsScoreState_add_predicate(self, predicate, value)
4285 
4286  def do_before_evaluate(self):
4287  r"""do_before_evaluate(DistributeSingletonsScoreState self)"""
4288  return _IMP_container.DistributeSingletonsScoreState_do_before_evaluate(self)
4289 
4290  def do_after_evaluate(self, da):
4291  r"""do_after_evaluate(DistributeSingletonsScoreState self, DerivativeAccumulator da)"""
4292  return _IMP_container.DistributeSingletonsScoreState_do_after_evaluate(self, da)
4293 
4294  def do_get_inputs(self):
4295  r"""do_get_inputs(DistributeSingletonsScoreState self) -> IMP::ModelObjectsTemp"""
4296  return _IMP_container.DistributeSingletonsScoreState_do_get_inputs(self)
4297 
4298  def do_get_outputs(self):
4299  r"""do_get_outputs(DistributeSingletonsScoreState self) -> IMP::ModelObjectsTemp"""
4300  return _IMP_container.DistributeSingletonsScoreState_do_get_outputs(self)
4301 
4302  def get_version_info(self):
4303  r"""get_version_info(DistributeSingletonsScoreState self) -> VersionInfo"""
4304  return _IMP_container.DistributeSingletonsScoreState_get_version_info(self)
4305  __swig_destroy__ = _IMP_container.delete_DistributeSingletonsScoreState
4306 
4307  def __str__(self):
4308  r"""__str__(DistributeSingletonsScoreState self) -> std::string"""
4309  return _IMP_container.DistributeSingletonsScoreState___str__(self)
4310 
4311  def __repr__(self):
4312  r"""__repr__(DistributeSingletonsScoreState self) -> std::string"""
4313  return _IMP_container.DistributeSingletonsScoreState___repr__(self)
4314 
4315  @staticmethod
4316  def get_from(o):
4317  return _object_cast_to_DistributeSingletonsScoreState(o)
4318 
4319 
4320 # Register DistributeSingletonsScoreState in _IMP_container:
4321 _IMP_container.DistributeSingletonsScoreState_swigregister(DistributeSingletonsScoreState)
4322 class DistributePairsScoreState(IMP.ScoreState):
4323  r"""Proxy of C++ IMP::container::DistributePairsScoreState class."""
4324 
4325  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4326 
4327  def __init__(self, *args):
4328  r"""__init__(DistributePairsScoreState self, _PairContainerAdaptor input, std::string name="DistributePairsScoreState %1%") -> DistributePairsScoreState"""
4329  _IMP_container.DistributePairsScoreState_swiginit(self, _IMP_container.new_DistributePairsScoreState(*args))
4330 
4331  def add_predicate(self, predicate, value):
4332  r"""add_predicate(DistributePairsScoreState self, PairPredicate predicate, int value) -> DynamicListPairContainer"""
4333  return _IMP_container.DistributePairsScoreState_add_predicate(self, predicate, value)
4334 
4335  def do_before_evaluate(self):
4336  r"""do_before_evaluate(DistributePairsScoreState self)"""
4337  return _IMP_container.DistributePairsScoreState_do_before_evaluate(self)
4338 
4339  def do_after_evaluate(self, da):
4340  r"""do_after_evaluate(DistributePairsScoreState self, DerivativeAccumulator da)"""
4341  return _IMP_container.DistributePairsScoreState_do_after_evaluate(self, da)
4342 
4343  def do_get_inputs(self):
4344  r"""do_get_inputs(DistributePairsScoreState self) -> IMP::ModelObjectsTemp"""
4345  return _IMP_container.DistributePairsScoreState_do_get_inputs(self)
4346 
4347  def do_get_outputs(self):
4348  r"""do_get_outputs(DistributePairsScoreState self) -> IMP::ModelObjectsTemp"""
4349  return _IMP_container.DistributePairsScoreState_do_get_outputs(self)
4350 
4351  def get_version_info(self):
4352  r"""get_version_info(DistributePairsScoreState self) -> VersionInfo"""
4353  return _IMP_container.DistributePairsScoreState_get_version_info(self)
4354  __swig_destroy__ = _IMP_container.delete_DistributePairsScoreState
4355 
4356  def __str__(self):
4357  r"""__str__(DistributePairsScoreState self) -> std::string"""
4358  return _IMP_container.DistributePairsScoreState___str__(self)
4359 
4360  def __repr__(self):
4361  r"""__repr__(DistributePairsScoreState self) -> std::string"""
4362  return _IMP_container.DistributePairsScoreState___repr__(self)
4363 
4364  @staticmethod
4365  def get_from(o):
4366  return _object_cast_to_DistributePairsScoreState(o)
4367 
4368 
4369 # Register DistributePairsScoreState in _IMP_container:
4370 _IMP_container.DistributePairsScoreState_swigregister(DistributePairsScoreState)
4371 class DistributeTripletsScoreState(IMP.ScoreState):
4372  r"""Proxy of C++ IMP::container::DistributeTripletsScoreState class."""
4373 
4374  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4375 
4376  def __init__(self, *args):
4377  r"""__init__(DistributeTripletsScoreState self, _TripletContainerAdaptor input, std::string name="DistributeTripletsScoreState %1%") -> DistributeTripletsScoreState"""
4378  _IMP_container.DistributeTripletsScoreState_swiginit(self, _IMP_container.new_DistributeTripletsScoreState(*args))
4379 
4380  def add_predicate(self, predicate, value):
4381  r"""add_predicate(DistributeTripletsScoreState self, TripletPredicate predicate, int value) -> DynamicListTripletContainer"""
4382  return _IMP_container.DistributeTripletsScoreState_add_predicate(self, predicate, value)
4383 
4384  def do_before_evaluate(self):
4385  r"""do_before_evaluate(DistributeTripletsScoreState self)"""
4386  return _IMP_container.DistributeTripletsScoreState_do_before_evaluate(self)
4387 
4388  def do_after_evaluate(self, da):
4389  r"""do_after_evaluate(DistributeTripletsScoreState self, DerivativeAccumulator da)"""
4390  return _IMP_container.DistributeTripletsScoreState_do_after_evaluate(self, da)
4391 
4392  def do_get_inputs(self):
4393  r"""do_get_inputs(DistributeTripletsScoreState self) -> IMP::ModelObjectsTemp"""
4394  return _IMP_container.DistributeTripletsScoreState_do_get_inputs(self)
4395 
4396  def do_get_outputs(self):
4397  r"""do_get_outputs(DistributeTripletsScoreState self) -> IMP::ModelObjectsTemp"""
4398  return _IMP_container.DistributeTripletsScoreState_do_get_outputs(self)
4399 
4400  def get_version_info(self):
4401  r"""get_version_info(DistributeTripletsScoreState self) -> VersionInfo"""
4402  return _IMP_container.DistributeTripletsScoreState_get_version_info(self)
4403  __swig_destroy__ = _IMP_container.delete_DistributeTripletsScoreState
4404 
4405  def __str__(self):
4406  r"""__str__(DistributeTripletsScoreState self) -> std::string"""
4407  return _IMP_container.DistributeTripletsScoreState___str__(self)
4408 
4409  def __repr__(self):
4410  r"""__repr__(DistributeTripletsScoreState self) -> std::string"""
4411  return _IMP_container.DistributeTripletsScoreState___repr__(self)
4412 
4413  @staticmethod
4414  def get_from(o):
4415  return _object_cast_to_DistributeTripletsScoreState(o)
4416 
4417 
4418 # Register DistributeTripletsScoreState in _IMP_container:
4419 _IMP_container.DistributeTripletsScoreState_swigregister(DistributeTripletsScoreState)
4420 class DistributeQuadsScoreState(IMP.ScoreState):
4421  r"""Proxy of C++ IMP::container::DistributeQuadsScoreState class."""
4422 
4423  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4424 
4425  def __init__(self, *args):
4426  r"""__init__(DistributeQuadsScoreState self, _QuadContainerAdaptor input, std::string name="DistributeQuadsScoreState %1%") -> DistributeQuadsScoreState"""
4427  _IMP_container.DistributeQuadsScoreState_swiginit(self, _IMP_container.new_DistributeQuadsScoreState(*args))
4428 
4429  def add_predicate(self, predicate, value):
4430  r"""add_predicate(DistributeQuadsScoreState self, QuadPredicate predicate, int value) -> DynamicListQuadContainer"""
4431  return _IMP_container.DistributeQuadsScoreState_add_predicate(self, predicate, value)
4432 
4433  def do_before_evaluate(self):
4434  r"""do_before_evaluate(DistributeQuadsScoreState self)"""
4435  return _IMP_container.DistributeQuadsScoreState_do_before_evaluate(self)
4436 
4437  def do_after_evaluate(self, da):
4438  r"""do_after_evaluate(DistributeQuadsScoreState self, DerivativeAccumulator da)"""
4439  return _IMP_container.DistributeQuadsScoreState_do_after_evaluate(self, da)
4440 
4441  def do_get_inputs(self):
4442  r"""do_get_inputs(DistributeQuadsScoreState self) -> IMP::ModelObjectsTemp"""
4443  return _IMP_container.DistributeQuadsScoreState_do_get_inputs(self)
4444 
4445  def do_get_outputs(self):
4446  r"""do_get_outputs(DistributeQuadsScoreState self) -> IMP::ModelObjectsTemp"""
4447  return _IMP_container.DistributeQuadsScoreState_do_get_outputs(self)
4448 
4449  def get_version_info(self):
4450  r"""get_version_info(DistributeQuadsScoreState self) -> VersionInfo"""
4451  return _IMP_container.DistributeQuadsScoreState_get_version_info(self)
4452  __swig_destroy__ = _IMP_container.delete_DistributeQuadsScoreState
4453 
4454  def __str__(self):
4455  r"""__str__(DistributeQuadsScoreState self) -> std::string"""
4456  return _IMP_container.DistributeQuadsScoreState___str__(self)
4457 
4458  def __repr__(self):
4459  r"""__repr__(DistributeQuadsScoreState self) -> std::string"""
4460  return _IMP_container.DistributeQuadsScoreState___repr__(self)
4461 
4462  @staticmethod
4463  def get_from(o):
4464  return _object_cast_to_DistributeQuadsScoreState(o)
4465 
4466 
4467 # Register DistributeQuadsScoreState in _IMP_container:
4468 _IMP_container.DistributeQuadsScoreState_swigregister(DistributeQuadsScoreState)
4469 
4470 def create_restraint(*args):
4471  r"""
4472  create_restraint(PairScore ps, IMP::ParticlePair pp) -> Restraint
4473  create_restraint(PairScore ps, PairContainer pp) -> Restraint
4474  """
4475  return _IMP_container.create_restraint(*args)
4476 
4477 def get_module_name():
4478  r"""get_module_name() -> std::string const"""
4479  return _IMP_container.get_module_name()
4480 
4481 def get_module_version():
4482  r"""get_module_version() -> std::string const"""
4483  return _IMP_container.get_module_version()
4484 
4485 def get_example_path(fname):
4486  r"""get_example_path(std::string fname) -> std::string"""
4487  return _IMP_container.get_example_path(fname)
4488 
4489 def get_data_path(fname):
4490  r"""get_data_path(std::string fname) -> std::string"""
4491  return _IMP_container.get_data_path(fname)
4492 
4493 from . import _version_check
4494 _version_check.check_version(get_module_version())
4495 __version__ = get_module_version()
4496 
4497 
std::string get_data_path(std::string file_name)
Return the full path to one of this module's data files.
Abstract class for scoring object(s) of type ParticleIndexPair.
Definition: PairScore.h:44
A shared container for Pairs.
Definition: PairContainer.h:39
double get_slack_estimate(Model *m, ParticleIndexes ps, double upper_bound, double step, const RestraintsTemp &restraints, bool derivatives, Optimizer *opt, ClosePairContainer *cpc)
Abstract predicate function.
Definition: QuadPredicate.h:31
Restraint * create_restraint(Score *s, const typename Score::Argument &t, std::string name=std::string())
Definition: generic.h:36
Make CGAL functionality available to IMP.
Composable functors to implement scores via compile-time composition.
std::string get_module_version()
Return the version of this module, as a string.
Implement a constraint on the Model.
Definition: Constraint.h:49
Abstract class for scoring object(s) of type ParticleIndexQuad.
Definition: QuadScore.h:44
Abstract predicate function.
Abstract class for scoring object(s) of type ParticleIndex.
ScoreStates maintain invariants in the Model.
Definition: ScoreState.h:56
A shared container for Quads.
Definition: QuadContainer.h:39
A shared container for Singletons.
std::string get_example_path(std::string file_name)
Return the full path to one of this module's example files.
Basic functionality that is expected to be used by a wide variety of IMP users.
Abstract predicate function.
Definition: PairPredicate.h:31
General purpose algebraic and geometric methods that are expected to be used by a wide variety of IMP...
Warning for incomplete JAX support or different behavior of JAX code.
Definition: __init__.py:12173
Shared optimizer state that is invoked upon commitment of new coordinates.
Abstract predicate function.
A shared container for Triplets.
Output IMP model data in various file formats.
Abstract class for scoring object(s) of type ParticleIndexTriplet.
Definition: TripletScore.h:44
ParticleIndexes get_indexes(const ParticlesTemp &ps)
Get the indexes from a list of particles.
A restraint is a term in an IMP ScoringFunction.
Definition: Restraint.h:56