IMP logo
IMP Reference Guide  develop.63b38c487d,2024/12/22
The Integrative Modeling Platform
container/__init__.py
1 # This file was automatically generated by SWIG (https://www.swig.org).
2 # Version 4.3.0
3 #
4 # Do not make changes to this file unless you know what you are doing - modify
5 # the SWIG interface file instead.
6 
7 
8 # This wrapper is part of IMP,
9 # Copyright 2007-2024 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 get_version_info(self):
1978  r"""get_version_info(MinimumPairScore self) -> VersionInfo"""
1979  return _IMP_container.MinimumPairScore_get_version_info(self)
1980  __swig_destroy__ = _IMP_container.delete_MinimumPairScore
1981 
1982  def do_create_current_decomposition(self, m, vt):
1983  r"""do_create_current_decomposition(MinimumPairScore self, Model m, IMP::ParticleIndexPair const & vt) -> IMP::Restraints"""
1984  return _IMP_container.MinimumPairScore_do_create_current_decomposition(self, m, vt)
1985 
1986  def __str__(self):
1987  r"""__str__(MinimumPairScore self) -> std::string"""
1988  return _IMP_container.MinimumPairScore___str__(self)
1989 
1990  def __repr__(self):
1991  r"""__repr__(MinimumPairScore self) -> std::string"""
1992  return _IMP_container.MinimumPairScore___repr__(self)
1993 
1994  @staticmethod
1995  def get_from(o):
1996  return _object_cast_to_MinimumPairScore(o)
1997 
1998 
1999 # Register MinimumPairScore in _IMP_container:
2000 _IMP_container.MinimumPairScore_swigregister(MinimumPairScore)
2001 class MinimumQuadRestraint(IMP.Restraint):
2002  r"""Proxy of C++ IMP::container::MinimumQuadRestraint class."""
2003 
2004  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2005 
2006  def __init__(self, *args):
2007  r"""__init__(MinimumQuadRestraint self, QuadScore f, _QuadContainerAdaptor c, unsigned int n=1, std::string name="MinimumQuadRestraint %1%") -> MinimumQuadRestraint"""
2008  _IMP_container.MinimumQuadRestraint_swiginit(self, _IMP_container.new_MinimumQuadRestraint(*args))
2009 
2010  def do_get_inputs(self):
2011  r"""do_get_inputs(MinimumQuadRestraint self) -> IMP::ModelObjectsTemp"""
2012  return _IMP_container.MinimumQuadRestraint_do_get_inputs(self)
2013 
2014  def get_version_info(self):
2015  r"""get_version_info(MinimumQuadRestraint self) -> VersionInfo"""
2016  return _IMP_container.MinimumQuadRestraint_get_version_info(self)
2017  __swig_destroy__ = _IMP_container.delete_MinimumQuadRestraint
2018 
2019  def set_n(self, n):
2020  r"""set_n(MinimumQuadRestraint self, unsigned int n)"""
2021  return _IMP_container.MinimumQuadRestraint_set_n(self, n)
2022 
2023  def do_create_current_decomposition(self):
2024  r"""do_create_current_decomposition(MinimumQuadRestraint self) -> IMP::Restraints"""
2025  return _IMP_container.MinimumQuadRestraint_do_create_current_decomposition(self)
2026 
2027  def __str__(self):
2028  r"""__str__(MinimumQuadRestraint self) -> std::string"""
2029  return _IMP_container.MinimumQuadRestraint___str__(self)
2030 
2031  def __repr__(self):
2032  r"""__repr__(MinimumQuadRestraint self) -> std::string"""
2033  return _IMP_container.MinimumQuadRestraint___repr__(self)
2034 
2035  @staticmethod
2036  def get_from(o):
2037  return _object_cast_to_MinimumQuadRestraint(o)
2038 
2039 
2040 # Register MinimumQuadRestraint in _IMP_container:
2041 _IMP_container.MinimumQuadRestraint_swigregister(MinimumQuadRestraint)
2042 class MinimumQuadScore(IMP.QuadScore):
2043  r"""Proxy of C++ IMP::container::MinimumQuadScore class."""
2044 
2045  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2046 
2047  def __init__(self, *args):
2048  r"""__init__(MinimumQuadScore self, IMP::QuadScoresTemp const & scores, unsigned int n=1, std::string name="QuadScore %1%") -> MinimumQuadScore"""
2049  _IMP_container.MinimumQuadScore_swiginit(self, _IMP_container.new_MinimumQuadScore(*args))
2050 
2051  def do_get_inputs(self, m, pis):
2052  r"""do_get_inputs(MinimumQuadScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
2053  return _IMP_container.MinimumQuadScore_do_get_inputs(self, m, pis)
2054 
2055  def get_version_info(self):
2056  r"""get_version_info(MinimumQuadScore self) -> VersionInfo"""
2057  return _IMP_container.MinimumQuadScore_get_version_info(self)
2058  __swig_destroy__ = _IMP_container.delete_MinimumQuadScore
2059 
2060  def do_create_current_decomposition(self, m, vt):
2061  r"""do_create_current_decomposition(MinimumQuadScore self, Model m, IMP::ParticleIndexQuad const & vt) -> IMP::Restraints"""
2062  return _IMP_container.MinimumQuadScore_do_create_current_decomposition(self, m, vt)
2063 
2064  def __str__(self):
2065  r"""__str__(MinimumQuadScore self) -> std::string"""
2066  return _IMP_container.MinimumQuadScore___str__(self)
2067 
2068  def __repr__(self):
2069  r"""__repr__(MinimumQuadScore self) -> std::string"""
2070  return _IMP_container.MinimumQuadScore___repr__(self)
2071 
2072  @staticmethod
2073  def get_from(o):
2074  return _object_cast_to_MinimumQuadScore(o)
2075 
2076 
2077 # Register MinimumQuadScore in _IMP_container:
2078 _IMP_container.MinimumQuadScore_swigregister(MinimumQuadScore)
2079 class MinimumSingletonRestraint(IMP.Restraint):
2080  r"""Proxy of C++ IMP::container::MinimumSingletonRestraint class."""
2081 
2082  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2083 
2084  def __init__(self, *args):
2085  r"""__init__(MinimumSingletonRestraint self, SingletonScore f, _SingletonContainerAdaptor c, unsigned int n=1, std::string name="MinimumSingletonRestraint %1%") -> MinimumSingletonRestraint"""
2086  _IMP_container.MinimumSingletonRestraint_swiginit(self, _IMP_container.new_MinimumSingletonRestraint(*args))
2087 
2088  def do_get_inputs(self):
2089  r"""do_get_inputs(MinimumSingletonRestraint self) -> IMP::ModelObjectsTemp"""
2090  return _IMP_container.MinimumSingletonRestraint_do_get_inputs(self)
2091 
2092  def get_version_info(self):
2093  r"""get_version_info(MinimumSingletonRestraint self) -> VersionInfo"""
2094  return _IMP_container.MinimumSingletonRestraint_get_version_info(self)
2095  __swig_destroy__ = _IMP_container.delete_MinimumSingletonRestraint
2096 
2097  def set_n(self, n):
2098  r"""set_n(MinimumSingletonRestraint self, unsigned int n)"""
2099  return _IMP_container.MinimumSingletonRestraint_set_n(self, n)
2100 
2101  def do_create_current_decomposition(self):
2102  r"""do_create_current_decomposition(MinimumSingletonRestraint self) -> IMP::Restraints"""
2103  return _IMP_container.MinimumSingletonRestraint_do_create_current_decomposition(self)
2104 
2105  def __str__(self):
2106  r"""__str__(MinimumSingletonRestraint self) -> std::string"""
2107  return _IMP_container.MinimumSingletonRestraint___str__(self)
2108 
2109  def __repr__(self):
2110  r"""__repr__(MinimumSingletonRestraint self) -> std::string"""
2111  return _IMP_container.MinimumSingletonRestraint___repr__(self)
2112 
2113  @staticmethod
2114  def get_from(o):
2115  return _object_cast_to_MinimumSingletonRestraint(o)
2116 
2117 
2118 # Register MinimumSingletonRestraint in _IMP_container:
2119 _IMP_container.MinimumSingletonRestraint_swigregister(MinimumSingletonRestraint)
2120 class MinimumSingletonScore(IMP.SingletonScore):
2121  r"""Proxy of C++ IMP::container::MinimumSingletonScore class."""
2122 
2123  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2124 
2125  def __init__(self, *args):
2126  r"""__init__(MinimumSingletonScore self, IMP::SingletonScoresTemp const & scores, unsigned int n=1, std::string name="SingletonScore %1%") -> MinimumSingletonScore"""
2127  _IMP_container.MinimumSingletonScore_swiginit(self, _IMP_container.new_MinimumSingletonScore(*args))
2128 
2129  def do_get_inputs(self, m, pis):
2130  r"""do_get_inputs(MinimumSingletonScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
2131  return _IMP_container.MinimumSingletonScore_do_get_inputs(self, m, pis)
2132 
2133  def get_version_info(self):
2134  r"""get_version_info(MinimumSingletonScore self) -> VersionInfo"""
2135  return _IMP_container.MinimumSingletonScore_get_version_info(self)
2136  __swig_destroy__ = _IMP_container.delete_MinimumSingletonScore
2137 
2138  def do_create_current_decomposition(self, m, vt):
2139  r"""do_create_current_decomposition(MinimumSingletonScore self, Model m, ParticleIndex vt) -> IMP::Restraints"""
2140  return _IMP_container.MinimumSingletonScore_do_create_current_decomposition(self, m, vt)
2141 
2142  def __str__(self):
2143  r"""__str__(MinimumSingletonScore self) -> std::string"""
2144  return _IMP_container.MinimumSingletonScore___str__(self)
2145 
2146  def __repr__(self):
2147  r"""__repr__(MinimumSingletonScore self) -> std::string"""
2148  return _IMP_container.MinimumSingletonScore___repr__(self)
2149 
2150  @staticmethod
2151  def get_from(o):
2152  return _object_cast_to_MinimumSingletonScore(o)
2153 
2154 
2155 # Register MinimumSingletonScore in _IMP_container:
2156 _IMP_container.MinimumSingletonScore_swigregister(MinimumSingletonScore)
2157 class MinimumTripletRestraint(IMP.Restraint):
2158  r"""Proxy of C++ IMP::container::MinimumTripletRestraint class."""
2159 
2160  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2161 
2162  def __init__(self, *args):
2163  r"""__init__(MinimumTripletRestraint self, TripletScore f, _TripletContainerAdaptor c, unsigned int n=1, std::string name="MinimumTripletRestraint %1%") -> MinimumTripletRestraint"""
2164  _IMP_container.MinimumTripletRestraint_swiginit(self, _IMP_container.new_MinimumTripletRestraint(*args))
2165 
2166  def do_get_inputs(self):
2167  r"""do_get_inputs(MinimumTripletRestraint self) -> IMP::ModelObjectsTemp"""
2168  return _IMP_container.MinimumTripletRestraint_do_get_inputs(self)
2169 
2170  def get_version_info(self):
2171  r"""get_version_info(MinimumTripletRestraint self) -> VersionInfo"""
2172  return _IMP_container.MinimumTripletRestraint_get_version_info(self)
2173  __swig_destroy__ = _IMP_container.delete_MinimumTripletRestraint
2174 
2175  def set_n(self, n):
2176  r"""set_n(MinimumTripletRestraint self, unsigned int n)"""
2177  return _IMP_container.MinimumTripletRestraint_set_n(self, n)
2178 
2179  def do_create_current_decomposition(self):
2180  r"""do_create_current_decomposition(MinimumTripletRestraint self) -> IMP::Restraints"""
2181  return _IMP_container.MinimumTripletRestraint_do_create_current_decomposition(self)
2182 
2183  def __str__(self):
2184  r"""__str__(MinimumTripletRestraint self) -> std::string"""
2185  return _IMP_container.MinimumTripletRestraint___str__(self)
2186 
2187  def __repr__(self):
2188  r"""__repr__(MinimumTripletRestraint self) -> std::string"""
2189  return _IMP_container.MinimumTripletRestraint___repr__(self)
2190 
2191  @staticmethod
2192  def get_from(o):
2193  return _object_cast_to_MinimumTripletRestraint(o)
2194 
2195 
2196 # Register MinimumTripletRestraint in _IMP_container:
2197 _IMP_container.MinimumTripletRestraint_swigregister(MinimumTripletRestraint)
2198 class MinimumTripletScore(IMP.TripletScore):
2199  r"""Proxy of C++ IMP::container::MinimumTripletScore class."""
2200 
2201  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2202 
2203  def __init__(self, *args):
2204  r"""__init__(MinimumTripletScore self, IMP::TripletScoresTemp const & scores, unsigned int n=1, std::string name="TripletScore %1%") -> MinimumTripletScore"""
2205  _IMP_container.MinimumTripletScore_swiginit(self, _IMP_container.new_MinimumTripletScore(*args))
2206 
2207  def do_get_inputs(self, m, pis):
2208  r"""do_get_inputs(MinimumTripletScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
2209  return _IMP_container.MinimumTripletScore_do_get_inputs(self, m, pis)
2210 
2211  def get_version_info(self):
2212  r"""get_version_info(MinimumTripletScore self) -> VersionInfo"""
2213  return _IMP_container.MinimumTripletScore_get_version_info(self)
2214  __swig_destroy__ = _IMP_container.delete_MinimumTripletScore
2215 
2216  def do_create_current_decomposition(self, m, vt):
2217  r"""do_create_current_decomposition(MinimumTripletScore self, Model m, IMP::ParticleIndexTriplet const & vt) -> IMP::Restraints"""
2218  return _IMP_container.MinimumTripletScore_do_create_current_decomposition(self, m, vt)
2219 
2220  def __str__(self):
2221  r"""__str__(MinimumTripletScore self) -> std::string"""
2222  return _IMP_container.MinimumTripletScore___str__(self)
2223 
2224  def __repr__(self):
2225  r"""__repr__(MinimumTripletScore self) -> std::string"""
2226  return _IMP_container.MinimumTripletScore___repr__(self)
2227 
2228  @staticmethod
2229  def get_from(o):
2230  return _object_cast_to_MinimumTripletScore(o)
2231 
2232 
2233 # Register MinimumTripletScore in _IMP_container:
2234 _IMP_container.MinimumTripletScore_swigregister(MinimumTripletScore)
2235 class PairContainerSet(IMP.PairContainer):
2236  r"""Proxy of C++ IMP::container::PairContainerSet class."""
2237 
2238  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2239 
2240  def __init__(self, *args):
2241  r"""
2242  __init__(PairContainerSet self, Model m, std::string name="PairContainerSet %1%") -> PairContainerSet
2243  __init__(PairContainerSet self, IMP::PairContainersTemp const & pc, std::string name="PairContainerSet %1%") -> PairContainerSet
2244  """
2245  _IMP_container.PairContainerSet_swiginit(self, _IMP_container.new_PairContainerSet(*args))
2246 
2247  def do_apply(self, sm):
2248  r"""do_apply(PairContainerSet self, PairModifier sm)"""
2249  return _IMP_container.PairContainerSet_do_apply(self, sm)
2250 
2251  def do_apply_moved(self, sm, moved_pis, reset_pis):
2252  r"""do_apply_moved(PairContainerSet self, PairModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
2253  return _IMP_container.PairContainerSet_do_apply_moved(self, sm, moved_pis, reset_pis)
2254 
2255  def get_version_info(self):
2256  r"""get_version_info(PairContainerSet self) -> VersionInfo"""
2257  return _IMP_container.PairContainerSet_get_version_info(self)
2258  __swig_destroy__ = _IMP_container.delete_PairContainerSet
2259  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)
2260  def __set_pair_containers(self, obj): IMP._list_util.set_varlist(self.pair_containers, obj)
2261  def __del_pair_containers(self): IMP._list_util.del_varlist(self.pair_containers)
2262  pair_containers = property(__get_pair_containers, __set_pair_containers, __del_pair_containers, doc="List of ##ucnames")
2263 
2264  def remove_pair_container(self, d):
2265  r"""remove_pair_container(PairContainerSet self, PairContainer d)"""
2266  return _IMP_container.PairContainerSet_remove_pair_container(self, d)
2267 
2268  def _python_index_pair_container(self, d, start, stop):
2269  r"""_python_index_pair_container(PairContainerSet self, PairContainer d, unsigned int start, unsigned int stop) -> unsigned int"""
2270  return _IMP_container.PairContainerSet__python_index_pair_container(self, d, start, stop)
2271 
2272  def remove_pair_containers(self, d):
2273  r"""remove_pair_containers(PairContainerSet self, IMP::PairContainers const & d)"""
2274  return _IMP_container.PairContainerSet_remove_pair_containers(self, d)
2275 
2276  def set_pair_containers(self, ps):
2277  r"""set_pair_containers(PairContainerSet self, IMP::PairContainers const & ps)"""
2278  return _IMP_container.PairContainerSet_set_pair_containers(self, ps)
2279 
2280  def set_pair_containers_order(self, objs):
2281  r"""set_pair_containers_order(PairContainerSet self, IMP::PairContainers const & objs)"""
2282  return _IMP_container.PairContainerSet_set_pair_containers_order(self, objs)
2283 
2284  def add_pair_container(self, obj):
2285  r"""add_pair_container(PairContainerSet self, PairContainer obj) -> unsigned int"""
2286  return _IMP_container.PairContainerSet_add_pair_container(self, obj)
2287 
2288  def add_pair_containers(self, objs):
2289  r"""add_pair_containers(PairContainerSet self, IMP::PairContainers const & objs)"""
2290  return _IMP_container.PairContainerSet_add_pair_containers(self, objs)
2291 
2292  def clear_pair_containers(self):
2293  r"""clear_pair_containers(PairContainerSet self)"""
2294  return _IMP_container.PairContainerSet_clear_pair_containers(self)
2295 
2296  def get_number_of_pair_containers(self):
2297  r"""get_number_of_pair_containers(PairContainerSet self) -> unsigned int"""
2298  return _IMP_container.PairContainerSet_get_number_of_pair_containers(self)
2299 
2300  def get_has_pair_containers(self):
2301  r"""get_has_pair_containers(PairContainerSet self) -> bool"""
2302  return _IMP_container.PairContainerSet_get_has_pair_containers(self)
2303 
2304  def get_pair_container(self, i):
2305  r"""get_pair_container(PairContainerSet self, unsigned int i) -> PairContainer"""
2306  return _IMP_container.PairContainerSet_get_pair_container(self, i)
2307 
2308  def get_pair_containers(self):
2309  r"""get_pair_containers(PairContainerSet self) -> IMP::PairContainers"""
2310  return _IMP_container.PairContainerSet_get_pair_containers(self)
2311 
2312  def erase_pair_container(self, i):
2313  r"""erase_pair_container(PairContainerSet self, unsigned int i)"""
2314  return _IMP_container.PairContainerSet_erase_pair_container(self, i)
2315 
2316  def reserve_pair_containers(self, sz):
2317  r"""reserve_pair_containers(PairContainerSet self, unsigned int sz)"""
2318  return _IMP_container.PairContainerSet_reserve_pair_containers(self, sz)
2319 
2320  def do_get_inputs(self):
2321  r"""do_get_inputs(PairContainerSet self) -> IMP::ModelObjectsTemp"""
2322  return _IMP_container.PairContainerSet_do_get_inputs(self)
2323 
2324  def __str__(self):
2325  r"""__str__(PairContainerSet self) -> std::string"""
2326  return _IMP_container.PairContainerSet___str__(self)
2327 
2328  def __repr__(self):
2329  r"""__repr__(PairContainerSet self) -> std::string"""
2330  return _IMP_container.PairContainerSet___repr__(self)
2331 
2332  @staticmethod
2333  def get_from(o):
2334  return _object_cast_to_PairContainerSet(o)
2335 
2336 
2337 # Register PairContainerSet in _IMP_container:
2338 _IMP_container.PairContainerSet_swigregister(PairContainerSet)
2339 class PairsConstraint(IMP.Constraint):
2340  r"""Proxy of C++ IMP::container::PairsConstraint class."""
2341 
2342  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2343 
2344  def __init__(self, *args):
2345  r"""
2346  __init__(PairsConstraint self, PairModifier before, PairModifier after, _PairContainerAdaptor c, std::string name="PairsConstraint %1%") -> PairsConstraint
2347  __init__(PairsConstraint self) -> PairsConstraint
2348  """
2349  _IMP_container.PairsConstraint_swiginit(self, _IMP_container.new_PairsConstraint(*args))
2350 
2351  def get_version_info(self):
2352  r"""get_version_info(PairsConstraint self) -> VersionInfo"""
2353  return _IMP_container.PairsConstraint_get_version_info(self)
2354  __swig_destroy__ = _IMP_container.delete_PairsConstraint
2355 
2356  def __str__(self):
2357  r"""__str__(PairsConstraint self) -> std::string"""
2358  return _IMP_container.PairsConstraint___str__(self)
2359 
2360  def __repr__(self):
2361  r"""__repr__(PairsConstraint self) -> std::string"""
2362  return _IMP_container.PairsConstraint___repr__(self)
2363 
2364  @staticmethod
2365  def get_from(o):
2366  return _object_cast_to_PairsConstraint(o)
2367 
2368 
2369  def _get_as_binary(self):
2370  r"""_get_as_binary(PairsConstraint self) -> PyObject *"""
2371  return _IMP_container.PairsConstraint__get_as_binary(self)
2372 
2373  def _set_from_binary(self, p):
2374  r"""_set_from_binary(PairsConstraint self, PyObject * p)"""
2375  return _IMP_container.PairsConstraint__set_from_binary(self, p)
2376 
2377  def __getstate__(self):
2378  p = self._get_as_binary()
2379  if len(self.__dict__) > 1:
2380  d = self.__dict__.copy()
2381  del d['this']
2382  p = (d, p)
2383  return p
2384 
2385  def __setstate__(self, p):
2386  if not hasattr(self, 'this'):
2387  self.__init__()
2388  if isinstance(p, tuple):
2389  d, p = p
2390  self.__dict__.update(d)
2391  return self._set_from_binary(p)
2392 
2393 
2394 # Register PairsConstraint in _IMP_container:
2395 _IMP_container.PairsConstraint_swigregister(PairsConstraint)
2396 class PairsOptimizerState(IMP.OptimizerState):
2397  r"""Proxy of C++ IMP::container::PairsOptimizerState class."""
2398 
2399  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2400 
2401  def __init__(self, *args):
2402  r"""__init__(PairsOptimizerState self, _PairContainerAdaptor c, PairModifier gf, std::string name="PairsOptimizerState %1%") -> PairsOptimizerState"""
2403  _IMP_container.PairsOptimizerState_swiginit(self, _IMP_container.new_PairsOptimizerState(*args))
2404 
2405  def do_update(self, call):
2406  r"""do_update(PairsOptimizerState self, unsigned int call)"""
2407  return _IMP_container.PairsOptimizerState_do_update(self, call)
2408 
2409  def get_version_info(self):
2410  r"""get_version_info(PairsOptimizerState self) -> VersionInfo"""
2411  return _IMP_container.PairsOptimizerState_get_version_info(self)
2412  __swig_destroy__ = _IMP_container.delete_PairsOptimizerState
2413 
2414  def __str__(self):
2415  r"""__str__(PairsOptimizerState self) -> std::string"""
2416  return _IMP_container.PairsOptimizerState___str__(self)
2417 
2418  def __repr__(self):
2419  r"""__repr__(PairsOptimizerState self) -> std::string"""
2420  return _IMP_container.PairsOptimizerState___repr__(self)
2421 
2422  @staticmethod
2423  def get_from(o):
2424  return _object_cast_to_PairsOptimizerState(o)
2425 
2426 
2427 # Register PairsOptimizerState in _IMP_container:
2428 _IMP_container.PairsOptimizerState_swigregister(PairsOptimizerState)
2429 class PairsRestraint(IMP.Restraint):
2430  r"""Proxy of C++ IMP::container::PairsRestraint class."""
2431 
2432  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2433 
2434  def __init__(self, *args):
2435  r"""
2436  __init__(PairsRestraint self, PairScore ss, _PairContainerAdaptor pc, std::string name="PairsRestraint %1%") -> PairsRestraint
2437  __init__(PairsRestraint self) -> PairsRestraint
2438  """
2439  _IMP_container.PairsRestraint_swiginit(self, _IMP_container.new_PairsRestraint(*args))
2440 
2441  def do_get_inputs(self):
2442  r"""do_get_inputs(PairsRestraint self) -> IMP::ModelObjectsTemp"""
2443  return _IMP_container.PairsRestraint_do_get_inputs(self)
2444 
2445  def get_version_info(self):
2446  r"""get_version_info(PairsRestraint self) -> VersionInfo"""
2447  return _IMP_container.PairsRestraint_get_version_info(self)
2448  __swig_destroy__ = _IMP_container.delete_PairsRestraint
2449 
2450  def __str__(self):
2451  r"""__str__(PairsRestraint self) -> std::string"""
2452  return _IMP_container.PairsRestraint___str__(self)
2453 
2454  def __repr__(self):
2455  r"""__repr__(PairsRestraint self) -> std::string"""
2456  return _IMP_container.PairsRestraint___repr__(self)
2457 
2458  @staticmethod
2459  def get_from(o):
2460  return _object_cast_to_PairsRestraint(o)
2461 
2462 
2463  def _get_as_binary(self):
2464  r"""_get_as_binary(PairsRestraint self) -> PyObject *"""
2465  return _IMP_container.PairsRestraint__get_as_binary(self)
2466 
2467  def _set_from_binary(self, p):
2468  r"""_set_from_binary(PairsRestraint self, PyObject * p)"""
2469  return _IMP_container.PairsRestraint__set_from_binary(self, p)
2470 
2471  def __getstate__(self):
2472  p = self._get_as_binary()
2473  if len(self.__dict__) > 1:
2474  d = self.__dict__.copy()
2475  del d['this']
2476  p = (d, p)
2477  return p
2478 
2479  def __setstate__(self, p):
2480  if not hasattr(self, 'this'):
2481  self.__init__()
2482  if isinstance(p, tuple):
2483  d, p = p
2484  self.__dict__.update(d)
2485  return self._set_from_binary(p)
2486 
2487 
2488 # Register PairsRestraint in _IMP_container:
2489 _IMP_container.PairsRestraint_swigregister(PairsRestraint)
2490 class QuadContainerSet(IMP.QuadContainer):
2491  r"""Proxy of C++ IMP::container::QuadContainerSet class."""
2492 
2493  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2494 
2495  def __init__(self, *args):
2496  r"""
2497  __init__(QuadContainerSet self, Model m, std::string name="QuadContainerSet %1%") -> QuadContainerSet
2498  __init__(QuadContainerSet self, IMP::QuadContainersTemp const & pc, std::string name="QuadContainerSet %1%") -> QuadContainerSet
2499  """
2500  _IMP_container.QuadContainerSet_swiginit(self, _IMP_container.new_QuadContainerSet(*args))
2501 
2502  def do_apply(self, sm):
2503  r"""do_apply(QuadContainerSet self, QuadModifier sm)"""
2504  return _IMP_container.QuadContainerSet_do_apply(self, sm)
2505 
2506  def do_apply_moved(self, sm, moved_pis, reset_pis):
2507  r"""do_apply_moved(QuadContainerSet self, QuadModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
2508  return _IMP_container.QuadContainerSet_do_apply_moved(self, sm, moved_pis, reset_pis)
2509 
2510  def get_version_info(self):
2511  r"""get_version_info(QuadContainerSet self) -> VersionInfo"""
2512  return _IMP_container.QuadContainerSet_get_version_info(self)
2513  __swig_destroy__ = _IMP_container.delete_QuadContainerSet
2514  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)
2515  def __set_quad_containers(self, obj): IMP._list_util.set_varlist(self.quad_containers, obj)
2516  def __del_quad_containers(self): IMP._list_util.del_varlist(self.quad_containers)
2517  quad_containers = property(__get_quad_containers, __set_quad_containers, __del_quad_containers, doc="List of ##ucnames")
2518 
2519  def remove_quad_container(self, d):
2520  r"""remove_quad_container(QuadContainerSet self, QuadContainer d)"""
2521  return _IMP_container.QuadContainerSet_remove_quad_container(self, d)
2522 
2523  def _python_index_quad_container(self, d, start, stop):
2524  r"""_python_index_quad_container(QuadContainerSet self, QuadContainer d, unsigned int start, unsigned int stop) -> unsigned int"""
2525  return _IMP_container.QuadContainerSet__python_index_quad_container(self, d, start, stop)
2526 
2527  def remove_quad_containers(self, d):
2528  r"""remove_quad_containers(QuadContainerSet self, IMP::QuadContainers const & d)"""
2529  return _IMP_container.QuadContainerSet_remove_quad_containers(self, d)
2530 
2531  def set_quad_containers(self, ps):
2532  r"""set_quad_containers(QuadContainerSet self, IMP::QuadContainers const & ps)"""
2533  return _IMP_container.QuadContainerSet_set_quad_containers(self, ps)
2534 
2535  def set_quad_containers_order(self, objs):
2536  r"""set_quad_containers_order(QuadContainerSet self, IMP::QuadContainers const & objs)"""
2537  return _IMP_container.QuadContainerSet_set_quad_containers_order(self, objs)
2538 
2539  def add_quad_container(self, obj):
2540  r"""add_quad_container(QuadContainerSet self, QuadContainer obj) -> unsigned int"""
2541  return _IMP_container.QuadContainerSet_add_quad_container(self, obj)
2542 
2543  def add_quad_containers(self, objs):
2544  r"""add_quad_containers(QuadContainerSet self, IMP::QuadContainers const & objs)"""
2545  return _IMP_container.QuadContainerSet_add_quad_containers(self, objs)
2546 
2547  def clear_quad_containers(self):
2548  r"""clear_quad_containers(QuadContainerSet self)"""
2549  return _IMP_container.QuadContainerSet_clear_quad_containers(self)
2550 
2551  def get_number_of_quad_containers(self):
2552  r"""get_number_of_quad_containers(QuadContainerSet self) -> unsigned int"""
2553  return _IMP_container.QuadContainerSet_get_number_of_quad_containers(self)
2554 
2555  def get_has_quad_containers(self):
2556  r"""get_has_quad_containers(QuadContainerSet self) -> bool"""
2557  return _IMP_container.QuadContainerSet_get_has_quad_containers(self)
2558 
2559  def get_quad_container(self, i):
2560  r"""get_quad_container(QuadContainerSet self, unsigned int i) -> QuadContainer"""
2561  return _IMP_container.QuadContainerSet_get_quad_container(self, i)
2562 
2563  def get_quad_containers(self):
2564  r"""get_quad_containers(QuadContainerSet self) -> IMP::QuadContainers"""
2565  return _IMP_container.QuadContainerSet_get_quad_containers(self)
2566 
2567  def erase_quad_container(self, i):
2568  r"""erase_quad_container(QuadContainerSet self, unsigned int i)"""
2569  return _IMP_container.QuadContainerSet_erase_quad_container(self, i)
2570 
2571  def reserve_quad_containers(self, sz):
2572  r"""reserve_quad_containers(QuadContainerSet self, unsigned int sz)"""
2573  return _IMP_container.QuadContainerSet_reserve_quad_containers(self, sz)
2574 
2575  def do_get_inputs(self):
2576  r"""do_get_inputs(QuadContainerSet self) -> IMP::ModelObjectsTemp"""
2577  return _IMP_container.QuadContainerSet_do_get_inputs(self)
2578 
2579  def __str__(self):
2580  r"""__str__(QuadContainerSet self) -> std::string"""
2581  return _IMP_container.QuadContainerSet___str__(self)
2582 
2583  def __repr__(self):
2584  r"""__repr__(QuadContainerSet self) -> std::string"""
2585  return _IMP_container.QuadContainerSet___repr__(self)
2586 
2587  @staticmethod
2588  def get_from(o):
2589  return _object_cast_to_QuadContainerSet(o)
2590 
2591 
2592 # Register QuadContainerSet in _IMP_container:
2593 _IMP_container.QuadContainerSet_swigregister(QuadContainerSet)
2594 class QuadsConstraint(IMP.Constraint):
2595  r"""Proxy of C++ IMP::container::QuadsConstraint class."""
2596 
2597  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2598 
2599  def __init__(self, *args):
2600  r"""
2601  __init__(QuadsConstraint self, QuadModifier before, QuadModifier after, _QuadContainerAdaptor c, std::string name="QuadsConstraint %1%") -> QuadsConstraint
2602  __init__(QuadsConstraint self) -> QuadsConstraint
2603  """
2604  _IMP_container.QuadsConstraint_swiginit(self, _IMP_container.new_QuadsConstraint(*args))
2605 
2606  def get_version_info(self):
2607  r"""get_version_info(QuadsConstraint self) -> VersionInfo"""
2608  return _IMP_container.QuadsConstraint_get_version_info(self)
2609  __swig_destroy__ = _IMP_container.delete_QuadsConstraint
2610 
2611  def __str__(self):
2612  r"""__str__(QuadsConstraint self) -> std::string"""
2613  return _IMP_container.QuadsConstraint___str__(self)
2614 
2615  def __repr__(self):
2616  r"""__repr__(QuadsConstraint self) -> std::string"""
2617  return _IMP_container.QuadsConstraint___repr__(self)
2618 
2619  @staticmethod
2620  def get_from(o):
2621  return _object_cast_to_QuadsConstraint(o)
2622 
2623 
2624  def _get_as_binary(self):
2625  r"""_get_as_binary(QuadsConstraint self) -> PyObject *"""
2626  return _IMP_container.QuadsConstraint__get_as_binary(self)
2627 
2628  def _set_from_binary(self, p):
2629  r"""_set_from_binary(QuadsConstraint self, PyObject * p)"""
2630  return _IMP_container.QuadsConstraint__set_from_binary(self, p)
2631 
2632  def __getstate__(self):
2633  p = self._get_as_binary()
2634  if len(self.__dict__) > 1:
2635  d = self.__dict__.copy()
2636  del d['this']
2637  p = (d, p)
2638  return p
2639 
2640  def __setstate__(self, p):
2641  if not hasattr(self, 'this'):
2642  self.__init__()
2643  if isinstance(p, tuple):
2644  d, p = p
2645  self.__dict__.update(d)
2646  return self._set_from_binary(p)
2647 
2648 
2649 # Register QuadsConstraint in _IMP_container:
2650 _IMP_container.QuadsConstraint_swigregister(QuadsConstraint)
2651 class QuadsOptimizerState(IMP.OptimizerState):
2652  r"""Proxy of C++ IMP::container::QuadsOptimizerState class."""
2653 
2654  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2655 
2656  def __init__(self, *args):
2657  r"""__init__(QuadsOptimizerState self, _QuadContainerAdaptor c, QuadModifier gf, std::string name="QuadsOptimizerState %1%") -> QuadsOptimizerState"""
2658  _IMP_container.QuadsOptimizerState_swiginit(self, _IMP_container.new_QuadsOptimizerState(*args))
2659 
2660  def do_update(self, call):
2661  r"""do_update(QuadsOptimizerState self, unsigned int call)"""
2662  return _IMP_container.QuadsOptimizerState_do_update(self, call)
2663 
2664  def get_version_info(self):
2665  r"""get_version_info(QuadsOptimizerState self) -> VersionInfo"""
2666  return _IMP_container.QuadsOptimizerState_get_version_info(self)
2667  __swig_destroy__ = _IMP_container.delete_QuadsOptimizerState
2668 
2669  def __str__(self):
2670  r"""__str__(QuadsOptimizerState self) -> std::string"""
2671  return _IMP_container.QuadsOptimizerState___str__(self)
2672 
2673  def __repr__(self):
2674  r"""__repr__(QuadsOptimizerState self) -> std::string"""
2675  return _IMP_container.QuadsOptimizerState___repr__(self)
2676 
2677  @staticmethod
2678  def get_from(o):
2679  return _object_cast_to_QuadsOptimizerState(o)
2680 
2681 
2682 # Register QuadsOptimizerState in _IMP_container:
2683 _IMP_container.QuadsOptimizerState_swigregister(QuadsOptimizerState)
2684 class QuadsRestraint(IMP.Restraint):
2685  r"""Proxy of C++ IMP::container::QuadsRestraint class."""
2686 
2687  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2688 
2689  def __init__(self, *args):
2690  r"""
2691  __init__(QuadsRestraint self, QuadScore ss, _QuadContainerAdaptor pc, std::string name="QuadsRestraint %1%") -> QuadsRestraint
2692  __init__(QuadsRestraint self) -> QuadsRestraint
2693  """
2694  _IMP_container.QuadsRestraint_swiginit(self, _IMP_container.new_QuadsRestraint(*args))
2695 
2696  def do_get_inputs(self):
2697  r"""do_get_inputs(QuadsRestraint self) -> IMP::ModelObjectsTemp"""
2698  return _IMP_container.QuadsRestraint_do_get_inputs(self)
2699 
2700  def get_version_info(self):
2701  r"""get_version_info(QuadsRestraint self) -> VersionInfo"""
2702  return _IMP_container.QuadsRestraint_get_version_info(self)
2703  __swig_destroy__ = _IMP_container.delete_QuadsRestraint
2704 
2705  def __str__(self):
2706  r"""__str__(QuadsRestraint self) -> std::string"""
2707  return _IMP_container.QuadsRestraint___str__(self)
2708 
2709  def __repr__(self):
2710  r"""__repr__(QuadsRestraint self) -> std::string"""
2711  return _IMP_container.QuadsRestraint___repr__(self)
2712 
2713  @staticmethod
2714  def get_from(o):
2715  return _object_cast_to_QuadsRestraint(o)
2716 
2717 
2718  def _get_as_binary(self):
2719  r"""_get_as_binary(QuadsRestraint self) -> PyObject *"""
2720  return _IMP_container.QuadsRestraint__get_as_binary(self)
2721 
2722  def _set_from_binary(self, p):
2723  r"""_set_from_binary(QuadsRestraint self, PyObject * p)"""
2724  return _IMP_container.QuadsRestraint__set_from_binary(self, p)
2725 
2726  def __getstate__(self):
2727  p = self._get_as_binary()
2728  if len(self.__dict__) > 1:
2729  d = self.__dict__.copy()
2730  del d['this']
2731  p = (d, p)
2732  return p
2733 
2734  def __setstate__(self, p):
2735  if not hasattr(self, 'this'):
2736  self.__init__()
2737  if isinstance(p, tuple):
2738  d, p = p
2739  self.__dict__.update(d)
2740  return self._set_from_binary(p)
2741 
2742 
2743 # Register QuadsRestraint in _IMP_container:
2744 _IMP_container.QuadsRestraint_swigregister(QuadsRestraint)
2745 class SingletonContainerSet(IMP.SingletonContainer):
2746  r"""Proxy of C++ IMP::container::SingletonContainerSet class."""
2747 
2748  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2749 
2750  def __init__(self, *args):
2751  r"""
2752  __init__(SingletonContainerSet self, Model m, std::string name="SingletonContainerSet %1%") -> SingletonContainerSet
2753  __init__(SingletonContainerSet self, IMP::SingletonContainersTemp const & pc, std::string name="SingletonContainerSet %1%") -> SingletonContainerSet
2754  """
2755  _IMP_container.SingletonContainerSet_swiginit(self, _IMP_container.new_SingletonContainerSet(*args))
2756 
2757  def do_apply(self, sm):
2758  r"""do_apply(SingletonContainerSet self, SingletonModifier sm)"""
2759  return _IMP_container.SingletonContainerSet_do_apply(self, sm)
2760 
2761  def do_apply_moved(self, sm, moved_pis, reset_pis):
2762  r"""do_apply_moved(SingletonContainerSet self, SingletonModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
2763  return _IMP_container.SingletonContainerSet_do_apply_moved(self, sm, moved_pis, reset_pis)
2764 
2765  def get_version_info(self):
2766  r"""get_version_info(SingletonContainerSet self) -> VersionInfo"""
2767  return _IMP_container.SingletonContainerSet_get_version_info(self)
2768  __swig_destroy__ = _IMP_container.delete_SingletonContainerSet
2769  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)
2770  def __set_singleton_containers(self, obj): IMP._list_util.set_varlist(self.singleton_containers, obj)
2771  def __del_singleton_containers(self): IMP._list_util.del_varlist(self.singleton_containers)
2772  singleton_containers = property(__get_singleton_containers, __set_singleton_containers, __del_singleton_containers, doc="List of ##ucnames")
2773 
2774  def remove_singleton_container(self, d):
2775  r"""remove_singleton_container(SingletonContainerSet self, SingletonContainer d)"""
2776  return _IMP_container.SingletonContainerSet_remove_singleton_container(self, d)
2777 
2778  def _python_index_singleton_container(self, d, start, stop):
2779  r"""_python_index_singleton_container(SingletonContainerSet self, SingletonContainer d, unsigned int start, unsigned int stop) -> unsigned int"""
2780  return _IMP_container.SingletonContainerSet__python_index_singleton_container(self, d, start, stop)
2781 
2782  def remove_singleton_containers(self, d):
2783  r"""remove_singleton_containers(SingletonContainerSet self, IMP::SingletonContainers const & d)"""
2784  return _IMP_container.SingletonContainerSet_remove_singleton_containers(self, d)
2785 
2786  def set_singleton_containers(self, ps):
2787  r"""set_singleton_containers(SingletonContainerSet self, IMP::SingletonContainers const & ps)"""
2788  return _IMP_container.SingletonContainerSet_set_singleton_containers(self, ps)
2789 
2790  def set_singleton_containers_order(self, objs):
2791  r"""set_singleton_containers_order(SingletonContainerSet self, IMP::SingletonContainers const & objs)"""
2792  return _IMP_container.SingletonContainerSet_set_singleton_containers_order(self, objs)
2793 
2794  def add_singleton_container(self, obj):
2795  r"""add_singleton_container(SingletonContainerSet self, SingletonContainer obj) -> unsigned int"""
2796  return _IMP_container.SingletonContainerSet_add_singleton_container(self, obj)
2797 
2798  def add_singleton_containers(self, objs):
2799  r"""add_singleton_containers(SingletonContainerSet self, IMP::SingletonContainers const & objs)"""
2800  return _IMP_container.SingletonContainerSet_add_singleton_containers(self, objs)
2801 
2802  def clear_singleton_containers(self):
2803  r"""clear_singleton_containers(SingletonContainerSet self)"""
2804  return _IMP_container.SingletonContainerSet_clear_singleton_containers(self)
2805 
2806  def get_number_of_singleton_containers(self):
2807  r"""get_number_of_singleton_containers(SingletonContainerSet self) -> unsigned int"""
2808  return _IMP_container.SingletonContainerSet_get_number_of_singleton_containers(self)
2809 
2810  def get_has_singleton_containers(self):
2811  r"""get_has_singleton_containers(SingletonContainerSet self) -> bool"""
2812  return _IMP_container.SingletonContainerSet_get_has_singleton_containers(self)
2813 
2814  def get_singleton_container(self, i):
2815  r"""get_singleton_container(SingletonContainerSet self, unsigned int i) -> SingletonContainer"""
2816  return _IMP_container.SingletonContainerSet_get_singleton_container(self, i)
2817 
2818  def get_singleton_containers(self):
2819  r"""get_singleton_containers(SingletonContainerSet self) -> IMP::SingletonContainers"""
2820  return _IMP_container.SingletonContainerSet_get_singleton_containers(self)
2821 
2822  def erase_singleton_container(self, i):
2823  r"""erase_singleton_container(SingletonContainerSet self, unsigned int i)"""
2824  return _IMP_container.SingletonContainerSet_erase_singleton_container(self, i)
2825 
2826  def reserve_singleton_containers(self, sz):
2827  r"""reserve_singleton_containers(SingletonContainerSet self, unsigned int sz)"""
2828  return _IMP_container.SingletonContainerSet_reserve_singleton_containers(self, sz)
2829 
2830  def do_get_inputs(self):
2831  r"""do_get_inputs(SingletonContainerSet self) -> IMP::ModelObjectsTemp"""
2832  return _IMP_container.SingletonContainerSet_do_get_inputs(self)
2833 
2834  def __str__(self):
2835  r"""__str__(SingletonContainerSet self) -> std::string"""
2836  return _IMP_container.SingletonContainerSet___str__(self)
2837 
2838  def __repr__(self):
2839  r"""__repr__(SingletonContainerSet self) -> std::string"""
2840  return _IMP_container.SingletonContainerSet___repr__(self)
2841 
2842  @staticmethod
2843  def get_from(o):
2844  return _object_cast_to_SingletonContainerSet(o)
2845 
2846 
2847 # Register SingletonContainerSet in _IMP_container:
2848 _IMP_container.SingletonContainerSet_swigregister(SingletonContainerSet)
2849 class SingletonsConstraint(IMP.Constraint):
2850  r"""Proxy of C++ IMP::container::SingletonsConstraint class."""
2851 
2852  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2853 
2854  def __init__(self, *args):
2855  r"""
2856  __init__(SingletonsConstraint self, SingletonModifier before, SingletonModifier after, _SingletonContainerAdaptor c, std::string name="SingletonsConstraint %1%") -> SingletonsConstraint
2857  __init__(SingletonsConstraint self) -> SingletonsConstraint
2858  """
2859  _IMP_container.SingletonsConstraint_swiginit(self, _IMP_container.new_SingletonsConstraint(*args))
2860 
2861  def get_version_info(self):
2862  r"""get_version_info(SingletonsConstraint self) -> VersionInfo"""
2863  return _IMP_container.SingletonsConstraint_get_version_info(self)
2864  __swig_destroy__ = _IMP_container.delete_SingletonsConstraint
2865 
2866  def __str__(self):
2867  r"""__str__(SingletonsConstraint self) -> std::string"""
2868  return _IMP_container.SingletonsConstraint___str__(self)
2869 
2870  def __repr__(self):
2871  r"""__repr__(SingletonsConstraint self) -> std::string"""
2872  return _IMP_container.SingletonsConstraint___repr__(self)
2873 
2874  @staticmethod
2875  def get_from(o):
2876  return _object_cast_to_SingletonsConstraint(o)
2877 
2878 
2879  def _get_as_binary(self):
2880  r"""_get_as_binary(SingletonsConstraint self) -> PyObject *"""
2881  return _IMP_container.SingletonsConstraint__get_as_binary(self)
2882 
2883  def _set_from_binary(self, p):
2884  r"""_set_from_binary(SingletonsConstraint self, PyObject * p)"""
2885  return _IMP_container.SingletonsConstraint__set_from_binary(self, p)
2886 
2887  def __getstate__(self):
2888  p = self._get_as_binary()
2889  if len(self.__dict__) > 1:
2890  d = self.__dict__.copy()
2891  del d['this']
2892  p = (d, p)
2893  return p
2894 
2895  def __setstate__(self, p):
2896  if not hasattr(self, 'this'):
2897  self.__init__()
2898  if isinstance(p, tuple):
2899  d, p = p
2900  self.__dict__.update(d)
2901  return self._set_from_binary(p)
2902 
2903 
2904 # Register SingletonsConstraint in _IMP_container:
2905 _IMP_container.SingletonsConstraint_swigregister(SingletonsConstraint)
2906 class SingletonsOptimizerState(IMP.OptimizerState):
2907  r"""Proxy of C++ IMP::container::SingletonsOptimizerState class."""
2908 
2909  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2910 
2911  def __init__(self, *args):
2912  r"""__init__(SingletonsOptimizerState self, _SingletonContainerAdaptor c, SingletonModifier gf, std::string name="SingletonsOptimizerState %1%") -> SingletonsOptimizerState"""
2913  _IMP_container.SingletonsOptimizerState_swiginit(self, _IMP_container.new_SingletonsOptimizerState(*args))
2914 
2915  def do_update(self, call):
2916  r"""do_update(SingletonsOptimizerState self, unsigned int call)"""
2917  return _IMP_container.SingletonsOptimizerState_do_update(self, call)
2918 
2919  def get_version_info(self):
2920  r"""get_version_info(SingletonsOptimizerState self) -> VersionInfo"""
2921  return _IMP_container.SingletonsOptimizerState_get_version_info(self)
2922  __swig_destroy__ = _IMP_container.delete_SingletonsOptimizerState
2923 
2924  def __str__(self):
2925  r"""__str__(SingletonsOptimizerState self) -> std::string"""
2926  return _IMP_container.SingletonsOptimizerState___str__(self)
2927 
2928  def __repr__(self):
2929  r"""__repr__(SingletonsOptimizerState self) -> std::string"""
2930  return _IMP_container.SingletonsOptimizerState___repr__(self)
2931 
2932  @staticmethod
2933  def get_from(o):
2934  return _object_cast_to_SingletonsOptimizerState(o)
2935 
2936 
2937 # Register SingletonsOptimizerState in _IMP_container:
2938 _IMP_container.SingletonsOptimizerState_swigregister(SingletonsOptimizerState)
2939 class SingletonsRestraint(IMP.Restraint):
2940  r"""Proxy of C++ IMP::container::SingletonsRestraint class."""
2941 
2942  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2943 
2944  def __init__(self, *args):
2945  r"""
2946  __init__(SingletonsRestraint self, SingletonScore ss, _SingletonContainerAdaptor pc, std::string name="SingletonsRestraint %1%") -> SingletonsRestraint
2947  __init__(SingletonsRestraint self) -> SingletonsRestraint
2948  """
2949  _IMP_container.SingletonsRestraint_swiginit(self, _IMP_container.new_SingletonsRestraint(*args))
2950 
2951  def do_get_inputs(self):
2952  r"""do_get_inputs(SingletonsRestraint self) -> IMP::ModelObjectsTemp"""
2953  return _IMP_container.SingletonsRestraint_do_get_inputs(self)
2954 
2955  def get_version_info(self):
2956  r"""get_version_info(SingletonsRestraint self) -> VersionInfo"""
2957  return _IMP_container.SingletonsRestraint_get_version_info(self)
2958  __swig_destroy__ = _IMP_container.delete_SingletonsRestraint
2959 
2960  def __str__(self):
2961  r"""__str__(SingletonsRestraint self) -> std::string"""
2962  return _IMP_container.SingletonsRestraint___str__(self)
2963 
2964  def __repr__(self):
2965  r"""__repr__(SingletonsRestraint self) -> std::string"""
2966  return _IMP_container.SingletonsRestraint___repr__(self)
2967 
2968  @staticmethod
2969  def get_from(o):
2970  return _object_cast_to_SingletonsRestraint(o)
2971 
2972 
2973  def _get_as_binary(self):
2974  r"""_get_as_binary(SingletonsRestraint self) -> PyObject *"""
2975  return _IMP_container.SingletonsRestraint__get_as_binary(self)
2976 
2977  def _set_from_binary(self, p):
2978  r"""_set_from_binary(SingletonsRestraint self, PyObject * p)"""
2979  return _IMP_container.SingletonsRestraint__set_from_binary(self, p)
2980 
2981  def __getstate__(self):
2982  p = self._get_as_binary()
2983  if len(self.__dict__) > 1:
2984  d = self.__dict__.copy()
2985  del d['this']
2986  p = (d, p)
2987  return p
2988 
2989  def __setstate__(self, p):
2990  if not hasattr(self, 'this'):
2991  self.__init__()
2992  if isinstance(p, tuple):
2993  d, p = p
2994  self.__dict__.update(d)
2995  return self._set_from_binary(p)
2996 
2997 
2998 # Register SingletonsRestraint in _IMP_container:
2999 _IMP_container.SingletonsRestraint_swigregister(SingletonsRestraint)
3000 class TripletContainerSet(IMP.TripletContainer):
3001  r"""Proxy of C++ IMP::container::TripletContainerSet class."""
3002 
3003  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3004 
3005  def __init__(self, *args):
3006  r"""
3007  __init__(TripletContainerSet self, Model m, std::string name="TripletContainerSet %1%") -> TripletContainerSet
3008  __init__(TripletContainerSet self, IMP::TripletContainersTemp const & pc, std::string name="TripletContainerSet %1%") -> TripletContainerSet
3009  """
3010  _IMP_container.TripletContainerSet_swiginit(self, _IMP_container.new_TripletContainerSet(*args))
3011 
3012  def do_apply(self, sm):
3013  r"""do_apply(TripletContainerSet self, TripletModifier sm)"""
3014  return _IMP_container.TripletContainerSet_do_apply(self, sm)
3015 
3016  def do_apply_moved(self, sm, moved_pis, reset_pis):
3017  r"""do_apply_moved(TripletContainerSet self, TripletModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
3018  return _IMP_container.TripletContainerSet_do_apply_moved(self, sm, moved_pis, reset_pis)
3019 
3020  def get_version_info(self):
3021  r"""get_version_info(TripletContainerSet self) -> VersionInfo"""
3022  return _IMP_container.TripletContainerSet_get_version_info(self)
3023  __swig_destroy__ = _IMP_container.delete_TripletContainerSet
3024  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)
3025  def __set_triplet_containers(self, obj): IMP._list_util.set_varlist(self.triplet_containers, obj)
3026  def __del_triplet_containers(self): IMP._list_util.del_varlist(self.triplet_containers)
3027  triplet_containers = property(__get_triplet_containers, __set_triplet_containers, __del_triplet_containers, doc="List of ##ucnames")
3028 
3029  def remove_triplet_container(self, d):
3030  r"""remove_triplet_container(TripletContainerSet self, TripletContainer d)"""
3031  return _IMP_container.TripletContainerSet_remove_triplet_container(self, d)
3032 
3033  def _python_index_triplet_container(self, d, start, stop):
3034  r"""_python_index_triplet_container(TripletContainerSet self, TripletContainer d, unsigned int start, unsigned int stop) -> unsigned int"""
3035  return _IMP_container.TripletContainerSet__python_index_triplet_container(self, d, start, stop)
3036 
3037  def remove_triplet_containers(self, d):
3038  r"""remove_triplet_containers(TripletContainerSet self, IMP::TripletContainers const & d)"""
3039  return _IMP_container.TripletContainerSet_remove_triplet_containers(self, d)
3040 
3041  def set_triplet_containers(self, ps):
3042  r"""set_triplet_containers(TripletContainerSet self, IMP::TripletContainers const & ps)"""
3043  return _IMP_container.TripletContainerSet_set_triplet_containers(self, ps)
3044 
3045  def set_triplet_containers_order(self, objs):
3046  r"""set_triplet_containers_order(TripletContainerSet self, IMP::TripletContainers const & objs)"""
3047  return _IMP_container.TripletContainerSet_set_triplet_containers_order(self, objs)
3048 
3049  def add_triplet_container(self, obj):
3050  r"""add_triplet_container(TripletContainerSet self, TripletContainer obj) -> unsigned int"""
3051  return _IMP_container.TripletContainerSet_add_triplet_container(self, obj)
3052 
3053  def add_triplet_containers(self, objs):
3054  r"""add_triplet_containers(TripletContainerSet self, IMP::TripletContainers const & objs)"""
3055  return _IMP_container.TripletContainerSet_add_triplet_containers(self, objs)
3056 
3057  def clear_triplet_containers(self):
3058  r"""clear_triplet_containers(TripletContainerSet self)"""
3059  return _IMP_container.TripletContainerSet_clear_triplet_containers(self)
3060 
3061  def get_number_of_triplet_containers(self):
3062  r"""get_number_of_triplet_containers(TripletContainerSet self) -> unsigned int"""
3063  return _IMP_container.TripletContainerSet_get_number_of_triplet_containers(self)
3064 
3065  def get_has_triplet_containers(self):
3066  r"""get_has_triplet_containers(TripletContainerSet self) -> bool"""
3067  return _IMP_container.TripletContainerSet_get_has_triplet_containers(self)
3068 
3069  def get_triplet_container(self, i):
3070  r"""get_triplet_container(TripletContainerSet self, unsigned int i) -> TripletContainer"""
3071  return _IMP_container.TripletContainerSet_get_triplet_container(self, i)
3072 
3073  def get_triplet_containers(self):
3074  r"""get_triplet_containers(TripletContainerSet self) -> IMP::TripletContainers"""
3075  return _IMP_container.TripletContainerSet_get_triplet_containers(self)
3076 
3077  def erase_triplet_container(self, i):
3078  r"""erase_triplet_container(TripletContainerSet self, unsigned int i)"""
3079  return _IMP_container.TripletContainerSet_erase_triplet_container(self, i)
3080 
3081  def reserve_triplet_containers(self, sz):
3082  r"""reserve_triplet_containers(TripletContainerSet self, unsigned int sz)"""
3083  return _IMP_container.TripletContainerSet_reserve_triplet_containers(self, sz)
3084 
3085  def do_get_inputs(self):
3086  r"""do_get_inputs(TripletContainerSet self) -> IMP::ModelObjectsTemp"""
3087  return _IMP_container.TripletContainerSet_do_get_inputs(self)
3088 
3089  def __str__(self):
3090  r"""__str__(TripletContainerSet self) -> std::string"""
3091  return _IMP_container.TripletContainerSet___str__(self)
3092 
3093  def __repr__(self):
3094  r"""__repr__(TripletContainerSet self) -> std::string"""
3095  return _IMP_container.TripletContainerSet___repr__(self)
3096 
3097  @staticmethod
3098  def get_from(o):
3099  return _object_cast_to_TripletContainerSet(o)
3100 
3101 
3102 # Register TripletContainerSet in _IMP_container:
3103 _IMP_container.TripletContainerSet_swigregister(TripletContainerSet)
3104 class TripletsConstraint(IMP.Constraint):
3105  r"""Proxy of C++ IMP::container::TripletsConstraint class."""
3106 
3107  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3108 
3109  def __init__(self, *args):
3110  r"""
3111  __init__(TripletsConstraint self, TripletModifier before, TripletModifier after, _TripletContainerAdaptor c, std::string name="TripletsConstraint %1%") -> TripletsConstraint
3112  __init__(TripletsConstraint self) -> TripletsConstraint
3113  """
3114  _IMP_container.TripletsConstraint_swiginit(self, _IMP_container.new_TripletsConstraint(*args))
3115 
3116  def get_version_info(self):
3117  r"""get_version_info(TripletsConstraint self) -> VersionInfo"""
3118  return _IMP_container.TripletsConstraint_get_version_info(self)
3119  __swig_destroy__ = _IMP_container.delete_TripletsConstraint
3120 
3121  def __str__(self):
3122  r"""__str__(TripletsConstraint self) -> std::string"""
3123  return _IMP_container.TripletsConstraint___str__(self)
3124 
3125  def __repr__(self):
3126  r"""__repr__(TripletsConstraint self) -> std::string"""
3127  return _IMP_container.TripletsConstraint___repr__(self)
3128 
3129  @staticmethod
3130  def get_from(o):
3131  return _object_cast_to_TripletsConstraint(o)
3132 
3133 
3134  def _get_as_binary(self):
3135  r"""_get_as_binary(TripletsConstraint self) -> PyObject *"""
3136  return _IMP_container.TripletsConstraint__get_as_binary(self)
3137 
3138  def _set_from_binary(self, p):
3139  r"""_set_from_binary(TripletsConstraint self, PyObject * p)"""
3140  return _IMP_container.TripletsConstraint__set_from_binary(self, p)
3141 
3142  def __getstate__(self):
3143  p = self._get_as_binary()
3144  if len(self.__dict__) > 1:
3145  d = self.__dict__.copy()
3146  del d['this']
3147  p = (d, p)
3148  return p
3149 
3150  def __setstate__(self, p):
3151  if not hasattr(self, 'this'):
3152  self.__init__()
3153  if isinstance(p, tuple):
3154  d, p = p
3155  self.__dict__.update(d)
3156  return self._set_from_binary(p)
3157 
3158 
3159 # Register TripletsConstraint in _IMP_container:
3160 _IMP_container.TripletsConstraint_swigregister(TripletsConstraint)
3161 class TripletsOptimizerState(IMP.OptimizerState):
3162  r"""Proxy of C++ IMP::container::TripletsOptimizerState class."""
3163 
3164  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3165 
3166  def __init__(self, *args):
3167  r"""__init__(TripletsOptimizerState self, _TripletContainerAdaptor c, TripletModifier gf, std::string name="TripletsOptimizerState %1%") -> TripletsOptimizerState"""
3168  _IMP_container.TripletsOptimizerState_swiginit(self, _IMP_container.new_TripletsOptimizerState(*args))
3169 
3170  def do_update(self, call):
3171  r"""do_update(TripletsOptimizerState self, unsigned int call)"""
3172  return _IMP_container.TripletsOptimizerState_do_update(self, call)
3173 
3174  def get_version_info(self):
3175  r"""get_version_info(TripletsOptimizerState self) -> VersionInfo"""
3176  return _IMP_container.TripletsOptimizerState_get_version_info(self)
3177  __swig_destroy__ = _IMP_container.delete_TripletsOptimizerState
3178 
3179  def __str__(self):
3180  r"""__str__(TripletsOptimizerState self) -> std::string"""
3181  return _IMP_container.TripletsOptimizerState___str__(self)
3182 
3183  def __repr__(self):
3184  r"""__repr__(TripletsOptimizerState self) -> std::string"""
3185  return _IMP_container.TripletsOptimizerState___repr__(self)
3186 
3187  @staticmethod
3188  def get_from(o):
3189  return _object_cast_to_TripletsOptimizerState(o)
3190 
3191 
3192 # Register TripletsOptimizerState in _IMP_container:
3193 _IMP_container.TripletsOptimizerState_swigregister(TripletsOptimizerState)
3194 class TripletsRestraint(IMP.Restraint):
3195  r"""Proxy of C++ IMP::container::TripletsRestraint class."""
3196 
3197  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3198 
3199  def __init__(self, *args):
3200  r"""
3201  __init__(TripletsRestraint self, TripletScore ss, _TripletContainerAdaptor pc, std::string name="TripletsRestraint %1%") -> TripletsRestraint
3202  __init__(TripletsRestraint self) -> TripletsRestraint
3203  """
3204  _IMP_container.TripletsRestraint_swiginit(self, _IMP_container.new_TripletsRestraint(*args))
3205 
3206  def do_get_inputs(self):
3207  r"""do_get_inputs(TripletsRestraint self) -> IMP::ModelObjectsTemp"""
3208  return _IMP_container.TripletsRestraint_do_get_inputs(self)
3209 
3210  def get_version_info(self):
3211  r"""get_version_info(TripletsRestraint self) -> VersionInfo"""
3212  return _IMP_container.TripletsRestraint_get_version_info(self)
3213  __swig_destroy__ = _IMP_container.delete_TripletsRestraint
3214 
3215  def __str__(self):
3216  r"""__str__(TripletsRestraint self) -> std::string"""
3217  return _IMP_container.TripletsRestraint___str__(self)
3218 
3219  def __repr__(self):
3220  r"""__repr__(TripletsRestraint self) -> std::string"""
3221  return _IMP_container.TripletsRestraint___repr__(self)
3222 
3223  @staticmethod
3224  def get_from(o):
3225  return _object_cast_to_TripletsRestraint(o)
3226 
3227 
3228  def _get_as_binary(self):
3229  r"""_get_as_binary(TripletsRestraint self) -> PyObject *"""
3230  return _IMP_container.TripletsRestraint__get_as_binary(self)
3231 
3232  def _set_from_binary(self, p):
3233  r"""_set_from_binary(TripletsRestraint self, PyObject * p)"""
3234  return _IMP_container.TripletsRestraint__set_from_binary(self, p)
3235 
3236  def __getstate__(self):
3237  p = self._get_as_binary()
3238  if len(self.__dict__) > 1:
3239  d = self.__dict__.copy()
3240  del d['this']
3241  p = (d, p)
3242  return p
3243 
3244  def __setstate__(self, p):
3245  if not hasattr(self, 'this'):
3246  self.__init__()
3247  if isinstance(p, tuple):
3248  d, p = p
3249  self.__dict__.update(d)
3250  return self._set_from_binary(p)
3251 
3252 
3253 # Register TripletsRestraint in _IMP_container:
3254 _IMP_container.TripletsRestraint_swigregister(TripletsRestraint)
3255 class InContainerSingletonFilter(IMP.SingletonPredicate):
3256  r"""Proxy of C++ IMP::container::InContainerSingletonFilter class."""
3257 
3258  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3259 
3260  def __init__(self, *args):
3261  r"""
3262  __init__(InContainerSingletonFilter self, SingletonContainer c, std::string name="SingletonFilter %1%") -> InContainerSingletonFilter
3263  __init__(InContainerSingletonFilter self, SingletonContainer c, bool handle_permutations, std::string name="SingletonFilter %1%") -> InContainerSingletonFilter
3264  """
3265  _IMP_container.InContainerSingletonFilter_swiginit(self, _IMP_container.new_InContainerSingletonFilter(*args))
3266 
3267  def do_get_inputs(self, m, pi):
3268  r"""do_get_inputs(InContainerSingletonFilter self, Model m, IMP::ParticleIndexes const & pi) -> IMP::ModelObjectsTemp"""
3269  return _IMP_container.InContainerSingletonFilter_do_get_inputs(self, m, pi)
3270 
3271  def get_value(self, *args):
3272  r"""
3273  get_value(InContainerSingletonFilter self, Particle a) -> int
3274  get_value(InContainerSingletonFilter self, IMP::ParticlesTemp const & o) -> IMP::Ints
3275  """
3276  return _IMP_container.InContainerSingletonFilter_get_value(self, *args)
3277 
3278  def get_value_index(self, *args):
3279  r"""
3280  get_value_index(InContainerSingletonFilter self, Model arg2, ParticleIndex vt) -> int
3281  get_value_index(InContainerSingletonFilter self, Model m, IMP::ParticleIndexes const & o) -> IMP::Ints
3282  """
3283  return _IMP_container.InContainerSingletonFilter_get_value_index(self, *args)
3284 
3285  def get_version_info(self):
3286  r"""get_version_info(InContainerSingletonFilter self) -> VersionInfo"""
3287  return _IMP_container.InContainerSingletonFilter_get_version_info(self)
3288  __swig_destroy__ = _IMP_container.delete_InContainerSingletonFilter
3289 
3290  def __str__(self):
3291  r"""__str__(InContainerSingletonFilter self) -> std::string"""
3292  return _IMP_container.InContainerSingletonFilter___str__(self)
3293 
3294  def __repr__(self):
3295  r"""__repr__(InContainerSingletonFilter self) -> std::string"""
3296  return _IMP_container.InContainerSingletonFilter___repr__(self)
3297 
3298  @staticmethod
3299  def get_from(o):
3300  return _object_cast_to_InContainerSingletonFilter(o)
3301 
3302 
3303 # Register InContainerSingletonFilter in _IMP_container:
3304 _IMP_container.InContainerSingletonFilter_swigregister(InContainerSingletonFilter)
3305 class InContainerPairFilter(IMP.PairPredicate):
3306  r"""Proxy of C++ IMP::container::InContainerPairFilter class."""
3307 
3308  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3309 
3310  def __init__(self, *args):
3311  r"""
3312  __init__(InContainerPairFilter self, PairContainer c, std::string name="PairFilter %1%") -> InContainerPairFilter
3313  __init__(InContainerPairFilter self, PairContainer c, bool handle_permutations, std::string name="PairFilter %1%") -> InContainerPairFilter
3314  """
3315  _IMP_container.InContainerPairFilter_swiginit(self, _IMP_container.new_InContainerPairFilter(*args))
3316 
3317  def do_get_inputs(self, m, pi):
3318  r"""do_get_inputs(InContainerPairFilter self, Model m, IMP::ParticleIndexes const & pi) -> IMP::ModelObjectsTemp"""
3319  return _IMP_container.InContainerPairFilter_do_get_inputs(self, m, pi)
3320 
3321  def get_value(self, *args):
3322  r"""
3323  get_value(InContainerPairFilter self, IMP::ParticlePair const & a) -> int
3324  get_value(InContainerPairFilter self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
3325  """
3326  return _IMP_container.InContainerPairFilter_get_value(self, *args)
3327 
3328  def get_value_index(self, *args):
3329  r"""
3330  get_value_index(InContainerPairFilter self, Model arg2, IMP::ParticleIndexPair const & vt) -> int
3331  get_value_index(InContainerPairFilter self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
3332  """
3333  return _IMP_container.InContainerPairFilter_get_value_index(self, *args)
3334 
3335  def get_version_info(self):
3336  r"""get_version_info(InContainerPairFilter self) -> VersionInfo"""
3337  return _IMP_container.InContainerPairFilter_get_version_info(self)
3338  __swig_destroy__ = _IMP_container.delete_InContainerPairFilter
3339 
3340  def __str__(self):
3341  r"""__str__(InContainerPairFilter self) -> std::string"""
3342  return _IMP_container.InContainerPairFilter___str__(self)
3343 
3344  def __repr__(self):
3345  r"""__repr__(InContainerPairFilter self) -> std::string"""
3346  return _IMP_container.InContainerPairFilter___repr__(self)
3347 
3348  @staticmethod
3349  def get_from(o):
3350  return _object_cast_to_InContainerPairFilter(o)
3351 
3352 
3353 # Register InContainerPairFilter in _IMP_container:
3354 _IMP_container.InContainerPairFilter_swigregister(InContainerPairFilter)
3355 class InContainerTripletFilter(IMP.TripletPredicate):
3356  r"""Proxy of C++ IMP::container::InContainerTripletFilter class."""
3357 
3358  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3359 
3360  def __init__(self, *args):
3361  r"""
3362  __init__(InContainerTripletFilter self, TripletContainer c, std::string name="TripletFilter %1%") -> InContainerTripletFilter
3363  __init__(InContainerTripletFilter self, TripletContainer c, bool handle_permutations, std::string name="TripletFilter %1%") -> InContainerTripletFilter
3364  """
3365  _IMP_container.InContainerTripletFilter_swiginit(self, _IMP_container.new_InContainerTripletFilter(*args))
3366 
3367  def do_get_inputs(self, m, pi):
3368  r"""do_get_inputs(InContainerTripletFilter self, Model m, IMP::ParticleIndexes const & pi) -> IMP::ModelObjectsTemp"""
3369  return _IMP_container.InContainerTripletFilter_do_get_inputs(self, m, pi)
3370 
3371  def get_value(self, *args):
3372  r"""
3373  get_value(InContainerTripletFilter self, IMP::ParticleTriplet const & a) -> int
3374  get_value(InContainerTripletFilter self, IMP::ParticleTripletsTemp const & o) -> IMP::Ints
3375  """
3376  return _IMP_container.InContainerTripletFilter_get_value(self, *args)
3377 
3378  def get_value_index(self, *args):
3379  r"""
3380  get_value_index(InContainerTripletFilter self, Model arg2, IMP::ParticleIndexTriplet const & vt) -> int
3381  get_value_index(InContainerTripletFilter self, Model m, IMP::ParticleIndexTriplets const & o) -> IMP::Ints
3382  """
3383  return _IMP_container.InContainerTripletFilter_get_value_index(self, *args)
3384 
3385  def get_version_info(self):
3386  r"""get_version_info(InContainerTripletFilter self) -> VersionInfo"""
3387  return _IMP_container.InContainerTripletFilter_get_version_info(self)
3388  __swig_destroy__ = _IMP_container.delete_InContainerTripletFilter
3389 
3390  def __str__(self):
3391  r"""__str__(InContainerTripletFilter self) -> std::string"""
3392  return _IMP_container.InContainerTripletFilter___str__(self)
3393 
3394  def __repr__(self):
3395  r"""__repr__(InContainerTripletFilter self) -> std::string"""
3396  return _IMP_container.InContainerTripletFilter___repr__(self)
3397 
3398  @staticmethod
3399  def get_from(o):
3400  return _object_cast_to_InContainerTripletFilter(o)
3401 
3402 
3403 # Register InContainerTripletFilter in _IMP_container:
3404 _IMP_container.InContainerTripletFilter_swigregister(InContainerTripletFilter)
3405 class InContainerQuadFilter(IMP.QuadPredicate):
3406  r"""Proxy of C++ IMP::container::InContainerQuadFilter class."""
3407 
3408  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3409 
3410  def __init__(self, *args):
3411  r"""
3412  __init__(InContainerQuadFilter self, QuadContainer c, std::string name="QuadFilter %1%") -> InContainerQuadFilter
3413  __init__(InContainerQuadFilter self, QuadContainer c, bool handle_permutations, std::string name="QuadFilter %1%") -> InContainerQuadFilter
3414  """
3415  _IMP_container.InContainerQuadFilter_swiginit(self, _IMP_container.new_InContainerQuadFilter(*args))
3416 
3417  def do_get_inputs(self, m, pi):
3418  r"""do_get_inputs(InContainerQuadFilter self, Model m, IMP::ParticleIndexes const & pi) -> IMP::ModelObjectsTemp"""
3419  return _IMP_container.InContainerQuadFilter_do_get_inputs(self, m, pi)
3420 
3421  def get_value(self, *args):
3422  r"""
3423  get_value(InContainerQuadFilter self, IMP::ParticleQuad const & a) -> int
3424  get_value(InContainerQuadFilter self, IMP::ParticleQuadsTemp const & o) -> IMP::Ints
3425  """
3426  return _IMP_container.InContainerQuadFilter_get_value(self, *args)
3427 
3428  def get_value_index(self, *args):
3429  r"""
3430  get_value_index(InContainerQuadFilter self, Model arg2, IMP::ParticleIndexQuad const & vt) -> int
3431  get_value_index(InContainerQuadFilter self, Model m, IMP::ParticleIndexQuads const & o) -> IMP::Ints
3432  """
3433  return _IMP_container.InContainerQuadFilter_get_value_index(self, *args)
3434 
3435  def get_version_info(self):
3436  r"""get_version_info(InContainerQuadFilter self) -> VersionInfo"""
3437  return _IMP_container.InContainerQuadFilter_get_version_info(self)
3438  __swig_destroy__ = _IMP_container.delete_InContainerQuadFilter
3439 
3440  def __str__(self):
3441  r"""__str__(InContainerQuadFilter self) -> std::string"""
3442  return _IMP_container.InContainerQuadFilter___str__(self)
3443 
3444  def __repr__(self):
3445  r"""__repr__(InContainerQuadFilter self) -> std::string"""
3446  return _IMP_container.InContainerQuadFilter___repr__(self)
3447 
3448  @staticmethod
3449  def get_from(o):
3450  return _object_cast_to_InContainerQuadFilter(o)
3451 
3452 
3453 # Register InContainerQuadFilter in _IMP_container:
3454 _IMP_container.InContainerQuadFilter_swigregister(InContainerQuadFilter)
3455 class SingletonContainerStatistics(IMP.ScoreState):
3456  r"""Proxy of C++ IMP::container::SingletonContainerStatistics class."""
3457 
3458  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3459 
3460  def __init__(self, c):
3461  r"""__init__(SingletonContainerStatistics self, _SingletonContainerAdaptor c) -> SingletonContainerStatistics"""
3462  _IMP_container.SingletonContainerStatistics_swiginit(self, _IMP_container.new_SingletonContainerStatistics(c))
3463 
3464  def show_statistics(self, out):
3465  r"""show_statistics(SingletonContainerStatistics self, _ostream out)"""
3466  return _IMP_container.SingletonContainerStatistics_show_statistics(self, out)
3467 
3468  def set_track_unique(self, tf):
3469  r"""set_track_unique(SingletonContainerStatistics self, bool tf)"""
3470  return _IMP_container.SingletonContainerStatistics_set_track_unique(self, tf)
3471 
3472  def do_before_evaluate(self):
3473  r"""do_before_evaluate(SingletonContainerStatistics self)"""
3474  return _IMP_container.SingletonContainerStatistics_do_before_evaluate(self)
3475 
3476  def do_after_evaluate(self, da):
3477  r"""do_after_evaluate(SingletonContainerStatistics self, DerivativeAccumulator da)"""
3478  return _IMP_container.SingletonContainerStatistics_do_after_evaluate(self, da)
3479 
3480  def do_get_inputs(self):
3481  r"""do_get_inputs(SingletonContainerStatistics self) -> IMP::ModelObjectsTemp"""
3482  return _IMP_container.SingletonContainerStatistics_do_get_inputs(self)
3483 
3484  def do_get_outputs(self):
3485  r"""do_get_outputs(SingletonContainerStatistics self) -> IMP::ModelObjectsTemp"""
3486  return _IMP_container.SingletonContainerStatistics_do_get_outputs(self)
3487 
3488  def get_version_info(self):
3489  r"""get_version_info(SingletonContainerStatistics self) -> VersionInfo"""
3490  return _IMP_container.SingletonContainerStatistics_get_version_info(self)
3491  __swig_destroy__ = _IMP_container.delete_SingletonContainerStatistics
3492 
3493  def __str__(self):
3494  r"""__str__(SingletonContainerStatistics self) -> std::string"""
3495  return _IMP_container.SingletonContainerStatistics___str__(self)
3496 
3497  def __repr__(self):
3498  r"""__repr__(SingletonContainerStatistics self) -> std::string"""
3499  return _IMP_container.SingletonContainerStatistics___repr__(self)
3500 
3501  @staticmethod
3502  def get_from(o):
3503  return _object_cast_to_SingletonContainerStatistics(o)
3504 
3505 
3506 # Register SingletonContainerStatistics in _IMP_container:
3507 _IMP_container.SingletonContainerStatistics_swigregister(SingletonContainerStatistics)
3508 class PairContainerStatistics(IMP.ScoreState):
3509  r"""Proxy of C++ IMP::container::PairContainerStatistics class."""
3510 
3511  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3512 
3513  def __init__(self, c):
3514  r"""__init__(PairContainerStatistics self, _PairContainerAdaptor c) -> PairContainerStatistics"""
3515  _IMP_container.PairContainerStatistics_swiginit(self, _IMP_container.new_PairContainerStatistics(c))
3516 
3517  def show_statistics(self, out):
3518  r"""show_statistics(PairContainerStatistics self, _ostream out)"""
3519  return _IMP_container.PairContainerStatistics_show_statistics(self, out)
3520 
3521  def set_track_unique(self, tf):
3522  r"""set_track_unique(PairContainerStatistics self, bool tf)"""
3523  return _IMP_container.PairContainerStatistics_set_track_unique(self, tf)
3524 
3525  def do_before_evaluate(self):
3526  r"""do_before_evaluate(PairContainerStatistics self)"""
3527  return _IMP_container.PairContainerStatistics_do_before_evaluate(self)
3528 
3529  def do_after_evaluate(self, da):
3530  r"""do_after_evaluate(PairContainerStatistics self, DerivativeAccumulator da)"""
3531  return _IMP_container.PairContainerStatistics_do_after_evaluate(self, da)
3532 
3533  def do_get_inputs(self):
3534  r"""do_get_inputs(PairContainerStatistics self) -> IMP::ModelObjectsTemp"""
3535  return _IMP_container.PairContainerStatistics_do_get_inputs(self)
3536 
3537  def do_get_outputs(self):
3538  r"""do_get_outputs(PairContainerStatistics self) -> IMP::ModelObjectsTemp"""
3539  return _IMP_container.PairContainerStatistics_do_get_outputs(self)
3540 
3541  def get_version_info(self):
3542  r"""get_version_info(PairContainerStatistics self) -> VersionInfo"""
3543  return _IMP_container.PairContainerStatistics_get_version_info(self)
3544  __swig_destroy__ = _IMP_container.delete_PairContainerStatistics
3545 
3546  def __str__(self):
3547  r"""__str__(PairContainerStatistics self) -> std::string"""
3548  return _IMP_container.PairContainerStatistics___str__(self)
3549 
3550  def __repr__(self):
3551  r"""__repr__(PairContainerStatistics self) -> std::string"""
3552  return _IMP_container.PairContainerStatistics___repr__(self)
3553 
3554  @staticmethod
3555  def get_from(o):
3556  return _object_cast_to_PairContainerStatistics(o)
3557 
3558 
3559 # Register PairContainerStatistics in _IMP_container:
3560 _IMP_container.PairContainerStatistics_swigregister(PairContainerStatistics)
3561 class TripletContainerStatistics(IMP.ScoreState):
3562  r"""Proxy of C++ IMP::container::TripletContainerStatistics class."""
3563 
3564  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3565 
3566  def __init__(self, c):
3567  r"""__init__(TripletContainerStatistics self, _TripletContainerAdaptor c) -> TripletContainerStatistics"""
3568  _IMP_container.TripletContainerStatistics_swiginit(self, _IMP_container.new_TripletContainerStatistics(c))
3569 
3570  def show_statistics(self, out):
3571  r"""show_statistics(TripletContainerStatistics self, _ostream out)"""
3572  return _IMP_container.TripletContainerStatistics_show_statistics(self, out)
3573 
3574  def set_track_unique(self, tf):
3575  r"""set_track_unique(TripletContainerStatistics self, bool tf)"""
3576  return _IMP_container.TripletContainerStatistics_set_track_unique(self, tf)
3577 
3578  def do_before_evaluate(self):
3579  r"""do_before_evaluate(TripletContainerStatistics self)"""
3580  return _IMP_container.TripletContainerStatistics_do_before_evaluate(self)
3581 
3582  def do_after_evaluate(self, da):
3583  r"""do_after_evaluate(TripletContainerStatistics self, DerivativeAccumulator da)"""
3584  return _IMP_container.TripletContainerStatistics_do_after_evaluate(self, da)
3585 
3586  def do_get_inputs(self):
3587  r"""do_get_inputs(TripletContainerStatistics self) -> IMP::ModelObjectsTemp"""
3588  return _IMP_container.TripletContainerStatistics_do_get_inputs(self)
3589 
3590  def do_get_outputs(self):
3591  r"""do_get_outputs(TripletContainerStatistics self) -> IMP::ModelObjectsTemp"""
3592  return _IMP_container.TripletContainerStatistics_do_get_outputs(self)
3593 
3594  def get_version_info(self):
3595  r"""get_version_info(TripletContainerStatistics self) -> VersionInfo"""
3596  return _IMP_container.TripletContainerStatistics_get_version_info(self)
3597  __swig_destroy__ = _IMP_container.delete_TripletContainerStatistics
3598 
3599  def __str__(self):
3600  r"""__str__(TripletContainerStatistics self) -> std::string"""
3601  return _IMP_container.TripletContainerStatistics___str__(self)
3602 
3603  def __repr__(self):
3604  r"""__repr__(TripletContainerStatistics self) -> std::string"""
3605  return _IMP_container.TripletContainerStatistics___repr__(self)
3606 
3607  @staticmethod
3608  def get_from(o):
3609  return _object_cast_to_TripletContainerStatistics(o)
3610 
3611 
3612 # Register TripletContainerStatistics in _IMP_container:
3613 _IMP_container.TripletContainerStatistics_swigregister(TripletContainerStatistics)
3614 class QuadContainerStatistics(IMP.ScoreState):
3615  r"""Proxy of C++ IMP::container::QuadContainerStatistics class."""
3616 
3617  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3618 
3619  def __init__(self, c):
3620  r"""__init__(QuadContainerStatistics self, _QuadContainerAdaptor c) -> QuadContainerStatistics"""
3621  _IMP_container.QuadContainerStatistics_swiginit(self, _IMP_container.new_QuadContainerStatistics(c))
3622 
3623  def show_statistics(self, out):
3624  r"""show_statistics(QuadContainerStatistics self, _ostream out)"""
3625  return _IMP_container.QuadContainerStatistics_show_statistics(self, out)
3626 
3627  def set_track_unique(self, tf):
3628  r"""set_track_unique(QuadContainerStatistics self, bool tf)"""
3629  return _IMP_container.QuadContainerStatistics_set_track_unique(self, tf)
3630 
3631  def do_before_evaluate(self):
3632  r"""do_before_evaluate(QuadContainerStatistics self)"""
3633  return _IMP_container.QuadContainerStatistics_do_before_evaluate(self)
3634 
3635  def do_after_evaluate(self, da):
3636  r"""do_after_evaluate(QuadContainerStatistics self, DerivativeAccumulator da)"""
3637  return _IMP_container.QuadContainerStatistics_do_after_evaluate(self, da)
3638 
3639  def do_get_inputs(self):
3640  r"""do_get_inputs(QuadContainerStatistics self) -> IMP::ModelObjectsTemp"""
3641  return _IMP_container.QuadContainerStatistics_do_get_inputs(self)
3642 
3643  def do_get_outputs(self):
3644  r"""do_get_outputs(QuadContainerStatistics self) -> IMP::ModelObjectsTemp"""
3645  return _IMP_container.QuadContainerStatistics_do_get_outputs(self)
3646 
3647  def get_version_info(self):
3648  r"""get_version_info(QuadContainerStatistics self) -> VersionInfo"""
3649  return _IMP_container.QuadContainerStatistics_get_version_info(self)
3650  __swig_destroy__ = _IMP_container.delete_QuadContainerStatistics
3651 
3652  def __str__(self):
3653  r"""__str__(QuadContainerStatistics self) -> std::string"""
3654  return _IMP_container.QuadContainerStatistics___str__(self)
3655 
3656  def __repr__(self):
3657  r"""__repr__(QuadContainerStatistics self) -> std::string"""
3658  return _IMP_container.QuadContainerStatistics___repr__(self)
3659 
3660  @staticmethod
3661  def get_from(o):
3662  return _object_cast_to_QuadContainerStatistics(o)
3663 
3664 
3665 # Register QuadContainerStatistics in _IMP_container:
3666 _IMP_container.QuadContainerStatistics_swigregister(QuadContainerStatistics)
3667 class EventSingletonsOptimizerState(IMP.OptimizerState):
3668  r"""Proxy of C++ IMP::container::EventSingletonsOptimizerState class."""
3669 
3670  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3671 
3672  def __init__(self, *args):
3673  r"""__init__(EventSingletonsOptimizerState self, SingletonPredicate pred, _SingletonContainerAdaptor container, int value, int min_count, int max_count, std::string name="ConstSingletonPredicate%1%") -> EventSingletonsOptimizerState"""
3674  _IMP_container.EventSingletonsOptimizerState_swiginit(self, _IMP_container.new_EventSingletonsOptimizerState(*args))
3675 
3676  def do_update(self, call):
3677  r"""do_update(EventSingletonsOptimizerState self, unsigned int call)"""
3678  return _IMP_container.EventSingletonsOptimizerState_do_update(self, call)
3679 
3680  def get_version_info(self):
3681  r"""get_version_info(EventSingletonsOptimizerState self) -> VersionInfo"""
3682  return _IMP_container.EventSingletonsOptimizerState_get_version_info(self)
3683  __swig_destroy__ = _IMP_container.delete_EventSingletonsOptimizerState
3684 
3685  def __str__(self):
3686  r"""__str__(EventSingletonsOptimizerState self) -> std::string"""
3687  return _IMP_container.EventSingletonsOptimizerState___str__(self)
3688 
3689  def __repr__(self):
3690  r"""__repr__(EventSingletonsOptimizerState self) -> std::string"""
3691  return _IMP_container.EventSingletonsOptimizerState___repr__(self)
3692 
3693  @staticmethod
3694  def get_from(o):
3695  return _object_cast_to_EventSingletonsOptimizerState(o)
3696 
3697 
3698 # Register EventSingletonsOptimizerState in _IMP_container:
3699 _IMP_container.EventSingletonsOptimizerState_swigregister(EventSingletonsOptimizerState)
3700 class EventPairsOptimizerState(IMP.OptimizerState):
3701  r"""Proxy of C++ IMP::container::EventPairsOptimizerState class."""
3702 
3703  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3704 
3705  def __init__(self, *args):
3706  r"""__init__(EventPairsOptimizerState self, PairPredicate pred, _PairContainerAdaptor container, int value, int min_count, int max_count, std::string name="ConstPairPredicate%1%") -> EventPairsOptimizerState"""
3707  _IMP_container.EventPairsOptimizerState_swiginit(self, _IMP_container.new_EventPairsOptimizerState(*args))
3708 
3709  def do_update(self, call):
3710  r"""do_update(EventPairsOptimizerState self, unsigned int call)"""
3711  return _IMP_container.EventPairsOptimizerState_do_update(self, call)
3712 
3713  def get_version_info(self):
3714  r"""get_version_info(EventPairsOptimizerState self) -> VersionInfo"""
3715  return _IMP_container.EventPairsOptimizerState_get_version_info(self)
3716  __swig_destroy__ = _IMP_container.delete_EventPairsOptimizerState
3717 
3718  def __str__(self):
3719  r"""__str__(EventPairsOptimizerState self) -> std::string"""
3720  return _IMP_container.EventPairsOptimizerState___str__(self)
3721 
3722  def __repr__(self):
3723  r"""__repr__(EventPairsOptimizerState self) -> std::string"""
3724  return _IMP_container.EventPairsOptimizerState___repr__(self)
3725 
3726  @staticmethod
3727  def get_from(o):
3728  return _object_cast_to_EventPairsOptimizerState(o)
3729 
3730 
3731 # Register EventPairsOptimizerState in _IMP_container:
3732 _IMP_container.EventPairsOptimizerState_swigregister(EventPairsOptimizerState)
3733 class EventTripletsOptimizerState(IMP.OptimizerState):
3734  r"""Proxy of C++ IMP::container::EventTripletsOptimizerState class."""
3735 
3736  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3737 
3738  def __init__(self, *args):
3739  r"""__init__(EventTripletsOptimizerState self, TripletPredicate pred, _TripletContainerAdaptor container, int value, int min_count, int max_count, std::string name="ConstTripletPredicate%1%") -> EventTripletsOptimizerState"""
3740  _IMP_container.EventTripletsOptimizerState_swiginit(self, _IMP_container.new_EventTripletsOptimizerState(*args))
3741 
3742  def do_update(self, call):
3743  r"""do_update(EventTripletsOptimizerState self, unsigned int call)"""
3744  return _IMP_container.EventTripletsOptimizerState_do_update(self, call)
3745 
3746  def get_version_info(self):
3747  r"""get_version_info(EventTripletsOptimizerState self) -> VersionInfo"""
3748  return _IMP_container.EventTripletsOptimizerState_get_version_info(self)
3749  __swig_destroy__ = _IMP_container.delete_EventTripletsOptimizerState
3750 
3751  def __str__(self):
3752  r"""__str__(EventTripletsOptimizerState self) -> std::string"""
3753  return _IMP_container.EventTripletsOptimizerState___str__(self)
3754 
3755  def __repr__(self):
3756  r"""__repr__(EventTripletsOptimizerState self) -> std::string"""
3757  return _IMP_container.EventTripletsOptimizerState___repr__(self)
3758 
3759  @staticmethod
3760  def get_from(o):
3761  return _object_cast_to_EventTripletsOptimizerState(o)
3762 
3763 
3764 # Register EventTripletsOptimizerState in _IMP_container:
3765 _IMP_container.EventTripletsOptimizerState_swigregister(EventTripletsOptimizerState)
3766 class EventQuadsOptimizerState(IMP.OptimizerState):
3767  r"""Proxy of C++ IMP::container::EventQuadsOptimizerState class."""
3768 
3769  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3770 
3771  def __init__(self, *args):
3772  r"""__init__(EventQuadsOptimizerState self, QuadPredicate pred, _QuadContainerAdaptor container, int value, int min_count, int max_count, std::string name="ConstQuadPredicate%1%") -> EventQuadsOptimizerState"""
3773  _IMP_container.EventQuadsOptimizerState_swiginit(self, _IMP_container.new_EventQuadsOptimizerState(*args))
3774 
3775  def do_update(self, call):
3776  r"""do_update(EventQuadsOptimizerState self, unsigned int call)"""
3777  return _IMP_container.EventQuadsOptimizerState_do_update(self, call)
3778 
3779  def get_version_info(self):
3780  r"""get_version_info(EventQuadsOptimizerState self) -> VersionInfo"""
3781  return _IMP_container.EventQuadsOptimizerState_get_version_info(self)
3782  __swig_destroy__ = _IMP_container.delete_EventQuadsOptimizerState
3783 
3784  def __str__(self):
3785  r"""__str__(EventQuadsOptimizerState self) -> std::string"""
3786  return _IMP_container.EventQuadsOptimizerState___str__(self)
3787 
3788  def __repr__(self):
3789  r"""__repr__(EventQuadsOptimizerState self) -> std::string"""
3790  return _IMP_container.EventQuadsOptimizerState___repr__(self)
3791 
3792  @staticmethod
3793  def get_from(o):
3794  return _object_cast_to_EventQuadsOptimizerState(o)
3795 
3796 
3797 # Register EventQuadsOptimizerState in _IMP_container:
3798 _IMP_container.EventQuadsOptimizerState_swigregister(EventQuadsOptimizerState)
3799 class PredicateSingletonsRestraint(IMP.Restraint):
3800  r"""Proxy of C++ IMP::container::PredicateSingletonsRestraint class."""
3801 
3802  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3803 
3804  def __init__(self, *args):
3805  r"""
3806  __init__(PredicateSingletonsRestraint self, SingletonPredicate pred, _SingletonContainerAdaptor input, std::string name="PredicateSingletonsRestraint %1%") -> PredicateSingletonsRestraint
3807  __init__(PredicateSingletonsRestraint self) -> PredicateSingletonsRestraint
3808  """
3809  _IMP_container.PredicateSingletonsRestraint_swiginit(self, _IMP_container.new_PredicateSingletonsRestraint(*args))
3810 
3811  def set_score(self, predicate_value, score):
3812  r"""set_score(PredicateSingletonsRestraint self, int predicate_value, SingletonScore score)"""
3813  return _IMP_container.PredicateSingletonsRestraint_set_score(self, predicate_value, score)
3814 
3815  def set_unknown_score(self, score):
3816  r"""set_unknown_score(PredicateSingletonsRestraint self, SingletonScore score)"""
3817  return _IMP_container.PredicateSingletonsRestraint_set_unknown_score(self, score)
3818 
3819  def set_is_complete(self, tf):
3820  r"""set_is_complete(PredicateSingletonsRestraint self, bool tf)"""
3821  return _IMP_container.PredicateSingletonsRestraint_set_is_complete(self, tf)
3822 
3823  def get_indexes(self, predicate_value):
3824  r"""get_indexes(PredicateSingletonsRestraint self, int predicate_value) -> IMP::ParticleIndexes"""
3825  return _IMP_container.PredicateSingletonsRestraint_get_indexes(self, predicate_value)
3826 
3827  def do_add_score_and_derivatives(self, sa):
3828  r"""do_add_score_and_derivatives(PredicateSingletonsRestraint self, ScoreAccumulator sa)"""
3829  return _IMP_container.PredicateSingletonsRestraint_do_add_score_and_derivatives(self, sa)
3830 
3831  def do_get_inputs(self):
3832  r"""do_get_inputs(PredicateSingletonsRestraint self) -> IMP::ModelObjectsTemp"""
3833  return _IMP_container.PredicateSingletonsRestraint_do_get_inputs(self)
3834 
3835  def get_version_info(self):
3836  r"""get_version_info(PredicateSingletonsRestraint self) -> VersionInfo"""
3837  return _IMP_container.PredicateSingletonsRestraint_get_version_info(self)
3838  __swig_destroy__ = _IMP_container.delete_PredicateSingletonsRestraint
3839 
3840  def __str__(self):
3841  r"""__str__(PredicateSingletonsRestraint self) -> std::string"""
3842  return _IMP_container.PredicateSingletonsRestraint___str__(self)
3843 
3844  def __repr__(self):
3845  r"""__repr__(PredicateSingletonsRestraint self) -> std::string"""
3846  return _IMP_container.PredicateSingletonsRestraint___repr__(self)
3847 
3848  @staticmethod
3849  def get_from(o):
3850  return _object_cast_to_PredicateSingletonsRestraint(o)
3851 
3852 
3853  def _get_as_binary(self):
3854  r"""_get_as_binary(PredicateSingletonsRestraint self) -> PyObject *"""
3855  return _IMP_container.PredicateSingletonsRestraint__get_as_binary(self)
3856 
3857  def _set_from_binary(self, p):
3858  r"""_set_from_binary(PredicateSingletonsRestraint self, PyObject * p)"""
3859  return _IMP_container.PredicateSingletonsRestraint__set_from_binary(self, p)
3860 
3861  def __getstate__(self):
3862  p = self._get_as_binary()
3863  if len(self.__dict__) > 1:
3864  d = self.__dict__.copy()
3865  del d['this']
3866  p = (d, p)
3867  return p
3868 
3869  def __setstate__(self, p):
3870  if not hasattr(self, 'this'):
3871  self.__init__()
3872  if isinstance(p, tuple):
3873  d, p = p
3874  self.__dict__.update(d)
3875  return self._set_from_binary(p)
3876 
3877 
3878 # Register PredicateSingletonsRestraint in _IMP_container:
3879 _IMP_container.PredicateSingletonsRestraint_swigregister(PredicateSingletonsRestraint)
3880 class PredicatePairsRestraint(IMP.Restraint):
3881  r"""Proxy of C++ IMP::container::PredicatePairsRestraint class."""
3882 
3883  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3884 
3885  def __init__(self, *args):
3886  r"""
3887  __init__(PredicatePairsRestraint self, PairPredicate pred, _PairContainerAdaptor input, std::string name="PredicatePairsRestraint %1%") -> PredicatePairsRestraint
3888  __init__(PredicatePairsRestraint self) -> PredicatePairsRestraint
3889  """
3890  _IMP_container.PredicatePairsRestraint_swiginit(self, _IMP_container.new_PredicatePairsRestraint(*args))
3891 
3892  def set_score(self, predicate_value, score):
3893  r"""set_score(PredicatePairsRestraint self, int predicate_value, PairScore score)"""
3894  return _IMP_container.PredicatePairsRestraint_set_score(self, predicate_value, score)
3895 
3896  def set_unknown_score(self, score):
3897  r"""set_unknown_score(PredicatePairsRestraint self, PairScore score)"""
3898  return _IMP_container.PredicatePairsRestraint_set_unknown_score(self, score)
3899 
3900  def set_is_complete(self, tf):
3901  r"""set_is_complete(PredicatePairsRestraint self, bool tf)"""
3902  return _IMP_container.PredicatePairsRestraint_set_is_complete(self, tf)
3903 
3904  def get_indexes(self, predicate_value):
3905  r"""get_indexes(PredicatePairsRestraint self, int predicate_value) -> IMP::ParticleIndexPairs"""
3906  return _IMP_container.PredicatePairsRestraint_get_indexes(self, predicate_value)
3907 
3908  def do_add_score_and_derivatives(self, sa):
3909  r"""do_add_score_and_derivatives(PredicatePairsRestraint self, ScoreAccumulator sa)"""
3910  return _IMP_container.PredicatePairsRestraint_do_add_score_and_derivatives(self, sa)
3911 
3912  def do_get_inputs(self):
3913  r"""do_get_inputs(PredicatePairsRestraint self) -> IMP::ModelObjectsTemp"""
3914  return _IMP_container.PredicatePairsRestraint_do_get_inputs(self)
3915 
3916  def get_version_info(self):
3917  r"""get_version_info(PredicatePairsRestraint self) -> VersionInfo"""
3918  return _IMP_container.PredicatePairsRestraint_get_version_info(self)
3919  __swig_destroy__ = _IMP_container.delete_PredicatePairsRestraint
3920 
3921  def __str__(self):
3922  r"""__str__(PredicatePairsRestraint self) -> std::string"""
3923  return _IMP_container.PredicatePairsRestraint___str__(self)
3924 
3925  def __repr__(self):
3926  r"""__repr__(PredicatePairsRestraint self) -> std::string"""
3927  return _IMP_container.PredicatePairsRestraint___repr__(self)
3928 
3929  @staticmethod
3930  def get_from(o):
3931  return _object_cast_to_PredicatePairsRestraint(o)
3932 
3933 
3934  def _get_as_binary(self):
3935  r"""_get_as_binary(PredicatePairsRestraint self) -> PyObject *"""
3936  return _IMP_container.PredicatePairsRestraint__get_as_binary(self)
3937 
3938  def _set_from_binary(self, p):
3939  r"""_set_from_binary(PredicatePairsRestraint self, PyObject * p)"""
3940  return _IMP_container.PredicatePairsRestraint__set_from_binary(self, p)
3941 
3942  def __getstate__(self):
3943  p = self._get_as_binary()
3944  if len(self.__dict__) > 1:
3945  d = self.__dict__.copy()
3946  del d['this']
3947  p = (d, p)
3948  return p
3949 
3950  def __setstate__(self, p):
3951  if not hasattr(self, 'this'):
3952  self.__init__()
3953  if isinstance(p, tuple):
3954  d, p = p
3955  self.__dict__.update(d)
3956  return self._set_from_binary(p)
3957 
3958 
3959 # Register PredicatePairsRestraint in _IMP_container:
3960 _IMP_container.PredicatePairsRestraint_swigregister(PredicatePairsRestraint)
3961 class PredicateTripletsRestraint(IMP.Restraint):
3962  r"""Proxy of C++ IMP::container::PredicateTripletsRestraint class."""
3963 
3964  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3965 
3966  def __init__(self, *args):
3967  r"""
3968  __init__(PredicateTripletsRestraint self, TripletPredicate pred, _TripletContainerAdaptor input, std::string name="PredicateTripletsRestraint %1%") -> PredicateTripletsRestraint
3969  __init__(PredicateTripletsRestraint self) -> PredicateTripletsRestraint
3970  """
3971  _IMP_container.PredicateTripletsRestraint_swiginit(self, _IMP_container.new_PredicateTripletsRestraint(*args))
3972 
3973  def set_score(self, predicate_value, score):
3974  r"""set_score(PredicateTripletsRestraint self, int predicate_value, TripletScore score)"""
3975  return _IMP_container.PredicateTripletsRestraint_set_score(self, predicate_value, score)
3976 
3977  def set_unknown_score(self, score):
3978  r"""set_unknown_score(PredicateTripletsRestraint self, TripletScore score)"""
3979  return _IMP_container.PredicateTripletsRestraint_set_unknown_score(self, score)
3980 
3981  def set_is_complete(self, tf):
3982  r"""set_is_complete(PredicateTripletsRestraint self, bool tf)"""
3983  return _IMP_container.PredicateTripletsRestraint_set_is_complete(self, tf)
3984 
3985  def get_indexes(self, predicate_value):
3986  r"""get_indexes(PredicateTripletsRestraint self, int predicate_value) -> IMP::ParticleIndexTriplets"""
3987  return _IMP_container.PredicateTripletsRestraint_get_indexes(self, predicate_value)
3988 
3989  def do_add_score_and_derivatives(self, sa):
3990  r"""do_add_score_and_derivatives(PredicateTripletsRestraint self, ScoreAccumulator sa)"""
3991  return _IMP_container.PredicateTripletsRestraint_do_add_score_and_derivatives(self, sa)
3992 
3993  def do_get_inputs(self):
3994  r"""do_get_inputs(PredicateTripletsRestraint self) -> IMP::ModelObjectsTemp"""
3995  return _IMP_container.PredicateTripletsRestraint_do_get_inputs(self)
3996 
3997  def get_version_info(self):
3998  r"""get_version_info(PredicateTripletsRestraint self) -> VersionInfo"""
3999  return _IMP_container.PredicateTripletsRestraint_get_version_info(self)
4000  __swig_destroy__ = _IMP_container.delete_PredicateTripletsRestraint
4001 
4002  def __str__(self):
4003  r"""__str__(PredicateTripletsRestraint self) -> std::string"""
4004  return _IMP_container.PredicateTripletsRestraint___str__(self)
4005 
4006  def __repr__(self):
4007  r"""__repr__(PredicateTripletsRestraint self) -> std::string"""
4008  return _IMP_container.PredicateTripletsRestraint___repr__(self)
4009 
4010  @staticmethod
4011  def get_from(o):
4012  return _object_cast_to_PredicateTripletsRestraint(o)
4013 
4014 
4015  def _get_as_binary(self):
4016  r"""_get_as_binary(PredicateTripletsRestraint self) -> PyObject *"""
4017  return _IMP_container.PredicateTripletsRestraint__get_as_binary(self)
4018 
4019  def _set_from_binary(self, p):
4020  r"""_set_from_binary(PredicateTripletsRestraint self, PyObject * p)"""
4021  return _IMP_container.PredicateTripletsRestraint__set_from_binary(self, p)
4022 
4023  def __getstate__(self):
4024  p = self._get_as_binary()
4025  if len(self.__dict__) > 1:
4026  d = self.__dict__.copy()
4027  del d['this']
4028  p = (d, p)
4029  return p
4030 
4031  def __setstate__(self, p):
4032  if not hasattr(self, 'this'):
4033  self.__init__()
4034  if isinstance(p, tuple):
4035  d, p = p
4036  self.__dict__.update(d)
4037  return self._set_from_binary(p)
4038 
4039 
4040 # Register PredicateTripletsRestraint in _IMP_container:
4041 _IMP_container.PredicateTripletsRestraint_swigregister(PredicateTripletsRestraint)
4042 class PredicateQuadsRestraint(IMP.Restraint):
4043  r"""Proxy of C++ IMP::container::PredicateQuadsRestraint class."""
4044 
4045  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4046 
4047  def __init__(self, *args):
4048  r"""
4049  __init__(PredicateQuadsRestraint self, QuadPredicate pred, _QuadContainerAdaptor input, std::string name="PredicateQuadsRestraint %1%") -> PredicateQuadsRestraint
4050  __init__(PredicateQuadsRestraint self) -> PredicateQuadsRestraint
4051  """
4052  _IMP_container.PredicateQuadsRestraint_swiginit(self, _IMP_container.new_PredicateQuadsRestraint(*args))
4053 
4054  def set_score(self, predicate_value, score):
4055  r"""set_score(PredicateQuadsRestraint self, int predicate_value, QuadScore score)"""
4056  return _IMP_container.PredicateQuadsRestraint_set_score(self, predicate_value, score)
4057 
4058  def set_unknown_score(self, score):
4059  r"""set_unknown_score(PredicateQuadsRestraint self, QuadScore score)"""
4060  return _IMP_container.PredicateQuadsRestraint_set_unknown_score(self, score)
4061 
4062  def set_is_complete(self, tf):
4063  r"""set_is_complete(PredicateQuadsRestraint self, bool tf)"""
4064  return _IMP_container.PredicateQuadsRestraint_set_is_complete(self, tf)
4065 
4066  def get_indexes(self, predicate_value):
4067  r"""get_indexes(PredicateQuadsRestraint self, int predicate_value) -> IMP::ParticleIndexQuads"""
4068  return _IMP_container.PredicateQuadsRestraint_get_indexes(self, predicate_value)
4069 
4070  def do_add_score_and_derivatives(self, sa):
4071  r"""do_add_score_and_derivatives(PredicateQuadsRestraint self, ScoreAccumulator sa)"""
4072  return _IMP_container.PredicateQuadsRestraint_do_add_score_and_derivatives(self, sa)
4073 
4074  def do_get_inputs(self):
4075  r"""do_get_inputs(PredicateQuadsRestraint self) -> IMP::ModelObjectsTemp"""
4076  return _IMP_container.PredicateQuadsRestraint_do_get_inputs(self)
4077 
4078  def get_version_info(self):
4079  r"""get_version_info(PredicateQuadsRestraint self) -> VersionInfo"""
4080  return _IMP_container.PredicateQuadsRestraint_get_version_info(self)
4081  __swig_destroy__ = _IMP_container.delete_PredicateQuadsRestraint
4082 
4083  def __str__(self):
4084  r"""__str__(PredicateQuadsRestraint self) -> std::string"""
4085  return _IMP_container.PredicateQuadsRestraint___str__(self)
4086 
4087  def __repr__(self):
4088  r"""__repr__(PredicateQuadsRestraint self) -> std::string"""
4089  return _IMP_container.PredicateQuadsRestraint___repr__(self)
4090 
4091  @staticmethod
4092  def get_from(o):
4093  return _object_cast_to_PredicateQuadsRestraint(o)
4094 
4095 
4096  def _get_as_binary(self):
4097  r"""_get_as_binary(PredicateQuadsRestraint self) -> PyObject *"""
4098  return _IMP_container.PredicateQuadsRestraint__get_as_binary(self)
4099 
4100  def _set_from_binary(self, p):
4101  r"""_set_from_binary(PredicateQuadsRestraint self, PyObject * p)"""
4102  return _IMP_container.PredicateQuadsRestraint__set_from_binary(self, p)
4103 
4104  def __getstate__(self):
4105  p = self._get_as_binary()
4106  if len(self.__dict__) > 1:
4107  d = self.__dict__.copy()
4108  del d['this']
4109  p = (d, p)
4110  return p
4111 
4112  def __setstate__(self, p):
4113  if not hasattr(self, 'this'):
4114  self.__init__()
4115  if isinstance(p, tuple):
4116  d, p = p
4117  self.__dict__.update(d)
4118  return self._set_from_binary(p)
4119 
4120 
4121 # Register PredicateQuadsRestraint in _IMP_container:
4122 _IMP_container.PredicateQuadsRestraint_swigregister(PredicateQuadsRestraint)
4123 class DistributeSingletonsScoreState(IMP.ScoreState):
4124  r"""Proxy of C++ IMP::container::DistributeSingletonsScoreState class."""
4125 
4126  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4127 
4128  def __init__(self, *args):
4129  r"""__init__(DistributeSingletonsScoreState self, _SingletonContainerAdaptor input, std::string name="DistributeSingletonsScoreState %1%") -> DistributeSingletonsScoreState"""
4130  _IMP_container.DistributeSingletonsScoreState_swiginit(self, _IMP_container.new_DistributeSingletonsScoreState(*args))
4131 
4132  def add_predicate(self, predicate, value):
4133  r"""add_predicate(DistributeSingletonsScoreState self, SingletonPredicate predicate, int value) -> DynamicListSingletonContainer"""
4134  return _IMP_container.DistributeSingletonsScoreState_add_predicate(self, predicate, value)
4135 
4136  def do_before_evaluate(self):
4137  r"""do_before_evaluate(DistributeSingletonsScoreState self)"""
4138  return _IMP_container.DistributeSingletonsScoreState_do_before_evaluate(self)
4139 
4140  def do_after_evaluate(self, da):
4141  r"""do_after_evaluate(DistributeSingletonsScoreState self, DerivativeAccumulator da)"""
4142  return _IMP_container.DistributeSingletonsScoreState_do_after_evaluate(self, da)
4143 
4144  def do_get_inputs(self):
4145  r"""do_get_inputs(DistributeSingletonsScoreState self) -> IMP::ModelObjectsTemp"""
4146  return _IMP_container.DistributeSingletonsScoreState_do_get_inputs(self)
4147 
4148  def do_get_outputs(self):
4149  r"""do_get_outputs(DistributeSingletonsScoreState self) -> IMP::ModelObjectsTemp"""
4150  return _IMP_container.DistributeSingletonsScoreState_do_get_outputs(self)
4151 
4152  def get_version_info(self):
4153  r"""get_version_info(DistributeSingletonsScoreState self) -> VersionInfo"""
4154  return _IMP_container.DistributeSingletonsScoreState_get_version_info(self)
4155  __swig_destroy__ = _IMP_container.delete_DistributeSingletonsScoreState
4156 
4157  def __str__(self):
4158  r"""__str__(DistributeSingletonsScoreState self) -> std::string"""
4159  return _IMP_container.DistributeSingletonsScoreState___str__(self)
4160 
4161  def __repr__(self):
4162  r"""__repr__(DistributeSingletonsScoreState self) -> std::string"""
4163  return _IMP_container.DistributeSingletonsScoreState___repr__(self)
4164 
4165  @staticmethod
4166  def get_from(o):
4167  return _object_cast_to_DistributeSingletonsScoreState(o)
4168 
4169 
4170 # Register DistributeSingletonsScoreState in _IMP_container:
4171 _IMP_container.DistributeSingletonsScoreState_swigregister(DistributeSingletonsScoreState)
4172 class DistributePairsScoreState(IMP.ScoreState):
4173  r"""Proxy of C++ IMP::container::DistributePairsScoreState class."""
4174 
4175  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4176 
4177  def __init__(self, *args):
4178  r"""__init__(DistributePairsScoreState self, _PairContainerAdaptor input, std::string name="DistributePairsScoreState %1%") -> DistributePairsScoreState"""
4179  _IMP_container.DistributePairsScoreState_swiginit(self, _IMP_container.new_DistributePairsScoreState(*args))
4180 
4181  def add_predicate(self, predicate, value):
4182  r"""add_predicate(DistributePairsScoreState self, PairPredicate predicate, int value) -> DynamicListPairContainer"""
4183  return _IMP_container.DistributePairsScoreState_add_predicate(self, predicate, value)
4184 
4185  def do_before_evaluate(self):
4186  r"""do_before_evaluate(DistributePairsScoreState self)"""
4187  return _IMP_container.DistributePairsScoreState_do_before_evaluate(self)
4188 
4189  def do_after_evaluate(self, da):
4190  r"""do_after_evaluate(DistributePairsScoreState self, DerivativeAccumulator da)"""
4191  return _IMP_container.DistributePairsScoreState_do_after_evaluate(self, da)
4192 
4193  def do_get_inputs(self):
4194  r"""do_get_inputs(DistributePairsScoreState self) -> IMP::ModelObjectsTemp"""
4195  return _IMP_container.DistributePairsScoreState_do_get_inputs(self)
4196 
4197  def do_get_outputs(self):
4198  r"""do_get_outputs(DistributePairsScoreState self) -> IMP::ModelObjectsTemp"""
4199  return _IMP_container.DistributePairsScoreState_do_get_outputs(self)
4200 
4201  def get_version_info(self):
4202  r"""get_version_info(DistributePairsScoreState self) -> VersionInfo"""
4203  return _IMP_container.DistributePairsScoreState_get_version_info(self)
4204  __swig_destroy__ = _IMP_container.delete_DistributePairsScoreState
4205 
4206  def __str__(self):
4207  r"""__str__(DistributePairsScoreState self) -> std::string"""
4208  return _IMP_container.DistributePairsScoreState___str__(self)
4209 
4210  def __repr__(self):
4211  r"""__repr__(DistributePairsScoreState self) -> std::string"""
4212  return _IMP_container.DistributePairsScoreState___repr__(self)
4213 
4214  @staticmethod
4215  def get_from(o):
4216  return _object_cast_to_DistributePairsScoreState(o)
4217 
4218 
4219 # Register DistributePairsScoreState in _IMP_container:
4220 _IMP_container.DistributePairsScoreState_swigregister(DistributePairsScoreState)
4221 class DistributeTripletsScoreState(IMP.ScoreState):
4222  r"""Proxy of C++ IMP::container::DistributeTripletsScoreState class."""
4223 
4224  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4225 
4226  def __init__(self, *args):
4227  r"""__init__(DistributeTripletsScoreState self, _TripletContainerAdaptor input, std::string name="DistributeTripletsScoreState %1%") -> DistributeTripletsScoreState"""
4228  _IMP_container.DistributeTripletsScoreState_swiginit(self, _IMP_container.new_DistributeTripletsScoreState(*args))
4229 
4230  def add_predicate(self, predicate, value):
4231  r"""add_predicate(DistributeTripletsScoreState self, TripletPredicate predicate, int value) -> DynamicListTripletContainer"""
4232  return _IMP_container.DistributeTripletsScoreState_add_predicate(self, predicate, value)
4233 
4234  def do_before_evaluate(self):
4235  r"""do_before_evaluate(DistributeTripletsScoreState self)"""
4236  return _IMP_container.DistributeTripletsScoreState_do_before_evaluate(self)
4237 
4238  def do_after_evaluate(self, da):
4239  r"""do_after_evaluate(DistributeTripletsScoreState self, DerivativeAccumulator da)"""
4240  return _IMP_container.DistributeTripletsScoreState_do_after_evaluate(self, da)
4241 
4242  def do_get_inputs(self):
4243  r"""do_get_inputs(DistributeTripletsScoreState self) -> IMP::ModelObjectsTemp"""
4244  return _IMP_container.DistributeTripletsScoreState_do_get_inputs(self)
4245 
4246  def do_get_outputs(self):
4247  r"""do_get_outputs(DistributeTripletsScoreState self) -> IMP::ModelObjectsTemp"""
4248  return _IMP_container.DistributeTripletsScoreState_do_get_outputs(self)
4249 
4250  def get_version_info(self):
4251  r"""get_version_info(DistributeTripletsScoreState self) -> VersionInfo"""
4252  return _IMP_container.DistributeTripletsScoreState_get_version_info(self)
4253  __swig_destroy__ = _IMP_container.delete_DistributeTripletsScoreState
4254 
4255  def __str__(self):
4256  r"""__str__(DistributeTripletsScoreState self) -> std::string"""
4257  return _IMP_container.DistributeTripletsScoreState___str__(self)
4258 
4259  def __repr__(self):
4260  r"""__repr__(DistributeTripletsScoreState self) -> std::string"""
4261  return _IMP_container.DistributeTripletsScoreState___repr__(self)
4262 
4263  @staticmethod
4264  def get_from(o):
4265  return _object_cast_to_DistributeTripletsScoreState(o)
4266 
4267 
4268 # Register DistributeTripletsScoreState in _IMP_container:
4269 _IMP_container.DistributeTripletsScoreState_swigregister(DistributeTripletsScoreState)
4270 class DistributeQuadsScoreState(IMP.ScoreState):
4271  r"""Proxy of C++ IMP::container::DistributeQuadsScoreState class."""
4272 
4273  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4274 
4275  def __init__(self, *args):
4276  r"""__init__(DistributeQuadsScoreState self, _QuadContainerAdaptor input, std::string name="DistributeQuadsScoreState %1%") -> DistributeQuadsScoreState"""
4277  _IMP_container.DistributeQuadsScoreState_swiginit(self, _IMP_container.new_DistributeQuadsScoreState(*args))
4278 
4279  def add_predicate(self, predicate, value):
4280  r"""add_predicate(DistributeQuadsScoreState self, QuadPredicate predicate, int value) -> DynamicListQuadContainer"""
4281  return _IMP_container.DistributeQuadsScoreState_add_predicate(self, predicate, value)
4282 
4283  def do_before_evaluate(self):
4284  r"""do_before_evaluate(DistributeQuadsScoreState self)"""
4285  return _IMP_container.DistributeQuadsScoreState_do_before_evaluate(self)
4286 
4287  def do_after_evaluate(self, da):
4288  r"""do_after_evaluate(DistributeQuadsScoreState self, DerivativeAccumulator da)"""
4289  return _IMP_container.DistributeQuadsScoreState_do_after_evaluate(self, da)
4290 
4291  def do_get_inputs(self):
4292  r"""do_get_inputs(DistributeQuadsScoreState self) -> IMP::ModelObjectsTemp"""
4293  return _IMP_container.DistributeQuadsScoreState_do_get_inputs(self)
4294 
4295  def do_get_outputs(self):
4296  r"""do_get_outputs(DistributeQuadsScoreState self) -> IMP::ModelObjectsTemp"""
4297  return _IMP_container.DistributeQuadsScoreState_do_get_outputs(self)
4298 
4299  def get_version_info(self):
4300  r"""get_version_info(DistributeQuadsScoreState self) -> VersionInfo"""
4301  return _IMP_container.DistributeQuadsScoreState_get_version_info(self)
4302  __swig_destroy__ = _IMP_container.delete_DistributeQuadsScoreState
4303 
4304  def __str__(self):
4305  r"""__str__(DistributeQuadsScoreState self) -> std::string"""
4306  return _IMP_container.DistributeQuadsScoreState___str__(self)
4307 
4308  def __repr__(self):
4309  r"""__repr__(DistributeQuadsScoreState self) -> std::string"""
4310  return _IMP_container.DistributeQuadsScoreState___repr__(self)
4311 
4312  @staticmethod
4313  def get_from(o):
4314  return _object_cast_to_DistributeQuadsScoreState(o)
4315 
4316 
4317 # Register DistributeQuadsScoreState in _IMP_container:
4318 _IMP_container.DistributeQuadsScoreState_swigregister(DistributeQuadsScoreState)
4319 
4320 def create_restraint(*args):
4321  r"""
4322  create_restraint(PairScore ps, IMP::ParticlePair pp) -> Restraint
4323  create_restraint(PairScore ps, PairContainer pp) -> Restraint
4324  """
4325  return _IMP_container.create_restraint(*args)
4326 
4327 def get_module_version():
4328  r"""get_module_version() -> std::string const"""
4329  return _IMP_container.get_module_version()
4330 
4331 def get_example_path(fname):
4332  r"""get_example_path(std::string fname) -> std::string"""
4333  return _IMP_container.get_example_path(fname)
4334 
4335 def get_data_path(fname):
4336  r"""get_data_path(std::string fname) -> std::string"""
4337  return _IMP_container.get_data_path(fname)
4338 
4339 from . import _version_check
4340 _version_check.check_version(get_module_version())
4341 __version__ = get_module_version()
4342 
4343 
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