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