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