14 from sys
import version_info
as _swig_python_version_info
18 import builtins
as __builtin__
24 strthis =
"proxy of " + self.this.__repr__()
25 except __builtin__.Exception:
27 return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
30 def _swig_setattr_nondynamic_instance_variable(set):
31 def set_instance_attr(self, name, value):
33 set(self, name, value)
34 elif name ==
"thisown":
36 elif hasattr(self, name)
and isinstance(getattr(type(self), name), property):
37 set(self, name, value)
39 raise AttributeError(
"You cannot add instance attributes to %s" % self)
40 return set_instance_attr
43 def _swig_setattr_nondynamic_class_variable(set):
44 def set_class_attr(cls, name, value):
45 if hasattr(cls, name)
and not isinstance(getattr(cls, name), property):
48 raise AttributeError(
"You cannot add class attributes to %s" % cls)
52 def _swig_add_metaclass(metaclass):
53 """Class decorator for adding a metaclass to a SWIG wrapped class - a slimmed down version of six.add_metaclass"""
55 return metaclass(cls.__name__, cls.__bases__, cls.__dict__.copy())
59 class _SwigNonDynamicMeta(type):
60 """Meta class to enforce nondynamic attributes (no new attributes) for a class"""
61 __setattr__ = _swig_setattr_nondynamic_class_variable(type.__setattr__)
66 class IMP_CONTAINER_SwigPyIterator(object):
67 r"""Proxy of C++ swig::IMP_CONTAINER_SwigPyIterator class."""
69 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
71 def __init__(self, *args, **kwargs):
72 raise AttributeError(
"No constructor defined - class is abstract")
74 __swig_destroy__ = _IMP_container.delete_IMP_CONTAINER_SwigPyIterator
77 r"""value(IMP_CONTAINER_SwigPyIterator self) -> PyObject *"""
78 return _IMP_container.IMP_CONTAINER_SwigPyIterator_value(self)
81 r"""incr(IMP_CONTAINER_SwigPyIterator self, size_t n=1) -> IMP_CONTAINER_SwigPyIterator"""
82 return _IMP_container.IMP_CONTAINER_SwigPyIterator_incr(self, n)
85 r"""decr(IMP_CONTAINER_SwigPyIterator self, size_t n=1) -> IMP_CONTAINER_SwigPyIterator"""
86 return _IMP_container.IMP_CONTAINER_SwigPyIterator_decr(self, n)
88 def distance(self, x):
89 r"""distance(IMP_CONTAINER_SwigPyIterator self, IMP_CONTAINER_SwigPyIterator x) -> ptrdiff_t"""
90 return _IMP_container.IMP_CONTAINER_SwigPyIterator_distance(self, x)
93 r"""equal(IMP_CONTAINER_SwigPyIterator self, IMP_CONTAINER_SwigPyIterator x) -> bool"""
94 return _IMP_container.IMP_CONTAINER_SwigPyIterator_equal(self, x)
97 r"""copy(IMP_CONTAINER_SwigPyIterator self) -> IMP_CONTAINER_SwigPyIterator"""
98 return _IMP_container.IMP_CONTAINER_SwigPyIterator_copy(self)
101 r"""next(IMP_CONTAINER_SwigPyIterator self) -> PyObject *"""
102 return _IMP_container.IMP_CONTAINER_SwigPyIterator_next(self)
105 r"""__next__(IMP_CONTAINER_SwigPyIterator self) -> PyObject *"""
106 return _IMP_container.IMP_CONTAINER_SwigPyIterator___next__(self)
109 r"""previous(IMP_CONTAINER_SwigPyIterator self) -> PyObject *"""
110 return _IMP_container.IMP_CONTAINER_SwigPyIterator_previous(self)
112 def advance(self, n):
113 r"""advance(IMP_CONTAINER_SwigPyIterator self, ptrdiff_t n) -> IMP_CONTAINER_SwigPyIterator"""
114 return _IMP_container.IMP_CONTAINER_SwigPyIterator_advance(self, n)
117 r"""__eq__(IMP_CONTAINER_SwigPyIterator self, IMP_CONTAINER_SwigPyIterator x) -> bool"""
118 return _IMP_container.IMP_CONTAINER_SwigPyIterator___eq__(self, x)
121 r"""__ne__(IMP_CONTAINER_SwigPyIterator self, IMP_CONTAINER_SwigPyIterator x) -> bool"""
122 return _IMP_container.IMP_CONTAINER_SwigPyIterator___ne__(self, x)
124 def __iadd__(self, n):
125 r"""__iadd__(IMP_CONTAINER_SwigPyIterator self, ptrdiff_t n) -> IMP_CONTAINER_SwigPyIterator"""
126 return _IMP_container.IMP_CONTAINER_SwigPyIterator___iadd__(self, n)
128 def __isub__(self, n):
129 r"""__isub__(IMP_CONTAINER_SwigPyIterator self, ptrdiff_t n) -> IMP_CONTAINER_SwigPyIterator"""
130 return _IMP_container.IMP_CONTAINER_SwigPyIterator___isub__(self, n)
132 def __add__(self, n):
133 r"""__add__(IMP_CONTAINER_SwigPyIterator self, ptrdiff_t n) -> IMP_CONTAINER_SwigPyIterator"""
134 return _IMP_container.IMP_CONTAINER_SwigPyIterator___add__(self, n)
136 def __sub__(self, *args):
138 __sub__(IMP_CONTAINER_SwigPyIterator self, ptrdiff_t n) -> IMP_CONTAINER_SwigPyIterator
139 __sub__(IMP_CONTAINER_SwigPyIterator self, IMP_CONTAINER_SwigPyIterator x) -> ptrdiff_t
141 return _IMP_container.IMP_CONTAINER_SwigPyIterator___sub__(self, *args)
146 _IMP_container.IMP_CONTAINER_SwigPyIterator_swigregister(IMP_CONTAINER_SwigPyIterator)
153 IMP_DEBUG = _IMP_container.IMP_DEBUG
155 IMP_RELEASE = _IMP_container.IMP_RELEASE
157 IMP_SILENT = _IMP_container.IMP_SILENT
159 IMP_PROGRESS = _IMP_container.IMP_PROGRESS
161 IMP_TERSE = _IMP_container.IMP_TERSE
163 IMP_VERBOSE = _IMP_container.IMP_VERBOSE
165 IMP_MEMORY = _IMP_container.IMP_MEMORY
167 IMP_NONE = _IMP_container.IMP_NONE
169 IMP_USAGE = _IMP_container.IMP_USAGE
171 IMP_INTERNAL = _IMP_container.IMP_INTERNAL
173 IMP_KERNEL_HAS_LOG4CXX = _IMP_container.IMP_KERNEL_HAS_LOG4CXX
175 IMP_COMPILER_HAS_CEREAL_RAW_POINTER = _IMP_container.IMP_COMPILER_HAS_CEREAL_RAW_POINTER
177 IMP_COMPILER_HAS_DEBUG_VECTOR = _IMP_container.IMP_COMPILER_HAS_DEBUG_VECTOR
179 IMP_COMPILER_HAS_RANDOM_SHUFFLE = _IMP_container.IMP_COMPILER_HAS_RANDOM_SHUFFLE
181 IMP_COMPILER_HAS_THREE_WAY = _IMP_container.IMP_COMPILER_HAS_THREE_WAY
183 IMP_KERNEL_HAS_BOOST_RANDOM = _IMP_container.IMP_KERNEL_HAS_BOOST_RANDOM
185 IMP_KERNEL_HAS_NUMPY = _IMP_container.IMP_KERNEL_HAS_NUMPY
187 IMP_KERNEL_HAS_BOOST_SYSTEM = _IMP_container.IMP_KERNEL_HAS_BOOST_SYSTEM
189 IMP_KERNEL_HAS_GPERFTOOLS = _IMP_container.IMP_KERNEL_HAS_GPERFTOOLS
191 IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER = _IMP_container.IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER
193 IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER = _IMP_container.IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER
195 IMPKERNEL_SHOW_WARNINGS = _IMP_container.IMPKERNEL_SHOW_WARNINGS
199 class _DirectorObjects:
200 """@internal Simple class to keep references to director objects
201 to prevent premature deletion."""
204 def register(self, obj):
205 """Take a reference to a director object; will only work for
206 refcounted C++ classes"""
207 if hasattr(obj,
'get_ref_count'):
208 self._objects.append(obj)
210 """Only drop our reference and allow cleanup by Python if no other
211 Python references exist (we hold 3 references: one in self._objects,
212 one in x, and one in the argument list for getrefcount) *and* no
213 other C++ references exist (the Python object always holds one)"""
214 objs = [x
for x
in self._objects
if sys.getrefcount(x) > 3 \
215 or x.get_ref_count() > 1]
219 def get_object_count(self):
220 """Get number of director objects (useful for testing only)"""
221 return len(self._objects)
222 _director_objects = _DirectorObjects()
224 class _ostream(object):
225 r"""Proxy of C++ std::ostream class."""
227 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
229 def __init__(self, *args, **kwargs):
230 raise AttributeError(
"No constructor defined")
231 __repr__ = _swig_repr
233 def write(self, osa_buf):
234 r"""write(_ostream self, char const * osa_buf)"""
235 return _IMP_container._ostream_write(self, osa_buf)
238 _IMP_container._ostream_swigregister(_ostream)
239 IMP_C_OPEN_BINARY = _IMP_container.IMP_C_OPEN_BINARY
242 IMP_CGAL_HAS_BOOST_FILESYSTEM = _IMP_container.IMP_CGAL_HAS_BOOST_FILESYSTEM
244 IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS = _IMP_container.IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS
246 IMP_CGAL_HAS_BOOST_RANDOM = _IMP_container.IMP_CGAL_HAS_BOOST_RANDOM
248 IMP_CGAL_HAS_NUMPY = _IMP_container.IMP_CGAL_HAS_NUMPY
250 IMPCGAL_SHOW_WARNINGS = _IMP_container.IMPCGAL_SHOW_WARNINGS
253 IMP_ALGEBRA_HAS_IMP_CGAL = _IMP_container.IMP_ALGEBRA_HAS_IMP_CGAL
255 IMP_ALGEBRA_HAS_BOOST_FILESYSTEM = _IMP_container.IMP_ALGEBRA_HAS_BOOST_FILESYSTEM
257 IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS = _IMP_container.IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS
259 IMP_ALGEBRA_HAS_BOOST_RANDOM = _IMP_container.IMP_ALGEBRA_HAS_BOOST_RANDOM
261 IMP_ALGEBRA_HAS_CGAL = _IMP_container.IMP_ALGEBRA_HAS_CGAL
263 IMP_ALGEBRA_HAS_NUMPY = _IMP_container.IMP_ALGEBRA_HAS_NUMPY
265 IMP_ALGEBRA_HAS_ANN = _IMP_container.IMP_ALGEBRA_HAS_ANN
267 IMPALGEBRA_SHOW_WARNINGS = _IMP_container.IMPALGEBRA_SHOW_WARNINGS
270 IMP_DISPLAY_HAS_IMP_CGAL = _IMP_container.IMP_DISPLAY_HAS_IMP_CGAL
272 IMP_DISPLAY_HAS_BOOST_FILESYSTEM = _IMP_container.IMP_DISPLAY_HAS_BOOST_FILESYSTEM
274 IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS = _IMP_container.IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS
276 IMP_DISPLAY_HAS_BOOST_RANDOM = _IMP_container.IMP_DISPLAY_HAS_BOOST_RANDOM
278 IMP_DISPLAY_HAS_CGAL = _IMP_container.IMP_DISPLAY_HAS_CGAL
280 IMP_DISPLAY_HAS_NUMPY = _IMP_container.IMP_DISPLAY_HAS_NUMPY
282 IMPDISPLAY_SHOW_WARNINGS = _IMP_container.IMPDISPLAY_SHOW_WARNINGS
285 IMP_SCORE_FUNCTOR_HAS_IMP_CGAL = _IMP_container.IMP_SCORE_FUNCTOR_HAS_IMP_CGAL
287 IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM = _IMP_container.IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM
289 IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS = _IMP_container.IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS
291 IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM = _IMP_container.IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM
293 IMP_SCORE_FUNCTOR_HAS_CGAL = _IMP_container.IMP_SCORE_FUNCTOR_HAS_CGAL
295 IMP_SCORE_FUNCTOR_HAS_HDF5 = _IMP_container.IMP_SCORE_FUNCTOR_HAS_HDF5
297 IMP_SCORE_FUNCTOR_HAS_NUMPY = _IMP_container.IMP_SCORE_FUNCTOR_HAS_NUMPY
299 IMPSCOREFUNCTOR_SHOW_WARNINGS = _IMP_container.IMPSCOREFUNCTOR_SHOW_WARNINGS
302 IMP_CORE_HAS_IMP_CGAL = _IMP_container.IMP_CORE_HAS_IMP_CGAL
304 IMP_CORE_HAS_IMP_KERNEL = _IMP_container.IMP_CORE_HAS_IMP_KERNEL
306 IMP_CORE_HAS_BOOST_FILESYSTEM = _IMP_container.IMP_CORE_HAS_BOOST_FILESYSTEM
308 IMP_CORE_HAS_BOOST_PROGRAMOPTIONS = _IMP_container.IMP_CORE_HAS_BOOST_PROGRAMOPTIONS
310 IMP_CORE_HAS_BOOST_RANDOM = _IMP_container.IMP_CORE_HAS_BOOST_RANDOM
312 IMP_CORE_HAS_CGAL = _IMP_container.IMP_CORE_HAS_CGAL
314 IMP_CORE_HAS_HDF5 = _IMP_container.IMP_CORE_HAS_HDF5
316 IMP_CORE_HAS_NUMPY = _IMP_container.IMP_CORE_HAS_NUMPY
318 IMPCORE_SHOW_WARNINGS = _IMP_container.IMPCORE_SHOW_WARNINGS
321 IMP_CONTAINER_HAS_IMP_ALGEBRA = _IMP_container.IMP_CONTAINER_HAS_IMP_ALGEBRA
323 IMP_CONTAINER_HAS_IMP_CGAL = _IMP_container.IMP_CONTAINER_HAS_IMP_CGAL
325 IMP_CONTAINER_HAS_IMP_DISPLAY = _IMP_container.IMP_CONTAINER_HAS_IMP_DISPLAY
327 IMP_CONTAINER_HAS_IMP_KERNEL = _IMP_container.IMP_CONTAINER_HAS_IMP_KERNEL
329 IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR = _IMP_container.IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR
331 IMP_CONTAINER_HAS_BOOST_FILESYSTEM = _IMP_container.IMP_CONTAINER_HAS_BOOST_FILESYSTEM
333 IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS = _IMP_container.IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS
335 IMP_CONTAINER_HAS_BOOST_RANDOM = _IMP_container.IMP_CONTAINER_HAS_BOOST_RANDOM
337 IMP_CONTAINER_HAS_CGAL = _IMP_container.IMP_CONTAINER_HAS_CGAL
339 IMP_CONTAINER_HAS_HDF5 = _IMP_container.IMP_CONTAINER_HAS_HDF5
341 IMP_CONTAINER_HAS_NUMPY = _IMP_container.IMP_CONTAINER_HAS_NUMPY
343 IMP_CONTAINER_HAS_PYTHON_IHM = _IMP_container.IMP_CONTAINER_HAS_PYTHON_IHM
345 IMP_CONTAINER_HAS_GOOGLE_DENSE_HASH_MAP = _IMP_container.IMP_CONTAINER_HAS_GOOGLE_DENSE_HASH_MAP
347 IMP_CONTAINER_HAS_ROBIN_MAP = _IMP_container.IMP_CONTAINER_HAS_ROBIN_MAP
349 IMPCONTAINER_SHOW_WARNINGS = _IMP_container.IMPCONTAINER_SHOW_WARNINGS
352 _object_types.append(
"AllBipartitePairContainer")
355 def _object_cast_to_AllBipartitePairContainer(o):
356 r"""_object_cast_to_AllBipartitePairContainer(Object o) -> AllBipartitePairContainer"""
357 return _IMP_container._object_cast_to_AllBipartitePairContainer(o)
359 _object_types.append(
"AllPairContainer")
362 def _object_cast_to_AllPairContainer(o):
363 r"""_object_cast_to_AllPairContainer(Object o) -> AllPairContainer"""
364 return _IMP_container._object_cast_to_AllPairContainer(o)
366 _object_types.append(
"CloseBipartitePairContainer")
369 def _object_cast_to_CloseBipartitePairContainer(o):
370 r"""_object_cast_to_CloseBipartitePairContainer(Object o) -> CloseBipartitePairContainer"""
371 return _IMP_container._object_cast_to_CloseBipartitePairContainer(o)
373 _object_types.append(
"ClosePairContainer")
376 def _object_cast_to_ClosePairContainer(o):
377 r"""_object_cast_to_ClosePairContainer(Object o) -> ClosePairContainer"""
378 return _IMP_container._object_cast_to_ClosePairContainer(o)
380 _object_types.append(
"ConnectingPairContainer")
383 def _object_cast_to_ConnectingPairContainer(o):
384 r"""_object_cast_to_ConnectingPairContainer(Object o) -> ConnectingPairContainer"""
385 return _IMP_container._object_cast_to_ConnectingPairContainer(o)
387 _object_types.append(
"ConsecutivePairContainer")
390 def _object_cast_to_ConsecutivePairContainer(o):
391 r"""_object_cast_to_ConsecutivePairContainer(Object o) -> ConsecutivePairContainer"""
392 return _IMP_container._object_cast_to_ConsecutivePairContainer(o)
394 _object_types.append(
"ExclusiveConsecutivePairContainer")
397 def _object_cast_to_ExclusiveConsecutivePairContainer(o):
398 r"""_object_cast_to_ExclusiveConsecutivePairContainer(Object o) -> ExclusiveConsecutivePairContainer"""
399 return _IMP_container._object_cast_to_ExclusiveConsecutivePairContainer(o)
401 _object_types.append(
"ExclusiveConsecutivePairFilter")
404 def _object_cast_to_ExclusiveConsecutivePairFilter(o):
405 r"""_object_cast_to_ExclusiveConsecutivePairFilter(Object o) -> ExclusiveConsecutivePairFilter"""
406 return _IMP_container._object_cast_to_ExclusiveConsecutivePairFilter(o)
408 _object_types.append(
"ConsecutivePairFilter")
411 def _object_cast_to_ConsecutivePairFilter(o):
412 r"""_object_cast_to_ConsecutivePairFilter(Object o) -> ConsecutivePairFilter"""
413 return _IMP_container._object_cast_to_ConsecutivePairFilter(o)
415 _object_types.append(
"ListPairContainer")
418 def _object_cast_to_ListPairContainer(o):
419 r"""_object_cast_to_ListPairContainer(Object o) -> ListPairContainer"""
420 return _IMP_container._object_cast_to_ListPairContainer(o)
422 _object_types.append(
"ListQuadContainer")
425 def _object_cast_to_ListQuadContainer(o):
426 r"""_object_cast_to_ListQuadContainer(Object o) -> ListQuadContainer"""
427 return _IMP_container._object_cast_to_ListQuadContainer(o)
429 _object_types.append(
"ListSingletonContainer")
432 def _object_cast_to_ListSingletonContainer(o):
433 r"""_object_cast_to_ListSingletonContainer(Object o) -> ListSingletonContainer"""
434 return _IMP_container._object_cast_to_ListSingletonContainer(o)
436 _object_types.append(
"ListTripletContainer")
439 def _object_cast_to_ListTripletContainer(o):
440 r"""_object_cast_to_ListTripletContainer(Object o) -> ListTripletContainer"""
441 return _IMP_container._object_cast_to_ListTripletContainer(o)
443 _object_types.append(
"DynamicListPairContainer")
446 def _object_cast_to_DynamicListPairContainer(o):
447 r"""_object_cast_to_DynamicListPairContainer(Object o) -> DynamicListPairContainer"""
448 return _IMP_container._object_cast_to_DynamicListPairContainer(o)
450 _object_types.append(
"DynamicListQuadContainer")
453 def _object_cast_to_DynamicListQuadContainer(o):
454 r"""_object_cast_to_DynamicListQuadContainer(Object o) -> DynamicListQuadContainer"""
455 return _IMP_container._object_cast_to_DynamicListQuadContainer(o)
457 _object_types.append(
"DynamicListSingletonContainer")
460 def _object_cast_to_DynamicListSingletonContainer(o):
461 r"""_object_cast_to_DynamicListSingletonContainer(Object o) -> DynamicListSingletonContainer"""
462 return _IMP_container._object_cast_to_DynamicListSingletonContainer(o)
464 _object_types.append(
"DynamicListTripletContainer")
467 def _object_cast_to_DynamicListTripletContainer(o):
468 r"""_object_cast_to_DynamicListTripletContainer(Object o) -> DynamicListTripletContainer"""
469 return _IMP_container._object_cast_to_DynamicListTripletContainer(o)
471 _object_types.append(
"MinimumPairRestraint")
474 def _object_cast_to_MinimumPairRestraint(o):
475 r"""_object_cast_to_MinimumPairRestraint(Object o) -> MinimumPairRestraint"""
476 return _IMP_container._object_cast_to_MinimumPairRestraint(o)
478 _object_types.append(
"MinimumPairScore")
481 def _object_cast_to_MinimumPairScore(o):
482 r"""_object_cast_to_MinimumPairScore(Object o) -> MinimumPairScore"""
483 return _IMP_container._object_cast_to_MinimumPairScore(o)
485 _object_types.append(
"MinimumQuadRestraint")
488 def _object_cast_to_MinimumQuadRestraint(o):
489 r"""_object_cast_to_MinimumQuadRestraint(Object o) -> MinimumQuadRestraint"""
490 return _IMP_container._object_cast_to_MinimumQuadRestraint(o)
492 _object_types.append(
"MinimumQuadScore")
495 def _object_cast_to_MinimumQuadScore(o):
496 r"""_object_cast_to_MinimumQuadScore(Object o) -> MinimumQuadScore"""
497 return _IMP_container._object_cast_to_MinimumQuadScore(o)
499 _object_types.append(
"MinimumSingletonRestraint")
502 def _object_cast_to_MinimumSingletonRestraint(o):
503 r"""_object_cast_to_MinimumSingletonRestraint(Object o) -> MinimumSingletonRestraint"""
504 return _IMP_container._object_cast_to_MinimumSingletonRestraint(o)
506 _object_types.append(
"MinimumSingletonScore")
509 def _object_cast_to_MinimumSingletonScore(o):
510 r"""_object_cast_to_MinimumSingletonScore(Object o) -> MinimumSingletonScore"""
511 return _IMP_container._object_cast_to_MinimumSingletonScore(o)
513 _object_types.append(
"MinimumTripletRestraint")
516 def _object_cast_to_MinimumTripletRestraint(o):
517 r"""_object_cast_to_MinimumTripletRestraint(Object o) -> MinimumTripletRestraint"""
518 return _IMP_container._object_cast_to_MinimumTripletRestraint(o)
520 _object_types.append(
"MinimumTripletScore")
523 def _object_cast_to_MinimumTripletScore(o):
524 r"""_object_cast_to_MinimumTripletScore(Object o) -> MinimumTripletScore"""
525 return _IMP_container._object_cast_to_MinimumTripletScore(o)
527 _object_types.append(
"PairContainerSet")
530 def _object_cast_to_PairContainerSet(o):
531 r"""_object_cast_to_PairContainerSet(Object o) -> PairContainerSet"""
532 return _IMP_container._object_cast_to_PairContainerSet(o)
534 _object_types.append(
"PairsConstraint")
537 def _object_cast_to_PairsConstraint(o):
538 r"""_object_cast_to_PairsConstraint(Object o) -> PairsConstraint"""
539 return _IMP_container._object_cast_to_PairsConstraint(o)
541 _object_types.append(
"PairsOptimizerState")
544 def _object_cast_to_PairsOptimizerState(o):
545 r"""_object_cast_to_PairsOptimizerState(Object o) -> PairsOptimizerState"""
546 return _IMP_container._object_cast_to_PairsOptimizerState(o)
548 _object_types.append(
"PairsRestraint")
551 def _object_cast_to_PairsRestraint(o):
552 r"""_object_cast_to_PairsRestraint(Object o) -> PairsRestraint"""
553 return _IMP_container._object_cast_to_PairsRestraint(o)
555 _object_types.append(
"QuadContainerSet")
558 def _object_cast_to_QuadContainerSet(o):
559 r"""_object_cast_to_QuadContainerSet(Object o) -> QuadContainerSet"""
560 return _IMP_container._object_cast_to_QuadContainerSet(o)
562 _object_types.append(
"QuadsConstraint")
565 def _object_cast_to_QuadsConstraint(o):
566 r"""_object_cast_to_QuadsConstraint(Object o) -> QuadsConstraint"""
567 return _IMP_container._object_cast_to_QuadsConstraint(o)
569 _object_types.append(
"QuadsOptimizerState")
572 def _object_cast_to_QuadsOptimizerState(o):
573 r"""_object_cast_to_QuadsOptimizerState(Object o) -> QuadsOptimizerState"""
574 return _IMP_container._object_cast_to_QuadsOptimizerState(o)
576 _object_types.append(
"QuadsRestraint")
579 def _object_cast_to_QuadsRestraint(o):
580 r"""_object_cast_to_QuadsRestraint(Object o) -> QuadsRestraint"""
581 return _IMP_container._object_cast_to_QuadsRestraint(o)
583 _object_types.append(
"SingletonContainerSet")
586 def _object_cast_to_SingletonContainerSet(o):
587 r"""_object_cast_to_SingletonContainerSet(Object o) -> SingletonContainerSet"""
588 return _IMP_container._object_cast_to_SingletonContainerSet(o)
590 _object_types.append(
"SingletonsConstraint")
593 def _object_cast_to_SingletonsConstraint(o):
594 r"""_object_cast_to_SingletonsConstraint(Object o) -> SingletonsConstraint"""
595 return _IMP_container._object_cast_to_SingletonsConstraint(o)
597 _object_types.append(
"SingletonsOptimizerState")
600 def _object_cast_to_SingletonsOptimizerState(o):
601 r"""_object_cast_to_SingletonsOptimizerState(Object o) -> SingletonsOptimizerState"""
602 return _IMP_container._object_cast_to_SingletonsOptimizerState(o)
604 _object_types.append(
"SingletonsRestraint")
607 def _object_cast_to_SingletonsRestraint(o):
608 r"""_object_cast_to_SingletonsRestraint(Object o) -> SingletonsRestraint"""
609 return _IMP_container._object_cast_to_SingletonsRestraint(o)
611 _object_types.append(
"TripletContainerSet")
614 def _object_cast_to_TripletContainerSet(o):
615 r"""_object_cast_to_TripletContainerSet(Object o) -> TripletContainerSet"""
616 return _IMP_container._object_cast_to_TripletContainerSet(o)
618 _object_types.append(
"TripletsConstraint")
621 def _object_cast_to_TripletsConstraint(o):
622 r"""_object_cast_to_TripletsConstraint(Object o) -> TripletsConstraint"""
623 return _IMP_container._object_cast_to_TripletsConstraint(o)
625 _object_types.append(
"TripletsOptimizerState")
628 def _object_cast_to_TripletsOptimizerState(o):
629 r"""_object_cast_to_TripletsOptimizerState(Object o) -> TripletsOptimizerState"""
630 return _IMP_container._object_cast_to_TripletsOptimizerState(o)
632 _object_types.append(
"TripletsRestraint")
635 def _object_cast_to_TripletsRestraint(o):
636 r"""_object_cast_to_TripletsRestraint(Object o) -> TripletsRestraint"""
637 return _IMP_container._object_cast_to_TripletsRestraint(o)
639 _object_types.append(
"InContainerSingletonFilter")
642 def _object_cast_to_InContainerSingletonFilter(o):
643 r"""_object_cast_to_InContainerSingletonFilter(Object o) -> InContainerSingletonFilter"""
644 return _IMP_container._object_cast_to_InContainerSingletonFilter(o)
646 _object_types.append(
"InContainerPairFilter")
649 def _object_cast_to_InContainerPairFilter(o):
650 r"""_object_cast_to_InContainerPairFilter(Object o) -> InContainerPairFilter"""
651 return _IMP_container._object_cast_to_InContainerPairFilter(o)
653 _object_types.append(
"InContainerTripletFilter")
656 def _object_cast_to_InContainerTripletFilter(o):
657 r"""_object_cast_to_InContainerTripletFilter(Object o) -> InContainerTripletFilter"""
658 return _IMP_container._object_cast_to_InContainerTripletFilter(o)
660 _object_types.append(
"InContainerQuadFilter")
663 def _object_cast_to_InContainerQuadFilter(o):
664 r"""_object_cast_to_InContainerQuadFilter(Object o) -> InContainerQuadFilter"""
665 return _IMP_container._object_cast_to_InContainerQuadFilter(o)
667 _object_types.append(
"SingletonContainerStatistics")
670 def _object_cast_to_SingletonContainerStatistics(o):
671 r"""_object_cast_to_SingletonContainerStatistics(Object o) -> SingletonContainerStatistics"""
672 return _IMP_container._object_cast_to_SingletonContainerStatistics(o)
674 _object_types.append(
"PairContainerStatistics")
677 def _object_cast_to_PairContainerStatistics(o):
678 r"""_object_cast_to_PairContainerStatistics(Object o) -> PairContainerStatistics"""
679 return _IMP_container._object_cast_to_PairContainerStatistics(o)
681 _object_types.append(
"TripletContainerStatistics")
684 def _object_cast_to_TripletContainerStatistics(o):
685 r"""_object_cast_to_TripletContainerStatistics(Object o) -> TripletContainerStatistics"""
686 return _IMP_container._object_cast_to_TripletContainerStatistics(o)
688 _object_types.append(
"QuadContainerStatistics")
691 def _object_cast_to_QuadContainerStatistics(o):
692 r"""_object_cast_to_QuadContainerStatistics(Object o) -> QuadContainerStatistics"""
693 return _IMP_container._object_cast_to_QuadContainerStatistics(o)
695 _object_types.append(
"EventSingletonsOptimizerState")
698 def _object_cast_to_EventSingletonsOptimizerState(o):
699 r"""_object_cast_to_EventSingletonsOptimizerState(Object o) -> EventSingletonsOptimizerState"""
700 return _IMP_container._object_cast_to_EventSingletonsOptimizerState(o)
702 _object_types.append(
"EventPairsOptimizerState")
705 def _object_cast_to_EventPairsOptimizerState(o):
706 r"""_object_cast_to_EventPairsOptimizerState(Object o) -> EventPairsOptimizerState"""
707 return _IMP_container._object_cast_to_EventPairsOptimizerState(o)
709 _object_types.append(
"EventTripletsOptimizerState")
712 def _object_cast_to_EventTripletsOptimizerState(o):
713 r"""_object_cast_to_EventTripletsOptimizerState(Object o) -> EventTripletsOptimizerState"""
714 return _IMP_container._object_cast_to_EventTripletsOptimizerState(o)
716 _object_types.append(
"EventQuadsOptimizerState")
719 def _object_cast_to_EventQuadsOptimizerState(o):
720 r"""_object_cast_to_EventQuadsOptimizerState(Object o) -> EventQuadsOptimizerState"""
721 return _IMP_container._object_cast_to_EventQuadsOptimizerState(o)
723 _object_types.append(
"PredicateSingletonsRestraint")
726 def _object_cast_to_PredicateSingletonsRestraint(o):
727 r"""_object_cast_to_PredicateSingletonsRestraint(Object o) -> PredicateSingletonsRestraint"""
728 return _IMP_container._object_cast_to_PredicateSingletonsRestraint(o)
730 _object_types.append(
"PredicatePairsRestraint")
733 def _object_cast_to_PredicatePairsRestraint(o):
734 r"""_object_cast_to_PredicatePairsRestraint(Object o) -> PredicatePairsRestraint"""
735 return _IMP_container._object_cast_to_PredicatePairsRestraint(o)
737 _object_types.append(
"PredicateTripletsRestraint")
740 def _object_cast_to_PredicateTripletsRestraint(o):
741 r"""_object_cast_to_PredicateTripletsRestraint(Object o) -> PredicateTripletsRestraint"""
742 return _IMP_container._object_cast_to_PredicateTripletsRestraint(o)
744 _object_types.append(
"PredicateQuadsRestraint")
747 def _object_cast_to_PredicateQuadsRestraint(o):
748 r"""_object_cast_to_PredicateQuadsRestraint(Object o) -> PredicateQuadsRestraint"""
749 return _IMP_container._object_cast_to_PredicateQuadsRestraint(o)
751 _object_types.append(
"DistributeSingletonsScoreState")
754 def _object_cast_to_DistributeSingletonsScoreState(o):
755 r"""_object_cast_to_DistributeSingletonsScoreState(Object o) -> DistributeSingletonsScoreState"""
756 return _IMP_container._object_cast_to_DistributeSingletonsScoreState(o)
758 _object_types.append(
"DistributePairsScoreState")
761 def _object_cast_to_DistributePairsScoreState(o):
762 r"""_object_cast_to_DistributePairsScoreState(Object o) -> DistributePairsScoreState"""
763 return _IMP_container._object_cast_to_DistributePairsScoreState(o)
765 _object_types.append(
"DistributeTripletsScoreState")
768 def _object_cast_to_DistributeTripletsScoreState(o):
769 r"""_object_cast_to_DistributeTripletsScoreState(Object o) -> DistributeTripletsScoreState"""
770 return _IMP_container._object_cast_to_DistributeTripletsScoreState(o)
772 _object_types.append(
"DistributeQuadsScoreState")
775 def _object_cast_to_DistributeQuadsScoreState(o):
776 r"""_object_cast_to_DistributeQuadsScoreState(Object o) -> DistributeQuadsScoreState"""
777 return _IMP_container._object_cast_to_DistributeQuadsScoreState(o)
779 r"""Proxy of C++ IMP::container::AllBipartitePairContainer class."""
781 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
783 def __init__(self, *args):
784 r"""__init__(AllBipartitePairContainer self, _SingletonContainerAdaptor a, _SingletonContainerAdaptor b, std::string name="AllBipartitePairContainer%1%") -> AllBipartitePairContainer"""
785 _IMP_container.AllBipartitePairContainer_swiginit(self, _IMP_container.new_AllBipartitePairContainer(*args))
787 def do_get_inputs(self):
788 r"""do_get_inputs(AllBipartitePairContainer self) -> IMP::ModelObjectsTemp"""
789 return _IMP_container.AllBipartitePairContainer_do_get_inputs(self)
791 def do_apply(self, sm):
792 r"""do_apply(AllBipartitePairContainer self, PairModifier sm)"""
793 return _IMP_container.AllBipartitePairContainer_do_apply(self, sm)
795 def do_apply_moved(self, sm, moved_pis, reset_pis):
796 r"""do_apply_moved(AllBipartitePairContainer self, PairModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
797 return _IMP_container.AllBipartitePairContainer_do_apply_moved(self, sm, moved_pis, reset_pis)
799 def get_version_info(self):
800 r"""get_version_info(AllBipartitePairContainer self) -> VersionInfo"""
801 return _IMP_container.AllBipartitePairContainer_get_version_info(self)
802 __swig_destroy__ = _IMP_container.delete_AllBipartitePairContainer
805 r"""__str__(AllBipartitePairContainer self) -> std::string"""
806 return _IMP_container.AllBipartitePairContainer___str__(self)
809 r"""__repr__(AllBipartitePairContainer self) -> std::string"""
810 return _IMP_container.AllBipartitePairContainer___repr__(self)
814 return _object_cast_to_AllBipartitePairContainer(o)
818 _IMP_container.AllBipartitePairContainer_swigregister(AllBipartitePairContainer)
820 r"""Proxy of C++ IMP::container::AllPairContainer class."""
822 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
824 def __init__(self, *args):
825 r"""__init__(AllPairContainer self, _SingletonContainerAdaptor c, std::string name="AllPairContainer%1%") -> AllPairContainer"""
826 _IMP_container.AllPairContainer_swiginit(self, _IMP_container.new_AllPairContainer(*args))
828 def do_get_inputs(self):
829 r"""do_get_inputs(AllPairContainer self) -> IMP::ModelObjectsTemp"""
830 return _IMP_container.AllPairContainer_do_get_inputs(self)
832 def do_apply(self, sm):
833 r"""do_apply(AllPairContainer self, PairModifier sm)"""
834 return _IMP_container.AllPairContainer_do_apply(self, sm)
836 def do_apply_moved(self, sm, moved_pis, reset_pis):
837 r"""do_apply_moved(AllPairContainer self, PairModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
838 return _IMP_container.AllPairContainer_do_apply_moved(self, sm, moved_pis, reset_pis)
840 def get_version_info(self):
841 r"""get_version_info(AllPairContainer self) -> VersionInfo"""
842 return _IMP_container.AllPairContainer_get_version_info(self)
843 __swig_destroy__ = _IMP_container.delete_AllPairContainer
846 r"""__str__(AllPairContainer self) -> std::string"""
847 return _IMP_container.AllPairContainer___str__(self)
850 r"""__repr__(AllPairContainer self) -> std::string"""
851 return _IMP_container.AllPairContainer___repr__(self)
855 return _object_cast_to_AllPairContainer(o)
859 _IMP_container.AllPairContainer_swigregister(AllPairContainer)
861 r"""Proxy of C++ IMP::container::CloseBipartitePairContainer class."""
863 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
865 def __init__(self, *args):
867 __init__(CloseBipartitePairContainer self, _SingletonContainerAdaptor a, _SingletonContainerAdaptor b, double distance, double slack=1, std::string name="CloseBipartitePairContainer%1%") -> CloseBipartitePairContainer
868 __init__(CloseBipartitePairContainer self, _SingletonContainerAdaptor a, _SingletonContainerAdaptor b, double distance, ClosePairsFinder cpf, double slack=1, std::string name="CloseBipartitePairContainer%1%") -> CloseBipartitePairContainer
869 __init__(CloseBipartitePairContainer self) -> CloseBipartitePairContainer
871 _IMP_container.CloseBipartitePairContainer_swiginit(self, _IMP_container.new_CloseBipartitePairContainer(*args))
872 def __get_pair_filters(self):
return IMP._list_util.VarList(getdimfunc=self.get_number_of_pair_filters, getfunc=self.get_pair_filter, erasefunc=self.erase_pair_filter, appendfunc=self.add_pair_filter, extendfunc=self.add_pair_filters, clearfunc=self.clear_pair_filters, indexfunc=self._python_index_pair_filter)
873 def __set_pair_filters(self, obj): IMP._list_util.set_varlist(self.pair_filters, obj)
874 def __del_pair_filters(self): IMP._list_util.del_varlist(self.pair_filters)
875 pair_filters = property(__get_pair_filters, __set_pair_filters, __del_pair_filters, doc=
"List of ##ucnames")
877 def remove_pair_filter(self, d):
878 r"""remove_pair_filter(CloseBipartitePairContainer self, PairPredicate d)"""
879 return _IMP_container.CloseBipartitePairContainer_remove_pair_filter(self, d)
881 def _python_index_pair_filter(self, d, start, stop):
882 r"""_python_index_pair_filter(CloseBipartitePairContainer self, PairPredicate d, unsigned int start, unsigned int stop) -> unsigned int"""
883 return _IMP_container.CloseBipartitePairContainer__python_index_pair_filter(self, d, start, stop)
885 def remove_pair_filters(self, d):
886 r"""remove_pair_filters(CloseBipartitePairContainer self, IMP::PairPredicates const & d)"""
887 return _IMP_container.CloseBipartitePairContainer_remove_pair_filters(self, d)
889 def set_pair_filters(self, ps):
890 r"""set_pair_filters(CloseBipartitePairContainer self, IMP::PairPredicates const & ps)"""
891 return _IMP_container.CloseBipartitePairContainer_set_pair_filters(self, ps)
893 def set_pair_filters_order(self, objs):
894 r"""set_pair_filters_order(CloseBipartitePairContainer self, IMP::PairPredicates const & objs)"""
895 return _IMP_container.CloseBipartitePairContainer_set_pair_filters_order(self, objs)
897 def add_pair_filter(self, obj):
898 r"""add_pair_filter(CloseBipartitePairContainer self, PairPredicate obj) -> unsigned int"""
899 return _IMP_container.CloseBipartitePairContainer_add_pair_filter(self, obj)
901 def add_pair_filters(self, objs):
902 r"""add_pair_filters(CloseBipartitePairContainer self, IMP::PairPredicates const & objs)"""
903 return _IMP_container.CloseBipartitePairContainer_add_pair_filters(self, objs)
905 def clear_pair_filters(self):
906 r"""clear_pair_filters(CloseBipartitePairContainer self)"""
907 return _IMP_container.CloseBipartitePairContainer_clear_pair_filters(self)
909 def get_number_of_pair_filters(self):
910 r"""get_number_of_pair_filters(CloseBipartitePairContainer self) -> unsigned int"""
911 return _IMP_container.CloseBipartitePairContainer_get_number_of_pair_filters(self)
913 def get_has_pair_filters(self):
914 r"""get_has_pair_filters(CloseBipartitePairContainer self) -> bool"""
915 return _IMP_container.CloseBipartitePairContainer_get_has_pair_filters(self)
917 def get_pair_filter(self, i):
918 r"""get_pair_filter(CloseBipartitePairContainer self, unsigned int i) -> PairPredicate"""
919 return _IMP_container.CloseBipartitePairContainer_get_pair_filter(self, i)
921 def get_pair_filters(self):
922 r"""get_pair_filters(CloseBipartitePairContainer self) -> IMP::PairPredicates"""
923 return _IMP_container.CloseBipartitePairContainer_get_pair_filters(self)
925 def erase_pair_filter(self, i):
926 r"""erase_pair_filter(CloseBipartitePairContainer self, unsigned int i)"""
927 return _IMP_container.CloseBipartitePairContainer_erase_pair_filter(self, i)
929 def reserve_pair_filters(self, sz):
930 r"""reserve_pair_filters(CloseBipartitePairContainer self, unsigned int sz)"""
931 return _IMP_container.CloseBipartitePairContainer_reserve_pair_filters(self, sz)
933 def do_get_inputs(self):
934 r"""do_get_inputs(CloseBipartitePairContainer self) -> IMP::ModelObjectsTemp"""
935 return _IMP_container.CloseBipartitePairContainer_do_get_inputs(self)
937 def do_apply(self, sm):
938 r"""do_apply(CloseBipartitePairContainer self, PairModifier sm)"""
939 return _IMP_container.CloseBipartitePairContainer_do_apply(self, sm)
941 def get_version_info(self):
942 r"""get_version_info(CloseBipartitePairContainer self) -> VersionInfo"""
943 return _IMP_container.CloseBipartitePairContainer_get_version_info(self)
944 __swig_destroy__ = _IMP_container.delete_CloseBipartitePairContainer
947 r"""__str__(CloseBipartitePairContainer self) -> std::string"""
948 return _IMP_container.CloseBipartitePairContainer___str__(self)
951 r"""__repr__(CloseBipartitePairContainer self) -> std::string"""
952 return _IMP_container.CloseBipartitePairContainer___repr__(self)
956 return _object_cast_to_CloseBipartitePairContainer(o)
959 def _get_as_binary(self):
960 r"""_get_as_binary(CloseBipartitePairContainer self) -> PyObject *"""
961 return _IMP_container.CloseBipartitePairContainer__get_as_binary(self)
963 def _set_from_binary(self, p):
964 r"""_set_from_binary(CloseBipartitePairContainer self, PyObject * p)"""
965 return _IMP_container.CloseBipartitePairContainer__set_from_binary(self, p)
967 def __getstate__(self):
968 p = self._get_as_binary()
969 if len(self.__dict__) > 1:
970 d = self.__dict__.copy()
975 def __setstate__(self, p):
976 if not hasattr(self,
'this'):
978 if isinstance(p, tuple):
980 self.__dict__.update(d)
981 return self._set_from_binary(p)
985 _IMP_container.CloseBipartitePairContainer_swigregister(CloseBipartitePairContainer)
987 r"""Proxy of C++ IMP::container::ClosePairContainer class."""
989 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
991 def __init__(self, *args):
993 __init__(ClosePairContainer self, _SingletonContainerAdaptor c, double distance_cutoff, double slack=1, std::string name="ClosePairContainer%1%") -> ClosePairContainer
994 __init__(ClosePairContainer self, _SingletonContainerAdaptor c, double distance_cutoff, ClosePairsFinder cpf, double slack=1, std::string name="ClosePairContainer%1%") -> ClosePairContainer
995 __init__(ClosePairContainer self) -> ClosePairContainer
997 _IMP_container.ClosePairContainer_swiginit(self, _IMP_container.new_ClosePairContainer(*args))
998 def __get_pair_filters(self):
return IMP._list_util.VarList(getdimfunc=self.get_number_of_pair_filters, getfunc=self.get_pair_filter, erasefunc=self.erase_pair_filter, appendfunc=self.add_pair_filter, extendfunc=self.add_pair_filters, clearfunc=self.clear_pair_filters, indexfunc=self._python_index_pair_filter)
999 def __set_pair_filters(self, obj): IMP._list_util.set_varlist(self.pair_filters, obj)
1000 def __del_pair_filters(self): IMP._list_util.del_varlist(self.pair_filters)
1001 pair_filters = property(__get_pair_filters, __set_pair_filters, __del_pair_filters, doc=
"List of ##ucnames")
1003 def remove_pair_filter(self, d):
1004 r"""remove_pair_filter(ClosePairContainer self, PairPredicate d)"""
1005 return _IMP_container.ClosePairContainer_remove_pair_filter(self, d)
1007 def _python_index_pair_filter(self, d, start, stop):
1008 r"""_python_index_pair_filter(ClosePairContainer self, PairPredicate d, unsigned int start, unsigned int stop) -> unsigned int"""
1009 return _IMP_container.ClosePairContainer__python_index_pair_filter(self, d, start, stop)
1011 def remove_pair_filters(self, d):
1012 r"""remove_pair_filters(ClosePairContainer self, IMP::PairPredicates const & d)"""
1013 return _IMP_container.ClosePairContainer_remove_pair_filters(self, d)
1015 def set_pair_filters(self, ps):
1016 r"""set_pair_filters(ClosePairContainer self, IMP::PairPredicates const & ps)"""
1017 return _IMP_container.ClosePairContainer_set_pair_filters(self, ps)
1019 def set_pair_filters_order(self, objs):
1020 r"""set_pair_filters_order(ClosePairContainer self, IMP::PairPredicates const & objs)"""
1021 return _IMP_container.ClosePairContainer_set_pair_filters_order(self, objs)
1023 def add_pair_filter(self, obj):
1024 r"""add_pair_filter(ClosePairContainer self, PairPredicate obj) -> unsigned int"""
1025 return _IMP_container.ClosePairContainer_add_pair_filter(self, obj)
1027 def add_pair_filters(self, objs):
1028 r"""add_pair_filters(ClosePairContainer self, IMP::PairPredicates const & objs)"""
1029 return _IMP_container.ClosePairContainer_add_pair_filters(self, objs)
1031 def clear_pair_filters(self):
1032 r"""clear_pair_filters(ClosePairContainer self)"""
1033 return _IMP_container.ClosePairContainer_clear_pair_filters(self)
1035 def get_number_of_pair_filters(self):
1036 r"""get_number_of_pair_filters(ClosePairContainer self) -> unsigned int"""
1037 return _IMP_container.ClosePairContainer_get_number_of_pair_filters(self)
1039 def get_has_pair_filters(self):
1040 r"""get_has_pair_filters(ClosePairContainer self) -> bool"""
1041 return _IMP_container.ClosePairContainer_get_has_pair_filters(self)
1043 def get_pair_filter(self, i):
1044 r"""get_pair_filter(ClosePairContainer self, unsigned int i) -> PairPredicate"""
1045 return _IMP_container.ClosePairContainer_get_pair_filter(self, i)
1047 def get_pair_filters(self):
1048 r"""get_pair_filters(ClosePairContainer self) -> IMP::PairPredicates"""
1049 return _IMP_container.ClosePairContainer_get_pair_filters(self)
1051 def erase_pair_filter(self, i):
1052 r"""erase_pair_filter(ClosePairContainer self, unsigned int i)"""
1053 return _IMP_container.ClosePairContainer_erase_pair_filter(self, i)
1055 def reserve_pair_filters(self, sz):
1056 r"""reserve_pair_filters(ClosePairContainer self, unsigned int sz)"""
1057 return _IMP_container.ClosePairContainer_reserve_pair_filters(self, sz)
1059 def set_slack(self, s):
1060 r"""set_slack(ClosePairContainer self, double s)"""
1061 return _IMP_container.ClosePairContainer_set_slack(self, s)
1063 def get_slack(self):
1064 r"""get_slack(ClosePairContainer self) -> double"""
1065 return _IMP_container.ClosePairContainer_get_slack(self)
1067 def do_get_inputs(self):
1068 r"""do_get_inputs(ClosePairContainer self) -> IMP::ModelObjectsTemp"""
1069 return _IMP_container.ClosePairContainer_do_get_inputs(self)
1071 def do_apply(self, sm):
1072 r"""do_apply(ClosePairContainer self, PairModifier sm)"""
1073 return _IMP_container.ClosePairContainer_do_apply(self, sm)
1075 def get_number_of_update_calls(self):
1076 r"""get_number_of_update_calls(ClosePairContainer self) -> unsigned int"""
1077 return _IMP_container.ClosePairContainer_get_number_of_update_calls(self)
1079 def get_number_of_full_rebuilds(self):
1080 r"""get_number_of_full_rebuilds(ClosePairContainer self) -> unsigned int"""
1081 return _IMP_container.ClosePairContainer_get_number_of_full_rebuilds(self)
1083 def get_number_of_partial_rebuilds(self):
1084 r"""get_number_of_partial_rebuilds(ClosePairContainer self) -> unsigned int"""
1085 return _IMP_container.ClosePairContainer_get_number_of_partial_rebuilds(self)
1087 def get_version_info(self):
1088 r"""get_version_info(ClosePairContainer self) -> VersionInfo"""
1089 return _IMP_container.ClosePairContainer_get_version_info(self)
1090 __swig_destroy__ = _IMP_container.delete_ClosePairContainer
1093 r"""__str__(ClosePairContainer self) -> std::string"""
1094 return _IMP_container.ClosePairContainer___str__(self)
1097 r"""__repr__(ClosePairContainer self) -> std::string"""
1098 return _IMP_container.ClosePairContainer___repr__(self)
1102 return _object_cast_to_ClosePairContainer(o)
1105 def _get_as_binary(self):
1106 r"""_get_as_binary(ClosePairContainer self) -> PyObject *"""
1107 return _IMP_container.ClosePairContainer__get_as_binary(self)
1109 def _set_from_binary(self, p):
1110 r"""_set_from_binary(ClosePairContainer self, PyObject * p)"""
1111 return _IMP_container.ClosePairContainer__set_from_binary(self, p)
1113 def __getstate__(self):
1114 p = self._get_as_binary()
1115 if len(self.__dict__) > 1:
1116 d = self.__dict__.copy()
1121 def __setstate__(self, p):
1122 if not hasattr(self,
'this'):
1124 if isinstance(p, tuple):
1126 self.__dict__.update(d)
1127 return self._set_from_binary(p)
1131 _IMP_container.ClosePairContainer_swigregister(ClosePairContainer)
1134 r"""get_slack_estimate(Model m, IMP::ParticleIndexes ps, double upper_bound, double step, IMP::RestraintsTemp const & restraints, bool derivatives, Optimizer opt, ClosePairContainer cpc) -> double"""
1135 return _IMP_container.get_slack_estimate(m, ps, upper_bound, step, restraints, derivatives, opt, cpc)
1137 r"""Proxy of C++ IMP::container::ConnectingPairContainer class."""
1139 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1141 def __init__(self, sc, error):
1142 r"""__init__(ConnectingPairContainer self, SingletonContainer sc, double error) -> ConnectingPairContainer"""
1143 _IMP_container.ConnectingPairContainer_swiginit(self, _IMP_container.new_ConnectingPairContainer(sc, error))
1145 def do_get_inputs(self):
1146 r"""do_get_inputs(ConnectingPairContainer self) -> IMP::ModelObjectsTemp"""
1147 return _IMP_container.ConnectingPairContainer_do_get_inputs(self)
1149 def do_apply(self, sm):
1150 r"""do_apply(ConnectingPairContainer self, PairModifier sm)"""
1151 return _IMP_container.ConnectingPairContainer_do_apply(self, sm)
1153 def get_version_info(self):
1154 r"""get_version_info(ConnectingPairContainer self) -> VersionInfo"""
1155 return _IMP_container.ConnectingPairContainer_get_version_info(self)
1156 __swig_destroy__ = _IMP_container.delete_ConnectingPairContainer
1159 r"""__str__(ConnectingPairContainer self) -> std::string"""
1160 return _IMP_container.ConnectingPairContainer___str__(self)
1163 r"""__repr__(ConnectingPairContainer self) -> std::string"""
1164 return _IMP_container.ConnectingPairContainer___repr__(self)
1168 return _object_cast_to_ConnectingPairContainer(o)
1172 _IMP_container.ConnectingPairContainer_swigregister(ConnectingPairContainer)
1174 r"""Proxy of C++ IMP::container::ConsecutivePairContainer class."""
1176 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1178 def __init__(self, *args):
1179 r"""__init__(ConsecutivePairContainer self, Model m, IMP::ParticleIndexes const & ps, std::string name="ConsecutivePairContainer%1%") -> ConsecutivePairContainer"""
1180 _IMP_container.ConsecutivePairContainer_swiginit(self, _IMP_container.new_ConsecutivePairContainer(*args))
1182 def do_get_inputs(self):
1183 r"""do_get_inputs(ConsecutivePairContainer self) -> IMP::ModelObjectsTemp"""
1184 return _IMP_container.ConsecutivePairContainer_do_get_inputs(self)
1186 def do_apply(self, sm):
1187 r"""do_apply(ConsecutivePairContainer self, PairModifier sm)"""
1188 return _IMP_container.ConsecutivePairContainer_do_apply(self, sm)
1190 def do_apply_moved(self, sm, moved_pis, reset_pis):
1191 r"""do_apply_moved(ConsecutivePairContainer self, PairModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
1192 return _IMP_container.ConsecutivePairContainer_do_apply_moved(self, sm, moved_pis, reset_pis)
1194 def get_version_info(self):
1195 r"""get_version_info(ConsecutivePairContainer self) -> VersionInfo"""
1196 return _IMP_container.ConsecutivePairContainer_get_version_info(self)
1197 __swig_destroy__ = _IMP_container.delete_ConsecutivePairContainer
1200 r"""__str__(ConsecutivePairContainer self) -> std::string"""
1201 return _IMP_container.ConsecutivePairContainer___str__(self)
1204 r"""__repr__(ConsecutivePairContainer self) -> std::string"""
1205 return _IMP_container.ConsecutivePairContainer___repr__(self)
1209 return _object_cast_to_ConsecutivePairContainer(o)
1213 _IMP_container.ConsecutivePairContainer_swigregister(ConsecutivePairContainer)
1215 r"""Proxy of C++ IMP::container::ConsecutivePairFilter class."""
1217 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1219 def __init__(self, cpc):
1220 r"""__init__(ConsecutivePairFilter self, ConsecutivePairContainer cpc) -> ConsecutivePairFilter"""
1221 _IMP_container.ConsecutivePairFilter_swiginit(self, _IMP_container.new_ConsecutivePairFilter(cpc))
1223 def do_get_inputs(self, m, pi):
1224 r"""do_get_inputs(ConsecutivePairFilter self, Model m, IMP::ParticleIndexes const & pi) -> IMP::ModelObjectsTemp"""
1225 return _IMP_container.ConsecutivePairFilter_do_get_inputs(self, m, pi)
1227 def get_value(self, *args):
1229 get_value(ConsecutivePairFilter self, IMP::ParticlePair const & a) -> int
1230 get_value(ConsecutivePairFilter self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
1232 return _IMP_container.ConsecutivePairFilter_get_value(self, *args)
1234 def get_value_index(self, *args):
1236 get_value_index(ConsecutivePairFilter self, Model arg2, IMP::ParticleIndexPair const & pip) -> int
1237 get_value_index(ConsecutivePairFilter self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
1239 return _IMP_container.ConsecutivePairFilter_get_value_index(self, *args)
1241 def get_version_info(self):
1242 r"""get_version_info(ConsecutivePairFilter self) -> VersionInfo"""
1243 return _IMP_container.ConsecutivePairFilter_get_version_info(self)
1244 __swig_destroy__ = _IMP_container.delete_ConsecutivePairFilter
1247 r"""__str__(ConsecutivePairFilter self) -> std::string"""
1248 return _IMP_container.ConsecutivePairFilter___str__(self)
1251 r"""__repr__(ConsecutivePairFilter self) -> std::string"""
1252 return _IMP_container.ConsecutivePairFilter___repr__(self)
1256 return _object_cast_to_ConsecutivePairFilter(o)
1260 _IMP_container.ConsecutivePairFilter_swigregister(ConsecutivePairFilter)
1262 r"""Proxy of C++ IMP::container::ExclusiveConsecutivePairContainer class."""
1264 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1266 def __init__(self, *args):
1267 r"""__init__(ExclusiveConsecutivePairContainer self, Model m, IMP::ParticleIndexes const & ps, std::string name="ExclusiveConsecutivePairContainer%1%") -> ExclusiveConsecutivePairContainer"""
1268 _IMP_container.ExclusiveConsecutivePairContainer_swiginit(self, _IMP_container.new_ExclusiveConsecutivePairContainer(*args))
1270 def do_get_inputs(self):
1271 r"""do_get_inputs(ExclusiveConsecutivePairContainer self) -> IMP::ModelObjectsTemp"""
1272 return _IMP_container.ExclusiveConsecutivePairContainer_do_get_inputs(self)
1274 def do_apply(self, sm):
1275 r"""do_apply(ExclusiveConsecutivePairContainer self, PairModifier sm)"""
1276 return _IMP_container.ExclusiveConsecutivePairContainer_do_apply(self, sm)
1278 def do_apply_moved(self, sm, moved_pis, reset_pis):
1279 r"""do_apply_moved(ExclusiveConsecutivePairContainer self, PairModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
1280 return _IMP_container.ExclusiveConsecutivePairContainer_do_apply_moved(self, sm, moved_pis, reset_pis)
1282 def get_version_info(self):
1283 r"""get_version_info(ExclusiveConsecutivePairContainer self) -> VersionInfo"""
1284 return _IMP_container.ExclusiveConsecutivePairContainer_get_version_info(self)
1285 __swig_destroy__ = _IMP_container.delete_ExclusiveConsecutivePairContainer
1288 r"""__str__(ExclusiveConsecutivePairContainer self) -> std::string"""
1289 return _IMP_container.ExclusiveConsecutivePairContainer___str__(self)
1292 r"""__repr__(ExclusiveConsecutivePairContainer self) -> std::string"""
1293 return _IMP_container.ExclusiveConsecutivePairContainer___repr__(self)
1297 return _object_cast_to_ExclusiveConsecutivePairContainer(o)
1301 _IMP_container.ExclusiveConsecutivePairContainer_swigregister(ExclusiveConsecutivePairContainer)
1303 r"""Proxy of C++ IMP::container::ExclusiveConsecutivePairFilter class."""
1305 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1308 r"""__init__(ExclusiveConsecutivePairFilter self) -> ExclusiveConsecutivePairFilter"""
1309 _IMP_container.ExclusiveConsecutivePairFilter_swiginit(self, _IMP_container.new_ExclusiveConsecutivePairFilter())
1311 def do_get_inputs(self, m, pi):
1312 r"""do_get_inputs(ExclusiveConsecutivePairFilter self, Model m, IMP::ParticleIndexes const & pi) -> IMP::ModelObjectsTemp"""
1313 return _IMP_container.ExclusiveConsecutivePairFilter_do_get_inputs(self, m, pi)
1315 def get_value(self, *args):
1317 get_value(ExclusiveConsecutivePairFilter self, IMP::ParticlePair const & a) -> int
1318 get_value(ExclusiveConsecutivePairFilter self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
1320 return _IMP_container.ExclusiveConsecutivePairFilter_get_value(self, *args)
1322 def get_value_index(self, *args):
1324 get_value_index(ExclusiveConsecutivePairFilter self, Model m, IMP::ParticleIndexPair const & pip) -> int
1325 get_value_index(ExclusiveConsecutivePairFilter self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
1327 return _IMP_container.ExclusiveConsecutivePairFilter_get_value_index(self, *args)
1329 def get_version_info(self):
1330 r"""get_version_info(ExclusiveConsecutivePairFilter self) -> VersionInfo"""
1331 return _IMP_container.ExclusiveConsecutivePairFilter_get_version_info(self)
1332 __swig_destroy__ = _IMP_container.delete_ExclusiveConsecutivePairFilter
1335 r"""__str__(ExclusiveConsecutivePairFilter self) -> std::string"""
1336 return _IMP_container.ExclusiveConsecutivePairFilter___str__(self)
1339 r"""__repr__(ExclusiveConsecutivePairFilter self) -> std::string"""
1340 return _IMP_container.ExclusiveConsecutivePairFilter___repr__(self)
1344 return _object_cast_to_ExclusiveConsecutivePairFilter(o)
1348 _IMP_container.ExclusiveConsecutivePairFilter_swigregister(ExclusiveConsecutivePairFilter)
1350 r"""Proxy of C++ IMP::container::ListPairContainer class."""
1352 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1354 def __init__(self, *args):
1356 __init__(ListPairContainer self, Model m, IMP::ParticleIndexPairs const & contents, std::string name="ListPairContainer%1%") -> ListPairContainer
1357 __init__(ListPairContainer self, Model m, std::string name="ListPairContainer %1%") -> ListPairContainer
1358 __init__(ListPairContainer self, Model m, char const * name) -> ListPairContainer
1359 __init__(ListPairContainer self) -> ListPairContainer
1361 _IMP_container.ListPairContainer_swiginit(self, _IMP_container.new_ListPairContainer(*args))
1363 def add(self, *args):
1365 add(ListPairContainer self, IMP::ParticleIndexPair const & vt)
1366 add(ListPairContainer self, IMP::ParticleIndexPairs const & c)
1368 return _IMP_container.ListPairContainer_add(self, *args)
1371 r"""set(ListPairContainer self, IMP::ParticleIndexPairs cp)"""
1372 return _IMP_container.ListPairContainer_set(self, cp)
1375 r"""clear(ListPairContainer self)"""
1376 return _IMP_container.ListPairContainer_clear(self)
1378 def do_get_inputs(self):
1379 r"""do_get_inputs(ListPairContainer self) -> IMP::ModelObjectsTemp"""
1380 return _IMP_container.ListPairContainer_do_get_inputs(self)
1382 def do_apply(self, sm):
1383 r"""do_apply(ListPairContainer self, PairModifier sm)"""
1384 return _IMP_container.ListPairContainer_do_apply(self, sm)
1386 def do_apply_moved(self, sm, moved_pis, reset_pis):
1387 r"""do_apply_moved(ListPairContainer self, PairModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
1388 return _IMP_container.ListPairContainer_do_apply_moved(self, sm, moved_pis, reset_pis)
1390 def get_version_info(self):
1391 r"""get_version_info(ListPairContainer self) -> VersionInfo"""
1392 return _IMP_container.ListPairContainer_get_version_info(self)
1393 __swig_destroy__ = _IMP_container.delete_ListPairContainer
1396 r"""__str__(ListPairContainer self) -> std::string"""
1397 return _IMP_container.ListPairContainer___str__(self)
1400 r"""__repr__(ListPairContainer self) -> std::string"""
1401 return _IMP_container.ListPairContainer___repr__(self)
1405 return _object_cast_to_ListPairContainer(o)
1408 def _get_as_binary(self):
1409 r"""_get_as_binary(ListPairContainer self) -> PyObject *"""
1410 return _IMP_container.ListPairContainer__get_as_binary(self)
1412 def _set_from_binary(self, p):
1413 r"""_set_from_binary(ListPairContainer self, PyObject * p)"""
1414 return _IMP_container.ListPairContainer__set_from_binary(self, p)
1416 def __getstate__(self):
1417 p = self._get_as_binary()
1418 if len(self.__dict__) > 1:
1419 d = self.__dict__.copy()
1424 def __setstate__(self, p):
1425 if not hasattr(self,
'this'):
1427 if isinstance(p, tuple):
1429 self.__dict__.update(d)
1430 return self._set_from_binary(p)
1433 def _get_static_contents(self):
1434 return self.get_contents()
1438 _IMP_container.ListPairContainer_swigregister(ListPairContainer)
1440 r"""Proxy of C++ IMP::container::ListQuadContainer class."""
1442 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1444 def __init__(self, *args):
1446 __init__(ListQuadContainer self, Model m, IMP::ParticleIndexQuads const & contents, std::string name="ListQuadContainer%1%") -> ListQuadContainer
1447 __init__(ListQuadContainer self, Model m, std::string name="ListQuadContainer %1%") -> ListQuadContainer
1448 __init__(ListQuadContainer self, Model m, char const * name) -> ListQuadContainer
1449 __init__(ListQuadContainer self) -> ListQuadContainer
1451 _IMP_container.ListQuadContainer_swiginit(self, _IMP_container.new_ListQuadContainer(*args))
1453 def add(self, *args):
1455 add(ListQuadContainer self, IMP::ParticleIndexQuad const & vt)
1456 add(ListQuadContainer self, IMP::ParticleIndexQuads const & c)
1458 return _IMP_container.ListQuadContainer_add(self, *args)
1461 r"""set(ListQuadContainer self, IMP::ParticleIndexQuads cp)"""
1462 return _IMP_container.ListQuadContainer_set(self, cp)
1465 r"""clear(ListQuadContainer self)"""
1466 return _IMP_container.ListQuadContainer_clear(self)
1468 def do_get_inputs(self):
1469 r"""do_get_inputs(ListQuadContainer self) -> IMP::ModelObjectsTemp"""
1470 return _IMP_container.ListQuadContainer_do_get_inputs(self)
1472 def do_apply(self, sm):
1473 r"""do_apply(ListQuadContainer self, QuadModifier sm)"""
1474 return _IMP_container.ListQuadContainer_do_apply(self, sm)
1476 def do_apply_moved(self, sm, moved_pis, reset_pis):
1477 r"""do_apply_moved(ListQuadContainer self, QuadModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
1478 return _IMP_container.ListQuadContainer_do_apply_moved(self, sm, moved_pis, reset_pis)
1480 def get_version_info(self):
1481 r"""get_version_info(ListQuadContainer self) -> VersionInfo"""
1482 return _IMP_container.ListQuadContainer_get_version_info(self)
1483 __swig_destroy__ = _IMP_container.delete_ListQuadContainer
1486 r"""__str__(ListQuadContainer self) -> std::string"""
1487 return _IMP_container.ListQuadContainer___str__(self)
1490 r"""__repr__(ListQuadContainer self) -> std::string"""
1491 return _IMP_container.ListQuadContainer___repr__(self)
1495 return _object_cast_to_ListQuadContainer(o)
1498 def _get_as_binary(self):
1499 r"""_get_as_binary(ListQuadContainer self) -> PyObject *"""
1500 return _IMP_container.ListQuadContainer__get_as_binary(self)
1502 def _set_from_binary(self, p):
1503 r"""_set_from_binary(ListQuadContainer self, PyObject * p)"""
1504 return _IMP_container.ListQuadContainer__set_from_binary(self, p)
1506 def __getstate__(self):
1507 p = self._get_as_binary()
1508 if len(self.__dict__) > 1:
1509 d = self.__dict__.copy()
1514 def __setstate__(self, p):
1515 if not hasattr(self,
'this'):
1517 if isinstance(p, tuple):
1519 self.__dict__.update(d)
1520 return self._set_from_binary(p)
1524 _IMP_container.ListQuadContainer_swigregister(ListQuadContainer)
1526 r"""Proxy of C++ IMP::container::ListSingletonContainer class."""
1528 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1530 def __init__(self, *args):
1532 __init__(ListSingletonContainer self, Model m, IMP::ParticleIndexes const & contents, std::string name="ListSingletonContainer%1%") -> ListSingletonContainer
1533 __init__(ListSingletonContainer self, Model m, std::string name="ListSingletonContainer %1%") -> ListSingletonContainer
1534 __init__(ListSingletonContainer self, Model m, char const * name) -> ListSingletonContainer
1535 __init__(ListSingletonContainer self) -> ListSingletonContainer
1537 _IMP_container.ListSingletonContainer_swiginit(self, _IMP_container.new_ListSingletonContainer(*args))
1539 def add(self, *args):
1541 add(ListSingletonContainer self, ParticleIndex vt)
1542 add(ListSingletonContainer self, IMP::ParticleIndexes const & c)
1544 return _IMP_container.ListSingletonContainer_add(self, *args)
1547 r"""set(ListSingletonContainer self, IMP::ParticleIndexes cp)"""
1548 return _IMP_container.ListSingletonContainer_set(self, cp)
1551 r"""clear(ListSingletonContainer self)"""
1552 return _IMP_container.ListSingletonContainer_clear(self)
1554 def do_get_inputs(self):
1555 r"""do_get_inputs(ListSingletonContainer self) -> IMP::ModelObjectsTemp"""
1556 return _IMP_container.ListSingletonContainer_do_get_inputs(self)
1558 def do_apply(self, sm):
1559 r"""do_apply(ListSingletonContainer self, SingletonModifier sm)"""
1560 return _IMP_container.ListSingletonContainer_do_apply(self, sm)
1562 def do_apply_moved(self, sm, moved_pis, reset_pis):
1563 r"""do_apply_moved(ListSingletonContainer self, SingletonModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
1564 return _IMP_container.ListSingletonContainer_do_apply_moved(self, sm, moved_pis, reset_pis)
1566 def get_version_info(self):
1567 r"""get_version_info(ListSingletonContainer self) -> VersionInfo"""
1568 return _IMP_container.ListSingletonContainer_get_version_info(self)
1569 __swig_destroy__ = _IMP_container.delete_ListSingletonContainer
1572 r"""__str__(ListSingletonContainer self) -> std::string"""
1573 return _IMP_container.ListSingletonContainer___str__(self)
1576 r"""__repr__(ListSingletonContainer self) -> std::string"""
1577 return _IMP_container.ListSingletonContainer___repr__(self)
1581 return _object_cast_to_ListSingletonContainer(o)
1584 def _get_as_binary(self):
1585 r"""_get_as_binary(ListSingletonContainer self) -> PyObject *"""
1586 return _IMP_container.ListSingletonContainer__get_as_binary(self)
1588 def _set_from_binary(self, p):
1589 r"""_set_from_binary(ListSingletonContainer self, PyObject * p)"""
1590 return _IMP_container.ListSingletonContainer__set_from_binary(self, p)
1592 def __getstate__(self):
1593 p = self._get_as_binary()
1594 if len(self.__dict__) > 1:
1595 d = self.__dict__.copy()
1600 def __setstate__(self, p):
1601 if not hasattr(self,
'this'):
1603 if isinstance(p, tuple):
1605 self.__dict__.update(d)
1606 return self._set_from_binary(p)
1610 _IMP_container.ListSingletonContainer_swigregister(ListSingletonContainer)
1612 r"""Proxy of C++ IMP::container::ListTripletContainer class."""
1614 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1616 def __init__(self, *args):
1618 __init__(ListTripletContainer self, Model m, IMP::ParticleIndexTriplets const & contents, std::string name="ListTripletContainer%1%") -> ListTripletContainer
1619 __init__(ListTripletContainer self, Model m, std::string name="ListTripletContainer %1%") -> ListTripletContainer
1620 __init__(ListTripletContainer self, Model m, char const * name) -> ListTripletContainer
1621 __init__(ListTripletContainer self) -> ListTripletContainer
1623 _IMP_container.ListTripletContainer_swiginit(self, _IMP_container.new_ListTripletContainer(*args))
1625 def add(self, *args):
1627 add(ListTripletContainer self, IMP::ParticleIndexTriplet const & vt)
1628 add(ListTripletContainer self, IMP::ParticleIndexTriplets const & c)
1630 return _IMP_container.ListTripletContainer_add(self, *args)
1633 r"""set(ListTripletContainer self, IMP::ParticleIndexTriplets cp)"""
1634 return _IMP_container.ListTripletContainer_set(self, cp)
1637 r"""clear(ListTripletContainer self)"""
1638 return _IMP_container.ListTripletContainer_clear(self)
1640 def do_get_inputs(self):
1641 r"""do_get_inputs(ListTripletContainer self) -> IMP::ModelObjectsTemp"""
1642 return _IMP_container.ListTripletContainer_do_get_inputs(self)
1644 def do_apply(self, sm):
1645 r"""do_apply(ListTripletContainer self, TripletModifier sm)"""
1646 return _IMP_container.ListTripletContainer_do_apply(self, sm)
1648 def do_apply_moved(self, sm, moved_pis, reset_pis):
1649 r"""do_apply_moved(ListTripletContainer self, TripletModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
1650 return _IMP_container.ListTripletContainer_do_apply_moved(self, sm, moved_pis, reset_pis)
1652 def get_version_info(self):
1653 r"""get_version_info(ListTripletContainer self) -> VersionInfo"""
1654 return _IMP_container.ListTripletContainer_get_version_info(self)
1655 __swig_destroy__ = _IMP_container.delete_ListTripletContainer
1658 r"""__str__(ListTripletContainer self) -> std::string"""
1659 return _IMP_container.ListTripletContainer___str__(self)
1662 r"""__repr__(ListTripletContainer self) -> std::string"""
1663 return _IMP_container.ListTripletContainer___repr__(self)
1667 return _object_cast_to_ListTripletContainer(o)
1670 def _get_as_binary(self):
1671 r"""_get_as_binary(ListTripletContainer self) -> PyObject *"""
1672 return _IMP_container.ListTripletContainer__get_as_binary(self)
1674 def _set_from_binary(self, p):
1675 r"""_set_from_binary(ListTripletContainer self, PyObject * p)"""
1676 return _IMP_container.ListTripletContainer__set_from_binary(self, p)
1678 def __getstate__(self):
1679 p = self._get_as_binary()
1680 if len(self.__dict__) > 1:
1681 d = self.__dict__.copy()
1686 def __setstate__(self, p):
1687 if not hasattr(self,
'this'):
1689 if isinstance(p, tuple):
1691 self.__dict__.update(d)
1692 return self._set_from_binary(p)
1696 _IMP_container.ListTripletContainer_swigregister(ListTripletContainer)
1698 r"""Proxy of C++ IMP::container::DynamicListPairContainer class."""
1700 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1702 def __init__(self, *args, **kwargs):
1703 raise AttributeError(
"No constructor defined - class is abstract")
1705 def add(self, *args):
1707 add(DynamicListPairContainer self, IMP::ParticleIndexPair const & vt)
1708 add(DynamicListPairContainer self, IMP::ParticleIndexPairs const & c)
1710 return _IMP_container.DynamicListPairContainer_add(self, *args)
1713 r"""set(DynamicListPairContainer self, IMP::ParticleIndexPairs cp)"""
1714 return _IMP_container.DynamicListPairContainer_set(self, cp)
1717 r"""clear(DynamicListPairContainer self)"""
1718 return _IMP_container.DynamicListPairContainer_clear(self)
1720 def do_get_inputs(self):
1721 r"""do_get_inputs(DynamicListPairContainer self) -> IMP::ModelObjectsTemp"""
1722 return _IMP_container.DynamicListPairContainer_do_get_inputs(self)
1724 def do_apply(self, sm):
1725 r"""do_apply(DynamicListPairContainer self, PairModifier sm)"""
1726 return _IMP_container.DynamicListPairContainer_do_apply(self, sm)
1728 def do_apply_moved(self, sm, moved_pis, reset_pis):
1729 r"""do_apply_moved(DynamicListPairContainer self, PairModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
1730 return _IMP_container.DynamicListPairContainer_do_apply_moved(self, sm, moved_pis, reset_pis)
1732 def get_version_info(self):
1733 r"""get_version_info(DynamicListPairContainer self) -> VersionInfo"""
1734 return _IMP_container.DynamicListPairContainer_get_version_info(self)
1735 __swig_destroy__ = _IMP_container.delete_DynamicListPairContainer
1738 r"""__str__(DynamicListPairContainer self) -> std::string"""
1739 return _IMP_container.DynamicListPairContainer___str__(self)
1742 r"""__repr__(DynamicListPairContainer self) -> std::string"""
1743 return _IMP_container.DynamicListPairContainer___repr__(self)
1747 return _object_cast_to_DynamicListPairContainer(o)
1751 _IMP_container.DynamicListPairContainer_swigregister(DynamicListPairContainer)
1753 r"""Proxy of C++ IMP::container::DynamicListQuadContainer class."""
1755 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1757 def __init__(self, *args, **kwargs):
1758 raise AttributeError(
"No constructor defined - class is abstract")
1760 def add(self, *args):
1762 add(DynamicListQuadContainer self, IMP::ParticleIndexQuad const & vt)
1763 add(DynamicListQuadContainer self, IMP::ParticleIndexQuads const & c)
1765 return _IMP_container.DynamicListQuadContainer_add(self, *args)
1768 r"""set(DynamicListQuadContainer self, IMP::ParticleIndexQuads cp)"""
1769 return _IMP_container.DynamicListQuadContainer_set(self, cp)
1772 r"""clear(DynamicListQuadContainer self)"""
1773 return _IMP_container.DynamicListQuadContainer_clear(self)
1775 def do_get_inputs(self):
1776 r"""do_get_inputs(DynamicListQuadContainer self) -> IMP::ModelObjectsTemp"""
1777 return _IMP_container.DynamicListQuadContainer_do_get_inputs(self)
1779 def do_apply(self, sm):
1780 r"""do_apply(DynamicListQuadContainer self, QuadModifier sm)"""
1781 return _IMP_container.DynamicListQuadContainer_do_apply(self, sm)
1783 def do_apply_moved(self, sm, moved_pis, reset_pis):
1784 r"""do_apply_moved(DynamicListQuadContainer self, QuadModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
1785 return _IMP_container.DynamicListQuadContainer_do_apply_moved(self, sm, moved_pis, reset_pis)
1787 def get_version_info(self):
1788 r"""get_version_info(DynamicListQuadContainer self) -> VersionInfo"""
1789 return _IMP_container.DynamicListQuadContainer_get_version_info(self)
1790 __swig_destroy__ = _IMP_container.delete_DynamicListQuadContainer
1793 r"""__str__(DynamicListQuadContainer self) -> std::string"""
1794 return _IMP_container.DynamicListQuadContainer___str__(self)
1797 r"""__repr__(DynamicListQuadContainer self) -> std::string"""
1798 return _IMP_container.DynamicListQuadContainer___repr__(self)
1802 return _object_cast_to_DynamicListQuadContainer(o)
1806 _IMP_container.DynamicListQuadContainer_swigregister(DynamicListQuadContainer)
1808 r"""Proxy of C++ IMP::container::DynamicListSingletonContainer class."""
1810 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1812 def __init__(self, *args, **kwargs):
1813 raise AttributeError(
"No constructor defined - class is abstract")
1815 def add(self, *args):
1817 add(DynamicListSingletonContainer self, ParticleIndex vt)
1818 add(DynamicListSingletonContainer self, IMP::ParticleIndexes const & c)
1820 return _IMP_container.DynamicListSingletonContainer_add(self, *args)
1823 r"""set(DynamicListSingletonContainer self, IMP::ParticleIndexes cp)"""
1824 return _IMP_container.DynamicListSingletonContainer_set(self, cp)
1827 r"""clear(DynamicListSingletonContainer self)"""
1828 return _IMP_container.DynamicListSingletonContainer_clear(self)
1830 def do_get_inputs(self):
1831 r"""do_get_inputs(DynamicListSingletonContainer self) -> IMP::ModelObjectsTemp"""
1832 return _IMP_container.DynamicListSingletonContainer_do_get_inputs(self)
1834 def do_apply(self, sm):
1835 r"""do_apply(DynamicListSingletonContainer self, SingletonModifier sm)"""
1836 return _IMP_container.DynamicListSingletonContainer_do_apply(self, sm)
1838 def do_apply_moved(self, sm, moved_pis, reset_pis):
1839 r"""do_apply_moved(DynamicListSingletonContainer self, SingletonModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
1840 return _IMP_container.DynamicListSingletonContainer_do_apply_moved(self, sm, moved_pis, reset_pis)
1842 def get_version_info(self):
1843 r"""get_version_info(DynamicListSingletonContainer self) -> VersionInfo"""
1844 return _IMP_container.DynamicListSingletonContainer_get_version_info(self)
1845 __swig_destroy__ = _IMP_container.delete_DynamicListSingletonContainer
1848 r"""__str__(DynamicListSingletonContainer self) -> std::string"""
1849 return _IMP_container.DynamicListSingletonContainer___str__(self)
1852 r"""__repr__(DynamicListSingletonContainer self) -> std::string"""
1853 return _IMP_container.DynamicListSingletonContainer___repr__(self)
1857 return _object_cast_to_DynamicListSingletonContainer(o)
1861 _IMP_container.DynamicListSingletonContainer_swigregister(DynamicListSingletonContainer)
1863 r"""Proxy of C++ IMP::container::DynamicListTripletContainer class."""
1865 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1867 def __init__(self, *args, **kwargs):
1868 raise AttributeError(
"No constructor defined - class is abstract")
1870 def add(self, *args):
1872 add(DynamicListTripletContainer self, IMP::ParticleIndexTriplet const & vt)
1873 add(DynamicListTripletContainer self, IMP::ParticleIndexTriplets const & c)
1875 return _IMP_container.DynamicListTripletContainer_add(self, *args)
1878 r"""set(DynamicListTripletContainer self, IMP::ParticleIndexTriplets cp)"""
1879 return _IMP_container.DynamicListTripletContainer_set(self, cp)
1882 r"""clear(DynamicListTripletContainer self)"""
1883 return _IMP_container.DynamicListTripletContainer_clear(self)
1885 def do_get_inputs(self):
1886 r"""do_get_inputs(DynamicListTripletContainer self) -> IMP::ModelObjectsTemp"""
1887 return _IMP_container.DynamicListTripletContainer_do_get_inputs(self)
1889 def do_apply(self, sm):
1890 r"""do_apply(DynamicListTripletContainer self, TripletModifier sm)"""
1891 return _IMP_container.DynamicListTripletContainer_do_apply(self, sm)
1893 def do_apply_moved(self, sm, moved_pis, reset_pis):
1894 r"""do_apply_moved(DynamicListTripletContainer self, TripletModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
1895 return _IMP_container.DynamicListTripletContainer_do_apply_moved(self, sm, moved_pis, reset_pis)
1897 def get_version_info(self):
1898 r"""get_version_info(DynamicListTripletContainer self) -> VersionInfo"""
1899 return _IMP_container.DynamicListTripletContainer_get_version_info(self)
1900 __swig_destroy__ = _IMP_container.delete_DynamicListTripletContainer
1903 r"""__str__(DynamicListTripletContainer self) -> std::string"""
1904 return _IMP_container.DynamicListTripletContainer___str__(self)
1907 r"""__repr__(DynamicListTripletContainer self) -> std::string"""
1908 return _IMP_container.DynamicListTripletContainer___repr__(self)
1912 return _object_cast_to_DynamicListTripletContainer(o)
1916 _IMP_container.DynamicListTripletContainer_swigregister(DynamicListTripletContainer)
1918 r"""Proxy of C++ IMP::container::MinimumPairRestraint class."""
1920 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1922 def __init__(self, *args):
1923 r"""__init__(MinimumPairRestraint self, PairScore f, _PairContainerAdaptor c, unsigned int n=1, std::string name="MinimumPairRestraint %1%") -> MinimumPairRestraint"""
1924 _IMP_container.MinimumPairRestraint_swiginit(self, _IMP_container.new_MinimumPairRestraint(*args))
1926 def do_get_inputs(self):
1927 r"""do_get_inputs(MinimumPairRestraint self) -> IMP::ModelObjectsTemp"""
1928 return _IMP_container.MinimumPairRestraint_do_get_inputs(self)
1930 def get_version_info(self):
1931 r"""get_version_info(MinimumPairRestraint self) -> VersionInfo"""
1932 return _IMP_container.MinimumPairRestraint_get_version_info(self)
1933 __swig_destroy__ = _IMP_container.delete_MinimumPairRestraint
1936 r"""set_n(MinimumPairRestraint self, unsigned int n)"""
1937 return _IMP_container.MinimumPairRestraint_set_n(self, n)
1939 def do_create_current_decomposition(self):
1940 r"""do_create_current_decomposition(MinimumPairRestraint self) -> IMP::Restraints"""
1941 return _IMP_container.MinimumPairRestraint_do_create_current_decomposition(self)
1944 r"""__str__(MinimumPairRestraint self) -> std::string"""
1945 return _IMP_container.MinimumPairRestraint___str__(self)
1948 r"""__repr__(MinimumPairRestraint self) -> std::string"""
1949 return _IMP_container.MinimumPairRestraint___repr__(self)
1953 return _object_cast_to_MinimumPairRestraint(o)
1957 _IMP_container.MinimumPairRestraint_swigregister(MinimumPairRestraint)
1959 r"""Proxy of C++ IMP::container::MinimumPairScore class."""
1961 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1963 def __init__(self, *args):
1964 r"""__init__(MinimumPairScore self, IMP::PairScoresTemp const & scores, unsigned int n=1, std::string name="PairScore %1%") -> MinimumPairScore"""
1965 _IMP_container.MinimumPairScore_swiginit(self, _IMP_container.new_MinimumPairScore(*args))
1967 def do_get_inputs(self, m, pis):
1968 r"""do_get_inputs(MinimumPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
1969 return _IMP_container.MinimumPairScore_do_get_inputs(self, m, pis)
1971 def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
1972 r"""evaluate_indexes(MinimumPairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
1973 return _IMP_container.MinimumPairScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
1975 def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
1976 r"""evaluate_indexes_scores(MinimumPairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
1977 return _IMP_container.MinimumPairScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
1979 def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
1980 r"""evaluate_indexes_delta(MinimumPairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, std::vector< unsigned int,std::allocator< unsigned int > > const & indexes, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
1981 return _IMP_container.MinimumPairScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
1983 def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
1984 r"""evaluate_if_good_indexes(MinimumPairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, double max, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
1985 return _IMP_container.MinimumPairScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
1987 def get_version_info(self):
1988 r"""get_version_info(MinimumPairScore self) -> VersionInfo"""
1989 return _IMP_container.MinimumPairScore_get_version_info(self)
1990 __swig_destroy__ = _IMP_container.delete_MinimumPairScore
1992 def do_create_current_decomposition(self, m, vt):
1993 r"""do_create_current_decomposition(MinimumPairScore self, Model m, IMP::ParticleIndexPair const & vt) -> IMP::Restraints"""
1994 return _IMP_container.MinimumPairScore_do_create_current_decomposition(self, m, vt)
1997 r"""__str__(MinimumPairScore self) -> std::string"""
1998 return _IMP_container.MinimumPairScore___str__(self)
2001 r"""__repr__(MinimumPairScore self) -> std::string"""
2002 return _IMP_container.MinimumPairScore___repr__(self)
2006 return _object_cast_to_MinimumPairScore(o)
2010 _IMP_container.MinimumPairScore_swigregister(MinimumPairScore)
2012 r"""Proxy of C++ IMP::container::MinimumQuadRestraint class."""
2014 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2016 def __init__(self, *args):
2017 r"""__init__(MinimumQuadRestraint self, QuadScore f, _QuadContainerAdaptor c, unsigned int n=1, std::string name="MinimumQuadRestraint %1%") -> MinimumQuadRestraint"""
2018 _IMP_container.MinimumQuadRestraint_swiginit(self, _IMP_container.new_MinimumQuadRestraint(*args))
2020 def do_get_inputs(self):
2021 r"""do_get_inputs(MinimumQuadRestraint self) -> IMP::ModelObjectsTemp"""
2022 return _IMP_container.MinimumQuadRestraint_do_get_inputs(self)
2024 def get_version_info(self):
2025 r"""get_version_info(MinimumQuadRestraint self) -> VersionInfo"""
2026 return _IMP_container.MinimumQuadRestraint_get_version_info(self)
2027 __swig_destroy__ = _IMP_container.delete_MinimumQuadRestraint
2030 r"""set_n(MinimumQuadRestraint self, unsigned int n)"""
2031 return _IMP_container.MinimumQuadRestraint_set_n(self, n)
2033 def do_create_current_decomposition(self):
2034 r"""do_create_current_decomposition(MinimumQuadRestraint self) -> IMP::Restraints"""
2035 return _IMP_container.MinimumQuadRestraint_do_create_current_decomposition(self)
2038 r"""__str__(MinimumQuadRestraint self) -> std::string"""
2039 return _IMP_container.MinimumQuadRestraint___str__(self)
2042 r"""__repr__(MinimumQuadRestraint self) -> std::string"""
2043 return _IMP_container.MinimumQuadRestraint___repr__(self)
2047 return _object_cast_to_MinimumQuadRestraint(o)
2051 _IMP_container.MinimumQuadRestraint_swigregister(MinimumQuadRestraint)
2053 r"""Proxy of C++ IMP::container::MinimumQuadScore class."""
2055 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2057 def __init__(self, *args):
2058 r"""__init__(MinimumQuadScore self, IMP::QuadScoresTemp const & scores, unsigned int n=1, std::string name="QuadScore %1%") -> MinimumQuadScore"""
2059 _IMP_container.MinimumQuadScore_swiginit(self, _IMP_container.new_MinimumQuadScore(*args))
2061 def do_get_inputs(self, m, pis):
2062 r"""do_get_inputs(MinimumQuadScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
2063 return _IMP_container.MinimumQuadScore_do_get_inputs(self, m, pis)
2065 def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
2066 r"""evaluate_indexes(MinimumQuadScore self, Model m, IMP::ParticleIndexQuads const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
2067 return _IMP_container.MinimumQuadScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
2069 def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
2070 r"""evaluate_indexes_scores(MinimumQuadScore self, Model m, IMP::ParticleIndexQuads const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
2071 return _IMP_container.MinimumQuadScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
2073 def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
2074 r"""evaluate_indexes_delta(MinimumQuadScore self, Model m, IMP::ParticleIndexQuads const & p, DerivativeAccumulator da, std::vector< unsigned int,std::allocator< unsigned int > > const & indexes, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
2075 return _IMP_container.MinimumQuadScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
2077 def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
2078 r"""evaluate_if_good_indexes(MinimumQuadScore self, Model m, IMP::ParticleIndexQuads const & p, DerivativeAccumulator da, double max, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
2079 return _IMP_container.MinimumQuadScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
2081 def get_version_info(self):
2082 r"""get_version_info(MinimumQuadScore self) -> VersionInfo"""
2083 return _IMP_container.MinimumQuadScore_get_version_info(self)
2084 __swig_destroy__ = _IMP_container.delete_MinimumQuadScore
2086 def do_create_current_decomposition(self, m, vt):
2087 r"""do_create_current_decomposition(MinimumQuadScore self, Model m, IMP::ParticleIndexQuad const & vt) -> IMP::Restraints"""
2088 return _IMP_container.MinimumQuadScore_do_create_current_decomposition(self, m, vt)
2091 r"""__str__(MinimumQuadScore self) -> std::string"""
2092 return _IMP_container.MinimumQuadScore___str__(self)
2095 r"""__repr__(MinimumQuadScore self) -> std::string"""
2096 return _IMP_container.MinimumQuadScore___repr__(self)
2100 return _object_cast_to_MinimumQuadScore(o)
2104 _IMP_container.MinimumQuadScore_swigregister(MinimumQuadScore)
2106 r"""Proxy of C++ IMP::container::MinimumSingletonRestraint class."""
2108 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2110 def __init__(self, *args):
2111 r"""__init__(MinimumSingletonRestraint self, SingletonScore f, _SingletonContainerAdaptor c, unsigned int n=1, std::string name="MinimumSingletonRestraint %1%") -> MinimumSingletonRestraint"""
2112 _IMP_container.MinimumSingletonRestraint_swiginit(self, _IMP_container.new_MinimumSingletonRestraint(*args))
2114 def do_get_inputs(self):
2115 r"""do_get_inputs(MinimumSingletonRestraint self) -> IMP::ModelObjectsTemp"""
2116 return _IMP_container.MinimumSingletonRestraint_do_get_inputs(self)
2118 def get_version_info(self):
2119 r"""get_version_info(MinimumSingletonRestraint self) -> VersionInfo"""
2120 return _IMP_container.MinimumSingletonRestraint_get_version_info(self)
2121 __swig_destroy__ = _IMP_container.delete_MinimumSingletonRestraint
2124 r"""set_n(MinimumSingletonRestraint self, unsigned int n)"""
2125 return _IMP_container.MinimumSingletonRestraint_set_n(self, n)
2127 def do_create_current_decomposition(self):
2128 r"""do_create_current_decomposition(MinimumSingletonRestraint self) -> IMP::Restraints"""
2129 return _IMP_container.MinimumSingletonRestraint_do_create_current_decomposition(self)
2132 r"""__str__(MinimumSingletonRestraint self) -> std::string"""
2133 return _IMP_container.MinimumSingletonRestraint___str__(self)
2136 r"""__repr__(MinimumSingletonRestraint self) -> std::string"""
2137 return _IMP_container.MinimumSingletonRestraint___repr__(self)
2141 return _object_cast_to_MinimumSingletonRestraint(o)
2145 _IMP_container.MinimumSingletonRestraint_swigregister(MinimumSingletonRestraint)
2147 r"""Proxy of C++ IMP::container::MinimumSingletonScore class."""
2149 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2151 def __init__(self, *args):
2152 r"""__init__(MinimumSingletonScore self, IMP::SingletonScoresTemp const & scores, unsigned int n=1, std::string name="SingletonScore %1%") -> MinimumSingletonScore"""
2153 _IMP_container.MinimumSingletonScore_swiginit(self, _IMP_container.new_MinimumSingletonScore(*args))
2155 def do_get_inputs(self, m, pis):
2156 r"""do_get_inputs(MinimumSingletonScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
2157 return _IMP_container.MinimumSingletonScore_do_get_inputs(self, m, pis)
2159 def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
2160 r"""evaluate_indexes(MinimumSingletonScore self, Model m, IMP::ParticleIndexes const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
2161 return _IMP_container.MinimumSingletonScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
2163 def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
2164 r"""evaluate_indexes_scores(MinimumSingletonScore self, Model m, IMP::ParticleIndexes const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
2165 return _IMP_container.MinimumSingletonScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
2167 def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
2168 r"""evaluate_indexes_delta(MinimumSingletonScore self, Model m, IMP::ParticleIndexes const & p, DerivativeAccumulator da, std::vector< unsigned int,std::allocator< unsigned int > > const & indexes, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
2169 return _IMP_container.MinimumSingletonScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
2171 def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
2172 r"""evaluate_if_good_indexes(MinimumSingletonScore self, Model m, IMP::ParticleIndexes const & p, DerivativeAccumulator da, double max, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
2173 return _IMP_container.MinimumSingletonScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
2175 def get_version_info(self):
2176 r"""get_version_info(MinimumSingletonScore self) -> VersionInfo"""
2177 return _IMP_container.MinimumSingletonScore_get_version_info(self)
2178 __swig_destroy__ = _IMP_container.delete_MinimumSingletonScore
2180 def do_create_current_decomposition(self, m, vt):
2181 r"""do_create_current_decomposition(MinimumSingletonScore self, Model m, ParticleIndex vt) -> IMP::Restraints"""
2182 return _IMP_container.MinimumSingletonScore_do_create_current_decomposition(self, m, vt)
2185 r"""__str__(MinimumSingletonScore self) -> std::string"""
2186 return _IMP_container.MinimumSingletonScore___str__(self)
2189 r"""__repr__(MinimumSingletonScore self) -> std::string"""
2190 return _IMP_container.MinimumSingletonScore___repr__(self)
2194 return _object_cast_to_MinimumSingletonScore(o)
2198 _IMP_container.MinimumSingletonScore_swigregister(MinimumSingletonScore)
2200 r"""Proxy of C++ IMP::container::MinimumTripletRestraint class."""
2202 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2204 def __init__(self, *args):
2205 r"""__init__(MinimumTripletRestraint self, TripletScore f, _TripletContainerAdaptor c, unsigned int n=1, std::string name="MinimumTripletRestraint %1%") -> MinimumTripletRestraint"""
2206 _IMP_container.MinimumTripletRestraint_swiginit(self, _IMP_container.new_MinimumTripletRestraint(*args))
2208 def do_get_inputs(self):
2209 r"""do_get_inputs(MinimumTripletRestraint self) -> IMP::ModelObjectsTemp"""
2210 return _IMP_container.MinimumTripletRestraint_do_get_inputs(self)
2212 def get_version_info(self):
2213 r"""get_version_info(MinimumTripletRestraint self) -> VersionInfo"""
2214 return _IMP_container.MinimumTripletRestraint_get_version_info(self)
2215 __swig_destroy__ = _IMP_container.delete_MinimumTripletRestraint
2218 r"""set_n(MinimumTripletRestraint self, unsigned int n)"""
2219 return _IMP_container.MinimumTripletRestraint_set_n(self, n)
2221 def do_create_current_decomposition(self):
2222 r"""do_create_current_decomposition(MinimumTripletRestraint self) -> IMP::Restraints"""
2223 return _IMP_container.MinimumTripletRestraint_do_create_current_decomposition(self)
2226 r"""__str__(MinimumTripletRestraint self) -> std::string"""
2227 return _IMP_container.MinimumTripletRestraint___str__(self)
2230 r"""__repr__(MinimumTripletRestraint self) -> std::string"""
2231 return _IMP_container.MinimumTripletRestraint___repr__(self)
2235 return _object_cast_to_MinimumTripletRestraint(o)
2239 _IMP_container.MinimumTripletRestraint_swigregister(MinimumTripletRestraint)
2241 r"""Proxy of C++ IMP::container::MinimumTripletScore class."""
2243 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2245 def __init__(self, *args):
2246 r"""__init__(MinimumTripletScore self, IMP::TripletScoresTemp const & scores, unsigned int n=1, std::string name="TripletScore %1%") -> MinimumTripletScore"""
2247 _IMP_container.MinimumTripletScore_swiginit(self, _IMP_container.new_MinimumTripletScore(*args))
2249 def do_get_inputs(self, m, pis):
2250 r"""do_get_inputs(MinimumTripletScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
2251 return _IMP_container.MinimumTripletScore_do_get_inputs(self, m, pis)
2253 def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
2254 r"""evaluate_indexes(MinimumTripletScore self, Model m, IMP::ParticleIndexTriplets const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
2255 return _IMP_container.MinimumTripletScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
2257 def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
2258 r"""evaluate_indexes_scores(MinimumTripletScore self, Model m, IMP::ParticleIndexTriplets const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
2259 return _IMP_container.MinimumTripletScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
2261 def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
2262 r"""evaluate_indexes_delta(MinimumTripletScore self, Model m, IMP::ParticleIndexTriplets const & p, DerivativeAccumulator da, std::vector< unsigned int,std::allocator< unsigned int > > const & indexes, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
2263 return _IMP_container.MinimumTripletScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
2265 def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
2266 r"""evaluate_if_good_indexes(MinimumTripletScore self, Model m, IMP::ParticleIndexTriplets const & p, DerivativeAccumulator da, double max, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
2267 return _IMP_container.MinimumTripletScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
2269 def get_version_info(self):
2270 r"""get_version_info(MinimumTripletScore self) -> VersionInfo"""
2271 return _IMP_container.MinimumTripletScore_get_version_info(self)
2272 __swig_destroy__ = _IMP_container.delete_MinimumTripletScore
2274 def do_create_current_decomposition(self, m, vt):
2275 r"""do_create_current_decomposition(MinimumTripletScore self, Model m, IMP::ParticleIndexTriplet const & vt) -> IMP::Restraints"""
2276 return _IMP_container.MinimumTripletScore_do_create_current_decomposition(self, m, vt)
2279 r"""__str__(MinimumTripletScore self) -> std::string"""
2280 return _IMP_container.MinimumTripletScore___str__(self)
2283 r"""__repr__(MinimumTripletScore self) -> std::string"""
2284 return _IMP_container.MinimumTripletScore___repr__(self)
2288 return _object_cast_to_MinimumTripletScore(o)
2292 _IMP_container.MinimumTripletScore_swigregister(MinimumTripletScore)
2294 r"""Proxy of C++ IMP::container::PairContainerSet class."""
2296 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2298 def __init__(self, *args):
2300 __init__(PairContainerSet self, Model m, std::string name="PairContainerSet %1%") -> PairContainerSet
2301 __init__(PairContainerSet self, IMP::PairContainersTemp const & pc, std::string name="PairContainerSet %1%") -> PairContainerSet
2303 _IMP_container.PairContainerSet_swiginit(self, _IMP_container.new_PairContainerSet(*args))
2305 def do_apply(self, sm):
2306 r"""do_apply(PairContainerSet self, PairModifier sm)"""
2307 return _IMP_container.PairContainerSet_do_apply(self, sm)
2309 def do_apply_moved(self, sm, moved_pis, reset_pis):
2310 r"""do_apply_moved(PairContainerSet self, PairModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
2311 return _IMP_container.PairContainerSet_do_apply_moved(self, sm, moved_pis, reset_pis)
2313 def get_version_info(self):
2314 r"""get_version_info(PairContainerSet self) -> VersionInfo"""
2315 return _IMP_container.PairContainerSet_get_version_info(self)
2316 __swig_destroy__ = _IMP_container.delete_PairContainerSet
2317 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)
2318 def __set_pair_containers(self, obj): IMP._list_util.set_varlist(self.pair_containers, obj)
2319 def __del_pair_containers(self): IMP._list_util.del_varlist(self.pair_containers)
2320 pair_containers = property(__get_pair_containers, __set_pair_containers, __del_pair_containers, doc=
"List of ##ucnames")
2322 def remove_pair_container(self, d):
2323 r"""remove_pair_container(PairContainerSet self, PairContainer d)"""
2324 return _IMP_container.PairContainerSet_remove_pair_container(self, d)
2326 def _python_index_pair_container(self, d, start, stop):
2327 r"""_python_index_pair_container(PairContainerSet self, PairContainer d, unsigned int start, unsigned int stop) -> unsigned int"""
2328 return _IMP_container.PairContainerSet__python_index_pair_container(self, d, start, stop)
2330 def remove_pair_containers(self, d):
2331 r"""remove_pair_containers(PairContainerSet self, IMP::PairContainers const & d)"""
2332 return _IMP_container.PairContainerSet_remove_pair_containers(self, d)
2334 def set_pair_containers(self, ps):
2335 r"""set_pair_containers(PairContainerSet self, IMP::PairContainers const & ps)"""
2336 return _IMP_container.PairContainerSet_set_pair_containers(self, ps)
2338 def set_pair_containers_order(self, objs):
2339 r"""set_pair_containers_order(PairContainerSet self, IMP::PairContainers const & objs)"""
2340 return _IMP_container.PairContainerSet_set_pair_containers_order(self, objs)
2342 def add_pair_container(self, obj):
2343 r"""add_pair_container(PairContainerSet self, PairContainer obj) -> unsigned int"""
2344 return _IMP_container.PairContainerSet_add_pair_container(self, obj)
2346 def add_pair_containers(self, objs):
2347 r"""add_pair_containers(PairContainerSet self, IMP::PairContainers const & objs)"""
2348 return _IMP_container.PairContainerSet_add_pair_containers(self, objs)
2350 def clear_pair_containers(self):
2351 r"""clear_pair_containers(PairContainerSet self)"""
2352 return _IMP_container.PairContainerSet_clear_pair_containers(self)
2354 def get_number_of_pair_containers(self):
2355 r"""get_number_of_pair_containers(PairContainerSet self) -> unsigned int"""
2356 return _IMP_container.PairContainerSet_get_number_of_pair_containers(self)
2358 def get_has_pair_containers(self):
2359 r"""get_has_pair_containers(PairContainerSet self) -> bool"""
2360 return _IMP_container.PairContainerSet_get_has_pair_containers(self)
2362 def get_pair_container(self, i):
2363 r"""get_pair_container(PairContainerSet self, unsigned int i) -> PairContainer"""
2364 return _IMP_container.PairContainerSet_get_pair_container(self, i)
2366 def get_pair_containers(self):
2367 r"""get_pair_containers(PairContainerSet self) -> IMP::PairContainers"""
2368 return _IMP_container.PairContainerSet_get_pair_containers(self)
2370 def erase_pair_container(self, i):
2371 r"""erase_pair_container(PairContainerSet self, unsigned int i)"""
2372 return _IMP_container.PairContainerSet_erase_pair_container(self, i)
2374 def reserve_pair_containers(self, sz):
2375 r"""reserve_pair_containers(PairContainerSet self, unsigned int sz)"""
2376 return _IMP_container.PairContainerSet_reserve_pair_containers(self, sz)
2378 def do_get_inputs(self):
2379 r"""do_get_inputs(PairContainerSet self) -> IMP::ModelObjectsTemp"""
2380 return _IMP_container.PairContainerSet_do_get_inputs(self)
2383 r"""__str__(PairContainerSet self) -> std::string"""
2384 return _IMP_container.PairContainerSet___str__(self)
2387 r"""__repr__(PairContainerSet self) -> std::string"""
2388 return _IMP_container.PairContainerSet___repr__(self)
2392 return _object_cast_to_PairContainerSet(o)
2396 _IMP_container.PairContainerSet_swigregister(PairContainerSet)
2398 r"""Proxy of C++ IMP::container::PairsConstraint class."""
2400 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2402 def __init__(self, *args):
2404 __init__(PairsConstraint self, PairModifier before, PairModifier after, _PairContainerAdaptor c, std::string name="PairsConstraint %1%") -> PairsConstraint
2405 __init__(PairsConstraint self) -> PairsConstraint
2407 _IMP_container.PairsConstraint_swiginit(self, _IMP_container.new_PairsConstraint(*args))
2409 def get_version_info(self):
2410 r"""get_version_info(PairsConstraint self) -> VersionInfo"""
2411 return _IMP_container.PairsConstraint_get_version_info(self)
2412 __swig_destroy__ = _IMP_container.delete_PairsConstraint
2415 r"""__str__(PairsConstraint self) -> std::string"""
2416 return _IMP_container.PairsConstraint___str__(self)
2419 r"""__repr__(PairsConstraint self) -> std::string"""
2420 return _IMP_container.PairsConstraint___repr__(self)
2424 return _object_cast_to_PairsConstraint(o)
2427 def _get_as_binary(self):
2428 r"""_get_as_binary(PairsConstraint self) -> PyObject *"""
2429 return _IMP_container.PairsConstraint__get_as_binary(self)
2431 def _set_from_binary(self, p):
2432 r"""_set_from_binary(PairsConstraint self, PyObject * p)"""
2433 return _IMP_container.PairsConstraint__set_from_binary(self, p)
2435 def __getstate__(self):
2436 p = self._get_as_binary()
2437 if len(self.__dict__) > 1:
2438 d = self.__dict__.copy()
2443 def __setstate__(self, p):
2444 if not hasattr(self,
'this'):
2446 if isinstance(p, tuple):
2448 self.__dict__.update(d)
2449 return self._set_from_binary(p)
2453 _IMP_container.PairsConstraint_swigregister(PairsConstraint)
2455 r"""Proxy of C++ IMP::container::PairsOptimizerState class."""
2457 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2459 def __init__(self, *args):
2460 r"""__init__(PairsOptimizerState self, _PairContainerAdaptor c, PairModifier gf, std::string name="PairsOptimizerState %1%") -> PairsOptimizerState"""
2461 _IMP_container.PairsOptimizerState_swiginit(self, _IMP_container.new_PairsOptimizerState(*args))
2463 def do_update(self, call):
2464 r"""do_update(PairsOptimizerState self, unsigned int call)"""
2465 return _IMP_container.PairsOptimizerState_do_update(self, call)
2467 def get_version_info(self):
2468 r"""get_version_info(PairsOptimizerState self) -> VersionInfo"""
2469 return _IMP_container.PairsOptimizerState_get_version_info(self)
2470 __swig_destroy__ = _IMP_container.delete_PairsOptimizerState
2473 r"""__str__(PairsOptimizerState self) -> std::string"""
2474 return _IMP_container.PairsOptimizerState___str__(self)
2477 r"""__repr__(PairsOptimizerState self) -> std::string"""
2478 return _IMP_container.PairsOptimizerState___repr__(self)
2482 return _object_cast_to_PairsOptimizerState(o)
2486 _IMP_container.PairsOptimizerState_swigregister(PairsOptimizerState)
2488 r"""Proxy of C++ IMP::container::PairsRestraint class."""
2490 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2492 def __init__(self, *args):
2494 __init__(PairsRestraint self, PairScore ss, _PairContainerAdaptor pc, std::string name="PairsRestraint %1%") -> PairsRestraint
2495 __init__(PairsRestraint self) -> PairsRestraint
2497 _IMP_container.PairsRestraint_swiginit(self, _IMP_container.new_PairsRestraint(*args))
2499 def get_score_object(self):
2500 r"""get_score_object(PairsRestraint self) -> PairScore"""
2501 return _IMP_container.PairsRestraint_get_score_object(self)
2503 def get_container(self):
2504 r"""get_container(PairsRestraint self) -> PairContainer"""
2505 return _IMP_container.PairsRestraint_get_container(self)
2507 def do_get_inputs(self):
2508 r"""do_get_inputs(PairsRestraint self) -> IMP::ModelObjectsTemp"""
2509 return _IMP_container.PairsRestraint_do_get_inputs(self)
2511 def get_version_info(self):
2512 r"""get_version_info(PairsRestraint self) -> VersionInfo"""
2513 return _IMP_container.PairsRestraint_get_version_info(self)
2514 __swig_destroy__ = _IMP_container.delete_PairsRestraint
2517 r"""__str__(PairsRestraint self) -> std::string"""
2518 return _IMP_container.PairsRestraint___str__(self)
2521 r"""__repr__(PairsRestraint self) -> std::string"""
2522 return _IMP_container.PairsRestraint___repr__(self)
2526 return _object_cast_to_PairsRestraint(o)
2529 def _get_as_binary(self):
2530 r"""_get_as_binary(PairsRestraint self) -> PyObject *"""
2531 return _IMP_container.PairsRestraint__get_as_binary(self)
2533 def _set_from_binary(self, p):
2534 r"""_set_from_binary(PairsRestraint self, PyObject * p)"""
2535 return _IMP_container.PairsRestraint__set_from_binary(self, p)
2537 def __getstate__(self):
2538 p = self._get_as_binary()
2539 if len(self.__dict__) > 1:
2540 d = self.__dict__.copy()
2545 def __setstate__(self, p):
2546 if not hasattr(self,
'this'):
2548 if isinstance(p, tuple):
2550 self.__dict__.update(d)
2551 return self._set_from_binary(p)
2555 import jax.numpy
as jnp
2556 from IMP._jax_util
import JaxInfo
2557 container = self.get_container().get_derived_object()
2558 score = self.get_score_object().get_derived_object()
2559 score_jax = score._get_jax().score_func
2560 indexes = container._get_static_contents()
2561 def jax_pairs_restraint(X):
2562 return jnp.sum(score_jax(X, indexes))
2563 return JaxInfo(m=self.get_model(), score_func=jax_pairs_restraint,
2564 weight=self.get_weight())
2568 _IMP_container.PairsRestraint_swigregister(PairsRestraint)
2570 r"""Proxy of C++ IMP::container::QuadContainerSet class."""
2572 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2574 def __init__(self, *args):
2576 __init__(QuadContainerSet self, Model m, std::string name="QuadContainerSet %1%") -> QuadContainerSet
2577 __init__(QuadContainerSet self, IMP::QuadContainersTemp const & pc, std::string name="QuadContainerSet %1%") -> QuadContainerSet
2579 _IMP_container.QuadContainerSet_swiginit(self, _IMP_container.new_QuadContainerSet(*args))
2581 def do_apply(self, sm):
2582 r"""do_apply(QuadContainerSet self, QuadModifier sm)"""
2583 return _IMP_container.QuadContainerSet_do_apply(self, sm)
2585 def do_apply_moved(self, sm, moved_pis, reset_pis):
2586 r"""do_apply_moved(QuadContainerSet self, QuadModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
2587 return _IMP_container.QuadContainerSet_do_apply_moved(self, sm, moved_pis, reset_pis)
2589 def get_version_info(self):
2590 r"""get_version_info(QuadContainerSet self) -> VersionInfo"""
2591 return _IMP_container.QuadContainerSet_get_version_info(self)
2592 __swig_destroy__ = _IMP_container.delete_QuadContainerSet
2593 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)
2594 def __set_quad_containers(self, obj): IMP._list_util.set_varlist(self.quad_containers, obj)
2595 def __del_quad_containers(self): IMP._list_util.del_varlist(self.quad_containers)
2596 quad_containers = property(__get_quad_containers, __set_quad_containers, __del_quad_containers, doc=
"List of ##ucnames")
2598 def remove_quad_container(self, d):
2599 r"""remove_quad_container(QuadContainerSet self, QuadContainer d)"""
2600 return _IMP_container.QuadContainerSet_remove_quad_container(self, d)
2602 def _python_index_quad_container(self, d, start, stop):
2603 r"""_python_index_quad_container(QuadContainerSet self, QuadContainer d, unsigned int start, unsigned int stop) -> unsigned int"""
2604 return _IMP_container.QuadContainerSet__python_index_quad_container(self, d, start, stop)
2606 def remove_quad_containers(self, d):
2607 r"""remove_quad_containers(QuadContainerSet self, IMP::QuadContainers const & d)"""
2608 return _IMP_container.QuadContainerSet_remove_quad_containers(self, d)
2610 def set_quad_containers(self, ps):
2611 r"""set_quad_containers(QuadContainerSet self, IMP::QuadContainers const & ps)"""
2612 return _IMP_container.QuadContainerSet_set_quad_containers(self, ps)
2614 def set_quad_containers_order(self, objs):
2615 r"""set_quad_containers_order(QuadContainerSet self, IMP::QuadContainers const & objs)"""
2616 return _IMP_container.QuadContainerSet_set_quad_containers_order(self, objs)
2618 def add_quad_container(self, obj):
2619 r"""add_quad_container(QuadContainerSet self, QuadContainer obj) -> unsigned int"""
2620 return _IMP_container.QuadContainerSet_add_quad_container(self, obj)
2622 def add_quad_containers(self, objs):
2623 r"""add_quad_containers(QuadContainerSet self, IMP::QuadContainers const & objs)"""
2624 return _IMP_container.QuadContainerSet_add_quad_containers(self, objs)
2626 def clear_quad_containers(self):
2627 r"""clear_quad_containers(QuadContainerSet self)"""
2628 return _IMP_container.QuadContainerSet_clear_quad_containers(self)
2630 def get_number_of_quad_containers(self):
2631 r"""get_number_of_quad_containers(QuadContainerSet self) -> unsigned int"""
2632 return _IMP_container.QuadContainerSet_get_number_of_quad_containers(self)
2634 def get_has_quad_containers(self):
2635 r"""get_has_quad_containers(QuadContainerSet self) -> bool"""
2636 return _IMP_container.QuadContainerSet_get_has_quad_containers(self)
2638 def get_quad_container(self, i):
2639 r"""get_quad_container(QuadContainerSet self, unsigned int i) -> QuadContainer"""
2640 return _IMP_container.QuadContainerSet_get_quad_container(self, i)
2642 def get_quad_containers(self):
2643 r"""get_quad_containers(QuadContainerSet self) -> IMP::QuadContainers"""
2644 return _IMP_container.QuadContainerSet_get_quad_containers(self)
2646 def erase_quad_container(self, i):
2647 r"""erase_quad_container(QuadContainerSet self, unsigned int i)"""
2648 return _IMP_container.QuadContainerSet_erase_quad_container(self, i)
2650 def reserve_quad_containers(self, sz):
2651 r"""reserve_quad_containers(QuadContainerSet self, unsigned int sz)"""
2652 return _IMP_container.QuadContainerSet_reserve_quad_containers(self, sz)
2654 def do_get_inputs(self):
2655 r"""do_get_inputs(QuadContainerSet self) -> IMP::ModelObjectsTemp"""
2656 return _IMP_container.QuadContainerSet_do_get_inputs(self)
2659 r"""__str__(QuadContainerSet self) -> std::string"""
2660 return _IMP_container.QuadContainerSet___str__(self)
2663 r"""__repr__(QuadContainerSet self) -> std::string"""
2664 return _IMP_container.QuadContainerSet___repr__(self)
2668 return _object_cast_to_QuadContainerSet(o)
2672 _IMP_container.QuadContainerSet_swigregister(QuadContainerSet)
2674 r"""Proxy of C++ IMP::container::QuadsConstraint class."""
2676 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2678 def __init__(self, *args):
2680 __init__(QuadsConstraint self, QuadModifier before, QuadModifier after, _QuadContainerAdaptor c, std::string name="QuadsConstraint %1%") -> QuadsConstraint
2681 __init__(QuadsConstraint self) -> QuadsConstraint
2683 _IMP_container.QuadsConstraint_swiginit(self, _IMP_container.new_QuadsConstraint(*args))
2685 def get_version_info(self):
2686 r"""get_version_info(QuadsConstraint self) -> VersionInfo"""
2687 return _IMP_container.QuadsConstraint_get_version_info(self)
2688 __swig_destroy__ = _IMP_container.delete_QuadsConstraint
2691 r"""__str__(QuadsConstraint self) -> std::string"""
2692 return _IMP_container.QuadsConstraint___str__(self)
2695 r"""__repr__(QuadsConstraint self) -> std::string"""
2696 return _IMP_container.QuadsConstraint___repr__(self)
2700 return _object_cast_to_QuadsConstraint(o)
2703 def _get_as_binary(self):
2704 r"""_get_as_binary(QuadsConstraint self) -> PyObject *"""
2705 return _IMP_container.QuadsConstraint__get_as_binary(self)
2707 def _set_from_binary(self, p):
2708 r"""_set_from_binary(QuadsConstraint self, PyObject * p)"""
2709 return _IMP_container.QuadsConstraint__set_from_binary(self, p)
2711 def __getstate__(self):
2712 p = self._get_as_binary()
2713 if len(self.__dict__) > 1:
2714 d = self.__dict__.copy()
2719 def __setstate__(self, p):
2720 if not hasattr(self,
'this'):
2722 if isinstance(p, tuple):
2724 self.__dict__.update(d)
2725 return self._set_from_binary(p)
2729 _IMP_container.QuadsConstraint_swigregister(QuadsConstraint)
2731 r"""Proxy of C++ IMP::container::QuadsOptimizerState class."""
2733 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2735 def __init__(self, *args):
2736 r"""__init__(QuadsOptimizerState self, _QuadContainerAdaptor c, QuadModifier gf, std::string name="QuadsOptimizerState %1%") -> QuadsOptimizerState"""
2737 _IMP_container.QuadsOptimizerState_swiginit(self, _IMP_container.new_QuadsOptimizerState(*args))
2739 def do_update(self, call):
2740 r"""do_update(QuadsOptimizerState self, unsigned int call)"""
2741 return _IMP_container.QuadsOptimizerState_do_update(self, call)
2743 def get_version_info(self):
2744 r"""get_version_info(QuadsOptimizerState self) -> VersionInfo"""
2745 return _IMP_container.QuadsOptimizerState_get_version_info(self)
2746 __swig_destroy__ = _IMP_container.delete_QuadsOptimizerState
2749 r"""__str__(QuadsOptimizerState self) -> std::string"""
2750 return _IMP_container.QuadsOptimizerState___str__(self)
2753 r"""__repr__(QuadsOptimizerState self) -> std::string"""
2754 return _IMP_container.QuadsOptimizerState___repr__(self)
2758 return _object_cast_to_QuadsOptimizerState(o)
2762 _IMP_container.QuadsOptimizerState_swigregister(QuadsOptimizerState)
2764 r"""Proxy of C++ IMP::container::QuadsRestraint class."""
2766 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2768 def __init__(self, *args):
2770 __init__(QuadsRestraint self, QuadScore ss, _QuadContainerAdaptor pc, std::string name="QuadsRestraint %1%") -> QuadsRestraint
2771 __init__(QuadsRestraint self) -> QuadsRestraint
2773 _IMP_container.QuadsRestraint_swiginit(self, _IMP_container.new_QuadsRestraint(*args))
2775 def get_score_object(self):
2776 r"""get_score_object(QuadsRestraint self) -> QuadScore"""
2777 return _IMP_container.QuadsRestraint_get_score_object(self)
2779 def get_container(self):
2780 r"""get_container(QuadsRestraint self) -> QuadContainer"""
2781 return _IMP_container.QuadsRestraint_get_container(self)
2783 def do_get_inputs(self):
2784 r"""do_get_inputs(QuadsRestraint self) -> IMP::ModelObjectsTemp"""
2785 return _IMP_container.QuadsRestraint_do_get_inputs(self)
2787 def get_version_info(self):
2788 r"""get_version_info(QuadsRestraint self) -> VersionInfo"""
2789 return _IMP_container.QuadsRestraint_get_version_info(self)
2790 __swig_destroy__ = _IMP_container.delete_QuadsRestraint
2793 r"""__str__(QuadsRestraint self) -> std::string"""
2794 return _IMP_container.QuadsRestraint___str__(self)
2797 r"""__repr__(QuadsRestraint self) -> std::string"""
2798 return _IMP_container.QuadsRestraint___repr__(self)
2802 return _object_cast_to_QuadsRestraint(o)
2805 def _get_as_binary(self):
2806 r"""_get_as_binary(QuadsRestraint self) -> PyObject *"""
2807 return _IMP_container.QuadsRestraint__get_as_binary(self)
2809 def _set_from_binary(self, p):
2810 r"""_set_from_binary(QuadsRestraint self, PyObject * p)"""
2811 return _IMP_container.QuadsRestraint__set_from_binary(self, p)
2813 def __getstate__(self):
2814 p = self._get_as_binary()
2815 if len(self.__dict__) > 1:
2816 d = self.__dict__.copy()
2821 def __setstate__(self, p):
2822 if not hasattr(self,
'this'):
2824 if isinstance(p, tuple):
2826 self.__dict__.update(d)
2827 return self._set_from_binary(p)
2831 _IMP_container.QuadsRestraint_swigregister(QuadsRestraint)
2833 r"""Proxy of C++ IMP::container::SingletonContainerSet class."""
2835 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2837 def __init__(self, *args):
2839 __init__(SingletonContainerSet self, Model m, std::string name="SingletonContainerSet %1%") -> SingletonContainerSet
2840 __init__(SingletonContainerSet self, IMP::SingletonContainersTemp const & pc, std::string name="SingletonContainerSet %1%") -> SingletonContainerSet
2842 _IMP_container.SingletonContainerSet_swiginit(self, _IMP_container.new_SingletonContainerSet(*args))
2844 def do_apply(self, sm):
2845 r"""do_apply(SingletonContainerSet self, SingletonModifier sm)"""
2846 return _IMP_container.SingletonContainerSet_do_apply(self, sm)
2848 def do_apply_moved(self, sm, moved_pis, reset_pis):
2849 r"""do_apply_moved(SingletonContainerSet self, SingletonModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
2850 return _IMP_container.SingletonContainerSet_do_apply_moved(self, sm, moved_pis, reset_pis)
2852 def get_version_info(self):
2853 r"""get_version_info(SingletonContainerSet self) -> VersionInfo"""
2854 return _IMP_container.SingletonContainerSet_get_version_info(self)
2855 __swig_destroy__ = _IMP_container.delete_SingletonContainerSet
2856 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)
2857 def __set_singleton_containers(self, obj): IMP._list_util.set_varlist(self.singleton_containers, obj)
2858 def __del_singleton_containers(self): IMP._list_util.del_varlist(self.singleton_containers)
2859 singleton_containers = property(__get_singleton_containers, __set_singleton_containers, __del_singleton_containers, doc=
"List of ##ucnames")
2861 def remove_singleton_container(self, d):
2862 r"""remove_singleton_container(SingletonContainerSet self, SingletonContainer d)"""
2863 return _IMP_container.SingletonContainerSet_remove_singleton_container(self, d)
2865 def _python_index_singleton_container(self, d, start, stop):
2866 r"""_python_index_singleton_container(SingletonContainerSet self, SingletonContainer d, unsigned int start, unsigned int stop) -> unsigned int"""
2867 return _IMP_container.SingletonContainerSet__python_index_singleton_container(self, d, start, stop)
2869 def remove_singleton_containers(self, d):
2870 r"""remove_singleton_containers(SingletonContainerSet self, IMP::SingletonContainers const & d)"""
2871 return _IMP_container.SingletonContainerSet_remove_singleton_containers(self, d)
2873 def set_singleton_containers(self, ps):
2874 r"""set_singleton_containers(SingletonContainerSet self, IMP::SingletonContainers const & ps)"""
2875 return _IMP_container.SingletonContainerSet_set_singleton_containers(self, ps)
2877 def set_singleton_containers_order(self, objs):
2878 r"""set_singleton_containers_order(SingletonContainerSet self, IMP::SingletonContainers const & objs)"""
2879 return _IMP_container.SingletonContainerSet_set_singleton_containers_order(self, objs)
2881 def add_singleton_container(self, obj):
2882 r"""add_singleton_container(SingletonContainerSet self, SingletonContainer obj) -> unsigned int"""
2883 return _IMP_container.SingletonContainerSet_add_singleton_container(self, obj)
2885 def add_singleton_containers(self, objs):
2886 r"""add_singleton_containers(SingletonContainerSet self, IMP::SingletonContainers const & objs)"""
2887 return _IMP_container.SingletonContainerSet_add_singleton_containers(self, objs)
2889 def clear_singleton_containers(self):
2890 r"""clear_singleton_containers(SingletonContainerSet self)"""
2891 return _IMP_container.SingletonContainerSet_clear_singleton_containers(self)
2893 def get_number_of_singleton_containers(self):
2894 r"""get_number_of_singleton_containers(SingletonContainerSet self) -> unsigned int"""
2895 return _IMP_container.SingletonContainerSet_get_number_of_singleton_containers(self)
2897 def get_has_singleton_containers(self):
2898 r"""get_has_singleton_containers(SingletonContainerSet self) -> bool"""
2899 return _IMP_container.SingletonContainerSet_get_has_singleton_containers(self)
2901 def get_singleton_container(self, i):
2902 r"""get_singleton_container(SingletonContainerSet self, unsigned int i) -> SingletonContainer"""
2903 return _IMP_container.SingletonContainerSet_get_singleton_container(self, i)
2905 def get_singleton_containers(self):
2906 r"""get_singleton_containers(SingletonContainerSet self) -> IMP::SingletonContainers"""
2907 return _IMP_container.SingletonContainerSet_get_singleton_containers(self)
2909 def erase_singleton_container(self, i):
2910 r"""erase_singleton_container(SingletonContainerSet self, unsigned int i)"""
2911 return _IMP_container.SingletonContainerSet_erase_singleton_container(self, i)
2913 def reserve_singleton_containers(self, sz):
2914 r"""reserve_singleton_containers(SingletonContainerSet self, unsigned int sz)"""
2915 return _IMP_container.SingletonContainerSet_reserve_singleton_containers(self, sz)
2917 def do_get_inputs(self):
2918 r"""do_get_inputs(SingletonContainerSet self) -> IMP::ModelObjectsTemp"""
2919 return _IMP_container.SingletonContainerSet_do_get_inputs(self)
2922 r"""__str__(SingletonContainerSet self) -> std::string"""
2923 return _IMP_container.SingletonContainerSet___str__(self)
2926 r"""__repr__(SingletonContainerSet self) -> std::string"""
2927 return _IMP_container.SingletonContainerSet___repr__(self)
2931 return _object_cast_to_SingletonContainerSet(o)
2935 _IMP_container.SingletonContainerSet_swigregister(SingletonContainerSet)
2937 r"""Proxy of C++ IMP::container::SingletonsConstraint class."""
2939 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2941 def __init__(self, *args):
2943 __init__(SingletonsConstraint self, SingletonModifier before, SingletonModifier after, _SingletonContainerAdaptor c, std::string name="SingletonsConstraint %1%") -> SingletonsConstraint
2944 __init__(SingletonsConstraint self) -> SingletonsConstraint
2946 _IMP_container.SingletonsConstraint_swiginit(self, _IMP_container.new_SingletonsConstraint(*args))
2948 def get_version_info(self):
2949 r"""get_version_info(SingletonsConstraint self) -> VersionInfo"""
2950 return _IMP_container.SingletonsConstraint_get_version_info(self)
2951 __swig_destroy__ = _IMP_container.delete_SingletonsConstraint
2954 r"""__str__(SingletonsConstraint self) -> std::string"""
2955 return _IMP_container.SingletonsConstraint___str__(self)
2958 r"""__repr__(SingletonsConstraint self) -> std::string"""
2959 return _IMP_container.SingletonsConstraint___repr__(self)
2963 return _object_cast_to_SingletonsConstraint(o)
2966 def _get_as_binary(self):
2967 r"""_get_as_binary(SingletonsConstraint self) -> PyObject *"""
2968 return _IMP_container.SingletonsConstraint__get_as_binary(self)
2970 def _set_from_binary(self, p):
2971 r"""_set_from_binary(SingletonsConstraint self, PyObject * p)"""
2972 return _IMP_container.SingletonsConstraint__set_from_binary(self, p)
2974 def __getstate__(self):
2975 p = self._get_as_binary()
2976 if len(self.__dict__) > 1:
2977 d = self.__dict__.copy()
2982 def __setstate__(self, p):
2983 if not hasattr(self,
'this'):
2985 if isinstance(p, tuple):
2987 self.__dict__.update(d)
2988 return self._set_from_binary(p)
2992 _IMP_container.SingletonsConstraint_swigregister(SingletonsConstraint)
2994 r"""Proxy of C++ IMP::container::SingletonsOptimizerState class."""
2996 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2998 def __init__(self, *args):
2999 r"""__init__(SingletonsOptimizerState self, _SingletonContainerAdaptor c, SingletonModifier gf, std::string name="SingletonsOptimizerState %1%") -> SingletonsOptimizerState"""
3000 _IMP_container.SingletonsOptimizerState_swiginit(self, _IMP_container.new_SingletonsOptimizerState(*args))
3002 def do_update(self, call):
3003 r"""do_update(SingletonsOptimizerState self, unsigned int call)"""
3004 return _IMP_container.SingletonsOptimizerState_do_update(self, call)
3006 def get_version_info(self):
3007 r"""get_version_info(SingletonsOptimizerState self) -> VersionInfo"""
3008 return _IMP_container.SingletonsOptimizerState_get_version_info(self)
3009 __swig_destroy__ = _IMP_container.delete_SingletonsOptimizerState
3012 r"""__str__(SingletonsOptimizerState self) -> std::string"""
3013 return _IMP_container.SingletonsOptimizerState___str__(self)
3016 r"""__repr__(SingletonsOptimizerState self) -> std::string"""
3017 return _IMP_container.SingletonsOptimizerState___repr__(self)
3021 return _object_cast_to_SingletonsOptimizerState(o)
3025 _IMP_container.SingletonsOptimizerState_swigregister(SingletonsOptimizerState)
3027 r"""Proxy of C++ IMP::container::SingletonsRestraint class."""
3029 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3031 def __init__(self, *args):
3033 __init__(SingletonsRestraint self, SingletonScore ss, _SingletonContainerAdaptor pc, std::string name="SingletonsRestraint %1%") -> SingletonsRestraint
3034 __init__(SingletonsRestraint self) -> SingletonsRestraint
3036 _IMP_container.SingletonsRestraint_swiginit(self, _IMP_container.new_SingletonsRestraint(*args))
3038 def get_score_object(self):
3039 r"""get_score_object(SingletonsRestraint self) -> SingletonScore"""
3040 return _IMP_container.SingletonsRestraint_get_score_object(self)
3042 def get_container(self):
3043 r"""get_container(SingletonsRestraint self) -> SingletonContainer"""
3044 return _IMP_container.SingletonsRestraint_get_container(self)
3046 def do_get_inputs(self):
3047 r"""do_get_inputs(SingletonsRestraint self) -> IMP::ModelObjectsTemp"""
3048 return _IMP_container.SingletonsRestraint_do_get_inputs(self)
3050 def get_version_info(self):
3051 r"""get_version_info(SingletonsRestraint self) -> VersionInfo"""
3052 return _IMP_container.SingletonsRestraint_get_version_info(self)
3053 __swig_destroy__ = _IMP_container.delete_SingletonsRestraint
3056 r"""__str__(SingletonsRestraint self) -> std::string"""
3057 return _IMP_container.SingletonsRestraint___str__(self)
3060 r"""__repr__(SingletonsRestraint self) -> std::string"""
3061 return _IMP_container.SingletonsRestraint___repr__(self)
3065 return _object_cast_to_SingletonsRestraint(o)
3068 def _get_as_binary(self):
3069 r"""_get_as_binary(SingletonsRestraint self) -> PyObject *"""
3070 return _IMP_container.SingletonsRestraint__get_as_binary(self)
3072 def _set_from_binary(self, p):
3073 r"""_set_from_binary(SingletonsRestraint self, PyObject * p)"""
3074 return _IMP_container.SingletonsRestraint__set_from_binary(self, p)
3076 def __getstate__(self):
3077 p = self._get_as_binary()
3078 if len(self.__dict__) > 1:
3079 d = self.__dict__.copy()
3084 def __setstate__(self, p):
3085 if not hasattr(self,
'this'):
3087 if isinstance(p, tuple):
3089 self.__dict__.update(d)
3090 return self._set_from_binary(p)
3094 _IMP_container.SingletonsRestraint_swigregister(SingletonsRestraint)
3096 r"""Proxy of C++ IMP::container::TripletContainerSet class."""
3098 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3100 def __init__(self, *args):
3102 __init__(TripletContainerSet self, Model m, std::string name="TripletContainerSet %1%") -> TripletContainerSet
3103 __init__(TripletContainerSet self, IMP::TripletContainersTemp const & pc, std::string name="TripletContainerSet %1%") -> TripletContainerSet
3105 _IMP_container.TripletContainerSet_swiginit(self, _IMP_container.new_TripletContainerSet(*args))
3107 def do_apply(self, sm):
3108 r"""do_apply(TripletContainerSet self, TripletModifier sm)"""
3109 return _IMP_container.TripletContainerSet_do_apply(self, sm)
3111 def do_apply_moved(self, sm, moved_pis, reset_pis):
3112 r"""do_apply_moved(TripletContainerSet self, TripletModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
3113 return _IMP_container.TripletContainerSet_do_apply_moved(self, sm, moved_pis, reset_pis)
3115 def get_version_info(self):
3116 r"""get_version_info(TripletContainerSet self) -> VersionInfo"""
3117 return _IMP_container.TripletContainerSet_get_version_info(self)
3118 __swig_destroy__ = _IMP_container.delete_TripletContainerSet
3119 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)
3120 def __set_triplet_containers(self, obj): IMP._list_util.set_varlist(self.triplet_containers, obj)
3121 def __del_triplet_containers(self): IMP._list_util.del_varlist(self.triplet_containers)
3122 triplet_containers = property(__get_triplet_containers, __set_triplet_containers, __del_triplet_containers, doc=
"List of ##ucnames")
3124 def remove_triplet_container(self, d):
3125 r"""remove_triplet_container(TripletContainerSet self, TripletContainer d)"""
3126 return _IMP_container.TripletContainerSet_remove_triplet_container(self, d)
3128 def _python_index_triplet_container(self, d, start, stop):
3129 r"""_python_index_triplet_container(TripletContainerSet self, TripletContainer d, unsigned int start, unsigned int stop) -> unsigned int"""
3130 return _IMP_container.TripletContainerSet__python_index_triplet_container(self, d, start, stop)
3132 def remove_triplet_containers(self, d):
3133 r"""remove_triplet_containers(TripletContainerSet self, IMP::TripletContainers const & d)"""
3134 return _IMP_container.TripletContainerSet_remove_triplet_containers(self, d)
3136 def set_triplet_containers(self, ps):
3137 r"""set_triplet_containers(TripletContainerSet self, IMP::TripletContainers const & ps)"""
3138 return _IMP_container.TripletContainerSet_set_triplet_containers(self, ps)
3140 def set_triplet_containers_order(self, objs):
3141 r"""set_triplet_containers_order(TripletContainerSet self, IMP::TripletContainers const & objs)"""
3142 return _IMP_container.TripletContainerSet_set_triplet_containers_order(self, objs)
3144 def add_triplet_container(self, obj):
3145 r"""add_triplet_container(TripletContainerSet self, TripletContainer obj) -> unsigned int"""
3146 return _IMP_container.TripletContainerSet_add_triplet_container(self, obj)
3148 def add_triplet_containers(self, objs):
3149 r"""add_triplet_containers(TripletContainerSet self, IMP::TripletContainers const & objs)"""
3150 return _IMP_container.TripletContainerSet_add_triplet_containers(self, objs)
3152 def clear_triplet_containers(self):
3153 r"""clear_triplet_containers(TripletContainerSet self)"""
3154 return _IMP_container.TripletContainerSet_clear_triplet_containers(self)
3156 def get_number_of_triplet_containers(self):
3157 r"""get_number_of_triplet_containers(TripletContainerSet self) -> unsigned int"""
3158 return _IMP_container.TripletContainerSet_get_number_of_triplet_containers(self)
3160 def get_has_triplet_containers(self):
3161 r"""get_has_triplet_containers(TripletContainerSet self) -> bool"""
3162 return _IMP_container.TripletContainerSet_get_has_triplet_containers(self)
3164 def get_triplet_container(self, i):
3165 r"""get_triplet_container(TripletContainerSet self, unsigned int i) -> TripletContainer"""
3166 return _IMP_container.TripletContainerSet_get_triplet_container(self, i)
3168 def get_triplet_containers(self):
3169 r"""get_triplet_containers(TripletContainerSet self) -> IMP::TripletContainers"""
3170 return _IMP_container.TripletContainerSet_get_triplet_containers(self)
3172 def erase_triplet_container(self, i):
3173 r"""erase_triplet_container(TripletContainerSet self, unsigned int i)"""
3174 return _IMP_container.TripletContainerSet_erase_triplet_container(self, i)
3176 def reserve_triplet_containers(self, sz):
3177 r"""reserve_triplet_containers(TripletContainerSet self, unsigned int sz)"""
3178 return _IMP_container.TripletContainerSet_reserve_triplet_containers(self, sz)
3180 def do_get_inputs(self):
3181 r"""do_get_inputs(TripletContainerSet self) -> IMP::ModelObjectsTemp"""
3182 return _IMP_container.TripletContainerSet_do_get_inputs(self)
3185 r"""__str__(TripletContainerSet self) -> std::string"""
3186 return _IMP_container.TripletContainerSet___str__(self)
3189 r"""__repr__(TripletContainerSet self) -> std::string"""
3190 return _IMP_container.TripletContainerSet___repr__(self)
3194 return _object_cast_to_TripletContainerSet(o)
3198 _IMP_container.TripletContainerSet_swigregister(TripletContainerSet)
3200 r"""Proxy of C++ IMP::container::TripletsConstraint class."""
3202 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3204 def __init__(self, *args):
3206 __init__(TripletsConstraint self, TripletModifier before, TripletModifier after, _TripletContainerAdaptor c, std::string name="TripletsConstraint %1%") -> TripletsConstraint
3207 __init__(TripletsConstraint self) -> TripletsConstraint
3209 _IMP_container.TripletsConstraint_swiginit(self, _IMP_container.new_TripletsConstraint(*args))
3211 def get_version_info(self):
3212 r"""get_version_info(TripletsConstraint self) -> VersionInfo"""
3213 return _IMP_container.TripletsConstraint_get_version_info(self)
3214 __swig_destroy__ = _IMP_container.delete_TripletsConstraint
3217 r"""__str__(TripletsConstraint self) -> std::string"""
3218 return _IMP_container.TripletsConstraint___str__(self)
3221 r"""__repr__(TripletsConstraint self) -> std::string"""
3222 return _IMP_container.TripletsConstraint___repr__(self)
3226 return _object_cast_to_TripletsConstraint(o)
3229 def _get_as_binary(self):
3230 r"""_get_as_binary(TripletsConstraint self) -> PyObject *"""
3231 return _IMP_container.TripletsConstraint__get_as_binary(self)
3233 def _set_from_binary(self, p):
3234 r"""_set_from_binary(TripletsConstraint self, PyObject * p)"""
3235 return _IMP_container.TripletsConstraint__set_from_binary(self, p)
3237 def __getstate__(self):
3238 p = self._get_as_binary()
3239 if len(self.__dict__) > 1:
3240 d = self.__dict__.copy()
3245 def __setstate__(self, p):
3246 if not hasattr(self,
'this'):
3248 if isinstance(p, tuple):
3250 self.__dict__.update(d)
3251 return self._set_from_binary(p)
3255 _IMP_container.TripletsConstraint_swigregister(TripletsConstraint)
3257 r"""Proxy of C++ IMP::container::TripletsOptimizerState class."""
3259 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3261 def __init__(self, *args):
3262 r"""__init__(TripletsOptimizerState self, _TripletContainerAdaptor c, TripletModifier gf, std::string name="TripletsOptimizerState %1%") -> TripletsOptimizerState"""
3263 _IMP_container.TripletsOptimizerState_swiginit(self, _IMP_container.new_TripletsOptimizerState(*args))
3265 def do_update(self, call):
3266 r"""do_update(TripletsOptimizerState self, unsigned int call)"""
3267 return _IMP_container.TripletsOptimizerState_do_update(self, call)
3269 def get_version_info(self):
3270 r"""get_version_info(TripletsOptimizerState self) -> VersionInfo"""
3271 return _IMP_container.TripletsOptimizerState_get_version_info(self)
3272 __swig_destroy__ = _IMP_container.delete_TripletsOptimizerState
3275 r"""__str__(TripletsOptimizerState self) -> std::string"""
3276 return _IMP_container.TripletsOptimizerState___str__(self)
3279 r"""__repr__(TripletsOptimizerState self) -> std::string"""
3280 return _IMP_container.TripletsOptimizerState___repr__(self)
3284 return _object_cast_to_TripletsOptimizerState(o)
3288 _IMP_container.TripletsOptimizerState_swigregister(TripletsOptimizerState)
3290 r"""Proxy of C++ IMP::container::TripletsRestraint class."""
3292 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3294 def __init__(self, *args):
3296 __init__(TripletsRestraint self, TripletScore ss, _TripletContainerAdaptor pc, std::string name="TripletsRestraint %1%") -> TripletsRestraint
3297 __init__(TripletsRestraint self) -> TripletsRestraint
3299 _IMP_container.TripletsRestraint_swiginit(self, _IMP_container.new_TripletsRestraint(*args))
3301 def get_score_object(self):
3302 r"""get_score_object(TripletsRestraint self) -> TripletScore"""
3303 return _IMP_container.TripletsRestraint_get_score_object(self)
3305 def get_container(self):
3306 r"""get_container(TripletsRestraint self) -> TripletContainer"""
3307 return _IMP_container.TripletsRestraint_get_container(self)
3309 def do_get_inputs(self):
3310 r"""do_get_inputs(TripletsRestraint self) -> IMP::ModelObjectsTemp"""
3311 return _IMP_container.TripletsRestraint_do_get_inputs(self)
3313 def get_version_info(self):
3314 r"""get_version_info(TripletsRestraint self) -> VersionInfo"""
3315 return _IMP_container.TripletsRestraint_get_version_info(self)
3316 __swig_destroy__ = _IMP_container.delete_TripletsRestraint
3319 r"""__str__(TripletsRestraint self) -> std::string"""
3320 return _IMP_container.TripletsRestraint___str__(self)
3323 r"""__repr__(TripletsRestraint self) -> std::string"""
3324 return _IMP_container.TripletsRestraint___repr__(self)
3328 return _object_cast_to_TripletsRestraint(o)
3331 def _get_as_binary(self):
3332 r"""_get_as_binary(TripletsRestraint self) -> PyObject *"""
3333 return _IMP_container.TripletsRestraint__get_as_binary(self)
3335 def _set_from_binary(self, p):
3336 r"""_set_from_binary(TripletsRestraint self, PyObject * p)"""
3337 return _IMP_container.TripletsRestraint__set_from_binary(self, p)
3339 def __getstate__(self):
3340 p = self._get_as_binary()
3341 if len(self.__dict__) > 1:
3342 d = self.__dict__.copy()
3347 def __setstate__(self, p):
3348 if not hasattr(self,
'this'):
3350 if isinstance(p, tuple):
3352 self.__dict__.update(d)
3353 return self._set_from_binary(p)
3357 _IMP_container.TripletsRestraint_swigregister(TripletsRestraint)
3359 r"""Proxy of C++ IMP::container::InContainerSingletonFilter class."""
3361 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3363 def __init__(self, *args):
3365 __init__(InContainerSingletonFilter self, SingletonContainer c, std::string name="SingletonFilter %1%") -> InContainerSingletonFilter
3366 __init__(InContainerSingletonFilter self, SingletonContainer c, bool handle_permutations, std::string name="SingletonFilter %1%") -> InContainerSingletonFilter
3368 _IMP_container.InContainerSingletonFilter_swiginit(self, _IMP_container.new_InContainerSingletonFilter(*args))
3370 def do_get_inputs(self, m, pi):
3371 r"""do_get_inputs(InContainerSingletonFilter self, Model m, IMP::ParticleIndexes const & pi) -> IMP::ModelObjectsTemp"""
3372 return _IMP_container.InContainerSingletonFilter_do_get_inputs(self, m, pi)
3374 def get_value(self, *args):
3376 get_value(InContainerSingletonFilter self, Particle a) -> int
3377 get_value(InContainerSingletonFilter self, IMP::ParticlesTemp const & o) -> IMP::Ints
3379 return _IMP_container.InContainerSingletonFilter_get_value(self, *args)
3381 def get_value_index(self, *args):
3383 get_value_index(InContainerSingletonFilter self, Model arg2, ParticleIndex vt) -> int
3384 get_value_index(InContainerSingletonFilter self, Model m, IMP::ParticleIndexes const & o) -> IMP::Ints
3386 return _IMP_container.InContainerSingletonFilter_get_value_index(self, *args)
3388 def get_version_info(self):
3389 r"""get_version_info(InContainerSingletonFilter self) -> VersionInfo"""
3390 return _IMP_container.InContainerSingletonFilter_get_version_info(self)
3391 __swig_destroy__ = _IMP_container.delete_InContainerSingletonFilter
3394 r"""__str__(InContainerSingletonFilter self) -> std::string"""
3395 return _IMP_container.InContainerSingletonFilter___str__(self)
3398 r"""__repr__(InContainerSingletonFilter self) -> std::string"""
3399 return _IMP_container.InContainerSingletonFilter___repr__(self)
3403 return _object_cast_to_InContainerSingletonFilter(o)
3407 _IMP_container.InContainerSingletonFilter_swigregister(InContainerSingletonFilter)
3409 r"""Proxy of C++ IMP::container::InContainerPairFilter class."""
3411 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3413 def __init__(self, *args):
3415 __init__(InContainerPairFilter self, PairContainer c, std::string name="PairFilter %1%") -> InContainerPairFilter
3416 __init__(InContainerPairFilter self, PairContainer c, bool handle_permutations, std::string name="PairFilter %1%") -> InContainerPairFilter
3418 _IMP_container.InContainerPairFilter_swiginit(self, _IMP_container.new_InContainerPairFilter(*args))
3420 def do_get_inputs(self, m, pi):
3421 r"""do_get_inputs(InContainerPairFilter self, Model m, IMP::ParticleIndexes const & pi) -> IMP::ModelObjectsTemp"""
3422 return _IMP_container.InContainerPairFilter_do_get_inputs(self, m, pi)
3424 def get_value(self, *args):
3426 get_value(InContainerPairFilter self, IMP::ParticlePair const & a) -> int
3427 get_value(InContainerPairFilter self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
3429 return _IMP_container.InContainerPairFilter_get_value(self, *args)
3431 def get_value_index(self, *args):
3433 get_value_index(InContainerPairFilter self, Model arg2, IMP::ParticleIndexPair const & vt) -> int
3434 get_value_index(InContainerPairFilter self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
3436 return _IMP_container.InContainerPairFilter_get_value_index(self, *args)
3438 def get_version_info(self):
3439 r"""get_version_info(InContainerPairFilter self) -> VersionInfo"""
3440 return _IMP_container.InContainerPairFilter_get_version_info(self)
3441 __swig_destroy__ = _IMP_container.delete_InContainerPairFilter
3444 r"""__str__(InContainerPairFilter self) -> std::string"""
3445 return _IMP_container.InContainerPairFilter___str__(self)
3448 r"""__repr__(InContainerPairFilter self) -> std::string"""
3449 return _IMP_container.InContainerPairFilter___repr__(self)
3453 return _object_cast_to_InContainerPairFilter(o)
3457 _IMP_container.InContainerPairFilter_swigregister(InContainerPairFilter)
3459 r"""Proxy of C++ IMP::container::InContainerTripletFilter class."""
3461 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3463 def __init__(self, *args):
3465 __init__(InContainerTripletFilter self, TripletContainer c, std::string name="TripletFilter %1%") -> InContainerTripletFilter
3466 __init__(InContainerTripletFilter self, TripletContainer c, bool handle_permutations, std::string name="TripletFilter %1%") -> InContainerTripletFilter
3468 _IMP_container.InContainerTripletFilter_swiginit(self, _IMP_container.new_InContainerTripletFilter(*args))
3470 def do_get_inputs(self, m, pi):
3471 r"""do_get_inputs(InContainerTripletFilter self, Model m, IMP::ParticleIndexes const & pi) -> IMP::ModelObjectsTemp"""
3472 return _IMP_container.InContainerTripletFilter_do_get_inputs(self, m, pi)
3474 def get_value(self, *args):
3476 get_value(InContainerTripletFilter self, IMP::ParticleTriplet const & a) -> int
3477 get_value(InContainerTripletFilter self, IMP::ParticleTripletsTemp const & o) -> IMP::Ints
3479 return _IMP_container.InContainerTripletFilter_get_value(self, *args)
3481 def get_value_index(self, *args):
3483 get_value_index(InContainerTripletFilter self, Model arg2, IMP::ParticleIndexTriplet const & vt) -> int
3484 get_value_index(InContainerTripletFilter self, Model m, IMP::ParticleIndexTriplets const & o) -> IMP::Ints
3486 return _IMP_container.InContainerTripletFilter_get_value_index(self, *args)
3488 def get_version_info(self):
3489 r"""get_version_info(InContainerTripletFilter self) -> VersionInfo"""
3490 return _IMP_container.InContainerTripletFilter_get_version_info(self)
3491 __swig_destroy__ = _IMP_container.delete_InContainerTripletFilter
3494 r"""__str__(InContainerTripletFilter self) -> std::string"""
3495 return _IMP_container.InContainerTripletFilter___str__(self)
3498 r"""__repr__(InContainerTripletFilter self) -> std::string"""
3499 return _IMP_container.InContainerTripletFilter___repr__(self)
3503 return _object_cast_to_InContainerTripletFilter(o)
3507 _IMP_container.InContainerTripletFilter_swigregister(InContainerTripletFilter)
3509 r"""Proxy of C++ IMP::container::InContainerQuadFilter class."""
3511 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3513 def __init__(self, *args):
3515 __init__(InContainerQuadFilter self, QuadContainer c, std::string name="QuadFilter %1%") -> InContainerQuadFilter
3516 __init__(InContainerQuadFilter self, QuadContainer c, bool handle_permutations, std::string name="QuadFilter %1%") -> InContainerQuadFilter
3518 _IMP_container.InContainerQuadFilter_swiginit(self, _IMP_container.new_InContainerQuadFilter(*args))
3520 def do_get_inputs(self, m, pi):
3521 r"""do_get_inputs(InContainerQuadFilter self, Model m, IMP::ParticleIndexes const & pi) -> IMP::ModelObjectsTemp"""
3522 return _IMP_container.InContainerQuadFilter_do_get_inputs(self, m, pi)
3524 def get_value(self, *args):
3526 get_value(InContainerQuadFilter self, IMP::ParticleQuad const & a) -> int
3527 get_value(InContainerQuadFilter self, IMP::ParticleQuadsTemp const & o) -> IMP::Ints
3529 return _IMP_container.InContainerQuadFilter_get_value(self, *args)
3531 def get_value_index(self, *args):
3533 get_value_index(InContainerQuadFilter self, Model arg2, IMP::ParticleIndexQuad const & vt) -> int
3534 get_value_index(InContainerQuadFilter self, Model m, IMP::ParticleIndexQuads const & o) -> IMP::Ints
3536 return _IMP_container.InContainerQuadFilter_get_value_index(self, *args)
3538 def get_version_info(self):
3539 r"""get_version_info(InContainerQuadFilter self) -> VersionInfo"""
3540 return _IMP_container.InContainerQuadFilter_get_version_info(self)
3541 __swig_destroy__ = _IMP_container.delete_InContainerQuadFilter
3544 r"""__str__(InContainerQuadFilter self) -> std::string"""
3545 return _IMP_container.InContainerQuadFilter___str__(self)
3548 r"""__repr__(InContainerQuadFilter self) -> std::string"""
3549 return _IMP_container.InContainerQuadFilter___repr__(self)
3553 return _object_cast_to_InContainerQuadFilter(o)
3557 _IMP_container.InContainerQuadFilter_swigregister(InContainerQuadFilter)
3559 r"""Proxy of C++ IMP::container::SingletonContainerStatistics class."""
3561 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3563 def __init__(self, c):
3564 r"""__init__(SingletonContainerStatistics self, _SingletonContainerAdaptor c) -> SingletonContainerStatistics"""
3565 _IMP_container.SingletonContainerStatistics_swiginit(self, _IMP_container.new_SingletonContainerStatistics(c))
3567 def show_statistics(self, out):
3568 r"""show_statistics(SingletonContainerStatistics self, _ostream out)"""
3569 return _IMP_container.SingletonContainerStatistics_show_statistics(self, out)
3571 def set_track_unique(self, tf):
3572 r"""set_track_unique(SingletonContainerStatistics self, bool tf)"""
3573 return _IMP_container.SingletonContainerStatistics_set_track_unique(self, tf)
3575 def do_before_evaluate(self):
3576 r"""do_before_evaluate(SingletonContainerStatistics self)"""
3577 return _IMP_container.SingletonContainerStatistics_do_before_evaluate(self)
3579 def do_after_evaluate(self, da):
3580 r"""do_after_evaluate(SingletonContainerStatistics self, DerivativeAccumulator da)"""
3581 return _IMP_container.SingletonContainerStatistics_do_after_evaluate(self, da)
3583 def do_get_inputs(self):
3584 r"""do_get_inputs(SingletonContainerStatistics self) -> IMP::ModelObjectsTemp"""
3585 return _IMP_container.SingletonContainerStatistics_do_get_inputs(self)
3587 def do_get_outputs(self):
3588 r"""do_get_outputs(SingletonContainerStatistics self) -> IMP::ModelObjectsTemp"""
3589 return _IMP_container.SingletonContainerStatistics_do_get_outputs(self)
3591 def get_version_info(self):
3592 r"""get_version_info(SingletonContainerStatistics self) -> VersionInfo"""
3593 return _IMP_container.SingletonContainerStatistics_get_version_info(self)
3594 __swig_destroy__ = _IMP_container.delete_SingletonContainerStatistics
3597 r"""__str__(SingletonContainerStatistics self) -> std::string"""
3598 return _IMP_container.SingletonContainerStatistics___str__(self)
3601 r"""__repr__(SingletonContainerStatistics self) -> std::string"""
3602 return _IMP_container.SingletonContainerStatistics___repr__(self)
3606 return _object_cast_to_SingletonContainerStatistics(o)
3610 _IMP_container.SingletonContainerStatistics_swigregister(SingletonContainerStatistics)
3612 r"""Proxy of C++ IMP::container::PairContainerStatistics class."""
3614 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3616 def __init__(self, c):
3617 r"""__init__(PairContainerStatistics self, _PairContainerAdaptor c) -> PairContainerStatistics"""
3618 _IMP_container.PairContainerStatistics_swiginit(self, _IMP_container.new_PairContainerStatistics(c))
3620 def show_statistics(self, out):
3621 r"""show_statistics(PairContainerStatistics self, _ostream out)"""
3622 return _IMP_container.PairContainerStatistics_show_statistics(self, out)
3624 def set_track_unique(self, tf):
3625 r"""set_track_unique(PairContainerStatistics self, bool tf)"""
3626 return _IMP_container.PairContainerStatistics_set_track_unique(self, tf)
3628 def do_before_evaluate(self):
3629 r"""do_before_evaluate(PairContainerStatistics self)"""
3630 return _IMP_container.PairContainerStatistics_do_before_evaluate(self)
3632 def do_after_evaluate(self, da):
3633 r"""do_after_evaluate(PairContainerStatistics self, DerivativeAccumulator da)"""
3634 return _IMP_container.PairContainerStatistics_do_after_evaluate(self, da)
3636 def do_get_inputs(self):
3637 r"""do_get_inputs(PairContainerStatistics self) -> IMP::ModelObjectsTemp"""
3638 return _IMP_container.PairContainerStatistics_do_get_inputs(self)
3640 def do_get_outputs(self):
3641 r"""do_get_outputs(PairContainerStatistics self) -> IMP::ModelObjectsTemp"""
3642 return _IMP_container.PairContainerStatistics_do_get_outputs(self)
3644 def get_version_info(self):
3645 r"""get_version_info(PairContainerStatistics self) -> VersionInfo"""
3646 return _IMP_container.PairContainerStatistics_get_version_info(self)
3647 __swig_destroy__ = _IMP_container.delete_PairContainerStatistics
3650 r"""__str__(PairContainerStatistics self) -> std::string"""
3651 return _IMP_container.PairContainerStatistics___str__(self)
3654 r"""__repr__(PairContainerStatistics self) -> std::string"""
3655 return _IMP_container.PairContainerStatistics___repr__(self)
3659 return _object_cast_to_PairContainerStatistics(o)
3663 _IMP_container.PairContainerStatistics_swigregister(PairContainerStatistics)
3665 r"""Proxy of C++ IMP::container::TripletContainerStatistics class."""
3667 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3669 def __init__(self, c):
3670 r"""__init__(TripletContainerStatistics self, _TripletContainerAdaptor c) -> TripletContainerStatistics"""
3671 _IMP_container.TripletContainerStatistics_swiginit(self, _IMP_container.new_TripletContainerStatistics(c))
3673 def show_statistics(self, out):
3674 r"""show_statistics(TripletContainerStatistics self, _ostream out)"""
3675 return _IMP_container.TripletContainerStatistics_show_statistics(self, out)
3677 def set_track_unique(self, tf):
3678 r"""set_track_unique(TripletContainerStatistics self, bool tf)"""
3679 return _IMP_container.TripletContainerStatistics_set_track_unique(self, tf)
3681 def do_before_evaluate(self):
3682 r"""do_before_evaluate(TripletContainerStatistics self)"""
3683 return _IMP_container.TripletContainerStatistics_do_before_evaluate(self)
3685 def do_after_evaluate(self, da):
3686 r"""do_after_evaluate(TripletContainerStatistics self, DerivativeAccumulator da)"""
3687 return _IMP_container.TripletContainerStatistics_do_after_evaluate(self, da)
3689 def do_get_inputs(self):
3690 r"""do_get_inputs(TripletContainerStatistics self) -> IMP::ModelObjectsTemp"""
3691 return _IMP_container.TripletContainerStatistics_do_get_inputs(self)
3693 def do_get_outputs(self):
3694 r"""do_get_outputs(TripletContainerStatistics self) -> IMP::ModelObjectsTemp"""
3695 return _IMP_container.TripletContainerStatistics_do_get_outputs(self)
3697 def get_version_info(self):
3698 r"""get_version_info(TripletContainerStatistics self) -> VersionInfo"""
3699 return _IMP_container.TripletContainerStatistics_get_version_info(self)
3700 __swig_destroy__ = _IMP_container.delete_TripletContainerStatistics
3703 r"""__str__(TripletContainerStatistics self) -> std::string"""
3704 return _IMP_container.TripletContainerStatistics___str__(self)
3707 r"""__repr__(TripletContainerStatistics self) -> std::string"""
3708 return _IMP_container.TripletContainerStatistics___repr__(self)
3712 return _object_cast_to_TripletContainerStatistics(o)
3716 _IMP_container.TripletContainerStatistics_swigregister(TripletContainerStatistics)
3718 r"""Proxy of C++ IMP::container::QuadContainerStatistics class."""
3720 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3722 def __init__(self, c):
3723 r"""__init__(QuadContainerStatistics self, _QuadContainerAdaptor c) -> QuadContainerStatistics"""
3724 _IMP_container.QuadContainerStatistics_swiginit(self, _IMP_container.new_QuadContainerStatistics(c))
3726 def show_statistics(self, out):
3727 r"""show_statistics(QuadContainerStatistics self, _ostream out)"""
3728 return _IMP_container.QuadContainerStatistics_show_statistics(self, out)
3730 def set_track_unique(self, tf):
3731 r"""set_track_unique(QuadContainerStatistics self, bool tf)"""
3732 return _IMP_container.QuadContainerStatistics_set_track_unique(self, tf)
3734 def do_before_evaluate(self):
3735 r"""do_before_evaluate(QuadContainerStatistics self)"""
3736 return _IMP_container.QuadContainerStatistics_do_before_evaluate(self)
3738 def do_after_evaluate(self, da):
3739 r"""do_after_evaluate(QuadContainerStatistics self, DerivativeAccumulator da)"""
3740 return _IMP_container.QuadContainerStatistics_do_after_evaluate(self, da)
3742 def do_get_inputs(self):
3743 r"""do_get_inputs(QuadContainerStatistics self) -> IMP::ModelObjectsTemp"""
3744 return _IMP_container.QuadContainerStatistics_do_get_inputs(self)
3746 def do_get_outputs(self):
3747 r"""do_get_outputs(QuadContainerStatistics self) -> IMP::ModelObjectsTemp"""
3748 return _IMP_container.QuadContainerStatistics_do_get_outputs(self)
3750 def get_version_info(self):
3751 r"""get_version_info(QuadContainerStatistics self) -> VersionInfo"""
3752 return _IMP_container.QuadContainerStatistics_get_version_info(self)
3753 __swig_destroy__ = _IMP_container.delete_QuadContainerStatistics
3756 r"""__str__(QuadContainerStatistics self) -> std::string"""
3757 return _IMP_container.QuadContainerStatistics___str__(self)
3760 r"""__repr__(QuadContainerStatistics self) -> std::string"""
3761 return _IMP_container.QuadContainerStatistics___repr__(self)
3765 return _object_cast_to_QuadContainerStatistics(o)
3769 _IMP_container.QuadContainerStatistics_swigregister(QuadContainerStatistics)
3771 r"""Proxy of C++ IMP::container::EventSingletonsOptimizerState class."""
3773 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3775 def __init__(self, *args):
3776 r"""__init__(EventSingletonsOptimizerState self, SingletonPredicate pred, _SingletonContainerAdaptor container, int value, int min_count, int max_count, std::string name="ConstSingletonPredicate%1%") -> EventSingletonsOptimizerState"""
3777 _IMP_container.EventSingletonsOptimizerState_swiginit(self, _IMP_container.new_EventSingletonsOptimizerState(*args))
3779 def do_update(self, call):
3780 r"""do_update(EventSingletonsOptimizerState self, unsigned int call)"""
3781 return _IMP_container.EventSingletonsOptimizerState_do_update(self, call)
3783 def get_version_info(self):
3784 r"""get_version_info(EventSingletonsOptimizerState self) -> VersionInfo"""
3785 return _IMP_container.EventSingletonsOptimizerState_get_version_info(self)
3786 __swig_destroy__ = _IMP_container.delete_EventSingletonsOptimizerState
3789 r"""__str__(EventSingletonsOptimizerState self) -> std::string"""
3790 return _IMP_container.EventSingletonsOptimizerState___str__(self)
3793 r"""__repr__(EventSingletonsOptimizerState self) -> std::string"""
3794 return _IMP_container.EventSingletonsOptimizerState___repr__(self)
3798 return _object_cast_to_EventSingletonsOptimizerState(o)
3802 _IMP_container.EventSingletonsOptimizerState_swigregister(EventSingletonsOptimizerState)
3804 r"""Proxy of C++ IMP::container::EventPairsOptimizerState class."""
3806 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3808 def __init__(self, *args):
3809 r"""__init__(EventPairsOptimizerState self, PairPredicate pred, _PairContainerAdaptor container, int value, int min_count, int max_count, std::string name="ConstPairPredicate%1%") -> EventPairsOptimizerState"""
3810 _IMP_container.EventPairsOptimizerState_swiginit(self, _IMP_container.new_EventPairsOptimizerState(*args))
3812 def do_update(self, call):
3813 r"""do_update(EventPairsOptimizerState self, unsigned int call)"""
3814 return _IMP_container.EventPairsOptimizerState_do_update(self, call)
3816 def get_version_info(self):
3817 r"""get_version_info(EventPairsOptimizerState self) -> VersionInfo"""
3818 return _IMP_container.EventPairsOptimizerState_get_version_info(self)
3819 __swig_destroy__ = _IMP_container.delete_EventPairsOptimizerState
3822 r"""__str__(EventPairsOptimizerState self) -> std::string"""
3823 return _IMP_container.EventPairsOptimizerState___str__(self)
3826 r"""__repr__(EventPairsOptimizerState self) -> std::string"""
3827 return _IMP_container.EventPairsOptimizerState___repr__(self)
3831 return _object_cast_to_EventPairsOptimizerState(o)
3835 _IMP_container.EventPairsOptimizerState_swigregister(EventPairsOptimizerState)
3837 r"""Proxy of C++ IMP::container::EventTripletsOptimizerState class."""
3839 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3841 def __init__(self, *args):
3842 r"""__init__(EventTripletsOptimizerState self, TripletPredicate pred, _TripletContainerAdaptor container, int value, int min_count, int max_count, std::string name="ConstTripletPredicate%1%") -> EventTripletsOptimizerState"""
3843 _IMP_container.EventTripletsOptimizerState_swiginit(self, _IMP_container.new_EventTripletsOptimizerState(*args))
3845 def do_update(self, call):
3846 r"""do_update(EventTripletsOptimizerState self, unsigned int call)"""
3847 return _IMP_container.EventTripletsOptimizerState_do_update(self, call)
3849 def get_version_info(self):
3850 r"""get_version_info(EventTripletsOptimizerState self) -> VersionInfo"""
3851 return _IMP_container.EventTripletsOptimizerState_get_version_info(self)
3852 __swig_destroy__ = _IMP_container.delete_EventTripletsOptimizerState
3855 r"""__str__(EventTripletsOptimizerState self) -> std::string"""
3856 return _IMP_container.EventTripletsOptimizerState___str__(self)
3859 r"""__repr__(EventTripletsOptimizerState self) -> std::string"""
3860 return _IMP_container.EventTripletsOptimizerState___repr__(self)
3864 return _object_cast_to_EventTripletsOptimizerState(o)
3868 _IMP_container.EventTripletsOptimizerState_swigregister(EventTripletsOptimizerState)
3870 r"""Proxy of C++ IMP::container::EventQuadsOptimizerState class."""
3872 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3874 def __init__(self, *args):
3875 r"""__init__(EventQuadsOptimizerState self, QuadPredicate pred, _QuadContainerAdaptor container, int value, int min_count, int max_count, std::string name="ConstQuadPredicate%1%") -> EventQuadsOptimizerState"""
3876 _IMP_container.EventQuadsOptimizerState_swiginit(self, _IMP_container.new_EventQuadsOptimizerState(*args))
3878 def do_update(self, call):
3879 r"""do_update(EventQuadsOptimizerState self, unsigned int call)"""
3880 return _IMP_container.EventQuadsOptimizerState_do_update(self, call)
3882 def get_version_info(self):
3883 r"""get_version_info(EventQuadsOptimizerState self) -> VersionInfo"""
3884 return _IMP_container.EventQuadsOptimizerState_get_version_info(self)
3885 __swig_destroy__ = _IMP_container.delete_EventQuadsOptimizerState
3888 r"""__str__(EventQuadsOptimizerState self) -> std::string"""
3889 return _IMP_container.EventQuadsOptimizerState___str__(self)
3892 r"""__repr__(EventQuadsOptimizerState self) -> std::string"""
3893 return _IMP_container.EventQuadsOptimizerState___repr__(self)
3897 return _object_cast_to_EventQuadsOptimizerState(o)
3901 _IMP_container.EventQuadsOptimizerState_swigregister(EventQuadsOptimizerState)
3903 r"""Proxy of C++ IMP::container::PredicateSingletonsRestraint class."""
3905 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3907 def __init__(self, *args):
3909 __init__(PredicateSingletonsRestraint self, SingletonPredicate pred, _SingletonContainerAdaptor input, std::string name="PredicateSingletonsRestraint %1%") -> PredicateSingletonsRestraint
3910 __init__(PredicateSingletonsRestraint self) -> PredicateSingletonsRestraint
3912 _IMP_container.PredicateSingletonsRestraint_swiginit(self, _IMP_container.new_PredicateSingletonsRestraint(*args))
3914 def set_score(self, predicate_value, score):
3915 r"""set_score(PredicateSingletonsRestraint self, int predicate_value, SingletonScore score)"""
3916 return _IMP_container.PredicateSingletonsRestraint_set_score(self, predicate_value, score)
3918 def set_unknown_score(self, score):
3919 r"""set_unknown_score(PredicateSingletonsRestraint self, SingletonScore score)"""
3920 return _IMP_container.PredicateSingletonsRestraint_set_unknown_score(self, score)
3922 def set_is_complete(self, tf):
3923 r"""set_is_complete(PredicateSingletonsRestraint self, bool tf)"""
3924 return _IMP_container.PredicateSingletonsRestraint_set_is_complete(self, tf)
3927 r"""get_indexes(PredicateSingletonsRestraint self, int predicate_value) -> IMP::ParticleIndexes"""
3928 return _IMP_container.PredicateSingletonsRestraint_get_indexes(self, predicate_value)
3930 def do_add_score_and_derivatives(self, sa):
3931 r"""do_add_score_and_derivatives(PredicateSingletonsRestraint self, ScoreAccumulator sa)"""
3932 return _IMP_container.PredicateSingletonsRestraint_do_add_score_and_derivatives(self, sa)
3934 def do_get_inputs(self):
3935 r"""do_get_inputs(PredicateSingletonsRestraint self) -> IMP::ModelObjectsTemp"""
3936 return _IMP_container.PredicateSingletonsRestraint_do_get_inputs(self)
3938 def get_version_info(self):
3939 r"""get_version_info(PredicateSingletonsRestraint self) -> VersionInfo"""
3940 return _IMP_container.PredicateSingletonsRestraint_get_version_info(self)
3941 __swig_destroy__ = _IMP_container.delete_PredicateSingletonsRestraint
3944 r"""__str__(PredicateSingletonsRestraint self) -> std::string"""
3945 return _IMP_container.PredicateSingletonsRestraint___str__(self)
3948 r"""__repr__(PredicateSingletonsRestraint self) -> std::string"""
3949 return _IMP_container.PredicateSingletonsRestraint___repr__(self)
3953 return _object_cast_to_PredicateSingletonsRestraint(o)
3956 def _get_as_binary(self):
3957 r"""_get_as_binary(PredicateSingletonsRestraint self) -> PyObject *"""
3958 return _IMP_container.PredicateSingletonsRestraint__get_as_binary(self)
3960 def _set_from_binary(self, p):
3961 r"""_set_from_binary(PredicateSingletonsRestraint self, PyObject * p)"""
3962 return _IMP_container.PredicateSingletonsRestraint__set_from_binary(self, p)
3964 def __getstate__(self):
3965 p = self._get_as_binary()
3966 if len(self.__dict__) > 1:
3967 d = self.__dict__.copy()
3972 def __setstate__(self, p):
3973 if not hasattr(self,
'this'):
3975 if isinstance(p, tuple):
3977 self.__dict__.update(d)
3978 return self._set_from_binary(p)
3982 _IMP_container.PredicateSingletonsRestraint_swigregister(PredicateSingletonsRestraint)
3984 r"""Proxy of C++ IMP::container::PredicatePairsRestraint class."""
3986 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3988 def __init__(self, *args):
3990 __init__(PredicatePairsRestraint self, PairPredicate pred, _PairContainerAdaptor input, std::string name="PredicatePairsRestraint %1%") -> PredicatePairsRestraint
3991 __init__(PredicatePairsRestraint self) -> PredicatePairsRestraint
3993 _IMP_container.PredicatePairsRestraint_swiginit(self, _IMP_container.new_PredicatePairsRestraint(*args))
3995 def set_score(self, predicate_value, score):
3996 r"""set_score(PredicatePairsRestraint self, int predicate_value, PairScore score)"""
3997 return _IMP_container.PredicatePairsRestraint_set_score(self, predicate_value, score)
3999 def set_unknown_score(self, score):
4000 r"""set_unknown_score(PredicatePairsRestraint self, PairScore score)"""
4001 return _IMP_container.PredicatePairsRestraint_set_unknown_score(self, score)
4003 def set_is_complete(self, tf):
4004 r"""set_is_complete(PredicatePairsRestraint self, bool tf)"""
4005 return _IMP_container.PredicatePairsRestraint_set_is_complete(self, tf)
4008 r"""get_indexes(PredicatePairsRestraint self, int predicate_value) -> IMP::ParticleIndexPairs"""
4009 return _IMP_container.PredicatePairsRestraint_get_indexes(self, predicate_value)
4011 def do_add_score_and_derivatives(self, sa):
4012 r"""do_add_score_and_derivatives(PredicatePairsRestraint self, ScoreAccumulator sa)"""
4013 return _IMP_container.PredicatePairsRestraint_do_add_score_and_derivatives(self, sa)
4015 def do_get_inputs(self):
4016 r"""do_get_inputs(PredicatePairsRestraint self) -> IMP::ModelObjectsTemp"""
4017 return _IMP_container.PredicatePairsRestraint_do_get_inputs(self)
4019 def get_version_info(self):
4020 r"""get_version_info(PredicatePairsRestraint self) -> VersionInfo"""
4021 return _IMP_container.PredicatePairsRestraint_get_version_info(self)
4022 __swig_destroy__ = _IMP_container.delete_PredicatePairsRestraint
4025 r"""__str__(PredicatePairsRestraint self) -> std::string"""
4026 return _IMP_container.PredicatePairsRestraint___str__(self)
4029 r"""__repr__(PredicatePairsRestraint self) -> std::string"""
4030 return _IMP_container.PredicatePairsRestraint___repr__(self)
4034 return _object_cast_to_PredicatePairsRestraint(o)
4037 def _get_as_binary(self):
4038 r"""_get_as_binary(PredicatePairsRestraint self) -> PyObject *"""
4039 return _IMP_container.PredicatePairsRestraint__get_as_binary(self)
4041 def _set_from_binary(self, p):
4042 r"""_set_from_binary(PredicatePairsRestraint self, PyObject * p)"""
4043 return _IMP_container.PredicatePairsRestraint__set_from_binary(self, p)
4045 def __getstate__(self):
4046 p = self._get_as_binary()
4047 if len(self.__dict__) > 1:
4048 d = self.__dict__.copy()
4053 def __setstate__(self, p):
4054 if not hasattr(self,
'this'):
4056 if isinstance(p, tuple):
4058 self.__dict__.update(d)
4059 return self._set_from_binary(p)
4063 _IMP_container.PredicatePairsRestraint_swigregister(PredicatePairsRestraint)
4065 r"""Proxy of C++ IMP::container::PredicateTripletsRestraint class."""
4067 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4069 def __init__(self, *args):
4071 __init__(PredicateTripletsRestraint self, TripletPredicate pred, _TripletContainerAdaptor input, std::string name="PredicateTripletsRestraint %1%") -> PredicateTripletsRestraint
4072 __init__(PredicateTripletsRestraint self) -> PredicateTripletsRestraint
4074 _IMP_container.PredicateTripletsRestraint_swiginit(self, _IMP_container.new_PredicateTripletsRestraint(*args))
4076 def set_score(self, predicate_value, score):
4077 r"""set_score(PredicateTripletsRestraint self, int predicate_value, TripletScore score)"""
4078 return _IMP_container.PredicateTripletsRestraint_set_score(self, predicate_value, score)
4080 def set_unknown_score(self, score):
4081 r"""set_unknown_score(PredicateTripletsRestraint self, TripletScore score)"""
4082 return _IMP_container.PredicateTripletsRestraint_set_unknown_score(self, score)
4084 def set_is_complete(self, tf):
4085 r"""set_is_complete(PredicateTripletsRestraint self, bool tf)"""
4086 return _IMP_container.PredicateTripletsRestraint_set_is_complete(self, tf)
4089 r"""get_indexes(PredicateTripletsRestraint self, int predicate_value) -> IMP::ParticleIndexTriplets"""
4090 return _IMP_container.PredicateTripletsRestraint_get_indexes(self, predicate_value)
4092 def do_add_score_and_derivatives(self, sa):
4093 r"""do_add_score_and_derivatives(PredicateTripletsRestraint self, ScoreAccumulator sa)"""
4094 return _IMP_container.PredicateTripletsRestraint_do_add_score_and_derivatives(self, sa)
4096 def do_get_inputs(self):
4097 r"""do_get_inputs(PredicateTripletsRestraint self) -> IMP::ModelObjectsTemp"""
4098 return _IMP_container.PredicateTripletsRestraint_do_get_inputs(self)
4100 def get_version_info(self):
4101 r"""get_version_info(PredicateTripletsRestraint self) -> VersionInfo"""
4102 return _IMP_container.PredicateTripletsRestraint_get_version_info(self)
4103 __swig_destroy__ = _IMP_container.delete_PredicateTripletsRestraint
4106 r"""__str__(PredicateTripletsRestraint self) -> std::string"""
4107 return _IMP_container.PredicateTripletsRestraint___str__(self)
4110 r"""__repr__(PredicateTripletsRestraint self) -> std::string"""
4111 return _IMP_container.PredicateTripletsRestraint___repr__(self)
4115 return _object_cast_to_PredicateTripletsRestraint(o)
4118 def _get_as_binary(self):
4119 r"""_get_as_binary(PredicateTripletsRestraint self) -> PyObject *"""
4120 return _IMP_container.PredicateTripletsRestraint__get_as_binary(self)
4122 def _set_from_binary(self, p):
4123 r"""_set_from_binary(PredicateTripletsRestraint self, PyObject * p)"""
4124 return _IMP_container.PredicateTripletsRestraint__set_from_binary(self, p)
4126 def __getstate__(self):
4127 p = self._get_as_binary()
4128 if len(self.__dict__) > 1:
4129 d = self.__dict__.copy()
4134 def __setstate__(self, p):
4135 if not hasattr(self,
'this'):
4137 if isinstance(p, tuple):
4139 self.__dict__.update(d)
4140 return self._set_from_binary(p)
4144 _IMP_container.PredicateTripletsRestraint_swigregister(PredicateTripletsRestraint)
4146 r"""Proxy of C++ IMP::container::PredicateQuadsRestraint class."""
4148 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4150 def __init__(self, *args):
4152 __init__(PredicateQuadsRestraint self, QuadPredicate pred, _QuadContainerAdaptor input, std::string name="PredicateQuadsRestraint %1%") -> PredicateQuadsRestraint
4153 __init__(PredicateQuadsRestraint self) -> PredicateQuadsRestraint
4155 _IMP_container.PredicateQuadsRestraint_swiginit(self, _IMP_container.new_PredicateQuadsRestraint(*args))
4157 def set_score(self, predicate_value, score):
4158 r"""set_score(PredicateQuadsRestraint self, int predicate_value, QuadScore score)"""
4159 return _IMP_container.PredicateQuadsRestraint_set_score(self, predicate_value, score)
4161 def set_unknown_score(self, score):
4162 r"""set_unknown_score(PredicateQuadsRestraint self, QuadScore score)"""
4163 return _IMP_container.PredicateQuadsRestraint_set_unknown_score(self, score)
4165 def set_is_complete(self, tf):
4166 r"""set_is_complete(PredicateQuadsRestraint self, bool tf)"""
4167 return _IMP_container.PredicateQuadsRestraint_set_is_complete(self, tf)
4170 r"""get_indexes(PredicateQuadsRestraint self, int predicate_value) -> IMP::ParticleIndexQuads"""
4171 return _IMP_container.PredicateQuadsRestraint_get_indexes(self, predicate_value)
4173 def do_add_score_and_derivatives(self, sa):
4174 r"""do_add_score_and_derivatives(PredicateQuadsRestraint self, ScoreAccumulator sa)"""
4175 return _IMP_container.PredicateQuadsRestraint_do_add_score_and_derivatives(self, sa)
4177 def do_get_inputs(self):
4178 r"""do_get_inputs(PredicateQuadsRestraint self) -> IMP::ModelObjectsTemp"""
4179 return _IMP_container.PredicateQuadsRestraint_do_get_inputs(self)
4181 def get_version_info(self):
4182 r"""get_version_info(PredicateQuadsRestraint self) -> VersionInfo"""
4183 return _IMP_container.PredicateQuadsRestraint_get_version_info(self)
4184 __swig_destroy__ = _IMP_container.delete_PredicateQuadsRestraint
4187 r"""__str__(PredicateQuadsRestraint self) -> std::string"""
4188 return _IMP_container.PredicateQuadsRestraint___str__(self)
4191 r"""__repr__(PredicateQuadsRestraint self) -> std::string"""
4192 return _IMP_container.PredicateQuadsRestraint___repr__(self)
4196 return _object_cast_to_PredicateQuadsRestraint(o)
4199 def _get_as_binary(self):
4200 r"""_get_as_binary(PredicateQuadsRestraint self) -> PyObject *"""
4201 return _IMP_container.PredicateQuadsRestraint__get_as_binary(self)
4203 def _set_from_binary(self, p):
4204 r"""_set_from_binary(PredicateQuadsRestraint self, PyObject * p)"""
4205 return _IMP_container.PredicateQuadsRestraint__set_from_binary(self, p)
4207 def __getstate__(self):
4208 p = self._get_as_binary()
4209 if len(self.__dict__) > 1:
4210 d = self.__dict__.copy()
4215 def __setstate__(self, p):
4216 if not hasattr(self,
'this'):
4218 if isinstance(p, tuple):
4220 self.__dict__.update(d)
4221 return self._set_from_binary(p)
4225 _IMP_container.PredicateQuadsRestraint_swigregister(PredicateQuadsRestraint)
4227 r"""Proxy of C++ IMP::container::DistributeSingletonsScoreState class."""
4229 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4231 def __init__(self, *args):
4232 r"""__init__(DistributeSingletonsScoreState self, _SingletonContainerAdaptor input, std::string name="DistributeSingletonsScoreState %1%") -> DistributeSingletonsScoreState"""
4233 _IMP_container.DistributeSingletonsScoreState_swiginit(self, _IMP_container.new_DistributeSingletonsScoreState(*args))
4235 def add_predicate(self, predicate, value):
4236 r"""add_predicate(DistributeSingletonsScoreState self, SingletonPredicate predicate, int value) -> DynamicListSingletonContainer"""
4237 return _IMP_container.DistributeSingletonsScoreState_add_predicate(self, predicate, value)
4239 def do_before_evaluate(self):
4240 r"""do_before_evaluate(DistributeSingletonsScoreState self)"""
4241 return _IMP_container.DistributeSingletonsScoreState_do_before_evaluate(self)
4243 def do_after_evaluate(self, da):
4244 r"""do_after_evaluate(DistributeSingletonsScoreState self, DerivativeAccumulator da)"""
4245 return _IMP_container.DistributeSingletonsScoreState_do_after_evaluate(self, da)
4247 def do_get_inputs(self):
4248 r"""do_get_inputs(DistributeSingletonsScoreState self) -> IMP::ModelObjectsTemp"""
4249 return _IMP_container.DistributeSingletonsScoreState_do_get_inputs(self)
4251 def do_get_outputs(self):
4252 r"""do_get_outputs(DistributeSingletonsScoreState self) -> IMP::ModelObjectsTemp"""
4253 return _IMP_container.DistributeSingletonsScoreState_do_get_outputs(self)
4255 def get_version_info(self):
4256 r"""get_version_info(DistributeSingletonsScoreState self) -> VersionInfo"""
4257 return _IMP_container.DistributeSingletonsScoreState_get_version_info(self)
4258 __swig_destroy__ = _IMP_container.delete_DistributeSingletonsScoreState
4261 r"""__str__(DistributeSingletonsScoreState self) -> std::string"""
4262 return _IMP_container.DistributeSingletonsScoreState___str__(self)
4265 r"""__repr__(DistributeSingletonsScoreState self) -> std::string"""
4266 return _IMP_container.DistributeSingletonsScoreState___repr__(self)
4270 return _object_cast_to_DistributeSingletonsScoreState(o)
4274 _IMP_container.DistributeSingletonsScoreState_swigregister(DistributeSingletonsScoreState)
4276 r"""Proxy of C++ IMP::container::DistributePairsScoreState class."""
4278 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4280 def __init__(self, *args):
4281 r"""__init__(DistributePairsScoreState self, _PairContainerAdaptor input, std::string name="DistributePairsScoreState %1%") -> DistributePairsScoreState"""
4282 _IMP_container.DistributePairsScoreState_swiginit(self, _IMP_container.new_DistributePairsScoreState(*args))
4284 def add_predicate(self, predicate, value):
4285 r"""add_predicate(DistributePairsScoreState self, PairPredicate predicate, int value) -> DynamicListPairContainer"""
4286 return _IMP_container.DistributePairsScoreState_add_predicate(self, predicate, value)
4288 def do_before_evaluate(self):
4289 r"""do_before_evaluate(DistributePairsScoreState self)"""
4290 return _IMP_container.DistributePairsScoreState_do_before_evaluate(self)
4292 def do_after_evaluate(self, da):
4293 r"""do_after_evaluate(DistributePairsScoreState self, DerivativeAccumulator da)"""
4294 return _IMP_container.DistributePairsScoreState_do_after_evaluate(self, da)
4296 def do_get_inputs(self):
4297 r"""do_get_inputs(DistributePairsScoreState self) -> IMP::ModelObjectsTemp"""
4298 return _IMP_container.DistributePairsScoreState_do_get_inputs(self)
4300 def do_get_outputs(self):
4301 r"""do_get_outputs(DistributePairsScoreState self) -> IMP::ModelObjectsTemp"""
4302 return _IMP_container.DistributePairsScoreState_do_get_outputs(self)
4304 def get_version_info(self):
4305 r"""get_version_info(DistributePairsScoreState self) -> VersionInfo"""
4306 return _IMP_container.DistributePairsScoreState_get_version_info(self)
4307 __swig_destroy__ = _IMP_container.delete_DistributePairsScoreState
4310 r"""__str__(DistributePairsScoreState self) -> std::string"""
4311 return _IMP_container.DistributePairsScoreState___str__(self)
4314 r"""__repr__(DistributePairsScoreState self) -> std::string"""
4315 return _IMP_container.DistributePairsScoreState___repr__(self)
4319 return _object_cast_to_DistributePairsScoreState(o)
4323 _IMP_container.DistributePairsScoreState_swigregister(DistributePairsScoreState)
4325 r"""Proxy of C++ IMP::container::DistributeTripletsScoreState class."""
4327 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4329 def __init__(self, *args):
4330 r"""__init__(DistributeTripletsScoreState self, _TripletContainerAdaptor input, std::string name="DistributeTripletsScoreState %1%") -> DistributeTripletsScoreState"""
4331 _IMP_container.DistributeTripletsScoreState_swiginit(self, _IMP_container.new_DistributeTripletsScoreState(*args))
4333 def add_predicate(self, predicate, value):
4334 r"""add_predicate(DistributeTripletsScoreState self, TripletPredicate predicate, int value) -> DynamicListTripletContainer"""
4335 return _IMP_container.DistributeTripletsScoreState_add_predicate(self, predicate, value)
4337 def do_before_evaluate(self):
4338 r"""do_before_evaluate(DistributeTripletsScoreState self)"""
4339 return _IMP_container.DistributeTripletsScoreState_do_before_evaluate(self)
4341 def do_after_evaluate(self, da):
4342 r"""do_after_evaluate(DistributeTripletsScoreState self, DerivativeAccumulator da)"""
4343 return _IMP_container.DistributeTripletsScoreState_do_after_evaluate(self, da)
4345 def do_get_inputs(self):
4346 r"""do_get_inputs(DistributeTripletsScoreState self) -> IMP::ModelObjectsTemp"""
4347 return _IMP_container.DistributeTripletsScoreState_do_get_inputs(self)
4349 def do_get_outputs(self):
4350 r"""do_get_outputs(DistributeTripletsScoreState self) -> IMP::ModelObjectsTemp"""
4351 return _IMP_container.DistributeTripletsScoreState_do_get_outputs(self)
4353 def get_version_info(self):
4354 r"""get_version_info(DistributeTripletsScoreState self) -> VersionInfo"""
4355 return _IMP_container.DistributeTripletsScoreState_get_version_info(self)
4356 __swig_destroy__ = _IMP_container.delete_DistributeTripletsScoreState
4359 r"""__str__(DistributeTripletsScoreState self) -> std::string"""
4360 return _IMP_container.DistributeTripletsScoreState___str__(self)
4363 r"""__repr__(DistributeTripletsScoreState self) -> std::string"""
4364 return _IMP_container.DistributeTripletsScoreState___repr__(self)
4368 return _object_cast_to_DistributeTripletsScoreState(o)
4372 _IMP_container.DistributeTripletsScoreState_swigregister(DistributeTripletsScoreState)
4374 r"""Proxy of C++ IMP::container::DistributeQuadsScoreState class."""
4376 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4378 def __init__(self, *args):
4379 r"""__init__(DistributeQuadsScoreState self, _QuadContainerAdaptor input, std::string name="DistributeQuadsScoreState %1%") -> DistributeQuadsScoreState"""
4380 _IMP_container.DistributeQuadsScoreState_swiginit(self, _IMP_container.new_DistributeQuadsScoreState(*args))
4382 def add_predicate(self, predicate, value):
4383 r"""add_predicate(DistributeQuadsScoreState self, QuadPredicate predicate, int value) -> DynamicListQuadContainer"""
4384 return _IMP_container.DistributeQuadsScoreState_add_predicate(self, predicate, value)
4386 def do_before_evaluate(self):
4387 r"""do_before_evaluate(DistributeQuadsScoreState self)"""
4388 return _IMP_container.DistributeQuadsScoreState_do_before_evaluate(self)
4390 def do_after_evaluate(self, da):
4391 r"""do_after_evaluate(DistributeQuadsScoreState self, DerivativeAccumulator da)"""
4392 return _IMP_container.DistributeQuadsScoreState_do_after_evaluate(self, da)
4394 def do_get_inputs(self):
4395 r"""do_get_inputs(DistributeQuadsScoreState self) -> IMP::ModelObjectsTemp"""
4396 return _IMP_container.DistributeQuadsScoreState_do_get_inputs(self)
4398 def do_get_outputs(self):
4399 r"""do_get_outputs(DistributeQuadsScoreState self) -> IMP::ModelObjectsTemp"""
4400 return _IMP_container.DistributeQuadsScoreState_do_get_outputs(self)
4402 def get_version_info(self):
4403 r"""get_version_info(DistributeQuadsScoreState self) -> VersionInfo"""
4404 return _IMP_container.DistributeQuadsScoreState_get_version_info(self)
4405 __swig_destroy__ = _IMP_container.delete_DistributeQuadsScoreState
4408 r"""__str__(DistributeQuadsScoreState self) -> std::string"""
4409 return _IMP_container.DistributeQuadsScoreState___str__(self)
4412 r"""__repr__(DistributeQuadsScoreState self) -> std::string"""
4413 return _IMP_container.DistributeQuadsScoreState___repr__(self)
4417 return _object_cast_to_DistributeQuadsScoreState(o)
4421 _IMP_container.DistributeQuadsScoreState_swigregister(DistributeQuadsScoreState)
4425 create_restraint(PairScore ps, IMP::ParticlePair pp) -> Restraint
4426 create_restraint(PairScore ps, PairContainer pp) -> Restraint
4428 return _IMP_container.create_restraint(*args)
4430 def get_module_name():
4431 r"""get_module_name() -> std::string const"""
4432 return _IMP_container.get_module_name()
4435 r"""get_module_version() -> std::string const"""
4436 return _IMP_container.get_module_version()
4439 r"""get_example_path(std::string fname) -> std::string"""
4440 return _IMP_container.get_example_path(fname)
4443 r"""get_data_path(std::string fname) -> std::string"""
4444 return _IMP_container.get_data_path(fname)
4446 from .
import _version_check
std::string get_data_path(std::string file_name)
Return the full path to one of this module's data files.
Abstract class for scoring object(s) of type ParticleIndexPair.
A shared container for Pairs.
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.
Restraint * create_restraint(Score *s, const typename Score::Argument &t, std::string name=std::string())
Make CGAL functionality available to IMP.
Composable functors to implement scores via compile-time composition.
std::string get_module_version()
Return the version of this module, as a string.
Implement a constraint on the Model.
Abstract class for scoring object(s) of type ParticleIndexQuad.
Abstract predicate function.
Abstract class for scoring object(s) of type ParticleIndex.
ScoreStates maintain invariants in the Model.
A shared container for Quads.
A shared container for Singletons.
std::string get_example_path(std::string file_name)
Return the full path to one of this module's example files.
Basic functionality that is expected to be used by a wide variety of IMP users.
Abstract predicate function.
General purpose algebraic and geometric methods that are expected to be used by a wide variety of IMP...
Shared optimizer state that is invoked upon commitment of new coordinates.
Abstract predicate function.
A shared container for Triplets.
Output IMP model data in various file formats.
Abstract class for scoring object(s) of type ParticleIndexTriplet.
ParticleIndexes get_indexes(const ParticlesTemp &ps)
Get the indexes from a list of particles.
A restraint is a term in an IMP ScoringFunction.