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