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