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