17 from sys
import version_info
as _swig_python_version_info
21 import builtins
as __builtin__
27 strthis =
"proxy of " + self.this.__repr__()
28 except __builtin__.Exception:
30 return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
33 def _swig_setattr_nondynamic_instance_variable(set):
34 def set_instance_attr(self, name, value):
36 set(self, name, value)
37 elif name ==
"thisown":
39 elif hasattr(self, name)
and isinstance(getattr(type(self), name), property):
40 set(self, name, value)
42 raise AttributeError(
"You cannot add instance attributes to %s" % self)
43 return set_instance_attr
46 def _swig_setattr_nondynamic_class_variable(set):
47 def set_class_attr(cls, name, value):
48 if hasattr(cls, name)
and not isinstance(getattr(cls, name), property):
51 raise AttributeError(
"You cannot add class attributes to %s" % cls)
55 def _swig_add_metaclass(metaclass):
56 """Class decorator for adding a metaclass to a SWIG wrapped class - a slimmed down version of six.add_metaclass"""
58 return metaclass(cls.__name__, cls.__bases__, cls.__dict__.copy())
62 class _SwigNonDynamicMeta(type):
63 """Meta class to enforce nondynamic attributes (no new attributes) for a class"""
64 __setattr__ = _swig_setattr_nondynamic_class_variable(type.__setattr__)
69 class IMP_CONTAINER_SwigPyIterator(object):
70 r"""Proxy of C++ swig::IMP_CONTAINER_SwigPyIterator class."""
72 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
74 def __init__(self, *args, **kwargs):
75 raise AttributeError(
"No constructor defined - class is abstract")
77 __swig_destroy__ = _IMP_container.delete_IMP_CONTAINER_SwigPyIterator
80 r"""value(IMP_CONTAINER_SwigPyIterator self) -> PyObject *"""
81 return _IMP_container.IMP_CONTAINER_SwigPyIterator_value(self)
84 r"""incr(IMP_CONTAINER_SwigPyIterator self, size_t n=1) -> IMP_CONTAINER_SwigPyIterator"""
85 return _IMP_container.IMP_CONTAINER_SwigPyIterator_incr(self, n)
88 r"""decr(IMP_CONTAINER_SwigPyIterator self, size_t n=1) -> IMP_CONTAINER_SwigPyIterator"""
89 return _IMP_container.IMP_CONTAINER_SwigPyIterator_decr(self, n)
91 def distance(self, x):
92 r"""distance(IMP_CONTAINER_SwigPyIterator self, IMP_CONTAINER_SwigPyIterator x) -> ptrdiff_t"""
93 return _IMP_container.IMP_CONTAINER_SwigPyIterator_distance(self, x)
96 r"""equal(IMP_CONTAINER_SwigPyIterator self, IMP_CONTAINER_SwigPyIterator x) -> bool"""
97 return _IMP_container.IMP_CONTAINER_SwigPyIterator_equal(self, x)
100 r"""copy(IMP_CONTAINER_SwigPyIterator self) -> IMP_CONTAINER_SwigPyIterator"""
101 return _IMP_container.IMP_CONTAINER_SwigPyIterator_copy(self)
104 r"""next(IMP_CONTAINER_SwigPyIterator self) -> PyObject *"""
105 return _IMP_container.IMP_CONTAINER_SwigPyIterator_next(self)
108 r"""__next__(IMP_CONTAINER_SwigPyIterator self) -> PyObject *"""
109 return _IMP_container.IMP_CONTAINER_SwigPyIterator___next__(self)
112 r"""previous(IMP_CONTAINER_SwigPyIterator self) -> PyObject *"""
113 return _IMP_container.IMP_CONTAINER_SwigPyIterator_previous(self)
115 def advance(self, n):
116 r"""advance(IMP_CONTAINER_SwigPyIterator self, ptrdiff_t n) -> IMP_CONTAINER_SwigPyIterator"""
117 return _IMP_container.IMP_CONTAINER_SwigPyIterator_advance(self, n)
120 r"""__eq__(IMP_CONTAINER_SwigPyIterator self, IMP_CONTAINER_SwigPyIterator x) -> bool"""
121 return _IMP_container.IMP_CONTAINER_SwigPyIterator___eq__(self, x)
124 r"""__ne__(IMP_CONTAINER_SwigPyIterator self, IMP_CONTAINER_SwigPyIterator x) -> bool"""
125 return _IMP_container.IMP_CONTAINER_SwigPyIterator___ne__(self, x)
127 def __iadd__(self, n):
128 r"""__iadd__(IMP_CONTAINER_SwigPyIterator self, ptrdiff_t n) -> IMP_CONTAINER_SwigPyIterator"""
129 return _IMP_container.IMP_CONTAINER_SwigPyIterator___iadd__(self, n)
131 def __isub__(self, n):
132 r"""__isub__(IMP_CONTAINER_SwigPyIterator self, ptrdiff_t n) -> IMP_CONTAINER_SwigPyIterator"""
133 return _IMP_container.IMP_CONTAINER_SwigPyIterator___isub__(self, n)
135 def __add__(self, n):
136 r"""__add__(IMP_CONTAINER_SwigPyIterator self, ptrdiff_t n) -> IMP_CONTAINER_SwigPyIterator"""
137 return _IMP_container.IMP_CONTAINER_SwigPyIterator___add__(self, n)
139 def __sub__(self, *args):
141 __sub__(IMP_CONTAINER_SwigPyIterator self, ptrdiff_t n) -> IMP_CONTAINER_SwigPyIterator
142 __sub__(IMP_CONTAINER_SwigPyIterator self, IMP_CONTAINER_SwigPyIterator x) -> ptrdiff_t
144 return _IMP_container.IMP_CONTAINER_SwigPyIterator___sub__(self, *args)
149 _IMP_container.IMP_CONTAINER_SwigPyIterator_swigregister(IMP_CONTAINER_SwigPyIterator)
156 IMP_DEBUG = _IMP_container.IMP_DEBUG
158 IMP_RELEASE = _IMP_container.IMP_RELEASE
160 IMP_SILENT = _IMP_container.IMP_SILENT
162 IMP_PROGRESS = _IMP_container.IMP_PROGRESS
164 IMP_TERSE = _IMP_container.IMP_TERSE
166 IMP_VERBOSE = _IMP_container.IMP_VERBOSE
168 IMP_MEMORY = _IMP_container.IMP_MEMORY
170 IMP_NONE = _IMP_container.IMP_NONE
172 IMP_USAGE = _IMP_container.IMP_USAGE
174 IMP_INTERNAL = _IMP_container.IMP_INTERNAL
176 IMP_KERNEL_HAS_LOG4CXX = _IMP_container.IMP_KERNEL_HAS_LOG4CXX
178 IMP_COMPILER_HAS_CEREAL_RAW_POINTER = _IMP_container.IMP_COMPILER_HAS_CEREAL_RAW_POINTER
180 IMP_COMPILER_HAS_DEBUG_VECTOR = _IMP_container.IMP_COMPILER_HAS_DEBUG_VECTOR
182 IMP_COMPILER_HAS_RANDOM_SHUFFLE = _IMP_container.IMP_COMPILER_HAS_RANDOM_SHUFFLE
184 IMP_COMPILER_HAS_THREE_WAY = _IMP_container.IMP_COMPILER_HAS_THREE_WAY
186 IMP_KERNEL_HAS_BOOST_RANDOM = _IMP_container.IMP_KERNEL_HAS_BOOST_RANDOM
188 IMP_KERNEL_HAS_NUMPY = _IMP_container.IMP_KERNEL_HAS_NUMPY
190 IMP_KERNEL_HAS_BOOST_SYSTEM = _IMP_container.IMP_KERNEL_HAS_BOOST_SYSTEM
192 IMP_KERNEL_HAS_GPERFTOOLS = _IMP_container.IMP_KERNEL_HAS_GPERFTOOLS
194 IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER = _IMP_container.IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER
196 IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER = _IMP_container.IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER
198 IMPKERNEL_SHOW_WARNINGS = _IMP_container.IMPKERNEL_SHOW_WARNINGS
202 class _DirectorObjects:
203 """@internal Simple class to keep references to director objects
204 to prevent premature deletion."""
207 def register(self, obj):
208 """Take a reference to a director object; will only work for
209 refcounted C++ classes"""
210 if hasattr(obj,
'get_ref_count'):
211 self._objects.append(obj)
213 """Only drop our reference and allow cleanup by Python if no other
214 Python references exist (we hold 3 references: one in self._objects,
215 one in x, and one in the argument list for getrefcount) *and* no
216 other C++ references exist (the Python object always holds one)"""
217 objs = [x
for x
in self._objects
if sys.getrefcount(x) > 3 \
218 or x.get_ref_count() > 1]
222 def get_object_count(self):
223 """Get number of director objects (useful for testing only)"""
224 return len(self._objects)
225 _director_objects = _DirectorObjects()
227 class _ostream(object):
228 r"""Proxy of C++ std::ostream class."""
230 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
232 def __init__(self, *args, **kwargs):
233 raise AttributeError(
"No constructor defined")
234 __repr__ = _swig_repr
236 def write(self, osa_buf):
237 r"""write(_ostream self, char const * osa_buf)"""
238 return _IMP_container._ostream_write(self, osa_buf)
241 _IMP_container._ostream_swigregister(_ostream)
242 IMP_C_OPEN_BINARY = _IMP_container.IMP_C_OPEN_BINARY
245 IMP_CGAL_HAS_BOOST_FILESYSTEM = _IMP_container.IMP_CGAL_HAS_BOOST_FILESYSTEM
247 IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS = _IMP_container.IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS
249 IMP_CGAL_HAS_BOOST_RANDOM = _IMP_container.IMP_CGAL_HAS_BOOST_RANDOM
251 IMP_CGAL_HAS_NUMPY = _IMP_container.IMP_CGAL_HAS_NUMPY
253 IMPCGAL_SHOW_WARNINGS = _IMP_container.IMPCGAL_SHOW_WARNINGS
256 IMP_ALGEBRA_HAS_IMP_CGAL = _IMP_container.IMP_ALGEBRA_HAS_IMP_CGAL
258 IMP_ALGEBRA_HAS_BOOST_FILESYSTEM = _IMP_container.IMP_ALGEBRA_HAS_BOOST_FILESYSTEM
260 IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS = _IMP_container.IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS
262 IMP_ALGEBRA_HAS_BOOST_RANDOM = _IMP_container.IMP_ALGEBRA_HAS_BOOST_RANDOM
264 IMP_ALGEBRA_HAS_CGAL = _IMP_container.IMP_ALGEBRA_HAS_CGAL
266 IMP_ALGEBRA_HAS_NUMPY = _IMP_container.IMP_ALGEBRA_HAS_NUMPY
268 IMP_ALGEBRA_HAS_ANN = _IMP_container.IMP_ALGEBRA_HAS_ANN
270 IMPALGEBRA_SHOW_WARNINGS = _IMP_container.IMPALGEBRA_SHOW_WARNINGS
273 IMP_DISPLAY_HAS_IMP_CGAL = _IMP_container.IMP_DISPLAY_HAS_IMP_CGAL
275 IMP_DISPLAY_HAS_BOOST_FILESYSTEM = _IMP_container.IMP_DISPLAY_HAS_BOOST_FILESYSTEM
277 IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS = _IMP_container.IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS
279 IMP_DISPLAY_HAS_BOOST_RANDOM = _IMP_container.IMP_DISPLAY_HAS_BOOST_RANDOM
281 IMP_DISPLAY_HAS_CGAL = _IMP_container.IMP_DISPLAY_HAS_CGAL
283 IMP_DISPLAY_HAS_NUMPY = _IMP_container.IMP_DISPLAY_HAS_NUMPY
285 IMPDISPLAY_SHOW_WARNINGS = _IMP_container.IMPDISPLAY_SHOW_WARNINGS
288 IMP_SCORE_FUNCTOR_HAS_IMP_CGAL = _IMP_container.IMP_SCORE_FUNCTOR_HAS_IMP_CGAL
290 IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM = _IMP_container.IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM
292 IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS = _IMP_container.IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS
294 IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM = _IMP_container.IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM
296 IMP_SCORE_FUNCTOR_HAS_CGAL = _IMP_container.IMP_SCORE_FUNCTOR_HAS_CGAL
298 IMP_SCORE_FUNCTOR_HAS_HDF5 = _IMP_container.IMP_SCORE_FUNCTOR_HAS_HDF5
300 IMP_SCORE_FUNCTOR_HAS_NUMPY = _IMP_container.IMP_SCORE_FUNCTOR_HAS_NUMPY
302 IMPSCOREFUNCTOR_SHOW_WARNINGS = _IMP_container.IMPSCOREFUNCTOR_SHOW_WARNINGS
305 IMP_CORE_HAS_IMP_CGAL = _IMP_container.IMP_CORE_HAS_IMP_CGAL
307 IMP_CORE_HAS_IMP_KERNEL = _IMP_container.IMP_CORE_HAS_IMP_KERNEL
309 IMP_CORE_HAS_BOOST_FILESYSTEM = _IMP_container.IMP_CORE_HAS_BOOST_FILESYSTEM
311 IMP_CORE_HAS_BOOST_PROGRAMOPTIONS = _IMP_container.IMP_CORE_HAS_BOOST_PROGRAMOPTIONS
313 IMP_CORE_HAS_BOOST_RANDOM = _IMP_container.IMP_CORE_HAS_BOOST_RANDOM
315 IMP_CORE_HAS_CGAL = _IMP_container.IMP_CORE_HAS_CGAL
317 IMP_CORE_HAS_HDF5 = _IMP_container.IMP_CORE_HAS_HDF5
319 IMP_CORE_HAS_NUMPY = _IMP_container.IMP_CORE_HAS_NUMPY
321 IMPCORE_SHOW_WARNINGS = _IMP_container.IMPCORE_SHOW_WARNINGS
324 IMP_CONTAINER_HAS_IMP_ALGEBRA = _IMP_container.IMP_CONTAINER_HAS_IMP_ALGEBRA
326 IMP_CONTAINER_HAS_IMP_CGAL = _IMP_container.IMP_CONTAINER_HAS_IMP_CGAL
328 IMP_CONTAINER_HAS_IMP_DISPLAY = _IMP_container.IMP_CONTAINER_HAS_IMP_DISPLAY
330 IMP_CONTAINER_HAS_IMP_KERNEL = _IMP_container.IMP_CONTAINER_HAS_IMP_KERNEL
332 IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR = _IMP_container.IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR
334 IMP_CONTAINER_HAS_BOOST_FILESYSTEM = _IMP_container.IMP_CONTAINER_HAS_BOOST_FILESYSTEM
336 IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS = _IMP_container.IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS
338 IMP_CONTAINER_HAS_BOOST_RANDOM = _IMP_container.IMP_CONTAINER_HAS_BOOST_RANDOM
340 IMP_CONTAINER_HAS_CGAL = _IMP_container.IMP_CONTAINER_HAS_CGAL
342 IMP_CONTAINER_HAS_HDF5 = _IMP_container.IMP_CONTAINER_HAS_HDF5
344 IMP_CONTAINER_HAS_NUMPY = _IMP_container.IMP_CONTAINER_HAS_NUMPY
346 IMP_CONTAINER_HAS_PYTHON_IHM = _IMP_container.IMP_CONTAINER_HAS_PYTHON_IHM
348 IMP_CONTAINER_HAS_GOOGLE_DENSE_HASH_MAP = _IMP_container.IMP_CONTAINER_HAS_GOOGLE_DENSE_HASH_MAP
350 IMP_CONTAINER_HAS_ROBIN_MAP = _IMP_container.IMP_CONTAINER_HAS_ROBIN_MAP
352 IMPCONTAINER_SHOW_WARNINGS = _IMP_container.IMPCONTAINER_SHOW_WARNINGS
355 _object_types.append(
"AllBipartitePairContainer")
358 def _object_cast_to_AllBipartitePairContainer(o):
359 r"""_object_cast_to_AllBipartitePairContainer(Object o) -> AllBipartitePairContainer"""
360 return _IMP_container._object_cast_to_AllBipartitePairContainer(o)
362 _object_types.append(
"AllPairContainer")
365 def _object_cast_to_AllPairContainer(o):
366 r"""_object_cast_to_AllPairContainer(Object o) -> AllPairContainer"""
367 return _IMP_container._object_cast_to_AllPairContainer(o)
369 _object_types.append(
"CloseBipartitePairContainer")
372 def _object_cast_to_CloseBipartitePairContainer(o):
373 r"""_object_cast_to_CloseBipartitePairContainer(Object o) -> CloseBipartitePairContainer"""
374 return _IMP_container._object_cast_to_CloseBipartitePairContainer(o)
376 _object_types.append(
"ClosePairContainer")
379 def _object_cast_to_ClosePairContainer(o):
380 r"""_object_cast_to_ClosePairContainer(Object o) -> ClosePairContainer"""
381 return _IMP_container._object_cast_to_ClosePairContainer(o)
383 _object_types.append(
"ConnectingPairContainer")
386 def _object_cast_to_ConnectingPairContainer(o):
387 r"""_object_cast_to_ConnectingPairContainer(Object o) -> ConnectingPairContainer"""
388 return _IMP_container._object_cast_to_ConnectingPairContainer(o)
390 _object_types.append(
"ConsecutivePairContainer")
393 def _object_cast_to_ConsecutivePairContainer(o):
394 r"""_object_cast_to_ConsecutivePairContainer(Object o) -> ConsecutivePairContainer"""
395 return _IMP_container._object_cast_to_ConsecutivePairContainer(o)
397 _object_types.append(
"ExclusiveConsecutivePairContainer")
400 def _object_cast_to_ExclusiveConsecutivePairContainer(o):
401 r"""_object_cast_to_ExclusiveConsecutivePairContainer(Object o) -> ExclusiveConsecutivePairContainer"""
402 return _IMP_container._object_cast_to_ExclusiveConsecutivePairContainer(o)
404 _object_types.append(
"ExclusiveConsecutivePairFilter")
407 def _object_cast_to_ExclusiveConsecutivePairFilter(o):
408 r"""_object_cast_to_ExclusiveConsecutivePairFilter(Object o) -> ExclusiveConsecutivePairFilter"""
409 return _IMP_container._object_cast_to_ExclusiveConsecutivePairFilter(o)
411 _object_types.append(
"ConsecutivePairFilter")
414 def _object_cast_to_ConsecutivePairFilter(o):
415 r"""_object_cast_to_ConsecutivePairFilter(Object o) -> ConsecutivePairFilter"""
416 return _IMP_container._object_cast_to_ConsecutivePairFilter(o)
418 _object_types.append(
"ListPairContainer")
421 def _object_cast_to_ListPairContainer(o):
422 r"""_object_cast_to_ListPairContainer(Object o) -> ListPairContainer"""
423 return _IMP_container._object_cast_to_ListPairContainer(o)
425 _object_types.append(
"ListQuadContainer")
428 def _object_cast_to_ListQuadContainer(o):
429 r"""_object_cast_to_ListQuadContainer(Object o) -> ListQuadContainer"""
430 return _IMP_container._object_cast_to_ListQuadContainer(o)
432 _object_types.append(
"ListSingletonContainer")
435 def _object_cast_to_ListSingletonContainer(o):
436 r"""_object_cast_to_ListSingletonContainer(Object o) -> ListSingletonContainer"""
437 return _IMP_container._object_cast_to_ListSingletonContainer(o)
439 _object_types.append(
"ListTripletContainer")
442 def _object_cast_to_ListTripletContainer(o):
443 r"""_object_cast_to_ListTripletContainer(Object o) -> ListTripletContainer"""
444 return _IMP_container._object_cast_to_ListTripletContainer(o)
446 _object_types.append(
"DynamicListPairContainer")
449 def _object_cast_to_DynamicListPairContainer(o):
450 r"""_object_cast_to_DynamicListPairContainer(Object o) -> DynamicListPairContainer"""
451 return _IMP_container._object_cast_to_DynamicListPairContainer(o)
453 _object_types.append(
"DynamicListQuadContainer")
456 def _object_cast_to_DynamicListQuadContainer(o):
457 r"""_object_cast_to_DynamicListQuadContainer(Object o) -> DynamicListQuadContainer"""
458 return _IMP_container._object_cast_to_DynamicListQuadContainer(o)
460 _object_types.append(
"DynamicListSingletonContainer")
463 def _object_cast_to_DynamicListSingletonContainer(o):
464 r"""_object_cast_to_DynamicListSingletonContainer(Object o) -> DynamicListSingletonContainer"""
465 return _IMP_container._object_cast_to_DynamicListSingletonContainer(o)
467 _object_types.append(
"DynamicListTripletContainer")
470 def _object_cast_to_DynamicListTripletContainer(o):
471 r"""_object_cast_to_DynamicListTripletContainer(Object o) -> DynamicListTripletContainer"""
472 return _IMP_container._object_cast_to_DynamicListTripletContainer(o)
474 _object_types.append(
"MinimumPairRestraint")
477 def _object_cast_to_MinimumPairRestraint(o):
478 r"""_object_cast_to_MinimumPairRestraint(Object o) -> MinimumPairRestraint"""
479 return _IMP_container._object_cast_to_MinimumPairRestraint(o)
481 _object_types.append(
"MinimumPairScore")
484 def _object_cast_to_MinimumPairScore(o):
485 r"""_object_cast_to_MinimumPairScore(Object o) -> MinimumPairScore"""
486 return _IMP_container._object_cast_to_MinimumPairScore(o)
488 _object_types.append(
"MinimumQuadRestraint")
491 def _object_cast_to_MinimumQuadRestraint(o):
492 r"""_object_cast_to_MinimumQuadRestraint(Object o) -> MinimumQuadRestraint"""
493 return _IMP_container._object_cast_to_MinimumQuadRestraint(o)
495 _object_types.append(
"MinimumQuadScore")
498 def _object_cast_to_MinimumQuadScore(o):
499 r"""_object_cast_to_MinimumQuadScore(Object o) -> MinimumQuadScore"""
500 return _IMP_container._object_cast_to_MinimumQuadScore(o)
502 _object_types.append(
"MinimumSingletonRestraint")
505 def _object_cast_to_MinimumSingletonRestraint(o):
506 r"""_object_cast_to_MinimumSingletonRestraint(Object o) -> MinimumSingletonRestraint"""
507 return _IMP_container._object_cast_to_MinimumSingletonRestraint(o)
509 _object_types.append(
"MinimumSingletonScore")
512 def _object_cast_to_MinimumSingletonScore(o):
513 r"""_object_cast_to_MinimumSingletonScore(Object o) -> MinimumSingletonScore"""
514 return _IMP_container._object_cast_to_MinimumSingletonScore(o)
516 _object_types.append(
"MinimumTripletRestraint")
519 def _object_cast_to_MinimumTripletRestraint(o):
520 r"""_object_cast_to_MinimumTripletRestraint(Object o) -> MinimumTripletRestraint"""
521 return _IMP_container._object_cast_to_MinimumTripletRestraint(o)
523 _object_types.append(
"MinimumTripletScore")
526 def _object_cast_to_MinimumTripletScore(o):
527 r"""_object_cast_to_MinimumTripletScore(Object o) -> MinimumTripletScore"""
528 return _IMP_container._object_cast_to_MinimumTripletScore(o)
530 _object_types.append(
"PairContainerSet")
533 def _object_cast_to_PairContainerSet(o):
534 r"""_object_cast_to_PairContainerSet(Object o) -> PairContainerSet"""
535 return _IMP_container._object_cast_to_PairContainerSet(o)
537 _object_types.append(
"PairsConstraint")
540 def _object_cast_to_PairsConstraint(o):
541 r"""_object_cast_to_PairsConstraint(Object o) -> PairsConstraint"""
542 return _IMP_container._object_cast_to_PairsConstraint(o)
544 _object_types.append(
"PairsOptimizerState")
547 def _object_cast_to_PairsOptimizerState(o):
548 r"""_object_cast_to_PairsOptimizerState(Object o) -> PairsOptimizerState"""
549 return _IMP_container._object_cast_to_PairsOptimizerState(o)
551 _object_types.append(
"PairsRestraint")
554 def _object_cast_to_PairsRestraint(o):
555 r"""_object_cast_to_PairsRestraint(Object o) -> PairsRestraint"""
556 return _IMP_container._object_cast_to_PairsRestraint(o)
558 _object_types.append(
"QuadContainerSet")
561 def _object_cast_to_QuadContainerSet(o):
562 r"""_object_cast_to_QuadContainerSet(Object o) -> QuadContainerSet"""
563 return _IMP_container._object_cast_to_QuadContainerSet(o)
565 _object_types.append(
"QuadsConstraint")
568 def _object_cast_to_QuadsConstraint(o):
569 r"""_object_cast_to_QuadsConstraint(Object o) -> QuadsConstraint"""
570 return _IMP_container._object_cast_to_QuadsConstraint(o)
572 _object_types.append(
"QuadsOptimizerState")
575 def _object_cast_to_QuadsOptimizerState(o):
576 r"""_object_cast_to_QuadsOptimizerState(Object o) -> QuadsOptimizerState"""
577 return _IMP_container._object_cast_to_QuadsOptimizerState(o)
579 _object_types.append(
"QuadsRestraint")
582 def _object_cast_to_QuadsRestraint(o):
583 r"""_object_cast_to_QuadsRestraint(Object o) -> QuadsRestraint"""
584 return _IMP_container._object_cast_to_QuadsRestraint(o)
586 _object_types.append(
"SingletonContainerSet")
589 def _object_cast_to_SingletonContainerSet(o):
590 r"""_object_cast_to_SingletonContainerSet(Object o) -> SingletonContainerSet"""
591 return _IMP_container._object_cast_to_SingletonContainerSet(o)
593 _object_types.append(
"SingletonsConstraint")
596 def _object_cast_to_SingletonsConstraint(o):
597 r"""_object_cast_to_SingletonsConstraint(Object o) -> SingletonsConstraint"""
598 return _IMP_container._object_cast_to_SingletonsConstraint(o)
600 _object_types.append(
"SingletonsOptimizerState")
603 def _object_cast_to_SingletonsOptimizerState(o):
604 r"""_object_cast_to_SingletonsOptimizerState(Object o) -> SingletonsOptimizerState"""
605 return _IMP_container._object_cast_to_SingletonsOptimizerState(o)
607 _object_types.append(
"SingletonsRestraint")
610 def _object_cast_to_SingletonsRestraint(o):
611 r"""_object_cast_to_SingletonsRestraint(Object o) -> SingletonsRestraint"""
612 return _IMP_container._object_cast_to_SingletonsRestraint(o)
614 _object_types.append(
"TripletContainerSet")
617 def _object_cast_to_TripletContainerSet(o):
618 r"""_object_cast_to_TripletContainerSet(Object o) -> TripletContainerSet"""
619 return _IMP_container._object_cast_to_TripletContainerSet(o)
621 _object_types.append(
"TripletsConstraint")
624 def _object_cast_to_TripletsConstraint(o):
625 r"""_object_cast_to_TripletsConstraint(Object o) -> TripletsConstraint"""
626 return _IMP_container._object_cast_to_TripletsConstraint(o)
628 _object_types.append(
"TripletsOptimizerState")
631 def _object_cast_to_TripletsOptimizerState(o):
632 r"""_object_cast_to_TripletsOptimizerState(Object o) -> TripletsOptimizerState"""
633 return _IMP_container._object_cast_to_TripletsOptimizerState(o)
635 _object_types.append(
"TripletsRestraint")
638 def _object_cast_to_TripletsRestraint(o):
639 r"""_object_cast_to_TripletsRestraint(Object o) -> TripletsRestraint"""
640 return _IMP_container._object_cast_to_TripletsRestraint(o)
642 _object_types.append(
"InContainerSingletonFilter")
645 def _object_cast_to_InContainerSingletonFilter(o):
646 r"""_object_cast_to_InContainerSingletonFilter(Object o) -> InContainerSingletonFilter"""
647 return _IMP_container._object_cast_to_InContainerSingletonFilter(o)
649 _object_types.append(
"InContainerPairFilter")
652 def _object_cast_to_InContainerPairFilter(o):
653 r"""_object_cast_to_InContainerPairFilter(Object o) -> InContainerPairFilter"""
654 return _IMP_container._object_cast_to_InContainerPairFilter(o)
656 _object_types.append(
"InContainerTripletFilter")
659 def _object_cast_to_InContainerTripletFilter(o):
660 r"""_object_cast_to_InContainerTripletFilter(Object o) -> InContainerTripletFilter"""
661 return _IMP_container._object_cast_to_InContainerTripletFilter(o)
663 _object_types.append(
"InContainerQuadFilter")
666 def _object_cast_to_InContainerQuadFilter(o):
667 r"""_object_cast_to_InContainerQuadFilter(Object o) -> InContainerQuadFilter"""
668 return _IMP_container._object_cast_to_InContainerQuadFilter(o)
670 _object_types.append(
"SingletonContainerStatistics")
673 def _object_cast_to_SingletonContainerStatistics(o):
674 r"""_object_cast_to_SingletonContainerStatistics(Object o) -> SingletonContainerStatistics"""
675 return _IMP_container._object_cast_to_SingletonContainerStatistics(o)
677 _object_types.append(
"PairContainerStatistics")
680 def _object_cast_to_PairContainerStatistics(o):
681 r"""_object_cast_to_PairContainerStatistics(Object o) -> PairContainerStatistics"""
682 return _IMP_container._object_cast_to_PairContainerStatistics(o)
684 _object_types.append(
"TripletContainerStatistics")
687 def _object_cast_to_TripletContainerStatistics(o):
688 r"""_object_cast_to_TripletContainerStatistics(Object o) -> TripletContainerStatistics"""
689 return _IMP_container._object_cast_to_TripletContainerStatistics(o)
691 _object_types.append(
"QuadContainerStatistics")
694 def _object_cast_to_QuadContainerStatistics(o):
695 r"""_object_cast_to_QuadContainerStatistics(Object o) -> QuadContainerStatistics"""
696 return _IMP_container._object_cast_to_QuadContainerStatistics(o)
698 _object_types.append(
"EventSingletonsOptimizerState")
701 def _object_cast_to_EventSingletonsOptimizerState(o):
702 r"""_object_cast_to_EventSingletonsOptimizerState(Object o) -> EventSingletonsOptimizerState"""
703 return _IMP_container._object_cast_to_EventSingletonsOptimizerState(o)
705 _object_types.append(
"EventPairsOptimizerState")
708 def _object_cast_to_EventPairsOptimizerState(o):
709 r"""_object_cast_to_EventPairsOptimizerState(Object o) -> EventPairsOptimizerState"""
710 return _IMP_container._object_cast_to_EventPairsOptimizerState(o)
712 _object_types.append(
"EventTripletsOptimizerState")
715 def _object_cast_to_EventTripletsOptimizerState(o):
716 r"""_object_cast_to_EventTripletsOptimizerState(Object o) -> EventTripletsOptimizerState"""
717 return _IMP_container._object_cast_to_EventTripletsOptimizerState(o)
719 _object_types.append(
"EventQuadsOptimizerState")
722 def _object_cast_to_EventQuadsOptimizerState(o):
723 r"""_object_cast_to_EventQuadsOptimizerState(Object o) -> EventQuadsOptimizerState"""
724 return _IMP_container._object_cast_to_EventQuadsOptimizerState(o)
726 _object_types.append(
"PredicateSingletonsRestraint")
729 def _object_cast_to_PredicateSingletonsRestraint(o):
730 r"""_object_cast_to_PredicateSingletonsRestraint(Object o) -> PredicateSingletonsRestraint"""
731 return _IMP_container._object_cast_to_PredicateSingletonsRestraint(o)
733 _object_types.append(
"PredicatePairsRestraint")
736 def _object_cast_to_PredicatePairsRestraint(o):
737 r"""_object_cast_to_PredicatePairsRestraint(Object o) -> PredicatePairsRestraint"""
738 return _IMP_container._object_cast_to_PredicatePairsRestraint(o)
740 _object_types.append(
"PredicateTripletsRestraint")
743 def _object_cast_to_PredicateTripletsRestraint(o):
744 r"""_object_cast_to_PredicateTripletsRestraint(Object o) -> PredicateTripletsRestraint"""
745 return _IMP_container._object_cast_to_PredicateTripletsRestraint(o)
747 _object_types.append(
"PredicateQuadsRestraint")
750 def _object_cast_to_PredicateQuadsRestraint(o):
751 r"""_object_cast_to_PredicateQuadsRestraint(Object o) -> PredicateQuadsRestraint"""
752 return _IMP_container._object_cast_to_PredicateQuadsRestraint(o)
754 _object_types.append(
"DistributeSingletonsScoreState")
757 def _object_cast_to_DistributeSingletonsScoreState(o):
758 r"""_object_cast_to_DistributeSingletonsScoreState(Object o) -> DistributeSingletonsScoreState"""
759 return _IMP_container._object_cast_to_DistributeSingletonsScoreState(o)
761 _object_types.append(
"DistributePairsScoreState")
764 def _object_cast_to_DistributePairsScoreState(o):
765 r"""_object_cast_to_DistributePairsScoreState(Object o) -> DistributePairsScoreState"""
766 return _IMP_container._object_cast_to_DistributePairsScoreState(o)
768 _object_types.append(
"DistributeTripletsScoreState")
771 def _object_cast_to_DistributeTripletsScoreState(o):
772 r"""_object_cast_to_DistributeTripletsScoreState(Object o) -> DistributeTripletsScoreState"""
773 return _IMP_container._object_cast_to_DistributeTripletsScoreState(o)
775 _object_types.append(
"DistributeQuadsScoreState")
778 def _object_cast_to_DistributeQuadsScoreState(o):
779 r"""_object_cast_to_DistributeQuadsScoreState(Object o) -> DistributeQuadsScoreState"""
780 return _IMP_container._object_cast_to_DistributeQuadsScoreState(o)
782 r"""Proxy of C++ IMP::container::AllBipartitePairContainer class."""
784 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
786 def __init__(self, *args):
787 r"""__init__(AllBipartitePairContainer self, _SingletonContainerAdaptor a, _SingletonContainerAdaptor b, std::string name="AllBipartitePairContainer%1%") -> AllBipartitePairContainer"""
788 _IMP_container.AllBipartitePairContainer_swiginit(self, _IMP_container.new_AllBipartitePairContainer(*args))
790 def do_get_inputs(self):
791 r"""do_get_inputs(AllBipartitePairContainer self) -> IMP::ModelObjectsTemp"""
792 return _IMP_container.AllBipartitePairContainer_do_get_inputs(self)
794 def do_apply(self, sm):
795 r"""do_apply(AllBipartitePairContainer self, PairModifier sm)"""
796 return _IMP_container.AllBipartitePairContainer_do_apply(self, sm)
798 def do_apply_moved(self, sm, moved_pis, reset_pis):
799 r"""do_apply_moved(AllBipartitePairContainer self, PairModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
800 return _IMP_container.AllBipartitePairContainer_do_apply_moved(self, sm, moved_pis, reset_pis)
802 def get_version_info(self):
803 r"""get_version_info(AllBipartitePairContainer self) -> VersionInfo"""
804 return _IMP_container.AllBipartitePairContainer_get_version_info(self)
805 __swig_destroy__ = _IMP_container.delete_AllBipartitePairContainer
808 r"""__str__(AllBipartitePairContainer self) -> std::string"""
809 return _IMP_container.AllBipartitePairContainer___str__(self)
812 r"""__repr__(AllBipartitePairContainer self) -> std::string"""
813 return _IMP_container.AllBipartitePairContainer___repr__(self)
817 return _object_cast_to_AllBipartitePairContainer(o)
821 _IMP_container.AllBipartitePairContainer_swigregister(AllBipartitePairContainer)
823 r"""Proxy of C++ IMP::container::AllPairContainer class."""
825 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
827 def __init__(self, *args):
828 r"""__init__(AllPairContainer self, _SingletonContainerAdaptor c, std::string name="AllPairContainer%1%") -> AllPairContainer"""
829 _IMP_container.AllPairContainer_swiginit(self, _IMP_container.new_AllPairContainer(*args))
831 def do_get_inputs(self):
832 r"""do_get_inputs(AllPairContainer self) -> IMP::ModelObjectsTemp"""
833 return _IMP_container.AllPairContainer_do_get_inputs(self)
835 def do_apply(self, sm):
836 r"""do_apply(AllPairContainer self, PairModifier sm)"""
837 return _IMP_container.AllPairContainer_do_apply(self, sm)
839 def do_apply_moved(self, sm, moved_pis, reset_pis):
840 r"""do_apply_moved(AllPairContainer self, PairModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
841 return _IMP_container.AllPairContainer_do_apply_moved(self, sm, moved_pis, reset_pis)
843 def get_version_info(self):
844 r"""get_version_info(AllPairContainer self) -> VersionInfo"""
845 return _IMP_container.AllPairContainer_get_version_info(self)
846 __swig_destroy__ = _IMP_container.delete_AllPairContainer
849 r"""__str__(AllPairContainer self) -> std::string"""
850 return _IMP_container.AllPairContainer___str__(self)
853 r"""__repr__(AllPairContainer self) -> std::string"""
854 return _IMP_container.AllPairContainer___repr__(self)
858 return _object_cast_to_AllPairContainer(o)
861 def _get_static_contents(self):
862 return self.get_contents()
866 _IMP_container.AllPairContainer_swigregister(AllPairContainer)
868 r"""Proxy of C++ IMP::container::CloseBipartitePairContainer class."""
870 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
872 def __init__(self, *args):
874 __init__(CloseBipartitePairContainer self, _SingletonContainerAdaptor a, _SingletonContainerAdaptor b, double distance, double slack=1, std::string name="CloseBipartitePairContainer%1%") -> CloseBipartitePairContainer
875 __init__(CloseBipartitePairContainer self, _SingletonContainerAdaptor a, _SingletonContainerAdaptor b, double distance, ClosePairsFinder cpf, double slack=1, std::string name="CloseBipartitePairContainer%1%") -> CloseBipartitePairContainer
876 __init__(CloseBipartitePairContainer self) -> CloseBipartitePairContainer
878 _IMP_container.CloseBipartitePairContainer_swiginit(self, _IMP_container.new_CloseBipartitePairContainer(*args))
879 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)
880 def __set_pair_filters(self, obj): IMP._list_util.set_varlist(self.pair_filters, obj)
881 def __del_pair_filters(self): IMP._list_util.del_varlist(self.pair_filters)
882 pair_filters = property(__get_pair_filters, __set_pair_filters, __del_pair_filters, doc=
"List of ##ucnames")
884 def remove_pair_filter(self, d):
885 r"""remove_pair_filter(CloseBipartitePairContainer self, PairPredicate d)"""
886 return _IMP_container.CloseBipartitePairContainer_remove_pair_filter(self, d)
888 def _python_index_pair_filter(self, d, start, stop):
889 r"""_python_index_pair_filter(CloseBipartitePairContainer self, PairPredicate d, unsigned int start, unsigned int stop) -> unsigned int"""
890 return _IMP_container.CloseBipartitePairContainer__python_index_pair_filter(self, d, start, stop)
892 def remove_pair_filters(self, d):
893 r"""remove_pair_filters(CloseBipartitePairContainer self, IMP::PairPredicates const & d)"""
894 return _IMP_container.CloseBipartitePairContainer_remove_pair_filters(self, d)
896 def set_pair_filters(self, ps):
897 r"""set_pair_filters(CloseBipartitePairContainer self, IMP::PairPredicates const & ps)"""
898 return _IMP_container.CloseBipartitePairContainer_set_pair_filters(self, ps)
900 def set_pair_filters_order(self, objs):
901 r"""set_pair_filters_order(CloseBipartitePairContainer self, IMP::PairPredicates const & objs)"""
902 return _IMP_container.CloseBipartitePairContainer_set_pair_filters_order(self, objs)
904 def add_pair_filter(self, obj):
905 r"""add_pair_filter(CloseBipartitePairContainer self, PairPredicate obj) -> unsigned int"""
906 return _IMP_container.CloseBipartitePairContainer_add_pair_filter(self, obj)
908 def add_pair_filters(self, objs):
909 r"""add_pair_filters(CloseBipartitePairContainer self, IMP::PairPredicates const & objs)"""
910 return _IMP_container.CloseBipartitePairContainer_add_pair_filters(self, objs)
912 def clear_pair_filters(self):
913 r"""clear_pair_filters(CloseBipartitePairContainer self)"""
914 return _IMP_container.CloseBipartitePairContainer_clear_pair_filters(self)
916 def get_number_of_pair_filters(self):
917 r"""get_number_of_pair_filters(CloseBipartitePairContainer self) -> unsigned int"""
918 return _IMP_container.CloseBipartitePairContainer_get_number_of_pair_filters(self)
920 def get_has_pair_filters(self):
921 r"""get_has_pair_filters(CloseBipartitePairContainer self) -> bool"""
922 return _IMP_container.CloseBipartitePairContainer_get_has_pair_filters(self)
924 def get_pair_filter(self, i):
925 r"""get_pair_filter(CloseBipartitePairContainer self, unsigned int i) -> PairPredicate"""
926 return _IMP_container.CloseBipartitePairContainer_get_pair_filter(self, i)
928 def get_pair_filters(self):
929 r"""get_pair_filters(CloseBipartitePairContainer self) -> IMP::PairPredicates"""
930 return _IMP_container.CloseBipartitePairContainer_get_pair_filters(self)
932 def erase_pair_filter(self, i):
933 r"""erase_pair_filter(CloseBipartitePairContainer self, unsigned int i)"""
934 return _IMP_container.CloseBipartitePairContainer_erase_pair_filter(self, i)
936 def reserve_pair_filters(self, sz):
937 r"""reserve_pair_filters(CloseBipartitePairContainer self, unsigned int sz)"""
938 return _IMP_container.CloseBipartitePairContainer_reserve_pair_filters(self, sz)
940 def do_get_inputs(self):
941 r"""do_get_inputs(CloseBipartitePairContainer self) -> IMP::ModelObjectsTemp"""
942 return _IMP_container.CloseBipartitePairContainer_do_get_inputs(self)
944 def do_apply(self, sm):
945 r"""do_apply(CloseBipartitePairContainer self, PairModifier sm)"""
946 return _IMP_container.CloseBipartitePairContainer_do_apply(self, sm)
948 def get_version_info(self):
949 r"""get_version_info(CloseBipartitePairContainer self) -> VersionInfo"""
950 return _IMP_container.CloseBipartitePairContainer_get_version_info(self)
951 __swig_destroy__ = _IMP_container.delete_CloseBipartitePairContainer
954 r"""__str__(CloseBipartitePairContainer self) -> std::string"""
955 return _IMP_container.CloseBipartitePairContainer___str__(self)
958 r"""__repr__(CloseBipartitePairContainer self) -> std::string"""
959 return _IMP_container.CloseBipartitePairContainer___repr__(self)
963 return _object_cast_to_CloseBipartitePairContainer(o)
966 def _get_as_binary(self):
967 r"""_get_as_binary(CloseBipartitePairContainer self) -> PyObject *"""
968 return _IMP_container.CloseBipartitePairContainer__get_as_binary(self)
970 def _set_from_binary(self, p):
971 r"""_set_from_binary(CloseBipartitePairContainer self, PyObject * p)"""
972 return _IMP_container.CloseBipartitePairContainer__set_from_binary(self, p)
974 def __getstate__(self):
975 p = self._get_as_binary()
976 if len(self.__dict__) > 1:
977 d = self.__dict__.copy()
982 def __setstate__(self, p):
983 if not hasattr(self,
'this'):
985 if isinstance(p, tuple):
987 self.__dict__.update(d)
988 return self._set_from_binary(p)
992 _IMP_container.CloseBipartitePairContainer_swigregister(CloseBipartitePairContainer)
994 r"""Proxy of C++ IMP::container::ClosePairContainer class."""
996 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
998 def __init__(self, *args):
1000 __init__(ClosePairContainer self, _SingletonContainerAdaptor c, double distance_cutoff, double slack=1, std::string name="ClosePairContainer%1%") -> ClosePairContainer
1001 __init__(ClosePairContainer self, _SingletonContainerAdaptor c, double distance_cutoff, ClosePairsFinder cpf, double slack=1, std::string name="ClosePairContainer%1%") -> ClosePairContainer
1002 __init__(ClosePairContainer self) -> ClosePairContainer
1004 _IMP_container.ClosePairContainer_swiginit(self, _IMP_container.new_ClosePairContainer(*args))
1005 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)
1006 def __set_pair_filters(self, obj): IMP._list_util.set_varlist(self.pair_filters, obj)
1007 def __del_pair_filters(self): IMP._list_util.del_varlist(self.pair_filters)
1008 pair_filters = property(__get_pair_filters, __set_pair_filters, __del_pair_filters, doc=
"List of ##ucnames")
1010 def remove_pair_filter(self, d):
1011 r"""remove_pair_filter(ClosePairContainer self, PairPredicate d)"""
1012 return _IMP_container.ClosePairContainer_remove_pair_filter(self, d)
1014 def _python_index_pair_filter(self, d, start, stop):
1015 r"""_python_index_pair_filter(ClosePairContainer self, PairPredicate d, unsigned int start, unsigned int stop) -> unsigned int"""
1016 return _IMP_container.ClosePairContainer__python_index_pair_filter(self, d, start, stop)
1018 def remove_pair_filters(self, d):
1019 r"""remove_pair_filters(ClosePairContainer self, IMP::PairPredicates const & d)"""
1020 return _IMP_container.ClosePairContainer_remove_pair_filters(self, d)
1022 def set_pair_filters(self, ps):
1023 r"""set_pair_filters(ClosePairContainer self, IMP::PairPredicates const & ps)"""
1024 return _IMP_container.ClosePairContainer_set_pair_filters(self, ps)
1026 def set_pair_filters_order(self, objs):
1027 r"""set_pair_filters_order(ClosePairContainer self, IMP::PairPredicates const & objs)"""
1028 return _IMP_container.ClosePairContainer_set_pair_filters_order(self, objs)
1030 def add_pair_filter(self, obj):
1031 r"""add_pair_filter(ClosePairContainer self, PairPredicate obj) -> unsigned int"""
1032 return _IMP_container.ClosePairContainer_add_pair_filter(self, obj)
1034 def add_pair_filters(self, objs):
1035 r"""add_pair_filters(ClosePairContainer self, IMP::PairPredicates const & objs)"""
1036 return _IMP_container.ClosePairContainer_add_pair_filters(self, objs)
1038 def clear_pair_filters(self):
1039 r"""clear_pair_filters(ClosePairContainer self)"""
1040 return _IMP_container.ClosePairContainer_clear_pair_filters(self)
1042 def get_number_of_pair_filters(self):
1043 r"""get_number_of_pair_filters(ClosePairContainer self) -> unsigned int"""
1044 return _IMP_container.ClosePairContainer_get_number_of_pair_filters(self)
1046 def get_has_pair_filters(self):
1047 r"""get_has_pair_filters(ClosePairContainer self) -> bool"""
1048 return _IMP_container.ClosePairContainer_get_has_pair_filters(self)
1050 def get_pair_filter(self, i):
1051 r"""get_pair_filter(ClosePairContainer self, unsigned int i) -> PairPredicate"""
1052 return _IMP_container.ClosePairContainer_get_pair_filter(self, i)
1054 def get_pair_filters(self):
1055 r"""get_pair_filters(ClosePairContainer self) -> IMP::PairPredicates"""
1056 return _IMP_container.ClosePairContainer_get_pair_filters(self)
1058 def erase_pair_filter(self, i):
1059 r"""erase_pair_filter(ClosePairContainer self, unsigned int i)"""
1060 return _IMP_container.ClosePairContainer_erase_pair_filter(self, i)
1062 def reserve_pair_filters(self, sz):
1063 r"""reserve_pair_filters(ClosePairContainer self, unsigned int sz)"""
1064 return _IMP_container.ClosePairContainer_reserve_pair_filters(self, sz)
1066 def set_slack(self, s):
1067 r"""set_slack(ClosePairContainer self, double s)"""
1068 return _IMP_container.ClosePairContainer_set_slack(self, s)
1070 def get_slack(self):
1071 r"""get_slack(ClosePairContainer self) -> double"""
1072 return _IMP_container.ClosePairContainer_get_slack(self)
1074 def do_get_inputs(self):
1075 r"""do_get_inputs(ClosePairContainer self) -> IMP::ModelObjectsTemp"""
1076 return _IMP_container.ClosePairContainer_do_get_inputs(self)
1078 def do_apply(self, sm):
1079 r"""do_apply(ClosePairContainer self, PairModifier sm)"""
1080 return _IMP_container.ClosePairContainer_do_apply(self, sm)
1082 def get_number_of_update_calls(self):
1083 r"""get_number_of_update_calls(ClosePairContainer self) -> unsigned int"""
1084 return _IMP_container.ClosePairContainer_get_number_of_update_calls(self)
1086 def get_number_of_full_rebuilds(self):
1087 r"""get_number_of_full_rebuilds(ClosePairContainer self) -> unsigned int"""
1088 return _IMP_container.ClosePairContainer_get_number_of_full_rebuilds(self)
1090 def get_number_of_partial_rebuilds(self):
1091 r"""get_number_of_partial_rebuilds(ClosePairContainer self) -> unsigned int"""
1092 return _IMP_container.ClosePairContainer_get_number_of_partial_rebuilds(self)
1094 def get_version_info(self):
1095 r"""get_version_info(ClosePairContainer self) -> VersionInfo"""
1096 return _IMP_container.ClosePairContainer_get_version_info(self)
1097 __swig_destroy__ = _IMP_container.delete_ClosePairContainer
1100 r"""__str__(ClosePairContainer self) -> std::string"""
1101 return _IMP_container.ClosePairContainer___str__(self)
1104 r"""__repr__(ClosePairContainer self) -> std::string"""
1105 return _IMP_container.ClosePairContainer___repr__(self)
1109 return _object_cast_to_ClosePairContainer(o)
1112 def _get_as_binary(self):
1113 r"""_get_as_binary(ClosePairContainer self) -> PyObject *"""
1114 return _IMP_container.ClosePairContainer__get_as_binary(self)
1116 def _set_from_binary(self, p):
1117 r"""_set_from_binary(ClosePairContainer self, PyObject * p)"""
1118 return _IMP_container.ClosePairContainer__set_from_binary(self, p)
1120 def __getstate__(self):
1121 p = self._get_as_binary()
1122 if len(self.__dict__) > 1:
1123 d = self.__dict__.copy()
1128 def __setstate__(self, p):
1129 if not hasattr(self,
'this'):
1131 if isinstance(p, tuple):
1133 self.__dict__.update(d)
1134 return self._set_from_binary(p)
1137 def _get_static_contents(self):
1138 warnings.warn(
"No JAX support for close pairs, so using all "
1140 return self.get_range_indexes()
1144 _IMP_container.ClosePairContainer_swigregister(ClosePairContainer)
1147 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"""
1148 return _IMP_container.get_slack_estimate(m, ps, upper_bound, step, restraints, derivatives, opt, cpc)
1150 r"""Proxy of C++ IMP::container::ConnectingPairContainer class."""
1152 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1154 def __init__(self, sc, error):
1155 r"""__init__(ConnectingPairContainer self, SingletonContainer sc, double error) -> ConnectingPairContainer"""
1156 _IMP_container.ConnectingPairContainer_swiginit(self, _IMP_container.new_ConnectingPairContainer(sc, error))
1158 def do_get_inputs(self):
1159 r"""do_get_inputs(ConnectingPairContainer self) -> IMP::ModelObjectsTemp"""
1160 return _IMP_container.ConnectingPairContainer_do_get_inputs(self)
1162 def do_apply(self, sm):
1163 r"""do_apply(ConnectingPairContainer self, PairModifier sm)"""
1164 return _IMP_container.ConnectingPairContainer_do_apply(self, sm)
1166 def get_version_info(self):
1167 r"""get_version_info(ConnectingPairContainer self) -> VersionInfo"""
1168 return _IMP_container.ConnectingPairContainer_get_version_info(self)
1169 __swig_destroy__ = _IMP_container.delete_ConnectingPairContainer
1172 r"""__str__(ConnectingPairContainer self) -> std::string"""
1173 return _IMP_container.ConnectingPairContainer___str__(self)
1176 r"""__repr__(ConnectingPairContainer self) -> std::string"""
1177 return _IMP_container.ConnectingPairContainer___repr__(self)
1181 return _object_cast_to_ConnectingPairContainer(o)
1185 _IMP_container.ConnectingPairContainer_swigregister(ConnectingPairContainer)
1187 r"""Proxy of C++ IMP::container::ConsecutivePairContainer class."""
1189 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1191 def __init__(self, *args):
1192 r"""__init__(ConsecutivePairContainer self, Model m, IMP::ParticleIndexes const & ps, std::string name="ConsecutivePairContainer%1%") -> ConsecutivePairContainer"""
1193 _IMP_container.ConsecutivePairContainer_swiginit(self, _IMP_container.new_ConsecutivePairContainer(*args))
1195 def do_get_inputs(self):
1196 r"""do_get_inputs(ConsecutivePairContainer self) -> IMP::ModelObjectsTemp"""
1197 return _IMP_container.ConsecutivePairContainer_do_get_inputs(self)
1199 def do_apply(self, sm):
1200 r"""do_apply(ConsecutivePairContainer self, PairModifier sm)"""
1201 return _IMP_container.ConsecutivePairContainer_do_apply(self, sm)
1203 def do_apply_moved(self, sm, moved_pis, reset_pis):
1204 r"""do_apply_moved(ConsecutivePairContainer self, PairModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
1205 return _IMP_container.ConsecutivePairContainer_do_apply_moved(self, sm, moved_pis, reset_pis)
1207 def get_version_info(self):
1208 r"""get_version_info(ConsecutivePairContainer self) -> VersionInfo"""
1209 return _IMP_container.ConsecutivePairContainer_get_version_info(self)
1210 __swig_destroy__ = _IMP_container.delete_ConsecutivePairContainer
1213 r"""__str__(ConsecutivePairContainer self) -> std::string"""
1214 return _IMP_container.ConsecutivePairContainer___str__(self)
1217 r"""__repr__(ConsecutivePairContainer self) -> std::string"""
1218 return _IMP_container.ConsecutivePairContainer___repr__(self)
1222 return _object_cast_to_ConsecutivePairContainer(o)
1226 _IMP_container.ConsecutivePairContainer_swigregister(ConsecutivePairContainer)
1228 r"""Proxy of C++ IMP::container::ConsecutivePairFilter class."""
1230 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1232 def __init__(self, cpc):
1233 r"""__init__(ConsecutivePairFilter self, ConsecutivePairContainer cpc) -> ConsecutivePairFilter"""
1234 _IMP_container.ConsecutivePairFilter_swiginit(self, _IMP_container.new_ConsecutivePairFilter(cpc))
1236 def do_get_inputs(self, m, pi):
1237 r"""do_get_inputs(ConsecutivePairFilter self, Model m, IMP::ParticleIndexes const & pi) -> IMP::ModelObjectsTemp"""
1238 return _IMP_container.ConsecutivePairFilter_do_get_inputs(self, m, pi)
1240 def get_value(self, *args):
1242 get_value(ConsecutivePairFilter self, IMP::ParticlePair const & a) -> int
1243 get_value(ConsecutivePairFilter self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
1245 return _IMP_container.ConsecutivePairFilter_get_value(self, *args)
1247 def get_value_index(self, *args):
1249 get_value_index(ConsecutivePairFilter self, Model arg2, IMP::ParticleIndexPair const & pip) -> int
1250 get_value_index(ConsecutivePairFilter self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
1252 return _IMP_container.ConsecutivePairFilter_get_value_index(self, *args)
1254 def get_version_info(self):
1255 r"""get_version_info(ConsecutivePairFilter self) -> VersionInfo"""
1256 return _IMP_container.ConsecutivePairFilter_get_version_info(self)
1257 __swig_destroy__ = _IMP_container.delete_ConsecutivePairFilter
1260 r"""__str__(ConsecutivePairFilter self) -> std::string"""
1261 return _IMP_container.ConsecutivePairFilter___str__(self)
1264 r"""__repr__(ConsecutivePairFilter self) -> std::string"""
1265 return _IMP_container.ConsecutivePairFilter___repr__(self)
1269 return _object_cast_to_ConsecutivePairFilter(o)
1273 _IMP_container.ConsecutivePairFilter_swigregister(ConsecutivePairFilter)
1275 r"""Proxy of C++ IMP::container::ExclusiveConsecutivePairContainer class."""
1277 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1279 def __init__(self, *args):
1280 r"""__init__(ExclusiveConsecutivePairContainer self, Model m, IMP::ParticleIndexes const & ps, std::string name="ExclusiveConsecutivePairContainer%1%") -> ExclusiveConsecutivePairContainer"""
1281 _IMP_container.ExclusiveConsecutivePairContainer_swiginit(self, _IMP_container.new_ExclusiveConsecutivePairContainer(*args))
1283 def do_get_inputs(self):
1284 r"""do_get_inputs(ExclusiveConsecutivePairContainer self) -> IMP::ModelObjectsTemp"""
1285 return _IMP_container.ExclusiveConsecutivePairContainer_do_get_inputs(self)
1287 def do_apply(self, sm):
1288 r"""do_apply(ExclusiveConsecutivePairContainer self, PairModifier sm)"""
1289 return _IMP_container.ExclusiveConsecutivePairContainer_do_apply(self, sm)
1291 def do_apply_moved(self, sm, moved_pis, reset_pis):
1292 r"""do_apply_moved(ExclusiveConsecutivePairContainer self, PairModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
1293 return _IMP_container.ExclusiveConsecutivePairContainer_do_apply_moved(self, sm, moved_pis, reset_pis)
1295 def get_version_info(self):
1296 r"""get_version_info(ExclusiveConsecutivePairContainer self) -> VersionInfo"""
1297 return _IMP_container.ExclusiveConsecutivePairContainer_get_version_info(self)
1298 __swig_destroy__ = _IMP_container.delete_ExclusiveConsecutivePairContainer
1301 r"""__str__(ExclusiveConsecutivePairContainer self) -> std::string"""
1302 return _IMP_container.ExclusiveConsecutivePairContainer___str__(self)
1305 r"""__repr__(ExclusiveConsecutivePairContainer self) -> std::string"""
1306 return _IMP_container.ExclusiveConsecutivePairContainer___repr__(self)
1310 return _object_cast_to_ExclusiveConsecutivePairContainer(o)
1314 _IMP_container.ExclusiveConsecutivePairContainer_swigregister(ExclusiveConsecutivePairContainer)
1316 r"""Proxy of C++ IMP::container::ExclusiveConsecutivePairFilter class."""
1318 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1321 r"""__init__(ExclusiveConsecutivePairFilter self) -> ExclusiveConsecutivePairFilter"""
1322 _IMP_container.ExclusiveConsecutivePairFilter_swiginit(self, _IMP_container.new_ExclusiveConsecutivePairFilter())
1324 def do_get_inputs(self, m, pi):
1325 r"""do_get_inputs(ExclusiveConsecutivePairFilter self, Model m, IMP::ParticleIndexes const & pi) -> IMP::ModelObjectsTemp"""
1326 return _IMP_container.ExclusiveConsecutivePairFilter_do_get_inputs(self, m, pi)
1328 def get_value(self, *args):
1330 get_value(ExclusiveConsecutivePairFilter self, IMP::ParticlePair const & a) -> int
1331 get_value(ExclusiveConsecutivePairFilter self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
1333 return _IMP_container.ExclusiveConsecutivePairFilter_get_value(self, *args)
1335 def get_value_index(self, *args):
1337 get_value_index(ExclusiveConsecutivePairFilter self, Model m, IMP::ParticleIndexPair const & pip) -> int
1338 get_value_index(ExclusiveConsecutivePairFilter self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
1340 return _IMP_container.ExclusiveConsecutivePairFilter_get_value_index(self, *args)
1342 def get_version_info(self):
1343 r"""get_version_info(ExclusiveConsecutivePairFilter self) -> VersionInfo"""
1344 return _IMP_container.ExclusiveConsecutivePairFilter_get_version_info(self)
1345 __swig_destroy__ = _IMP_container.delete_ExclusiveConsecutivePairFilter
1348 r"""__str__(ExclusiveConsecutivePairFilter self) -> std::string"""
1349 return _IMP_container.ExclusiveConsecutivePairFilter___str__(self)
1352 r"""__repr__(ExclusiveConsecutivePairFilter self) -> std::string"""
1353 return _IMP_container.ExclusiveConsecutivePairFilter___repr__(self)
1357 return _object_cast_to_ExclusiveConsecutivePairFilter(o)
1361 _IMP_container.ExclusiveConsecutivePairFilter_swigregister(ExclusiveConsecutivePairFilter)
1363 r"""Proxy of C++ IMP::container::ListPairContainer class."""
1365 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1367 def __init__(self, *args):
1369 __init__(ListPairContainer self, Model m, IMP::ParticleIndexPairs const & contents, std::string name="ListPairContainer%1%") -> ListPairContainer
1370 __init__(ListPairContainer self, Model m, std::string name="ListPairContainer %1%") -> ListPairContainer
1371 __init__(ListPairContainer self, Model m, char const * name) -> ListPairContainer
1372 __init__(ListPairContainer self) -> ListPairContainer
1374 _IMP_container.ListPairContainer_swiginit(self, _IMP_container.new_ListPairContainer(*args))
1376 def add(self, *args):
1378 add(ListPairContainer self, IMP::ParticleIndexPair const & vt)
1379 add(ListPairContainer self, IMP::ParticleIndexPairs const & c)
1381 return _IMP_container.ListPairContainer_add(self, *args)
1384 r"""set(ListPairContainer self, IMP::ParticleIndexPairs cp)"""
1385 return _IMP_container.ListPairContainer_set(self, cp)
1388 r"""clear(ListPairContainer self)"""
1389 return _IMP_container.ListPairContainer_clear(self)
1391 def do_get_inputs(self):
1392 r"""do_get_inputs(ListPairContainer self) -> IMP::ModelObjectsTemp"""
1393 return _IMP_container.ListPairContainer_do_get_inputs(self)
1395 def do_apply(self, sm):
1396 r"""do_apply(ListPairContainer self, PairModifier sm)"""
1397 return _IMP_container.ListPairContainer_do_apply(self, sm)
1399 def do_apply_moved(self, sm, moved_pis, reset_pis):
1400 r"""do_apply_moved(ListPairContainer self, PairModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
1401 return _IMP_container.ListPairContainer_do_apply_moved(self, sm, moved_pis, reset_pis)
1403 def get_version_info(self):
1404 r"""get_version_info(ListPairContainer self) -> VersionInfo"""
1405 return _IMP_container.ListPairContainer_get_version_info(self)
1406 __swig_destroy__ = _IMP_container.delete_ListPairContainer
1409 r"""__str__(ListPairContainer self) -> std::string"""
1410 return _IMP_container.ListPairContainer___str__(self)
1413 r"""__repr__(ListPairContainer self) -> std::string"""
1414 return _IMP_container.ListPairContainer___repr__(self)
1418 return _object_cast_to_ListPairContainer(o)
1421 def _get_as_binary(self):
1422 r"""_get_as_binary(ListPairContainer self) -> PyObject *"""
1423 return _IMP_container.ListPairContainer__get_as_binary(self)
1425 def _set_from_binary(self, p):
1426 r"""_set_from_binary(ListPairContainer self, PyObject * p)"""
1427 return _IMP_container.ListPairContainer__set_from_binary(self, p)
1429 def __getstate__(self):
1430 p = self._get_as_binary()
1431 if len(self.__dict__) > 1:
1432 d = self.__dict__.copy()
1437 def __setstate__(self, p):
1438 if not hasattr(self,
'this'):
1440 if isinstance(p, tuple):
1442 self.__dict__.update(d)
1443 return self._set_from_binary(p)
1446 def _get_static_contents(self):
1447 return self.get_contents()
1451 _IMP_container.ListPairContainer_swigregister(ListPairContainer)
1453 r"""Proxy of C++ IMP::container::ListQuadContainer class."""
1455 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1457 def __init__(self, *args):
1459 __init__(ListQuadContainer self, Model m, IMP::ParticleIndexQuads const & contents, std::string name="ListQuadContainer%1%") -> ListQuadContainer
1460 __init__(ListQuadContainer self, Model m, std::string name="ListQuadContainer %1%") -> ListQuadContainer
1461 __init__(ListQuadContainer self, Model m, char const * name) -> ListQuadContainer
1462 __init__(ListQuadContainer self) -> ListQuadContainer
1464 _IMP_container.ListQuadContainer_swiginit(self, _IMP_container.new_ListQuadContainer(*args))
1466 def add(self, *args):
1468 add(ListQuadContainer self, IMP::ParticleIndexQuad const & vt)
1469 add(ListQuadContainer self, IMP::ParticleIndexQuads const & c)
1471 return _IMP_container.ListQuadContainer_add(self, *args)
1474 r"""set(ListQuadContainer self, IMP::ParticleIndexQuads cp)"""
1475 return _IMP_container.ListQuadContainer_set(self, cp)
1478 r"""clear(ListQuadContainer self)"""
1479 return _IMP_container.ListQuadContainer_clear(self)
1481 def do_get_inputs(self):
1482 r"""do_get_inputs(ListQuadContainer self) -> IMP::ModelObjectsTemp"""
1483 return _IMP_container.ListQuadContainer_do_get_inputs(self)
1485 def do_apply(self, sm):
1486 r"""do_apply(ListQuadContainer self, QuadModifier sm)"""
1487 return _IMP_container.ListQuadContainer_do_apply(self, sm)
1489 def do_apply_moved(self, sm, moved_pis, reset_pis):
1490 r"""do_apply_moved(ListQuadContainer self, QuadModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
1491 return _IMP_container.ListQuadContainer_do_apply_moved(self, sm, moved_pis, reset_pis)
1493 def get_version_info(self):
1494 r"""get_version_info(ListQuadContainer self) -> VersionInfo"""
1495 return _IMP_container.ListQuadContainer_get_version_info(self)
1496 __swig_destroy__ = _IMP_container.delete_ListQuadContainer
1499 r"""__str__(ListQuadContainer self) -> std::string"""
1500 return _IMP_container.ListQuadContainer___str__(self)
1503 r"""__repr__(ListQuadContainer self) -> std::string"""
1504 return _IMP_container.ListQuadContainer___repr__(self)
1508 return _object_cast_to_ListQuadContainer(o)
1511 def _get_as_binary(self):
1512 r"""_get_as_binary(ListQuadContainer self) -> PyObject *"""
1513 return _IMP_container.ListQuadContainer__get_as_binary(self)
1515 def _set_from_binary(self, p):
1516 r"""_set_from_binary(ListQuadContainer self, PyObject * p)"""
1517 return _IMP_container.ListQuadContainer__set_from_binary(self, p)
1519 def __getstate__(self):
1520 p = self._get_as_binary()
1521 if len(self.__dict__) > 1:
1522 d = self.__dict__.copy()
1527 def __setstate__(self, p):
1528 if not hasattr(self,
'this'):
1530 if isinstance(p, tuple):
1532 self.__dict__.update(d)
1533 return self._set_from_binary(p)
1537 _IMP_container.ListQuadContainer_swigregister(ListQuadContainer)
1539 r"""Proxy of C++ IMP::container::ListSingletonContainer class."""
1541 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1543 def __init__(self, *args):
1545 __init__(ListSingletonContainer self, Model m, IMP::ParticleIndexes const & contents, std::string name="ListSingletonContainer%1%") -> ListSingletonContainer
1546 __init__(ListSingletonContainer self, Model m, std::string name="ListSingletonContainer %1%") -> ListSingletonContainer
1547 __init__(ListSingletonContainer self, Model m, char const * name) -> ListSingletonContainer
1548 __init__(ListSingletonContainer self) -> ListSingletonContainer
1550 _IMP_container.ListSingletonContainer_swiginit(self, _IMP_container.new_ListSingletonContainer(*args))
1552 def add(self, *args):
1554 add(ListSingletonContainer self, ParticleIndex vt)
1555 add(ListSingletonContainer self, IMP::ParticleIndexes const & c)
1557 return _IMP_container.ListSingletonContainer_add(self, *args)
1560 r"""set(ListSingletonContainer self, IMP::ParticleIndexes cp)"""
1561 return _IMP_container.ListSingletonContainer_set(self, cp)
1564 r"""clear(ListSingletonContainer self)"""
1565 return _IMP_container.ListSingletonContainer_clear(self)
1567 def do_get_inputs(self):
1568 r"""do_get_inputs(ListSingletonContainer self) -> IMP::ModelObjectsTemp"""
1569 return _IMP_container.ListSingletonContainer_do_get_inputs(self)
1571 def do_apply(self, sm):
1572 r"""do_apply(ListSingletonContainer self, SingletonModifier sm)"""
1573 return _IMP_container.ListSingletonContainer_do_apply(self, sm)
1575 def do_apply_moved(self, sm, moved_pis, reset_pis):
1576 r"""do_apply_moved(ListSingletonContainer self, SingletonModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
1577 return _IMP_container.ListSingletonContainer_do_apply_moved(self, sm, moved_pis, reset_pis)
1579 def get_version_info(self):
1580 r"""get_version_info(ListSingletonContainer self) -> VersionInfo"""
1581 return _IMP_container.ListSingletonContainer_get_version_info(self)
1582 __swig_destroy__ = _IMP_container.delete_ListSingletonContainer
1585 r"""__str__(ListSingletonContainer self) -> std::string"""
1586 return _IMP_container.ListSingletonContainer___str__(self)
1589 r"""__repr__(ListSingletonContainer self) -> std::string"""
1590 return _IMP_container.ListSingletonContainer___repr__(self)
1594 return _object_cast_to_ListSingletonContainer(o)
1597 def _get_as_binary(self):
1598 r"""_get_as_binary(ListSingletonContainer self) -> PyObject *"""
1599 return _IMP_container.ListSingletonContainer__get_as_binary(self)
1601 def _set_from_binary(self, p):
1602 r"""_set_from_binary(ListSingletonContainer self, PyObject * p)"""
1603 return _IMP_container.ListSingletonContainer__set_from_binary(self, p)
1605 def __getstate__(self):
1606 p = self._get_as_binary()
1607 if len(self.__dict__) > 1:
1608 d = self.__dict__.copy()
1613 def __setstate__(self, p):
1614 if not hasattr(self,
'this'):
1616 if isinstance(p, tuple):
1618 self.__dict__.update(d)
1619 return self._set_from_binary(p)
1622 def _get_static_contents(self):
1623 return self.get_contents()
1627 _IMP_container.ListSingletonContainer_swigregister(ListSingletonContainer)
1629 r"""Proxy of C++ IMP::container::ListTripletContainer class."""
1631 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1633 def __init__(self, *args):
1635 __init__(ListTripletContainer self, Model m, IMP::ParticleIndexTriplets const & contents, std::string name="ListTripletContainer%1%") -> ListTripletContainer
1636 __init__(ListTripletContainer self, Model m, std::string name="ListTripletContainer %1%") -> ListTripletContainer
1637 __init__(ListTripletContainer self, Model m, char const * name) -> ListTripletContainer
1638 __init__(ListTripletContainer self) -> ListTripletContainer
1640 _IMP_container.ListTripletContainer_swiginit(self, _IMP_container.new_ListTripletContainer(*args))
1642 def add(self, *args):
1644 add(ListTripletContainer self, IMP::ParticleIndexTriplet const & vt)
1645 add(ListTripletContainer self, IMP::ParticleIndexTriplets const & c)
1647 return _IMP_container.ListTripletContainer_add(self, *args)
1650 r"""set(ListTripletContainer self, IMP::ParticleIndexTriplets cp)"""
1651 return _IMP_container.ListTripletContainer_set(self, cp)
1654 r"""clear(ListTripletContainer self)"""
1655 return _IMP_container.ListTripletContainer_clear(self)
1657 def do_get_inputs(self):
1658 r"""do_get_inputs(ListTripletContainer self) -> IMP::ModelObjectsTemp"""
1659 return _IMP_container.ListTripletContainer_do_get_inputs(self)
1661 def do_apply(self, sm):
1662 r"""do_apply(ListTripletContainer self, TripletModifier sm)"""
1663 return _IMP_container.ListTripletContainer_do_apply(self, sm)
1665 def do_apply_moved(self, sm, moved_pis, reset_pis):
1666 r"""do_apply_moved(ListTripletContainer self, TripletModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
1667 return _IMP_container.ListTripletContainer_do_apply_moved(self, sm, moved_pis, reset_pis)
1669 def get_version_info(self):
1670 r"""get_version_info(ListTripletContainer self) -> VersionInfo"""
1671 return _IMP_container.ListTripletContainer_get_version_info(self)
1672 __swig_destroy__ = _IMP_container.delete_ListTripletContainer
1675 r"""__str__(ListTripletContainer self) -> std::string"""
1676 return _IMP_container.ListTripletContainer___str__(self)
1679 r"""__repr__(ListTripletContainer self) -> std::string"""
1680 return _IMP_container.ListTripletContainer___repr__(self)
1684 return _object_cast_to_ListTripletContainer(o)
1687 def _get_as_binary(self):
1688 r"""_get_as_binary(ListTripletContainer self) -> PyObject *"""
1689 return _IMP_container.ListTripletContainer__get_as_binary(self)
1691 def _set_from_binary(self, p):
1692 r"""_set_from_binary(ListTripletContainer self, PyObject * p)"""
1693 return _IMP_container.ListTripletContainer__set_from_binary(self, p)
1695 def __getstate__(self):
1696 p = self._get_as_binary()
1697 if len(self.__dict__) > 1:
1698 d = self.__dict__.copy()
1703 def __setstate__(self, p):
1704 if not hasattr(self,
'this'):
1706 if isinstance(p, tuple):
1708 self.__dict__.update(d)
1709 return self._set_from_binary(p)
1713 _IMP_container.ListTripletContainer_swigregister(ListTripletContainer)
1715 r"""Proxy of C++ IMP::container::DynamicListPairContainer class."""
1717 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1719 def __init__(self, *args, **kwargs):
1720 raise AttributeError(
"No constructor defined - class is abstract")
1722 def add(self, *args):
1724 add(DynamicListPairContainer self, IMP::ParticleIndexPair const & vt)
1725 add(DynamicListPairContainer self, IMP::ParticleIndexPairs const & c)
1727 return _IMP_container.DynamicListPairContainer_add(self, *args)
1730 r"""set(DynamicListPairContainer self, IMP::ParticleIndexPairs cp)"""
1731 return _IMP_container.DynamicListPairContainer_set(self, cp)
1734 r"""clear(DynamicListPairContainer self)"""
1735 return _IMP_container.DynamicListPairContainer_clear(self)
1737 def do_get_inputs(self):
1738 r"""do_get_inputs(DynamicListPairContainer self) -> IMP::ModelObjectsTemp"""
1739 return _IMP_container.DynamicListPairContainer_do_get_inputs(self)
1741 def do_apply(self, sm):
1742 r"""do_apply(DynamicListPairContainer self, PairModifier sm)"""
1743 return _IMP_container.DynamicListPairContainer_do_apply(self, sm)
1745 def do_apply_moved(self, sm, moved_pis, reset_pis):
1746 r"""do_apply_moved(DynamicListPairContainer self, PairModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
1747 return _IMP_container.DynamicListPairContainer_do_apply_moved(self, sm, moved_pis, reset_pis)
1749 def get_version_info(self):
1750 r"""get_version_info(DynamicListPairContainer self) -> VersionInfo"""
1751 return _IMP_container.DynamicListPairContainer_get_version_info(self)
1752 __swig_destroy__ = _IMP_container.delete_DynamicListPairContainer
1755 r"""__str__(DynamicListPairContainer self) -> std::string"""
1756 return _IMP_container.DynamicListPairContainer___str__(self)
1759 r"""__repr__(DynamicListPairContainer self) -> std::string"""
1760 return _IMP_container.DynamicListPairContainer___repr__(self)
1764 return _object_cast_to_DynamicListPairContainer(o)
1768 _IMP_container.DynamicListPairContainer_swigregister(DynamicListPairContainer)
1770 r"""Proxy of C++ IMP::container::DynamicListQuadContainer class."""
1772 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1774 def __init__(self, *args, **kwargs):
1775 raise AttributeError(
"No constructor defined - class is abstract")
1777 def add(self, *args):
1779 add(DynamicListQuadContainer self, IMP::ParticleIndexQuad const & vt)
1780 add(DynamicListQuadContainer self, IMP::ParticleIndexQuads const & c)
1782 return _IMP_container.DynamicListQuadContainer_add(self, *args)
1785 r"""set(DynamicListQuadContainer self, IMP::ParticleIndexQuads cp)"""
1786 return _IMP_container.DynamicListQuadContainer_set(self, cp)
1789 r"""clear(DynamicListQuadContainer self)"""
1790 return _IMP_container.DynamicListQuadContainer_clear(self)
1792 def do_get_inputs(self):
1793 r"""do_get_inputs(DynamicListQuadContainer self) -> IMP::ModelObjectsTemp"""
1794 return _IMP_container.DynamicListQuadContainer_do_get_inputs(self)
1796 def do_apply(self, sm):
1797 r"""do_apply(DynamicListQuadContainer self, QuadModifier sm)"""
1798 return _IMP_container.DynamicListQuadContainer_do_apply(self, sm)
1800 def do_apply_moved(self, sm, moved_pis, reset_pis):
1801 r"""do_apply_moved(DynamicListQuadContainer self, QuadModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
1802 return _IMP_container.DynamicListQuadContainer_do_apply_moved(self, sm, moved_pis, reset_pis)
1804 def get_version_info(self):
1805 r"""get_version_info(DynamicListQuadContainer self) -> VersionInfo"""
1806 return _IMP_container.DynamicListQuadContainer_get_version_info(self)
1807 __swig_destroy__ = _IMP_container.delete_DynamicListQuadContainer
1810 r"""__str__(DynamicListQuadContainer self) -> std::string"""
1811 return _IMP_container.DynamicListQuadContainer___str__(self)
1814 r"""__repr__(DynamicListQuadContainer self) -> std::string"""
1815 return _IMP_container.DynamicListQuadContainer___repr__(self)
1819 return _object_cast_to_DynamicListQuadContainer(o)
1823 _IMP_container.DynamicListQuadContainer_swigregister(DynamicListQuadContainer)
1825 r"""Proxy of C++ IMP::container::DynamicListSingletonContainer class."""
1827 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1829 def __init__(self, *args, **kwargs):
1830 raise AttributeError(
"No constructor defined - class is abstract")
1832 def add(self, *args):
1834 add(DynamicListSingletonContainer self, ParticleIndex vt)
1835 add(DynamicListSingletonContainer self, IMP::ParticleIndexes const & c)
1837 return _IMP_container.DynamicListSingletonContainer_add(self, *args)
1840 r"""set(DynamicListSingletonContainer self, IMP::ParticleIndexes cp)"""
1841 return _IMP_container.DynamicListSingletonContainer_set(self, cp)
1844 r"""clear(DynamicListSingletonContainer self)"""
1845 return _IMP_container.DynamicListSingletonContainer_clear(self)
1847 def do_get_inputs(self):
1848 r"""do_get_inputs(DynamicListSingletonContainer self) -> IMP::ModelObjectsTemp"""
1849 return _IMP_container.DynamicListSingletonContainer_do_get_inputs(self)
1851 def do_apply(self, sm):
1852 r"""do_apply(DynamicListSingletonContainer self, SingletonModifier sm)"""
1853 return _IMP_container.DynamicListSingletonContainer_do_apply(self, sm)
1855 def do_apply_moved(self, sm, moved_pis, reset_pis):
1856 r"""do_apply_moved(DynamicListSingletonContainer self, SingletonModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
1857 return _IMP_container.DynamicListSingletonContainer_do_apply_moved(self, sm, moved_pis, reset_pis)
1859 def get_version_info(self):
1860 r"""get_version_info(DynamicListSingletonContainer self) -> VersionInfo"""
1861 return _IMP_container.DynamicListSingletonContainer_get_version_info(self)
1862 __swig_destroy__ = _IMP_container.delete_DynamicListSingletonContainer
1865 r"""__str__(DynamicListSingletonContainer self) -> std::string"""
1866 return _IMP_container.DynamicListSingletonContainer___str__(self)
1869 r"""__repr__(DynamicListSingletonContainer self) -> std::string"""
1870 return _IMP_container.DynamicListSingletonContainer___repr__(self)
1874 return _object_cast_to_DynamicListSingletonContainer(o)
1878 _IMP_container.DynamicListSingletonContainer_swigregister(DynamicListSingletonContainer)
1880 r"""Proxy of C++ IMP::container::DynamicListTripletContainer class."""
1882 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1884 def __init__(self, *args, **kwargs):
1885 raise AttributeError(
"No constructor defined - class is abstract")
1887 def add(self, *args):
1889 add(DynamicListTripletContainer self, IMP::ParticleIndexTriplet const & vt)
1890 add(DynamicListTripletContainer self, IMP::ParticleIndexTriplets const & c)
1892 return _IMP_container.DynamicListTripletContainer_add(self, *args)
1895 r"""set(DynamicListTripletContainer self, IMP::ParticleIndexTriplets cp)"""
1896 return _IMP_container.DynamicListTripletContainer_set(self, cp)
1899 r"""clear(DynamicListTripletContainer self)"""
1900 return _IMP_container.DynamicListTripletContainer_clear(self)
1902 def do_get_inputs(self):
1903 r"""do_get_inputs(DynamicListTripletContainer self) -> IMP::ModelObjectsTemp"""
1904 return _IMP_container.DynamicListTripletContainer_do_get_inputs(self)
1906 def do_apply(self, sm):
1907 r"""do_apply(DynamicListTripletContainer self, TripletModifier sm)"""
1908 return _IMP_container.DynamicListTripletContainer_do_apply(self, sm)
1910 def do_apply_moved(self, sm, moved_pis, reset_pis):
1911 r"""do_apply_moved(DynamicListTripletContainer self, TripletModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
1912 return _IMP_container.DynamicListTripletContainer_do_apply_moved(self, sm, moved_pis, reset_pis)
1914 def get_version_info(self):
1915 r"""get_version_info(DynamicListTripletContainer self) -> VersionInfo"""
1916 return _IMP_container.DynamicListTripletContainer_get_version_info(self)
1917 __swig_destroy__ = _IMP_container.delete_DynamicListTripletContainer
1920 r"""__str__(DynamicListTripletContainer self) -> std::string"""
1921 return _IMP_container.DynamicListTripletContainer___str__(self)
1924 r"""__repr__(DynamicListTripletContainer self) -> std::string"""
1925 return _IMP_container.DynamicListTripletContainer___repr__(self)
1929 return _object_cast_to_DynamicListTripletContainer(o)
1933 _IMP_container.DynamicListTripletContainer_swigregister(DynamicListTripletContainer)
1935 r"""Proxy of C++ IMP::container::MinimumPairRestraint class."""
1937 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1939 def __init__(self, *args):
1940 r"""__init__(MinimumPairRestraint self, PairScore f, _PairContainerAdaptor c, unsigned int n=1, std::string name="MinimumPairRestraint %1%") -> MinimumPairRestraint"""
1941 _IMP_container.MinimumPairRestraint_swiginit(self, _IMP_container.new_MinimumPairRestraint(*args))
1943 def do_get_inputs(self):
1944 r"""do_get_inputs(MinimumPairRestraint self) -> IMP::ModelObjectsTemp"""
1945 return _IMP_container.MinimumPairRestraint_do_get_inputs(self)
1947 def get_version_info(self):
1948 r"""get_version_info(MinimumPairRestraint self) -> VersionInfo"""
1949 return _IMP_container.MinimumPairRestraint_get_version_info(self)
1950 __swig_destroy__ = _IMP_container.delete_MinimumPairRestraint
1953 r"""set_n(MinimumPairRestraint self, unsigned int n)"""
1954 return _IMP_container.MinimumPairRestraint_set_n(self, n)
1956 def do_create_current_decomposition(self):
1957 r"""do_create_current_decomposition(MinimumPairRestraint self) -> IMP::Restraints"""
1958 return _IMP_container.MinimumPairRestraint_do_create_current_decomposition(self)
1961 r"""__str__(MinimumPairRestraint self) -> std::string"""
1962 return _IMP_container.MinimumPairRestraint___str__(self)
1965 r"""__repr__(MinimumPairRestraint self) -> std::string"""
1966 return _IMP_container.MinimumPairRestraint___repr__(self)
1970 return _object_cast_to_MinimumPairRestraint(o)
1974 _IMP_container.MinimumPairRestraint_swigregister(MinimumPairRestraint)
1976 r"""Proxy of C++ IMP::container::MinimumPairScore class."""
1978 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1980 def __init__(self, *args):
1981 r"""__init__(MinimumPairScore self, IMP::PairScoresTemp const & scores, unsigned int n=1, std::string name="PairScore %1%") -> MinimumPairScore"""
1982 _IMP_container.MinimumPairScore_swiginit(self, _IMP_container.new_MinimumPairScore(*args))
1984 def do_get_inputs(self, m, pis):
1985 r"""do_get_inputs(MinimumPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
1986 return _IMP_container.MinimumPairScore_do_get_inputs(self, m, pis)
1988 def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
1989 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"""
1990 return _IMP_container.MinimumPairScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
1992 def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
1993 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"""
1994 return _IMP_container.MinimumPairScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
1996 def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
1997 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"""
1998 return _IMP_container.MinimumPairScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
2000 def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
2001 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"""
2002 return _IMP_container.MinimumPairScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
2004 def get_version_info(self):
2005 r"""get_version_info(MinimumPairScore self) -> VersionInfo"""
2006 return _IMP_container.MinimumPairScore_get_version_info(self)
2007 __swig_destroy__ = _IMP_container.delete_MinimumPairScore
2009 def do_create_current_decomposition(self, m, vt):
2010 r"""do_create_current_decomposition(MinimumPairScore self, Model m, IMP::ParticleIndexPair const & vt) -> IMP::Restraints"""
2011 return _IMP_container.MinimumPairScore_do_create_current_decomposition(self, m, vt)
2014 r"""__str__(MinimumPairScore self) -> std::string"""
2015 return _IMP_container.MinimumPairScore___str__(self)
2018 r"""__repr__(MinimumPairScore self) -> std::string"""
2019 return _IMP_container.MinimumPairScore___repr__(self)
2023 return _object_cast_to_MinimumPairScore(o)
2027 _IMP_container.MinimumPairScore_swigregister(MinimumPairScore)
2029 r"""Proxy of C++ IMP::container::MinimumQuadRestraint class."""
2031 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2033 def __init__(self, *args):
2034 r"""__init__(MinimumQuadRestraint self, QuadScore f, _QuadContainerAdaptor c, unsigned int n=1, std::string name="MinimumQuadRestraint %1%") -> MinimumQuadRestraint"""
2035 _IMP_container.MinimumQuadRestraint_swiginit(self, _IMP_container.new_MinimumQuadRestraint(*args))
2037 def do_get_inputs(self):
2038 r"""do_get_inputs(MinimumQuadRestraint self) -> IMP::ModelObjectsTemp"""
2039 return _IMP_container.MinimumQuadRestraint_do_get_inputs(self)
2041 def get_version_info(self):
2042 r"""get_version_info(MinimumQuadRestraint self) -> VersionInfo"""
2043 return _IMP_container.MinimumQuadRestraint_get_version_info(self)
2044 __swig_destroy__ = _IMP_container.delete_MinimumQuadRestraint
2047 r"""set_n(MinimumQuadRestraint self, unsigned int n)"""
2048 return _IMP_container.MinimumQuadRestraint_set_n(self, n)
2050 def do_create_current_decomposition(self):
2051 r"""do_create_current_decomposition(MinimumQuadRestraint self) -> IMP::Restraints"""
2052 return _IMP_container.MinimumQuadRestraint_do_create_current_decomposition(self)
2055 r"""__str__(MinimumQuadRestraint self) -> std::string"""
2056 return _IMP_container.MinimumQuadRestraint___str__(self)
2059 r"""__repr__(MinimumQuadRestraint self) -> std::string"""
2060 return _IMP_container.MinimumQuadRestraint___repr__(self)
2064 return _object_cast_to_MinimumQuadRestraint(o)
2068 _IMP_container.MinimumQuadRestraint_swigregister(MinimumQuadRestraint)
2070 r"""Proxy of C++ IMP::container::MinimumQuadScore class."""
2072 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2074 def __init__(self, *args):
2075 r"""__init__(MinimumQuadScore self, IMP::QuadScoresTemp const & scores, unsigned int n=1, std::string name="QuadScore %1%") -> MinimumQuadScore"""
2076 _IMP_container.MinimumQuadScore_swiginit(self, _IMP_container.new_MinimumQuadScore(*args))
2078 def do_get_inputs(self, m, pis):
2079 r"""do_get_inputs(MinimumQuadScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
2080 return _IMP_container.MinimumQuadScore_do_get_inputs(self, m, pis)
2082 def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
2083 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"""
2084 return _IMP_container.MinimumQuadScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
2086 def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
2087 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"""
2088 return _IMP_container.MinimumQuadScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
2090 def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
2091 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"""
2092 return _IMP_container.MinimumQuadScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
2094 def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
2095 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"""
2096 return _IMP_container.MinimumQuadScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
2098 def get_version_info(self):
2099 r"""get_version_info(MinimumQuadScore self) -> VersionInfo"""
2100 return _IMP_container.MinimumQuadScore_get_version_info(self)
2101 __swig_destroy__ = _IMP_container.delete_MinimumQuadScore
2103 def do_create_current_decomposition(self, m, vt):
2104 r"""do_create_current_decomposition(MinimumQuadScore self, Model m, IMP::ParticleIndexQuad const & vt) -> IMP::Restraints"""
2105 return _IMP_container.MinimumQuadScore_do_create_current_decomposition(self, m, vt)
2108 r"""__str__(MinimumQuadScore self) -> std::string"""
2109 return _IMP_container.MinimumQuadScore___str__(self)
2112 r"""__repr__(MinimumQuadScore self) -> std::string"""
2113 return _IMP_container.MinimumQuadScore___repr__(self)
2117 return _object_cast_to_MinimumQuadScore(o)
2121 _IMP_container.MinimumQuadScore_swigregister(MinimumQuadScore)
2123 r"""Proxy of C++ IMP::container::MinimumSingletonRestraint class."""
2125 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2127 def __init__(self, *args):
2128 r"""__init__(MinimumSingletonRestraint self, SingletonScore f, _SingletonContainerAdaptor c, unsigned int n=1, std::string name="MinimumSingletonRestraint %1%") -> MinimumSingletonRestraint"""
2129 _IMP_container.MinimumSingletonRestraint_swiginit(self, _IMP_container.new_MinimumSingletonRestraint(*args))
2131 def do_get_inputs(self):
2132 r"""do_get_inputs(MinimumSingletonRestraint self) -> IMP::ModelObjectsTemp"""
2133 return _IMP_container.MinimumSingletonRestraint_do_get_inputs(self)
2135 def get_version_info(self):
2136 r"""get_version_info(MinimumSingletonRestraint self) -> VersionInfo"""
2137 return _IMP_container.MinimumSingletonRestraint_get_version_info(self)
2138 __swig_destroy__ = _IMP_container.delete_MinimumSingletonRestraint
2141 r"""set_n(MinimumSingletonRestraint self, unsigned int n)"""
2142 return _IMP_container.MinimumSingletonRestraint_set_n(self, n)
2144 def do_create_current_decomposition(self):
2145 r"""do_create_current_decomposition(MinimumSingletonRestraint self) -> IMP::Restraints"""
2146 return _IMP_container.MinimumSingletonRestraint_do_create_current_decomposition(self)
2149 r"""__str__(MinimumSingletonRestraint self) -> std::string"""
2150 return _IMP_container.MinimumSingletonRestraint___str__(self)
2153 r"""__repr__(MinimumSingletonRestraint self) -> std::string"""
2154 return _IMP_container.MinimumSingletonRestraint___repr__(self)
2158 return _object_cast_to_MinimumSingletonRestraint(o)
2162 _IMP_container.MinimumSingletonRestraint_swigregister(MinimumSingletonRestraint)
2164 r"""Proxy of C++ IMP::container::MinimumSingletonScore class."""
2166 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2168 def __init__(self, *args):
2169 r"""__init__(MinimumSingletonScore self, IMP::SingletonScoresTemp const & scores, unsigned int n=1, std::string name="SingletonScore %1%") -> MinimumSingletonScore"""
2170 _IMP_container.MinimumSingletonScore_swiginit(self, _IMP_container.new_MinimumSingletonScore(*args))
2172 def do_get_inputs(self, m, pis):
2173 r"""do_get_inputs(MinimumSingletonScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
2174 return _IMP_container.MinimumSingletonScore_do_get_inputs(self, m, pis)
2176 def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
2177 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"""
2178 return _IMP_container.MinimumSingletonScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
2180 def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
2181 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"""
2182 return _IMP_container.MinimumSingletonScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
2184 def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
2185 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"""
2186 return _IMP_container.MinimumSingletonScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
2188 def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
2189 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"""
2190 return _IMP_container.MinimumSingletonScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
2192 def get_version_info(self):
2193 r"""get_version_info(MinimumSingletonScore self) -> VersionInfo"""
2194 return _IMP_container.MinimumSingletonScore_get_version_info(self)
2195 __swig_destroy__ = _IMP_container.delete_MinimumSingletonScore
2197 def do_create_current_decomposition(self, m, vt):
2198 r"""do_create_current_decomposition(MinimumSingletonScore self, Model m, ParticleIndex vt) -> IMP::Restraints"""
2199 return _IMP_container.MinimumSingletonScore_do_create_current_decomposition(self, m, vt)
2202 r"""__str__(MinimumSingletonScore self) -> std::string"""
2203 return _IMP_container.MinimumSingletonScore___str__(self)
2206 r"""__repr__(MinimumSingletonScore self) -> std::string"""
2207 return _IMP_container.MinimumSingletonScore___repr__(self)
2211 return _object_cast_to_MinimumSingletonScore(o)
2215 _IMP_container.MinimumSingletonScore_swigregister(MinimumSingletonScore)
2217 r"""Proxy of C++ IMP::container::MinimumTripletRestraint class."""
2219 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2221 def __init__(self, *args):
2222 r"""__init__(MinimumTripletRestraint self, TripletScore f, _TripletContainerAdaptor c, unsigned int n=1, std::string name="MinimumTripletRestraint %1%") -> MinimumTripletRestraint"""
2223 _IMP_container.MinimumTripletRestraint_swiginit(self, _IMP_container.new_MinimumTripletRestraint(*args))
2225 def do_get_inputs(self):
2226 r"""do_get_inputs(MinimumTripletRestraint self) -> IMP::ModelObjectsTemp"""
2227 return _IMP_container.MinimumTripletRestraint_do_get_inputs(self)
2229 def get_version_info(self):
2230 r"""get_version_info(MinimumTripletRestraint self) -> VersionInfo"""
2231 return _IMP_container.MinimumTripletRestraint_get_version_info(self)
2232 __swig_destroy__ = _IMP_container.delete_MinimumTripletRestraint
2235 r"""set_n(MinimumTripletRestraint self, unsigned int n)"""
2236 return _IMP_container.MinimumTripletRestraint_set_n(self, n)
2238 def do_create_current_decomposition(self):
2239 r"""do_create_current_decomposition(MinimumTripletRestraint self) -> IMP::Restraints"""
2240 return _IMP_container.MinimumTripletRestraint_do_create_current_decomposition(self)
2243 r"""__str__(MinimumTripletRestraint self) -> std::string"""
2244 return _IMP_container.MinimumTripletRestraint___str__(self)
2247 r"""__repr__(MinimumTripletRestraint self) -> std::string"""
2248 return _IMP_container.MinimumTripletRestraint___repr__(self)
2252 return _object_cast_to_MinimumTripletRestraint(o)
2256 _IMP_container.MinimumTripletRestraint_swigregister(MinimumTripletRestraint)
2258 r"""Proxy of C++ IMP::container::MinimumTripletScore class."""
2260 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2262 def __init__(self, *args):
2263 r"""__init__(MinimumTripletScore self, IMP::TripletScoresTemp const & scores, unsigned int n=1, std::string name="TripletScore %1%") -> MinimumTripletScore"""
2264 _IMP_container.MinimumTripletScore_swiginit(self, _IMP_container.new_MinimumTripletScore(*args))
2266 def do_get_inputs(self, m, pis):
2267 r"""do_get_inputs(MinimumTripletScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
2268 return _IMP_container.MinimumTripletScore_do_get_inputs(self, m, pis)
2270 def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
2271 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"""
2272 return _IMP_container.MinimumTripletScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
2274 def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
2275 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"""
2276 return _IMP_container.MinimumTripletScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
2278 def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
2279 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"""
2280 return _IMP_container.MinimumTripletScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
2282 def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
2283 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"""
2284 return _IMP_container.MinimumTripletScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
2286 def get_version_info(self):
2287 r"""get_version_info(MinimumTripletScore self) -> VersionInfo"""
2288 return _IMP_container.MinimumTripletScore_get_version_info(self)
2289 __swig_destroy__ = _IMP_container.delete_MinimumTripletScore
2291 def do_create_current_decomposition(self, m, vt):
2292 r"""do_create_current_decomposition(MinimumTripletScore self, Model m, IMP::ParticleIndexTriplet const & vt) -> IMP::Restraints"""
2293 return _IMP_container.MinimumTripletScore_do_create_current_decomposition(self, m, vt)
2296 r"""__str__(MinimumTripletScore self) -> std::string"""
2297 return _IMP_container.MinimumTripletScore___str__(self)
2300 r"""__repr__(MinimumTripletScore self) -> std::string"""
2301 return _IMP_container.MinimumTripletScore___repr__(self)
2305 return _object_cast_to_MinimumTripletScore(o)
2309 _IMP_container.MinimumTripletScore_swigregister(MinimumTripletScore)
2311 r"""Proxy of C++ IMP::container::PairContainerSet class."""
2313 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2315 def __init__(self, *args):
2317 __init__(PairContainerSet self, Model m, std::string name="PairContainerSet %1%") -> PairContainerSet
2318 __init__(PairContainerSet self, IMP::PairContainersTemp const & pc, std::string name="PairContainerSet %1%") -> PairContainerSet
2320 _IMP_container.PairContainerSet_swiginit(self, _IMP_container.new_PairContainerSet(*args))
2322 def do_apply(self, sm):
2323 r"""do_apply(PairContainerSet self, PairModifier sm)"""
2324 return _IMP_container.PairContainerSet_do_apply(self, sm)
2326 def do_apply_moved(self, sm, moved_pis, reset_pis):
2327 r"""do_apply_moved(PairContainerSet self, PairModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
2328 return _IMP_container.PairContainerSet_do_apply_moved(self, sm, moved_pis, reset_pis)
2330 def get_version_info(self):
2331 r"""get_version_info(PairContainerSet self) -> VersionInfo"""
2332 return _IMP_container.PairContainerSet_get_version_info(self)
2333 __swig_destroy__ = _IMP_container.delete_PairContainerSet
2334 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)
2335 def __set_pair_containers(self, obj): IMP._list_util.set_varlist(self.pair_containers, obj)
2336 def __del_pair_containers(self): IMP._list_util.del_varlist(self.pair_containers)
2337 pair_containers = property(__get_pair_containers, __set_pair_containers, __del_pair_containers, doc=
"List of ##ucnames")
2339 def remove_pair_container(self, d):
2340 r"""remove_pair_container(PairContainerSet self, PairContainer d)"""
2341 return _IMP_container.PairContainerSet_remove_pair_container(self, d)
2343 def _python_index_pair_container(self, d, start, stop):
2344 r"""_python_index_pair_container(PairContainerSet self, PairContainer d, unsigned int start, unsigned int stop) -> unsigned int"""
2345 return _IMP_container.PairContainerSet__python_index_pair_container(self, d, start, stop)
2347 def remove_pair_containers(self, d):
2348 r"""remove_pair_containers(PairContainerSet self, IMP::PairContainers const & d)"""
2349 return _IMP_container.PairContainerSet_remove_pair_containers(self, d)
2351 def set_pair_containers(self, ps):
2352 r"""set_pair_containers(PairContainerSet self, IMP::PairContainers const & ps)"""
2353 return _IMP_container.PairContainerSet_set_pair_containers(self, ps)
2355 def set_pair_containers_order(self, objs):
2356 r"""set_pair_containers_order(PairContainerSet self, IMP::PairContainers const & objs)"""
2357 return _IMP_container.PairContainerSet_set_pair_containers_order(self, objs)
2359 def add_pair_container(self, obj):
2360 r"""add_pair_container(PairContainerSet self, PairContainer obj) -> unsigned int"""
2361 return _IMP_container.PairContainerSet_add_pair_container(self, obj)
2363 def add_pair_containers(self, objs):
2364 r"""add_pair_containers(PairContainerSet self, IMP::PairContainers const & objs)"""
2365 return _IMP_container.PairContainerSet_add_pair_containers(self, objs)
2367 def clear_pair_containers(self):
2368 r"""clear_pair_containers(PairContainerSet self)"""
2369 return _IMP_container.PairContainerSet_clear_pair_containers(self)
2371 def get_number_of_pair_containers(self):
2372 r"""get_number_of_pair_containers(PairContainerSet self) -> unsigned int"""
2373 return _IMP_container.PairContainerSet_get_number_of_pair_containers(self)
2375 def get_has_pair_containers(self):
2376 r"""get_has_pair_containers(PairContainerSet self) -> bool"""
2377 return _IMP_container.PairContainerSet_get_has_pair_containers(self)
2379 def get_pair_container(self, i):
2380 r"""get_pair_container(PairContainerSet self, unsigned int i) -> PairContainer"""
2381 return _IMP_container.PairContainerSet_get_pair_container(self, i)
2383 def get_pair_containers(self):
2384 r"""get_pair_containers(PairContainerSet self) -> IMP::PairContainers"""
2385 return _IMP_container.PairContainerSet_get_pair_containers(self)
2387 def erase_pair_container(self, i):
2388 r"""erase_pair_container(PairContainerSet self, unsigned int i)"""
2389 return _IMP_container.PairContainerSet_erase_pair_container(self, i)
2391 def reserve_pair_containers(self, sz):
2392 r"""reserve_pair_containers(PairContainerSet self, unsigned int sz)"""
2393 return _IMP_container.PairContainerSet_reserve_pair_containers(self, sz)
2395 def do_get_inputs(self):
2396 r"""do_get_inputs(PairContainerSet self) -> IMP::ModelObjectsTemp"""
2397 return _IMP_container.PairContainerSet_do_get_inputs(self)
2400 r"""__str__(PairContainerSet self) -> std::string"""
2401 return _IMP_container.PairContainerSet___str__(self)
2404 r"""__repr__(PairContainerSet self) -> std::string"""
2405 return _IMP_container.PairContainerSet___repr__(self)
2409 return _object_cast_to_PairContainerSet(o)
2413 _IMP_container.PairContainerSet_swigregister(PairContainerSet)
2415 r"""Proxy of C++ IMP::container::PairsConstraint class."""
2417 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2419 def __init__(self, *args):
2421 __init__(PairsConstraint self, PairModifier before, PairModifier after, _PairContainerAdaptor c, std::string name="PairsConstraint %1%") -> PairsConstraint
2422 __init__(PairsConstraint self) -> PairsConstraint
2424 _IMP_container.PairsConstraint_swiginit(self, _IMP_container.new_PairsConstraint(*args))
2426 def get_before_modifier(self):
2427 r"""get_before_modifier(PairsConstraint self) -> PairModifier"""
2428 return _IMP_container.PairsConstraint_get_before_modifier(self)
2430 def get_container(self):
2431 r"""get_container(PairsConstraint self) -> PairContainer"""
2432 return _IMP_container.PairsConstraint_get_container(self)
2434 def get_version_info(self):
2435 r"""get_version_info(PairsConstraint self) -> VersionInfo"""
2436 return _IMP_container.PairsConstraint_get_version_info(self)
2437 __swig_destroy__ = _IMP_container.delete_PairsConstraint
2440 r"""__str__(PairsConstraint self) -> std::string"""
2441 return _IMP_container.PairsConstraint___str__(self)
2444 r"""__repr__(PairsConstraint self) -> std::string"""
2445 return _IMP_container.PairsConstraint___repr__(self)
2449 return _object_cast_to_PairsConstraint(o)
2452 def _get_as_binary(self):
2453 r"""_get_as_binary(PairsConstraint self) -> PyObject *"""
2454 return _IMP_container.PairsConstraint__get_as_binary(self)
2456 def _set_from_binary(self, p):
2457 r"""_set_from_binary(PairsConstraint self, PyObject * p)"""
2458 return _IMP_container.PairsConstraint__set_from_binary(self, p)
2460 def __getstate__(self):
2461 p = self._get_as_binary()
2462 if len(self.__dict__) > 1:
2463 d = self.__dict__.copy()
2468 def __setstate__(self, p):
2469 if not hasattr(self,
'this'):
2471 if isinstance(p, tuple):
2473 self.__dict__.update(d)
2474 return self._set_from_binary(p)
2478 _IMP_container.PairsConstraint_swigregister(PairsConstraint)
2480 r"""Proxy of C++ IMP::container::PairsOptimizerState class."""
2482 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2484 def __init__(self, *args):
2485 r"""__init__(PairsOptimizerState self, _PairContainerAdaptor c, PairModifier gf, std::string name="PairsOptimizerState %1%") -> PairsOptimizerState"""
2486 _IMP_container.PairsOptimizerState_swiginit(self, _IMP_container.new_PairsOptimizerState(*args))
2488 def do_update(self, call):
2489 r"""do_update(PairsOptimizerState self, unsigned int call)"""
2490 return _IMP_container.PairsOptimizerState_do_update(self, call)
2492 def get_version_info(self):
2493 r"""get_version_info(PairsOptimizerState self) -> VersionInfo"""
2494 return _IMP_container.PairsOptimizerState_get_version_info(self)
2495 __swig_destroy__ = _IMP_container.delete_PairsOptimizerState
2498 r"""__str__(PairsOptimizerState self) -> std::string"""
2499 return _IMP_container.PairsOptimizerState___str__(self)
2502 r"""__repr__(PairsOptimizerState self) -> std::string"""
2503 return _IMP_container.PairsOptimizerState___repr__(self)
2507 return _object_cast_to_PairsOptimizerState(o)
2511 _IMP_container.PairsOptimizerState_swigregister(PairsOptimizerState)
2513 r"""Proxy of C++ IMP::container::PairsRestraint class."""
2515 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2517 def __init__(self, *args):
2519 __init__(PairsRestraint self, PairScore ss, _PairContainerAdaptor pc, std::string name="PairsRestraint %1%") -> PairsRestraint
2520 __init__(PairsRestraint self) -> PairsRestraint
2522 _IMP_container.PairsRestraint_swiginit(self, _IMP_container.new_PairsRestraint(*args))
2524 def get_score_object(self):
2525 r"""get_score_object(PairsRestraint self) -> PairScore"""
2526 return _IMP_container.PairsRestraint_get_score_object(self)
2528 def get_container(self):
2529 r"""get_container(PairsRestraint self) -> PairContainer"""
2530 return _IMP_container.PairsRestraint_get_container(self)
2532 def do_get_inputs(self):
2533 r"""do_get_inputs(PairsRestraint self) -> IMP::ModelObjectsTemp"""
2534 return _IMP_container.PairsRestraint_do_get_inputs(self)
2536 def get_version_info(self):
2537 r"""get_version_info(PairsRestraint self) -> VersionInfo"""
2538 return _IMP_container.PairsRestraint_get_version_info(self)
2539 __swig_destroy__ = _IMP_container.delete_PairsRestraint
2542 r"""__str__(PairsRestraint self) -> std::string"""
2543 return _IMP_container.PairsRestraint___str__(self)
2546 r"""__repr__(PairsRestraint self) -> std::string"""
2547 return _IMP_container.PairsRestraint___repr__(self)
2551 return _object_cast_to_PairsRestraint(o)
2554 def _get_as_binary(self):
2555 r"""_get_as_binary(PairsRestraint self) -> PyObject *"""
2556 return _IMP_container.PairsRestraint__get_as_binary(self)
2558 def _set_from_binary(self, p):
2559 r"""_set_from_binary(PairsRestraint self, PyObject * p)"""
2560 return _IMP_container.PairsRestraint__set_from_binary(self, p)
2562 def __getstate__(self):
2563 p = self._get_as_binary()
2564 if len(self.__dict__) > 1:
2565 d = self.__dict__.copy()
2570 def __setstate__(self, p):
2571 if not hasattr(self,
'this'):
2573 if isinstance(p, tuple):
2575 self.__dict__.update(d)
2576 return self._set_from_binary(p)
2580 from .
import _jax_util
2581 return _jax_util._get_jax_container_restraint(self)
2585 _IMP_container.PairsRestraint_swigregister(PairsRestraint)
2587 r"""Proxy of C++ IMP::container::QuadContainerSet class."""
2589 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2591 def __init__(self, *args):
2593 __init__(QuadContainerSet self, Model m, std::string name="QuadContainerSet %1%") -> QuadContainerSet
2594 __init__(QuadContainerSet self, IMP::QuadContainersTemp const & pc, std::string name="QuadContainerSet %1%") -> QuadContainerSet
2596 _IMP_container.QuadContainerSet_swiginit(self, _IMP_container.new_QuadContainerSet(*args))
2598 def do_apply(self, sm):
2599 r"""do_apply(QuadContainerSet self, QuadModifier sm)"""
2600 return _IMP_container.QuadContainerSet_do_apply(self, sm)
2602 def do_apply_moved(self, sm, moved_pis, reset_pis):
2603 r"""do_apply_moved(QuadContainerSet self, QuadModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
2604 return _IMP_container.QuadContainerSet_do_apply_moved(self, sm, moved_pis, reset_pis)
2606 def get_version_info(self):
2607 r"""get_version_info(QuadContainerSet self) -> VersionInfo"""
2608 return _IMP_container.QuadContainerSet_get_version_info(self)
2609 __swig_destroy__ = _IMP_container.delete_QuadContainerSet
2610 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)
2611 def __set_quad_containers(self, obj): IMP._list_util.set_varlist(self.quad_containers, obj)
2612 def __del_quad_containers(self): IMP._list_util.del_varlist(self.quad_containers)
2613 quad_containers = property(__get_quad_containers, __set_quad_containers, __del_quad_containers, doc=
"List of ##ucnames")
2615 def remove_quad_container(self, d):
2616 r"""remove_quad_container(QuadContainerSet self, QuadContainer d)"""
2617 return _IMP_container.QuadContainerSet_remove_quad_container(self, d)
2619 def _python_index_quad_container(self, d, start, stop):
2620 r"""_python_index_quad_container(QuadContainerSet self, QuadContainer d, unsigned int start, unsigned int stop) -> unsigned int"""
2621 return _IMP_container.QuadContainerSet__python_index_quad_container(self, d, start, stop)
2623 def remove_quad_containers(self, d):
2624 r"""remove_quad_containers(QuadContainerSet self, IMP::QuadContainers const & d)"""
2625 return _IMP_container.QuadContainerSet_remove_quad_containers(self, d)
2627 def set_quad_containers(self, ps):
2628 r"""set_quad_containers(QuadContainerSet self, IMP::QuadContainers const & ps)"""
2629 return _IMP_container.QuadContainerSet_set_quad_containers(self, ps)
2631 def set_quad_containers_order(self, objs):
2632 r"""set_quad_containers_order(QuadContainerSet self, IMP::QuadContainers const & objs)"""
2633 return _IMP_container.QuadContainerSet_set_quad_containers_order(self, objs)
2635 def add_quad_container(self, obj):
2636 r"""add_quad_container(QuadContainerSet self, QuadContainer obj) -> unsigned int"""
2637 return _IMP_container.QuadContainerSet_add_quad_container(self, obj)
2639 def add_quad_containers(self, objs):
2640 r"""add_quad_containers(QuadContainerSet self, IMP::QuadContainers const & objs)"""
2641 return _IMP_container.QuadContainerSet_add_quad_containers(self, objs)
2643 def clear_quad_containers(self):
2644 r"""clear_quad_containers(QuadContainerSet self)"""
2645 return _IMP_container.QuadContainerSet_clear_quad_containers(self)
2647 def get_number_of_quad_containers(self):
2648 r"""get_number_of_quad_containers(QuadContainerSet self) -> unsigned int"""
2649 return _IMP_container.QuadContainerSet_get_number_of_quad_containers(self)
2651 def get_has_quad_containers(self):
2652 r"""get_has_quad_containers(QuadContainerSet self) -> bool"""
2653 return _IMP_container.QuadContainerSet_get_has_quad_containers(self)
2655 def get_quad_container(self, i):
2656 r"""get_quad_container(QuadContainerSet self, unsigned int i) -> QuadContainer"""
2657 return _IMP_container.QuadContainerSet_get_quad_container(self, i)
2659 def get_quad_containers(self):
2660 r"""get_quad_containers(QuadContainerSet self) -> IMP::QuadContainers"""
2661 return _IMP_container.QuadContainerSet_get_quad_containers(self)
2663 def erase_quad_container(self, i):
2664 r"""erase_quad_container(QuadContainerSet self, unsigned int i)"""
2665 return _IMP_container.QuadContainerSet_erase_quad_container(self, i)
2667 def reserve_quad_containers(self, sz):
2668 r"""reserve_quad_containers(QuadContainerSet self, unsigned int sz)"""
2669 return _IMP_container.QuadContainerSet_reserve_quad_containers(self, sz)
2671 def do_get_inputs(self):
2672 r"""do_get_inputs(QuadContainerSet self) -> IMP::ModelObjectsTemp"""
2673 return _IMP_container.QuadContainerSet_do_get_inputs(self)
2676 r"""__str__(QuadContainerSet self) -> std::string"""
2677 return _IMP_container.QuadContainerSet___str__(self)
2680 r"""__repr__(QuadContainerSet self) -> std::string"""
2681 return _IMP_container.QuadContainerSet___repr__(self)
2685 return _object_cast_to_QuadContainerSet(o)
2689 _IMP_container.QuadContainerSet_swigregister(QuadContainerSet)
2691 r"""Proxy of C++ IMP::container::QuadsConstraint class."""
2693 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2695 def __init__(self, *args):
2697 __init__(QuadsConstraint self, QuadModifier before, QuadModifier after, _QuadContainerAdaptor c, std::string name="QuadsConstraint %1%") -> QuadsConstraint
2698 __init__(QuadsConstraint self) -> QuadsConstraint
2700 _IMP_container.QuadsConstraint_swiginit(self, _IMP_container.new_QuadsConstraint(*args))
2702 def get_before_modifier(self):
2703 r"""get_before_modifier(QuadsConstraint self) -> QuadModifier"""
2704 return _IMP_container.QuadsConstraint_get_before_modifier(self)
2706 def get_container(self):
2707 r"""get_container(QuadsConstraint self) -> QuadContainer"""
2708 return _IMP_container.QuadsConstraint_get_container(self)
2710 def get_version_info(self):
2711 r"""get_version_info(QuadsConstraint self) -> VersionInfo"""
2712 return _IMP_container.QuadsConstraint_get_version_info(self)
2713 __swig_destroy__ = _IMP_container.delete_QuadsConstraint
2716 r"""__str__(QuadsConstraint self) -> std::string"""
2717 return _IMP_container.QuadsConstraint___str__(self)
2720 r"""__repr__(QuadsConstraint self) -> std::string"""
2721 return _IMP_container.QuadsConstraint___repr__(self)
2725 return _object_cast_to_QuadsConstraint(o)
2728 def _get_as_binary(self):
2729 r"""_get_as_binary(QuadsConstraint self) -> PyObject *"""
2730 return _IMP_container.QuadsConstraint__get_as_binary(self)
2732 def _set_from_binary(self, p):
2733 r"""_set_from_binary(QuadsConstraint self, PyObject * p)"""
2734 return _IMP_container.QuadsConstraint__set_from_binary(self, p)
2736 def __getstate__(self):
2737 p = self._get_as_binary()
2738 if len(self.__dict__) > 1:
2739 d = self.__dict__.copy()
2744 def __setstate__(self, p):
2745 if not hasattr(self,
'this'):
2747 if isinstance(p, tuple):
2749 self.__dict__.update(d)
2750 return self._set_from_binary(p)
2754 _IMP_container.QuadsConstraint_swigregister(QuadsConstraint)
2756 r"""Proxy of C++ IMP::container::QuadsOptimizerState class."""
2758 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2760 def __init__(self, *args):
2761 r"""__init__(QuadsOptimizerState self, _QuadContainerAdaptor c, QuadModifier gf, std::string name="QuadsOptimizerState %1%") -> QuadsOptimizerState"""
2762 _IMP_container.QuadsOptimizerState_swiginit(self, _IMP_container.new_QuadsOptimizerState(*args))
2764 def do_update(self, call):
2765 r"""do_update(QuadsOptimizerState self, unsigned int call)"""
2766 return _IMP_container.QuadsOptimizerState_do_update(self, call)
2768 def get_version_info(self):
2769 r"""get_version_info(QuadsOptimizerState self) -> VersionInfo"""
2770 return _IMP_container.QuadsOptimizerState_get_version_info(self)
2771 __swig_destroy__ = _IMP_container.delete_QuadsOptimizerState
2774 r"""__str__(QuadsOptimizerState self) -> std::string"""
2775 return _IMP_container.QuadsOptimizerState___str__(self)
2778 r"""__repr__(QuadsOptimizerState self) -> std::string"""
2779 return _IMP_container.QuadsOptimizerState___repr__(self)
2783 return _object_cast_to_QuadsOptimizerState(o)
2787 _IMP_container.QuadsOptimizerState_swigregister(QuadsOptimizerState)
2789 r"""Proxy of C++ IMP::container::QuadsRestraint class."""
2791 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2793 def __init__(self, *args):
2795 __init__(QuadsRestraint self, QuadScore ss, _QuadContainerAdaptor pc, std::string name="QuadsRestraint %1%") -> QuadsRestraint
2796 __init__(QuadsRestraint self) -> QuadsRestraint
2798 _IMP_container.QuadsRestraint_swiginit(self, _IMP_container.new_QuadsRestraint(*args))
2800 def get_score_object(self):
2801 r"""get_score_object(QuadsRestraint self) -> QuadScore"""
2802 return _IMP_container.QuadsRestraint_get_score_object(self)
2804 def get_container(self):
2805 r"""get_container(QuadsRestraint self) -> QuadContainer"""
2806 return _IMP_container.QuadsRestraint_get_container(self)
2808 def do_get_inputs(self):
2809 r"""do_get_inputs(QuadsRestraint self) -> IMP::ModelObjectsTemp"""
2810 return _IMP_container.QuadsRestraint_do_get_inputs(self)
2812 def get_version_info(self):
2813 r"""get_version_info(QuadsRestraint self) -> VersionInfo"""
2814 return _IMP_container.QuadsRestraint_get_version_info(self)
2815 __swig_destroy__ = _IMP_container.delete_QuadsRestraint
2818 r"""__str__(QuadsRestraint self) -> std::string"""
2819 return _IMP_container.QuadsRestraint___str__(self)
2822 r"""__repr__(QuadsRestraint self) -> std::string"""
2823 return _IMP_container.QuadsRestraint___repr__(self)
2827 return _object_cast_to_QuadsRestraint(o)
2830 def _get_as_binary(self):
2831 r"""_get_as_binary(QuadsRestraint self) -> PyObject *"""
2832 return _IMP_container.QuadsRestraint__get_as_binary(self)
2834 def _set_from_binary(self, p):
2835 r"""_set_from_binary(QuadsRestraint self, PyObject * p)"""
2836 return _IMP_container.QuadsRestraint__set_from_binary(self, p)
2838 def __getstate__(self):
2839 p = self._get_as_binary()
2840 if len(self.__dict__) > 1:
2841 d = self.__dict__.copy()
2846 def __setstate__(self, p):
2847 if not hasattr(self,
'this'):
2849 if isinstance(p, tuple):
2851 self.__dict__.update(d)
2852 return self._set_from_binary(p)
2856 _IMP_container.QuadsRestraint_swigregister(QuadsRestraint)
2858 r"""Proxy of C++ IMP::container::SingletonContainerSet class."""
2860 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2862 def __init__(self, *args):
2864 __init__(SingletonContainerSet self, Model m, std::string name="SingletonContainerSet %1%") -> SingletonContainerSet
2865 __init__(SingletonContainerSet self, IMP::SingletonContainersTemp const & pc, std::string name="SingletonContainerSet %1%") -> SingletonContainerSet
2867 _IMP_container.SingletonContainerSet_swiginit(self, _IMP_container.new_SingletonContainerSet(*args))
2869 def do_apply(self, sm):
2870 r"""do_apply(SingletonContainerSet self, SingletonModifier sm)"""
2871 return _IMP_container.SingletonContainerSet_do_apply(self, sm)
2873 def do_apply_moved(self, sm, moved_pis, reset_pis):
2874 r"""do_apply_moved(SingletonContainerSet self, SingletonModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
2875 return _IMP_container.SingletonContainerSet_do_apply_moved(self, sm, moved_pis, reset_pis)
2877 def get_version_info(self):
2878 r"""get_version_info(SingletonContainerSet self) -> VersionInfo"""
2879 return _IMP_container.SingletonContainerSet_get_version_info(self)
2880 __swig_destroy__ = _IMP_container.delete_SingletonContainerSet
2881 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)
2882 def __set_singleton_containers(self, obj): IMP._list_util.set_varlist(self.singleton_containers, obj)
2883 def __del_singleton_containers(self): IMP._list_util.del_varlist(self.singleton_containers)
2884 singleton_containers = property(__get_singleton_containers, __set_singleton_containers, __del_singleton_containers, doc=
"List of ##ucnames")
2886 def remove_singleton_container(self, d):
2887 r"""remove_singleton_container(SingletonContainerSet self, SingletonContainer d)"""
2888 return _IMP_container.SingletonContainerSet_remove_singleton_container(self, d)
2890 def _python_index_singleton_container(self, d, start, stop):
2891 r"""_python_index_singleton_container(SingletonContainerSet self, SingletonContainer d, unsigned int start, unsigned int stop) -> unsigned int"""
2892 return _IMP_container.SingletonContainerSet__python_index_singleton_container(self, d, start, stop)
2894 def remove_singleton_containers(self, d):
2895 r"""remove_singleton_containers(SingletonContainerSet self, IMP::SingletonContainers const & d)"""
2896 return _IMP_container.SingletonContainerSet_remove_singleton_containers(self, d)
2898 def set_singleton_containers(self, ps):
2899 r"""set_singleton_containers(SingletonContainerSet self, IMP::SingletonContainers const & ps)"""
2900 return _IMP_container.SingletonContainerSet_set_singleton_containers(self, ps)
2902 def set_singleton_containers_order(self, objs):
2903 r"""set_singleton_containers_order(SingletonContainerSet self, IMP::SingletonContainers const & objs)"""
2904 return _IMP_container.SingletonContainerSet_set_singleton_containers_order(self, objs)
2906 def add_singleton_container(self, obj):
2907 r"""add_singleton_container(SingletonContainerSet self, SingletonContainer obj) -> unsigned int"""
2908 return _IMP_container.SingletonContainerSet_add_singleton_container(self, obj)
2910 def add_singleton_containers(self, objs):
2911 r"""add_singleton_containers(SingletonContainerSet self, IMP::SingletonContainers const & objs)"""
2912 return _IMP_container.SingletonContainerSet_add_singleton_containers(self, objs)
2914 def clear_singleton_containers(self):
2915 r"""clear_singleton_containers(SingletonContainerSet self)"""
2916 return _IMP_container.SingletonContainerSet_clear_singleton_containers(self)
2918 def get_number_of_singleton_containers(self):
2919 r"""get_number_of_singleton_containers(SingletonContainerSet self) -> unsigned int"""
2920 return _IMP_container.SingletonContainerSet_get_number_of_singleton_containers(self)
2922 def get_has_singleton_containers(self):
2923 r"""get_has_singleton_containers(SingletonContainerSet self) -> bool"""
2924 return _IMP_container.SingletonContainerSet_get_has_singleton_containers(self)
2926 def get_singleton_container(self, i):
2927 r"""get_singleton_container(SingletonContainerSet self, unsigned int i) -> SingletonContainer"""
2928 return _IMP_container.SingletonContainerSet_get_singleton_container(self, i)
2930 def get_singleton_containers(self):
2931 r"""get_singleton_containers(SingletonContainerSet self) -> IMP::SingletonContainers"""
2932 return _IMP_container.SingletonContainerSet_get_singleton_containers(self)
2934 def erase_singleton_container(self, i):
2935 r"""erase_singleton_container(SingletonContainerSet self, unsigned int i)"""
2936 return _IMP_container.SingletonContainerSet_erase_singleton_container(self, i)
2938 def reserve_singleton_containers(self, sz):
2939 r"""reserve_singleton_containers(SingletonContainerSet self, unsigned int sz)"""
2940 return _IMP_container.SingletonContainerSet_reserve_singleton_containers(self, sz)
2942 def do_get_inputs(self):
2943 r"""do_get_inputs(SingletonContainerSet self) -> IMP::ModelObjectsTemp"""
2944 return _IMP_container.SingletonContainerSet_do_get_inputs(self)
2947 r"""__str__(SingletonContainerSet self) -> std::string"""
2948 return _IMP_container.SingletonContainerSet___str__(self)
2951 r"""__repr__(SingletonContainerSet self) -> std::string"""
2952 return _IMP_container.SingletonContainerSet___repr__(self)
2956 return _object_cast_to_SingletonContainerSet(o)
2960 _IMP_container.SingletonContainerSet_swigregister(SingletonContainerSet)
2962 r"""Proxy of C++ IMP::container::SingletonsConstraint class."""
2964 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2966 def __init__(self, *args):
2968 __init__(SingletonsConstraint self, SingletonModifier before, SingletonModifier after, _SingletonContainerAdaptor c, std::string name="SingletonsConstraint %1%") -> SingletonsConstraint
2969 __init__(SingletonsConstraint self) -> SingletonsConstraint
2971 _IMP_container.SingletonsConstraint_swiginit(self, _IMP_container.new_SingletonsConstraint(*args))
2973 def get_before_modifier(self):
2974 r"""get_before_modifier(SingletonsConstraint self) -> SingletonModifier"""
2975 return _IMP_container.SingletonsConstraint_get_before_modifier(self)
2977 def get_container(self):
2978 r"""get_container(SingletonsConstraint self) -> SingletonContainer"""
2979 return _IMP_container.SingletonsConstraint_get_container(self)
2981 def get_version_info(self):
2982 r"""get_version_info(SingletonsConstraint self) -> VersionInfo"""
2983 return _IMP_container.SingletonsConstraint_get_version_info(self)
2984 __swig_destroy__ = _IMP_container.delete_SingletonsConstraint
2987 r"""__str__(SingletonsConstraint self) -> std::string"""
2988 return _IMP_container.SingletonsConstraint___str__(self)
2991 r"""__repr__(SingletonsConstraint self) -> std::string"""
2992 return _IMP_container.SingletonsConstraint___repr__(self)
2996 return _object_cast_to_SingletonsConstraint(o)
2999 def _get_as_binary(self):
3000 r"""_get_as_binary(SingletonsConstraint self) -> PyObject *"""
3001 return _IMP_container.SingletonsConstraint__get_as_binary(self)
3003 def _set_from_binary(self, p):
3004 r"""_set_from_binary(SingletonsConstraint self, PyObject * p)"""
3005 return _IMP_container.SingletonsConstraint__set_from_binary(self, p)
3007 def __getstate__(self):
3008 p = self._get_as_binary()
3009 if len(self.__dict__) > 1:
3010 d = self.__dict__.copy()
3015 def __setstate__(self, p):
3016 if not hasattr(self,
'this'):
3018 if isinstance(p, tuple):
3020 self.__dict__.update(d)
3021 return self._set_from_binary(p)
3025 from .
import _jax_util
3026 return _jax_util._get_jax_container_constraint(self)
3030 _IMP_container.SingletonsConstraint_swigregister(SingletonsConstraint)
3032 r"""Proxy of C++ IMP::container::SingletonsOptimizerState class."""
3034 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3036 def __init__(self, *args):
3037 r"""__init__(SingletonsOptimizerState self, _SingletonContainerAdaptor c, SingletonModifier gf, std::string name="SingletonsOptimizerState %1%") -> SingletonsOptimizerState"""
3038 _IMP_container.SingletonsOptimizerState_swiginit(self, _IMP_container.new_SingletonsOptimizerState(*args))
3040 def do_update(self, call):
3041 r"""do_update(SingletonsOptimizerState self, unsigned int call)"""
3042 return _IMP_container.SingletonsOptimizerState_do_update(self, call)
3044 def get_version_info(self):
3045 r"""get_version_info(SingletonsOptimizerState self) -> VersionInfo"""
3046 return _IMP_container.SingletonsOptimizerState_get_version_info(self)
3047 __swig_destroy__ = _IMP_container.delete_SingletonsOptimizerState
3050 r"""__str__(SingletonsOptimizerState self) -> std::string"""
3051 return _IMP_container.SingletonsOptimizerState___str__(self)
3054 r"""__repr__(SingletonsOptimizerState self) -> std::string"""
3055 return _IMP_container.SingletonsOptimizerState___repr__(self)
3059 return _object_cast_to_SingletonsOptimizerState(o)
3063 _IMP_container.SingletonsOptimizerState_swigregister(SingletonsOptimizerState)
3065 r"""Proxy of C++ IMP::container::SingletonsRestraint class."""
3067 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3069 def __init__(self, *args):
3071 __init__(SingletonsRestraint self, SingletonScore ss, _SingletonContainerAdaptor pc, std::string name="SingletonsRestraint %1%") -> SingletonsRestraint
3072 __init__(SingletonsRestraint self) -> SingletonsRestraint
3074 _IMP_container.SingletonsRestraint_swiginit(self, _IMP_container.new_SingletonsRestraint(*args))
3076 def get_score_object(self):
3077 r"""get_score_object(SingletonsRestraint self) -> SingletonScore"""
3078 return _IMP_container.SingletonsRestraint_get_score_object(self)
3080 def get_container(self):
3081 r"""get_container(SingletonsRestraint self) -> SingletonContainer"""
3082 return _IMP_container.SingletonsRestraint_get_container(self)
3084 def do_get_inputs(self):
3085 r"""do_get_inputs(SingletonsRestraint self) -> IMP::ModelObjectsTemp"""
3086 return _IMP_container.SingletonsRestraint_do_get_inputs(self)
3088 def get_version_info(self):
3089 r"""get_version_info(SingletonsRestraint self) -> VersionInfo"""
3090 return _IMP_container.SingletonsRestraint_get_version_info(self)
3091 __swig_destroy__ = _IMP_container.delete_SingletonsRestraint
3094 r"""__str__(SingletonsRestraint self) -> std::string"""
3095 return _IMP_container.SingletonsRestraint___str__(self)
3098 r"""__repr__(SingletonsRestraint self) -> std::string"""
3099 return _IMP_container.SingletonsRestraint___repr__(self)
3103 return _object_cast_to_SingletonsRestraint(o)
3106 def _get_as_binary(self):
3107 r"""_get_as_binary(SingletonsRestraint self) -> PyObject *"""
3108 return _IMP_container.SingletonsRestraint__get_as_binary(self)
3110 def _set_from_binary(self, p):
3111 r"""_set_from_binary(SingletonsRestraint self, PyObject * p)"""
3112 return _IMP_container.SingletonsRestraint__set_from_binary(self, p)
3114 def __getstate__(self):
3115 p = self._get_as_binary()
3116 if len(self.__dict__) > 1:
3117 d = self.__dict__.copy()
3122 def __setstate__(self, p):
3123 if not hasattr(self,
'this'):
3125 if isinstance(p, tuple):
3127 self.__dict__.update(d)
3128 return self._set_from_binary(p)
3132 from .
import _jax_util
3133 return _jax_util._get_jax_container_restraint(self)
3137 _IMP_container.SingletonsRestraint_swigregister(SingletonsRestraint)
3139 r"""Proxy of C++ IMP::container::TripletContainerSet class."""
3141 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3143 def __init__(self, *args):
3145 __init__(TripletContainerSet self, Model m, std::string name="TripletContainerSet %1%") -> TripletContainerSet
3146 __init__(TripletContainerSet self, IMP::TripletContainersTemp const & pc, std::string name="TripletContainerSet %1%") -> TripletContainerSet
3148 _IMP_container.TripletContainerSet_swiginit(self, _IMP_container.new_TripletContainerSet(*args))
3150 def do_apply(self, sm):
3151 r"""do_apply(TripletContainerSet self, TripletModifier sm)"""
3152 return _IMP_container.TripletContainerSet_do_apply(self, sm)
3154 def do_apply_moved(self, sm, moved_pis, reset_pis):
3155 r"""do_apply_moved(TripletContainerSet self, TripletModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
3156 return _IMP_container.TripletContainerSet_do_apply_moved(self, sm, moved_pis, reset_pis)
3158 def get_version_info(self):
3159 r"""get_version_info(TripletContainerSet self) -> VersionInfo"""
3160 return _IMP_container.TripletContainerSet_get_version_info(self)
3161 __swig_destroy__ = _IMP_container.delete_TripletContainerSet
3162 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)
3163 def __set_triplet_containers(self, obj): IMP._list_util.set_varlist(self.triplet_containers, obj)
3164 def __del_triplet_containers(self): IMP._list_util.del_varlist(self.triplet_containers)
3165 triplet_containers = property(__get_triplet_containers, __set_triplet_containers, __del_triplet_containers, doc=
"List of ##ucnames")
3167 def remove_triplet_container(self, d):
3168 r"""remove_triplet_container(TripletContainerSet self, TripletContainer d)"""
3169 return _IMP_container.TripletContainerSet_remove_triplet_container(self, d)
3171 def _python_index_triplet_container(self, d, start, stop):
3172 r"""_python_index_triplet_container(TripletContainerSet self, TripletContainer d, unsigned int start, unsigned int stop) -> unsigned int"""
3173 return _IMP_container.TripletContainerSet__python_index_triplet_container(self, d, start, stop)
3175 def remove_triplet_containers(self, d):
3176 r"""remove_triplet_containers(TripletContainerSet self, IMP::TripletContainers const & d)"""
3177 return _IMP_container.TripletContainerSet_remove_triplet_containers(self, d)
3179 def set_triplet_containers(self, ps):
3180 r"""set_triplet_containers(TripletContainerSet self, IMP::TripletContainers const & ps)"""
3181 return _IMP_container.TripletContainerSet_set_triplet_containers(self, ps)
3183 def set_triplet_containers_order(self, objs):
3184 r"""set_triplet_containers_order(TripletContainerSet self, IMP::TripletContainers const & objs)"""
3185 return _IMP_container.TripletContainerSet_set_triplet_containers_order(self, objs)
3187 def add_triplet_container(self, obj):
3188 r"""add_triplet_container(TripletContainerSet self, TripletContainer obj) -> unsigned int"""
3189 return _IMP_container.TripletContainerSet_add_triplet_container(self, obj)
3191 def add_triplet_containers(self, objs):
3192 r"""add_triplet_containers(TripletContainerSet self, IMP::TripletContainers const & objs)"""
3193 return _IMP_container.TripletContainerSet_add_triplet_containers(self, objs)
3195 def clear_triplet_containers(self):
3196 r"""clear_triplet_containers(TripletContainerSet self)"""
3197 return _IMP_container.TripletContainerSet_clear_triplet_containers(self)
3199 def get_number_of_triplet_containers(self):
3200 r"""get_number_of_triplet_containers(TripletContainerSet self) -> unsigned int"""
3201 return _IMP_container.TripletContainerSet_get_number_of_triplet_containers(self)
3203 def get_has_triplet_containers(self):
3204 r"""get_has_triplet_containers(TripletContainerSet self) -> bool"""
3205 return _IMP_container.TripletContainerSet_get_has_triplet_containers(self)
3207 def get_triplet_container(self, i):
3208 r"""get_triplet_container(TripletContainerSet self, unsigned int i) -> TripletContainer"""
3209 return _IMP_container.TripletContainerSet_get_triplet_container(self, i)
3211 def get_triplet_containers(self):
3212 r"""get_triplet_containers(TripletContainerSet self) -> IMP::TripletContainers"""
3213 return _IMP_container.TripletContainerSet_get_triplet_containers(self)
3215 def erase_triplet_container(self, i):
3216 r"""erase_triplet_container(TripletContainerSet self, unsigned int i)"""
3217 return _IMP_container.TripletContainerSet_erase_triplet_container(self, i)
3219 def reserve_triplet_containers(self, sz):
3220 r"""reserve_triplet_containers(TripletContainerSet self, unsigned int sz)"""
3221 return _IMP_container.TripletContainerSet_reserve_triplet_containers(self, sz)
3223 def do_get_inputs(self):
3224 r"""do_get_inputs(TripletContainerSet self) -> IMP::ModelObjectsTemp"""
3225 return _IMP_container.TripletContainerSet_do_get_inputs(self)
3228 r"""__str__(TripletContainerSet self) -> std::string"""
3229 return _IMP_container.TripletContainerSet___str__(self)
3232 r"""__repr__(TripletContainerSet self) -> std::string"""
3233 return _IMP_container.TripletContainerSet___repr__(self)
3237 return _object_cast_to_TripletContainerSet(o)
3241 _IMP_container.TripletContainerSet_swigregister(TripletContainerSet)
3243 r"""Proxy of C++ IMP::container::TripletsConstraint class."""
3245 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3247 def __init__(self, *args):
3249 __init__(TripletsConstraint self, TripletModifier before, TripletModifier after, _TripletContainerAdaptor c, std::string name="TripletsConstraint %1%") -> TripletsConstraint
3250 __init__(TripletsConstraint self) -> TripletsConstraint
3252 _IMP_container.TripletsConstraint_swiginit(self, _IMP_container.new_TripletsConstraint(*args))
3254 def get_before_modifier(self):
3255 r"""get_before_modifier(TripletsConstraint self) -> TripletModifier"""
3256 return _IMP_container.TripletsConstraint_get_before_modifier(self)
3258 def get_container(self):
3259 r"""get_container(TripletsConstraint self) -> TripletContainer"""
3260 return _IMP_container.TripletsConstraint_get_container(self)
3262 def get_version_info(self):
3263 r"""get_version_info(TripletsConstraint self) -> VersionInfo"""
3264 return _IMP_container.TripletsConstraint_get_version_info(self)
3265 __swig_destroy__ = _IMP_container.delete_TripletsConstraint
3268 r"""__str__(TripletsConstraint self) -> std::string"""
3269 return _IMP_container.TripletsConstraint___str__(self)
3272 r"""__repr__(TripletsConstraint self) -> std::string"""
3273 return _IMP_container.TripletsConstraint___repr__(self)
3277 return _object_cast_to_TripletsConstraint(o)
3280 def _get_as_binary(self):
3281 r"""_get_as_binary(TripletsConstraint self) -> PyObject *"""
3282 return _IMP_container.TripletsConstraint__get_as_binary(self)
3284 def _set_from_binary(self, p):
3285 r"""_set_from_binary(TripletsConstraint self, PyObject * p)"""
3286 return _IMP_container.TripletsConstraint__set_from_binary(self, p)
3288 def __getstate__(self):
3289 p = self._get_as_binary()
3290 if len(self.__dict__) > 1:
3291 d = self.__dict__.copy()
3296 def __setstate__(self, p):
3297 if not hasattr(self,
'this'):
3299 if isinstance(p, tuple):
3301 self.__dict__.update(d)
3302 return self._set_from_binary(p)
3306 _IMP_container.TripletsConstraint_swigregister(TripletsConstraint)
3308 r"""Proxy of C++ IMP::container::TripletsOptimizerState class."""
3310 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3312 def __init__(self, *args):
3313 r"""__init__(TripletsOptimizerState self, _TripletContainerAdaptor c, TripletModifier gf, std::string name="TripletsOptimizerState %1%") -> TripletsOptimizerState"""
3314 _IMP_container.TripletsOptimizerState_swiginit(self, _IMP_container.new_TripletsOptimizerState(*args))
3316 def do_update(self, call):
3317 r"""do_update(TripletsOptimizerState self, unsigned int call)"""
3318 return _IMP_container.TripletsOptimizerState_do_update(self, call)
3320 def get_version_info(self):
3321 r"""get_version_info(TripletsOptimizerState self) -> VersionInfo"""
3322 return _IMP_container.TripletsOptimizerState_get_version_info(self)
3323 __swig_destroy__ = _IMP_container.delete_TripletsOptimizerState
3326 r"""__str__(TripletsOptimizerState self) -> std::string"""
3327 return _IMP_container.TripletsOptimizerState___str__(self)
3330 r"""__repr__(TripletsOptimizerState self) -> std::string"""
3331 return _IMP_container.TripletsOptimizerState___repr__(self)
3335 return _object_cast_to_TripletsOptimizerState(o)
3339 _IMP_container.TripletsOptimizerState_swigregister(TripletsOptimizerState)
3341 r"""Proxy of C++ IMP::container::TripletsRestraint class."""
3343 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3345 def __init__(self, *args):
3347 __init__(TripletsRestraint self, TripletScore ss, _TripletContainerAdaptor pc, std::string name="TripletsRestraint %1%") -> TripletsRestraint
3348 __init__(TripletsRestraint self) -> TripletsRestraint
3350 _IMP_container.TripletsRestraint_swiginit(self, _IMP_container.new_TripletsRestraint(*args))
3352 def get_score_object(self):
3353 r"""get_score_object(TripletsRestraint self) -> TripletScore"""
3354 return _IMP_container.TripletsRestraint_get_score_object(self)
3356 def get_container(self):
3357 r"""get_container(TripletsRestraint self) -> TripletContainer"""
3358 return _IMP_container.TripletsRestraint_get_container(self)
3360 def do_get_inputs(self):
3361 r"""do_get_inputs(TripletsRestraint self) -> IMP::ModelObjectsTemp"""
3362 return _IMP_container.TripletsRestraint_do_get_inputs(self)
3364 def get_version_info(self):
3365 r"""get_version_info(TripletsRestraint self) -> VersionInfo"""
3366 return _IMP_container.TripletsRestraint_get_version_info(self)
3367 __swig_destroy__ = _IMP_container.delete_TripletsRestraint
3370 r"""__str__(TripletsRestraint self) -> std::string"""
3371 return _IMP_container.TripletsRestraint___str__(self)
3374 r"""__repr__(TripletsRestraint self) -> std::string"""
3375 return _IMP_container.TripletsRestraint___repr__(self)
3379 return _object_cast_to_TripletsRestraint(o)
3382 def _get_as_binary(self):
3383 r"""_get_as_binary(TripletsRestraint self) -> PyObject *"""
3384 return _IMP_container.TripletsRestraint__get_as_binary(self)
3386 def _set_from_binary(self, p):
3387 r"""_set_from_binary(TripletsRestraint self, PyObject * p)"""
3388 return _IMP_container.TripletsRestraint__set_from_binary(self, p)
3390 def __getstate__(self):
3391 p = self._get_as_binary()
3392 if len(self.__dict__) > 1:
3393 d = self.__dict__.copy()
3398 def __setstate__(self, p):
3399 if not hasattr(self,
'this'):
3401 if isinstance(p, tuple):
3403 self.__dict__.update(d)
3404 return self._set_from_binary(p)
3408 _IMP_container.TripletsRestraint_swigregister(TripletsRestraint)
3410 r"""Proxy of C++ IMP::container::InContainerSingletonFilter class."""
3412 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3414 def __init__(self, *args):
3416 __init__(InContainerSingletonFilter self, SingletonContainer c, std::string name="SingletonFilter %1%") -> InContainerSingletonFilter
3417 __init__(InContainerSingletonFilter self, SingletonContainer c, bool handle_permutations, std::string name="SingletonFilter %1%") -> InContainerSingletonFilter
3419 _IMP_container.InContainerSingletonFilter_swiginit(self, _IMP_container.new_InContainerSingletonFilter(*args))
3421 def do_get_inputs(self, m, pi):
3422 r"""do_get_inputs(InContainerSingletonFilter self, Model m, IMP::ParticleIndexes const & pi) -> IMP::ModelObjectsTemp"""
3423 return _IMP_container.InContainerSingletonFilter_do_get_inputs(self, m, pi)
3425 def get_value(self, *args):
3427 get_value(InContainerSingletonFilter self, Particle a) -> int
3428 get_value(InContainerSingletonFilter self, IMP::ParticlesTemp const & o) -> IMP::Ints
3430 return _IMP_container.InContainerSingletonFilter_get_value(self, *args)
3432 def get_value_index(self, *args):
3434 get_value_index(InContainerSingletonFilter self, Model arg2, ParticleIndex vt) -> int
3435 get_value_index(InContainerSingletonFilter self, Model m, IMP::ParticleIndexes const & o) -> IMP::Ints
3437 return _IMP_container.InContainerSingletonFilter_get_value_index(self, *args)
3439 def get_version_info(self):
3440 r"""get_version_info(InContainerSingletonFilter self) -> VersionInfo"""
3441 return _IMP_container.InContainerSingletonFilter_get_version_info(self)
3442 __swig_destroy__ = _IMP_container.delete_InContainerSingletonFilter
3445 r"""__str__(InContainerSingletonFilter self) -> std::string"""
3446 return _IMP_container.InContainerSingletonFilter___str__(self)
3449 r"""__repr__(InContainerSingletonFilter self) -> std::string"""
3450 return _IMP_container.InContainerSingletonFilter___repr__(self)
3454 return _object_cast_to_InContainerSingletonFilter(o)
3458 _IMP_container.InContainerSingletonFilter_swigregister(InContainerSingletonFilter)
3460 r"""Proxy of C++ IMP::container::InContainerPairFilter class."""
3462 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3464 def __init__(self, *args):
3466 __init__(InContainerPairFilter self, PairContainer c, std::string name="PairFilter %1%") -> InContainerPairFilter
3467 __init__(InContainerPairFilter self, PairContainer c, bool handle_permutations, std::string name="PairFilter %1%") -> InContainerPairFilter
3469 _IMP_container.InContainerPairFilter_swiginit(self, _IMP_container.new_InContainerPairFilter(*args))
3471 def do_get_inputs(self, m, pi):
3472 r"""do_get_inputs(InContainerPairFilter self, Model m, IMP::ParticleIndexes const & pi) -> IMP::ModelObjectsTemp"""
3473 return _IMP_container.InContainerPairFilter_do_get_inputs(self, m, pi)
3475 def get_value(self, *args):
3477 get_value(InContainerPairFilter self, IMP::ParticlePair const & a) -> int
3478 get_value(InContainerPairFilter self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
3480 return _IMP_container.InContainerPairFilter_get_value(self, *args)
3482 def get_value_index(self, *args):
3484 get_value_index(InContainerPairFilter self, Model arg2, IMP::ParticleIndexPair const & vt) -> int
3485 get_value_index(InContainerPairFilter self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
3487 return _IMP_container.InContainerPairFilter_get_value_index(self, *args)
3489 def get_version_info(self):
3490 r"""get_version_info(InContainerPairFilter self) -> VersionInfo"""
3491 return _IMP_container.InContainerPairFilter_get_version_info(self)
3492 __swig_destroy__ = _IMP_container.delete_InContainerPairFilter
3495 r"""__str__(InContainerPairFilter self) -> std::string"""
3496 return _IMP_container.InContainerPairFilter___str__(self)
3499 r"""__repr__(InContainerPairFilter self) -> std::string"""
3500 return _IMP_container.InContainerPairFilter___repr__(self)
3504 return _object_cast_to_InContainerPairFilter(o)
3508 _IMP_container.InContainerPairFilter_swigregister(InContainerPairFilter)
3510 r"""Proxy of C++ IMP::container::InContainerTripletFilter class."""
3512 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3514 def __init__(self, *args):
3516 __init__(InContainerTripletFilter self, TripletContainer c, std::string name="TripletFilter %1%") -> InContainerTripletFilter
3517 __init__(InContainerTripletFilter self, TripletContainer c, bool handle_permutations, std::string name="TripletFilter %1%") -> InContainerTripletFilter
3519 _IMP_container.InContainerTripletFilter_swiginit(self, _IMP_container.new_InContainerTripletFilter(*args))
3521 def do_get_inputs(self, m, pi):
3522 r"""do_get_inputs(InContainerTripletFilter self, Model m, IMP::ParticleIndexes const & pi) -> IMP::ModelObjectsTemp"""
3523 return _IMP_container.InContainerTripletFilter_do_get_inputs(self, m, pi)
3525 def get_value(self, *args):
3527 get_value(InContainerTripletFilter self, IMP::ParticleTriplet const & a) -> int
3528 get_value(InContainerTripletFilter self, IMP::ParticleTripletsTemp const & o) -> IMP::Ints
3530 return _IMP_container.InContainerTripletFilter_get_value(self, *args)
3532 def get_value_index(self, *args):
3534 get_value_index(InContainerTripletFilter self, Model arg2, IMP::ParticleIndexTriplet const & vt) -> int
3535 get_value_index(InContainerTripletFilter self, Model m, IMP::ParticleIndexTriplets const & o) -> IMP::Ints
3537 return _IMP_container.InContainerTripletFilter_get_value_index(self, *args)
3539 def get_version_info(self):
3540 r"""get_version_info(InContainerTripletFilter self) -> VersionInfo"""
3541 return _IMP_container.InContainerTripletFilter_get_version_info(self)
3542 __swig_destroy__ = _IMP_container.delete_InContainerTripletFilter
3545 r"""__str__(InContainerTripletFilter self) -> std::string"""
3546 return _IMP_container.InContainerTripletFilter___str__(self)
3549 r"""__repr__(InContainerTripletFilter self) -> std::string"""
3550 return _IMP_container.InContainerTripletFilter___repr__(self)
3554 return _object_cast_to_InContainerTripletFilter(o)
3558 _IMP_container.InContainerTripletFilter_swigregister(InContainerTripletFilter)
3560 r"""Proxy of C++ IMP::container::InContainerQuadFilter class."""
3562 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3564 def __init__(self, *args):
3566 __init__(InContainerQuadFilter self, QuadContainer c, std::string name="QuadFilter %1%") -> InContainerQuadFilter
3567 __init__(InContainerQuadFilter self, QuadContainer c, bool handle_permutations, std::string name="QuadFilter %1%") -> InContainerQuadFilter
3569 _IMP_container.InContainerQuadFilter_swiginit(self, _IMP_container.new_InContainerQuadFilter(*args))
3571 def do_get_inputs(self, m, pi):
3572 r"""do_get_inputs(InContainerQuadFilter self, Model m, IMP::ParticleIndexes const & pi) -> IMP::ModelObjectsTemp"""
3573 return _IMP_container.InContainerQuadFilter_do_get_inputs(self, m, pi)
3575 def get_value(self, *args):
3577 get_value(InContainerQuadFilter self, IMP::ParticleQuad const & a) -> int
3578 get_value(InContainerQuadFilter self, IMP::ParticleQuadsTemp const & o) -> IMP::Ints
3580 return _IMP_container.InContainerQuadFilter_get_value(self, *args)
3582 def get_value_index(self, *args):
3584 get_value_index(InContainerQuadFilter self, Model arg2, IMP::ParticleIndexQuad const & vt) -> int
3585 get_value_index(InContainerQuadFilter self, Model m, IMP::ParticleIndexQuads const & o) -> IMP::Ints
3587 return _IMP_container.InContainerQuadFilter_get_value_index(self, *args)
3589 def get_version_info(self):
3590 r"""get_version_info(InContainerQuadFilter self) -> VersionInfo"""
3591 return _IMP_container.InContainerQuadFilter_get_version_info(self)
3592 __swig_destroy__ = _IMP_container.delete_InContainerQuadFilter
3595 r"""__str__(InContainerQuadFilter self) -> std::string"""
3596 return _IMP_container.InContainerQuadFilter___str__(self)
3599 r"""__repr__(InContainerQuadFilter self) -> std::string"""
3600 return _IMP_container.InContainerQuadFilter___repr__(self)
3604 return _object_cast_to_InContainerQuadFilter(o)
3608 _IMP_container.InContainerQuadFilter_swigregister(InContainerQuadFilter)
3610 r"""Proxy of C++ IMP::container::SingletonContainerStatistics class."""
3612 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3614 def __init__(self, c):
3615 r"""__init__(SingletonContainerStatistics self, _SingletonContainerAdaptor c) -> SingletonContainerStatistics"""
3616 _IMP_container.SingletonContainerStatistics_swiginit(self, _IMP_container.new_SingletonContainerStatistics(c))
3618 def show_statistics(self, out):
3619 r"""show_statistics(SingletonContainerStatistics self, _ostream out)"""
3620 return _IMP_container.SingletonContainerStatistics_show_statistics(self, out)
3622 def set_track_unique(self, tf):
3623 r"""set_track_unique(SingletonContainerStatistics self, bool tf)"""
3624 return _IMP_container.SingletonContainerStatistics_set_track_unique(self, tf)
3626 def do_before_evaluate(self):
3627 r"""do_before_evaluate(SingletonContainerStatistics self)"""
3628 return _IMP_container.SingletonContainerStatistics_do_before_evaluate(self)
3630 def do_after_evaluate(self, da):
3631 r"""do_after_evaluate(SingletonContainerStatistics self, DerivativeAccumulator da)"""
3632 return _IMP_container.SingletonContainerStatistics_do_after_evaluate(self, da)
3634 def do_get_inputs(self):
3635 r"""do_get_inputs(SingletonContainerStatistics self) -> IMP::ModelObjectsTemp"""
3636 return _IMP_container.SingletonContainerStatistics_do_get_inputs(self)
3638 def do_get_outputs(self):
3639 r"""do_get_outputs(SingletonContainerStatistics self) -> IMP::ModelObjectsTemp"""
3640 return _IMP_container.SingletonContainerStatistics_do_get_outputs(self)
3642 def get_version_info(self):
3643 r"""get_version_info(SingletonContainerStatistics self) -> VersionInfo"""
3644 return _IMP_container.SingletonContainerStatistics_get_version_info(self)
3645 __swig_destroy__ = _IMP_container.delete_SingletonContainerStatistics
3648 r"""__str__(SingletonContainerStatistics self) -> std::string"""
3649 return _IMP_container.SingletonContainerStatistics___str__(self)
3652 r"""__repr__(SingletonContainerStatistics self) -> std::string"""
3653 return _IMP_container.SingletonContainerStatistics___repr__(self)
3657 return _object_cast_to_SingletonContainerStatistics(o)
3661 _IMP_container.SingletonContainerStatistics_swigregister(SingletonContainerStatistics)
3663 r"""Proxy of C++ IMP::container::PairContainerStatistics class."""
3665 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3667 def __init__(self, c):
3668 r"""__init__(PairContainerStatistics self, _PairContainerAdaptor c) -> PairContainerStatistics"""
3669 _IMP_container.PairContainerStatistics_swiginit(self, _IMP_container.new_PairContainerStatistics(c))
3671 def show_statistics(self, out):
3672 r"""show_statistics(PairContainerStatistics self, _ostream out)"""
3673 return _IMP_container.PairContainerStatistics_show_statistics(self, out)
3675 def set_track_unique(self, tf):
3676 r"""set_track_unique(PairContainerStatistics self, bool tf)"""
3677 return _IMP_container.PairContainerStatistics_set_track_unique(self, tf)
3679 def do_before_evaluate(self):
3680 r"""do_before_evaluate(PairContainerStatistics self)"""
3681 return _IMP_container.PairContainerStatistics_do_before_evaluate(self)
3683 def do_after_evaluate(self, da):
3684 r"""do_after_evaluate(PairContainerStatistics self, DerivativeAccumulator da)"""
3685 return _IMP_container.PairContainerStatistics_do_after_evaluate(self, da)
3687 def do_get_inputs(self):
3688 r"""do_get_inputs(PairContainerStatistics self) -> IMP::ModelObjectsTemp"""
3689 return _IMP_container.PairContainerStatistics_do_get_inputs(self)
3691 def do_get_outputs(self):
3692 r"""do_get_outputs(PairContainerStatistics self) -> IMP::ModelObjectsTemp"""
3693 return _IMP_container.PairContainerStatistics_do_get_outputs(self)
3695 def get_version_info(self):
3696 r"""get_version_info(PairContainerStatistics self) -> VersionInfo"""
3697 return _IMP_container.PairContainerStatistics_get_version_info(self)
3698 __swig_destroy__ = _IMP_container.delete_PairContainerStatistics
3701 r"""__str__(PairContainerStatistics self) -> std::string"""
3702 return _IMP_container.PairContainerStatistics___str__(self)
3705 r"""__repr__(PairContainerStatistics self) -> std::string"""
3706 return _IMP_container.PairContainerStatistics___repr__(self)
3710 return _object_cast_to_PairContainerStatistics(o)
3714 _IMP_container.PairContainerStatistics_swigregister(PairContainerStatistics)
3716 r"""Proxy of C++ IMP::container::TripletContainerStatistics class."""
3718 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3720 def __init__(self, c):
3721 r"""__init__(TripletContainerStatistics self, _TripletContainerAdaptor c) -> TripletContainerStatistics"""
3722 _IMP_container.TripletContainerStatistics_swiginit(self, _IMP_container.new_TripletContainerStatistics(c))
3724 def show_statistics(self, out):
3725 r"""show_statistics(TripletContainerStatistics self, _ostream out)"""
3726 return _IMP_container.TripletContainerStatistics_show_statistics(self, out)
3728 def set_track_unique(self, tf):
3729 r"""set_track_unique(TripletContainerStatistics self, bool tf)"""
3730 return _IMP_container.TripletContainerStatistics_set_track_unique(self, tf)
3732 def do_before_evaluate(self):
3733 r"""do_before_evaluate(TripletContainerStatistics self)"""
3734 return _IMP_container.TripletContainerStatistics_do_before_evaluate(self)
3736 def do_after_evaluate(self, da):
3737 r"""do_after_evaluate(TripletContainerStatistics self, DerivativeAccumulator da)"""
3738 return _IMP_container.TripletContainerStatistics_do_after_evaluate(self, da)
3740 def do_get_inputs(self):
3741 r"""do_get_inputs(TripletContainerStatistics self) -> IMP::ModelObjectsTemp"""
3742 return _IMP_container.TripletContainerStatistics_do_get_inputs(self)
3744 def do_get_outputs(self):
3745 r"""do_get_outputs(TripletContainerStatistics self) -> IMP::ModelObjectsTemp"""
3746 return _IMP_container.TripletContainerStatistics_do_get_outputs(self)
3748 def get_version_info(self):
3749 r"""get_version_info(TripletContainerStatistics self) -> VersionInfo"""
3750 return _IMP_container.TripletContainerStatistics_get_version_info(self)
3751 __swig_destroy__ = _IMP_container.delete_TripletContainerStatistics
3754 r"""__str__(TripletContainerStatistics self) -> std::string"""
3755 return _IMP_container.TripletContainerStatistics___str__(self)
3758 r"""__repr__(TripletContainerStatistics self) -> std::string"""
3759 return _IMP_container.TripletContainerStatistics___repr__(self)
3763 return _object_cast_to_TripletContainerStatistics(o)
3767 _IMP_container.TripletContainerStatistics_swigregister(TripletContainerStatistics)
3769 r"""Proxy of C++ IMP::container::QuadContainerStatistics class."""
3771 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3773 def __init__(self, c):
3774 r"""__init__(QuadContainerStatistics self, _QuadContainerAdaptor c) -> QuadContainerStatistics"""
3775 _IMP_container.QuadContainerStatistics_swiginit(self, _IMP_container.new_QuadContainerStatistics(c))
3777 def show_statistics(self, out):
3778 r"""show_statistics(QuadContainerStatistics self, _ostream out)"""
3779 return _IMP_container.QuadContainerStatistics_show_statistics(self, out)
3781 def set_track_unique(self, tf):
3782 r"""set_track_unique(QuadContainerStatistics self, bool tf)"""
3783 return _IMP_container.QuadContainerStatistics_set_track_unique(self, tf)
3785 def do_before_evaluate(self):
3786 r"""do_before_evaluate(QuadContainerStatistics self)"""
3787 return _IMP_container.QuadContainerStatistics_do_before_evaluate(self)
3789 def do_after_evaluate(self, da):
3790 r"""do_after_evaluate(QuadContainerStatistics self, DerivativeAccumulator da)"""
3791 return _IMP_container.QuadContainerStatistics_do_after_evaluate(self, da)
3793 def do_get_inputs(self):
3794 r"""do_get_inputs(QuadContainerStatistics self) -> IMP::ModelObjectsTemp"""
3795 return _IMP_container.QuadContainerStatistics_do_get_inputs(self)
3797 def do_get_outputs(self):
3798 r"""do_get_outputs(QuadContainerStatistics self) -> IMP::ModelObjectsTemp"""
3799 return _IMP_container.QuadContainerStatistics_do_get_outputs(self)
3801 def get_version_info(self):
3802 r"""get_version_info(QuadContainerStatistics self) -> VersionInfo"""
3803 return _IMP_container.QuadContainerStatistics_get_version_info(self)
3804 __swig_destroy__ = _IMP_container.delete_QuadContainerStatistics
3807 r"""__str__(QuadContainerStatistics self) -> std::string"""
3808 return _IMP_container.QuadContainerStatistics___str__(self)
3811 r"""__repr__(QuadContainerStatistics self) -> std::string"""
3812 return _IMP_container.QuadContainerStatistics___repr__(self)
3816 return _object_cast_to_QuadContainerStatistics(o)
3820 _IMP_container.QuadContainerStatistics_swigregister(QuadContainerStatistics)
3822 r"""Proxy of C++ IMP::container::EventSingletonsOptimizerState class."""
3824 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3826 def __init__(self, *args):
3827 r"""__init__(EventSingletonsOptimizerState self, SingletonPredicate pred, _SingletonContainerAdaptor container, int value, int min_count, int max_count, std::string name="ConstSingletonPredicate%1%") -> EventSingletonsOptimizerState"""
3828 _IMP_container.EventSingletonsOptimizerState_swiginit(self, _IMP_container.new_EventSingletonsOptimizerState(*args))
3830 def do_update(self, call):
3831 r"""do_update(EventSingletonsOptimizerState self, unsigned int call)"""
3832 return _IMP_container.EventSingletonsOptimizerState_do_update(self, call)
3834 def get_version_info(self):
3835 r"""get_version_info(EventSingletonsOptimizerState self) -> VersionInfo"""
3836 return _IMP_container.EventSingletonsOptimizerState_get_version_info(self)
3837 __swig_destroy__ = _IMP_container.delete_EventSingletonsOptimizerState
3840 r"""__str__(EventSingletonsOptimizerState self) -> std::string"""
3841 return _IMP_container.EventSingletonsOptimizerState___str__(self)
3844 r"""__repr__(EventSingletonsOptimizerState self) -> std::string"""
3845 return _IMP_container.EventSingletonsOptimizerState___repr__(self)
3849 return _object_cast_to_EventSingletonsOptimizerState(o)
3853 _IMP_container.EventSingletonsOptimizerState_swigregister(EventSingletonsOptimizerState)
3855 r"""Proxy of C++ IMP::container::EventPairsOptimizerState class."""
3857 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3859 def __init__(self, *args):
3860 r"""__init__(EventPairsOptimizerState self, PairPredicate pred, _PairContainerAdaptor container, int value, int min_count, int max_count, std::string name="ConstPairPredicate%1%") -> EventPairsOptimizerState"""
3861 _IMP_container.EventPairsOptimizerState_swiginit(self, _IMP_container.new_EventPairsOptimizerState(*args))
3863 def do_update(self, call):
3864 r"""do_update(EventPairsOptimizerState self, unsigned int call)"""
3865 return _IMP_container.EventPairsOptimizerState_do_update(self, call)
3867 def get_version_info(self):
3868 r"""get_version_info(EventPairsOptimizerState self) -> VersionInfo"""
3869 return _IMP_container.EventPairsOptimizerState_get_version_info(self)
3870 __swig_destroy__ = _IMP_container.delete_EventPairsOptimizerState
3873 r"""__str__(EventPairsOptimizerState self) -> std::string"""
3874 return _IMP_container.EventPairsOptimizerState___str__(self)
3877 r"""__repr__(EventPairsOptimizerState self) -> std::string"""
3878 return _IMP_container.EventPairsOptimizerState___repr__(self)
3882 return _object_cast_to_EventPairsOptimizerState(o)
3886 _IMP_container.EventPairsOptimizerState_swigregister(EventPairsOptimizerState)
3888 r"""Proxy of C++ IMP::container::EventTripletsOptimizerState class."""
3890 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3892 def __init__(self, *args):
3893 r"""__init__(EventTripletsOptimizerState self, TripletPredicate pred, _TripletContainerAdaptor container, int value, int min_count, int max_count, std::string name="ConstTripletPredicate%1%") -> EventTripletsOptimizerState"""
3894 _IMP_container.EventTripletsOptimizerState_swiginit(self, _IMP_container.new_EventTripletsOptimizerState(*args))
3896 def do_update(self, call):
3897 r"""do_update(EventTripletsOptimizerState self, unsigned int call)"""
3898 return _IMP_container.EventTripletsOptimizerState_do_update(self, call)
3900 def get_version_info(self):
3901 r"""get_version_info(EventTripletsOptimizerState self) -> VersionInfo"""
3902 return _IMP_container.EventTripletsOptimizerState_get_version_info(self)
3903 __swig_destroy__ = _IMP_container.delete_EventTripletsOptimizerState
3906 r"""__str__(EventTripletsOptimizerState self) -> std::string"""
3907 return _IMP_container.EventTripletsOptimizerState___str__(self)
3910 r"""__repr__(EventTripletsOptimizerState self) -> std::string"""
3911 return _IMP_container.EventTripletsOptimizerState___repr__(self)
3915 return _object_cast_to_EventTripletsOptimizerState(o)
3919 _IMP_container.EventTripletsOptimizerState_swigregister(EventTripletsOptimizerState)
3921 r"""Proxy of C++ IMP::container::EventQuadsOptimizerState class."""
3923 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3925 def __init__(self, *args):
3926 r"""__init__(EventQuadsOptimizerState self, QuadPredicate pred, _QuadContainerAdaptor container, int value, int min_count, int max_count, std::string name="ConstQuadPredicate%1%") -> EventQuadsOptimizerState"""
3927 _IMP_container.EventQuadsOptimizerState_swiginit(self, _IMP_container.new_EventQuadsOptimizerState(*args))
3929 def do_update(self, call):
3930 r"""do_update(EventQuadsOptimizerState self, unsigned int call)"""
3931 return _IMP_container.EventQuadsOptimizerState_do_update(self, call)
3933 def get_version_info(self):
3934 r"""get_version_info(EventQuadsOptimizerState self) -> VersionInfo"""
3935 return _IMP_container.EventQuadsOptimizerState_get_version_info(self)
3936 __swig_destroy__ = _IMP_container.delete_EventQuadsOptimizerState
3939 r"""__str__(EventQuadsOptimizerState self) -> std::string"""
3940 return _IMP_container.EventQuadsOptimizerState___str__(self)
3943 r"""__repr__(EventQuadsOptimizerState self) -> std::string"""
3944 return _IMP_container.EventQuadsOptimizerState___repr__(self)
3948 return _object_cast_to_EventQuadsOptimizerState(o)
3952 _IMP_container.EventQuadsOptimizerState_swigregister(EventQuadsOptimizerState)
3954 r"""Proxy of C++ IMP::container::PredicateSingletonsRestraint class."""
3956 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3958 def __init__(self, *args):
3960 __init__(PredicateSingletonsRestraint self, SingletonPredicate pred, _SingletonContainerAdaptor input, std::string name="PredicateSingletonsRestraint %1%") -> PredicateSingletonsRestraint
3961 __init__(PredicateSingletonsRestraint self) -> PredicateSingletonsRestraint
3963 _IMP_container.PredicateSingletonsRestraint_swiginit(self, _IMP_container.new_PredicateSingletonsRestraint(*args))
3965 def set_score(self, predicate_value, score):
3966 r"""set_score(PredicateSingletonsRestraint self, int predicate_value, SingletonScore score)"""
3967 return _IMP_container.PredicateSingletonsRestraint_set_score(self, predicate_value, score)
3969 def set_unknown_score(self, score):
3970 r"""set_unknown_score(PredicateSingletonsRestraint self, SingletonScore score)"""
3971 return _IMP_container.PredicateSingletonsRestraint_set_unknown_score(self, score)
3973 def set_is_complete(self, tf):
3974 r"""set_is_complete(PredicateSingletonsRestraint self, bool tf)"""
3975 return _IMP_container.PredicateSingletonsRestraint_set_is_complete(self, tf)
3978 r"""get_indexes(PredicateSingletonsRestraint self, int predicate_value) -> IMP::ParticleIndexes"""
3979 return _IMP_container.PredicateSingletonsRestraint_get_indexes(self, predicate_value)
3981 def do_add_score_and_derivatives(self, sa):
3982 r"""do_add_score_and_derivatives(PredicateSingletonsRestraint self, ScoreAccumulator sa)"""
3983 return _IMP_container.PredicateSingletonsRestraint_do_add_score_and_derivatives(self, sa)
3985 def do_get_inputs(self):
3986 r"""do_get_inputs(PredicateSingletonsRestraint self) -> IMP::ModelObjectsTemp"""
3987 return _IMP_container.PredicateSingletonsRestraint_do_get_inputs(self)
3989 def get_version_info(self):
3990 r"""get_version_info(PredicateSingletonsRestraint self) -> VersionInfo"""
3991 return _IMP_container.PredicateSingletonsRestraint_get_version_info(self)
3992 __swig_destroy__ = _IMP_container.delete_PredicateSingletonsRestraint
3995 r"""__str__(PredicateSingletonsRestraint self) -> std::string"""
3996 return _IMP_container.PredicateSingletonsRestraint___str__(self)
3999 r"""__repr__(PredicateSingletonsRestraint self) -> std::string"""
4000 return _IMP_container.PredicateSingletonsRestraint___repr__(self)
4004 return _object_cast_to_PredicateSingletonsRestraint(o)
4007 def _get_as_binary(self):
4008 r"""_get_as_binary(PredicateSingletonsRestraint self) -> PyObject *"""
4009 return _IMP_container.PredicateSingletonsRestraint__get_as_binary(self)
4011 def _set_from_binary(self, p):
4012 r"""_set_from_binary(PredicateSingletonsRestraint self, PyObject * p)"""
4013 return _IMP_container.PredicateSingletonsRestraint__set_from_binary(self, p)
4015 def __getstate__(self):
4016 p = self._get_as_binary()
4017 if len(self.__dict__) > 1:
4018 d = self.__dict__.copy()
4023 def __setstate__(self, p):
4024 if not hasattr(self,
'this'):
4026 if isinstance(p, tuple):
4028 self.__dict__.update(d)
4029 return self._set_from_binary(p)
4033 _IMP_container.PredicateSingletonsRestraint_swigregister(PredicateSingletonsRestraint)
4035 r"""Proxy of C++ IMP::container::PredicatePairsRestraint class."""
4037 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4039 def __init__(self, *args):
4041 __init__(PredicatePairsRestraint self, PairPredicate pred, _PairContainerAdaptor input, std::string name="PredicatePairsRestraint %1%") -> PredicatePairsRestraint
4042 __init__(PredicatePairsRestraint self) -> PredicatePairsRestraint
4044 _IMP_container.PredicatePairsRestraint_swiginit(self, _IMP_container.new_PredicatePairsRestraint(*args))
4046 def set_score(self, predicate_value, score):
4047 r"""set_score(PredicatePairsRestraint self, int predicate_value, PairScore score)"""
4048 return _IMP_container.PredicatePairsRestraint_set_score(self, predicate_value, score)
4050 def set_unknown_score(self, score):
4051 r"""set_unknown_score(PredicatePairsRestraint self, PairScore score)"""
4052 return _IMP_container.PredicatePairsRestraint_set_unknown_score(self, score)
4054 def set_is_complete(self, tf):
4055 r"""set_is_complete(PredicatePairsRestraint self, bool tf)"""
4056 return _IMP_container.PredicatePairsRestraint_set_is_complete(self, tf)
4059 r"""get_indexes(PredicatePairsRestraint self, int predicate_value) -> IMP::ParticleIndexPairs"""
4060 return _IMP_container.PredicatePairsRestraint_get_indexes(self, predicate_value)
4062 def do_add_score_and_derivatives(self, sa):
4063 r"""do_add_score_and_derivatives(PredicatePairsRestraint self, ScoreAccumulator sa)"""
4064 return _IMP_container.PredicatePairsRestraint_do_add_score_and_derivatives(self, sa)
4066 def do_get_inputs(self):
4067 r"""do_get_inputs(PredicatePairsRestraint self) -> IMP::ModelObjectsTemp"""
4068 return _IMP_container.PredicatePairsRestraint_do_get_inputs(self)
4070 def get_version_info(self):
4071 r"""get_version_info(PredicatePairsRestraint self) -> VersionInfo"""
4072 return _IMP_container.PredicatePairsRestraint_get_version_info(self)
4073 __swig_destroy__ = _IMP_container.delete_PredicatePairsRestraint
4076 r"""__str__(PredicatePairsRestraint self) -> std::string"""
4077 return _IMP_container.PredicatePairsRestraint___str__(self)
4080 r"""__repr__(PredicatePairsRestraint self) -> std::string"""
4081 return _IMP_container.PredicatePairsRestraint___repr__(self)
4085 return _object_cast_to_PredicatePairsRestraint(o)
4088 def _get_as_binary(self):
4089 r"""_get_as_binary(PredicatePairsRestraint self) -> PyObject *"""
4090 return _IMP_container.PredicatePairsRestraint__get_as_binary(self)
4092 def _set_from_binary(self, p):
4093 r"""_set_from_binary(PredicatePairsRestraint self, PyObject * p)"""
4094 return _IMP_container.PredicatePairsRestraint__set_from_binary(self, p)
4096 def __getstate__(self):
4097 p = self._get_as_binary()
4098 if len(self.__dict__) > 1:
4099 d = self.__dict__.copy()
4104 def __setstate__(self, p):
4105 if not hasattr(self,
'this'):
4107 if isinstance(p, tuple):
4109 self.__dict__.update(d)
4110 return self._set_from_binary(p)
4114 _IMP_container.PredicatePairsRestraint_swigregister(PredicatePairsRestraint)
4116 r"""Proxy of C++ IMP::container::PredicateTripletsRestraint class."""
4118 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4120 def __init__(self, *args):
4122 __init__(PredicateTripletsRestraint self, TripletPredicate pred, _TripletContainerAdaptor input, std::string name="PredicateTripletsRestraint %1%") -> PredicateTripletsRestraint
4123 __init__(PredicateTripletsRestraint self) -> PredicateTripletsRestraint
4125 _IMP_container.PredicateTripletsRestraint_swiginit(self, _IMP_container.new_PredicateTripletsRestraint(*args))
4127 def set_score(self, predicate_value, score):
4128 r"""set_score(PredicateTripletsRestraint self, int predicate_value, TripletScore score)"""
4129 return _IMP_container.PredicateTripletsRestraint_set_score(self, predicate_value, score)
4131 def set_unknown_score(self, score):
4132 r"""set_unknown_score(PredicateTripletsRestraint self, TripletScore score)"""
4133 return _IMP_container.PredicateTripletsRestraint_set_unknown_score(self, score)
4135 def set_is_complete(self, tf):
4136 r"""set_is_complete(PredicateTripletsRestraint self, bool tf)"""
4137 return _IMP_container.PredicateTripletsRestraint_set_is_complete(self, tf)
4140 r"""get_indexes(PredicateTripletsRestraint self, int predicate_value) -> IMP::ParticleIndexTriplets"""
4141 return _IMP_container.PredicateTripletsRestraint_get_indexes(self, predicate_value)
4143 def do_add_score_and_derivatives(self, sa):
4144 r"""do_add_score_and_derivatives(PredicateTripletsRestraint self, ScoreAccumulator sa)"""
4145 return _IMP_container.PredicateTripletsRestraint_do_add_score_and_derivatives(self, sa)
4147 def do_get_inputs(self):
4148 r"""do_get_inputs(PredicateTripletsRestraint self) -> IMP::ModelObjectsTemp"""
4149 return _IMP_container.PredicateTripletsRestraint_do_get_inputs(self)
4151 def get_version_info(self):
4152 r"""get_version_info(PredicateTripletsRestraint self) -> VersionInfo"""
4153 return _IMP_container.PredicateTripletsRestraint_get_version_info(self)
4154 __swig_destroy__ = _IMP_container.delete_PredicateTripletsRestraint
4157 r"""__str__(PredicateTripletsRestraint self) -> std::string"""
4158 return _IMP_container.PredicateTripletsRestraint___str__(self)
4161 r"""__repr__(PredicateTripletsRestraint self) -> std::string"""
4162 return _IMP_container.PredicateTripletsRestraint___repr__(self)
4166 return _object_cast_to_PredicateTripletsRestraint(o)
4169 def _get_as_binary(self):
4170 r"""_get_as_binary(PredicateTripletsRestraint self) -> PyObject *"""
4171 return _IMP_container.PredicateTripletsRestraint__get_as_binary(self)
4173 def _set_from_binary(self, p):
4174 r"""_set_from_binary(PredicateTripletsRestraint self, PyObject * p)"""
4175 return _IMP_container.PredicateTripletsRestraint__set_from_binary(self, p)
4177 def __getstate__(self):
4178 p = self._get_as_binary()
4179 if len(self.__dict__) > 1:
4180 d = self.__dict__.copy()
4185 def __setstate__(self, p):
4186 if not hasattr(self,
'this'):
4188 if isinstance(p, tuple):
4190 self.__dict__.update(d)
4191 return self._set_from_binary(p)
4195 _IMP_container.PredicateTripletsRestraint_swigregister(PredicateTripletsRestraint)
4197 r"""Proxy of C++ IMP::container::PredicateQuadsRestraint class."""
4199 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4201 def __init__(self, *args):
4203 __init__(PredicateQuadsRestraint self, QuadPredicate pred, _QuadContainerAdaptor input, std::string name="PredicateQuadsRestraint %1%") -> PredicateQuadsRestraint
4204 __init__(PredicateQuadsRestraint self) -> PredicateQuadsRestraint
4206 _IMP_container.PredicateQuadsRestraint_swiginit(self, _IMP_container.new_PredicateQuadsRestraint(*args))
4208 def set_score(self, predicate_value, score):
4209 r"""set_score(PredicateQuadsRestraint self, int predicate_value, QuadScore score)"""
4210 return _IMP_container.PredicateQuadsRestraint_set_score(self, predicate_value, score)
4212 def set_unknown_score(self, score):
4213 r"""set_unknown_score(PredicateQuadsRestraint self, QuadScore score)"""
4214 return _IMP_container.PredicateQuadsRestraint_set_unknown_score(self, score)
4216 def set_is_complete(self, tf):
4217 r"""set_is_complete(PredicateQuadsRestraint self, bool tf)"""
4218 return _IMP_container.PredicateQuadsRestraint_set_is_complete(self, tf)
4221 r"""get_indexes(PredicateQuadsRestraint self, int predicate_value) -> IMP::ParticleIndexQuads"""
4222 return _IMP_container.PredicateQuadsRestraint_get_indexes(self, predicate_value)
4224 def do_add_score_and_derivatives(self, sa):
4225 r"""do_add_score_and_derivatives(PredicateQuadsRestraint self, ScoreAccumulator sa)"""
4226 return _IMP_container.PredicateQuadsRestraint_do_add_score_and_derivatives(self, sa)
4228 def do_get_inputs(self):
4229 r"""do_get_inputs(PredicateQuadsRestraint self) -> IMP::ModelObjectsTemp"""
4230 return _IMP_container.PredicateQuadsRestraint_do_get_inputs(self)
4232 def get_version_info(self):
4233 r"""get_version_info(PredicateQuadsRestraint self) -> VersionInfo"""
4234 return _IMP_container.PredicateQuadsRestraint_get_version_info(self)
4235 __swig_destroy__ = _IMP_container.delete_PredicateQuadsRestraint
4238 r"""__str__(PredicateQuadsRestraint self) -> std::string"""
4239 return _IMP_container.PredicateQuadsRestraint___str__(self)
4242 r"""__repr__(PredicateQuadsRestraint self) -> std::string"""
4243 return _IMP_container.PredicateQuadsRestraint___repr__(self)
4247 return _object_cast_to_PredicateQuadsRestraint(o)
4250 def _get_as_binary(self):
4251 r"""_get_as_binary(PredicateQuadsRestraint self) -> PyObject *"""
4252 return _IMP_container.PredicateQuadsRestraint__get_as_binary(self)
4254 def _set_from_binary(self, p):
4255 r"""_set_from_binary(PredicateQuadsRestraint self, PyObject * p)"""
4256 return _IMP_container.PredicateQuadsRestraint__set_from_binary(self, p)
4258 def __getstate__(self):
4259 p = self._get_as_binary()
4260 if len(self.__dict__) > 1:
4261 d = self.__dict__.copy()
4266 def __setstate__(self, p):
4267 if not hasattr(self,
'this'):
4269 if isinstance(p, tuple):
4271 self.__dict__.update(d)
4272 return self._set_from_binary(p)
4276 _IMP_container.PredicateQuadsRestraint_swigregister(PredicateQuadsRestraint)
4278 r"""Proxy of C++ IMP::container::DistributeSingletonsScoreState class."""
4280 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4282 def __init__(self, *args):
4283 r"""__init__(DistributeSingletonsScoreState self, _SingletonContainerAdaptor input, std::string name="DistributeSingletonsScoreState %1%") -> DistributeSingletonsScoreState"""
4284 _IMP_container.DistributeSingletonsScoreState_swiginit(self, _IMP_container.new_DistributeSingletonsScoreState(*args))
4286 def add_predicate(self, predicate, value):
4287 r"""add_predicate(DistributeSingletonsScoreState self, SingletonPredicate predicate, int value) -> DynamicListSingletonContainer"""
4288 return _IMP_container.DistributeSingletonsScoreState_add_predicate(self, predicate, value)
4290 def do_before_evaluate(self):
4291 r"""do_before_evaluate(DistributeSingletonsScoreState self)"""
4292 return _IMP_container.DistributeSingletonsScoreState_do_before_evaluate(self)
4294 def do_after_evaluate(self, da):
4295 r"""do_after_evaluate(DistributeSingletonsScoreState self, DerivativeAccumulator da)"""
4296 return _IMP_container.DistributeSingletonsScoreState_do_after_evaluate(self, da)
4298 def do_get_inputs(self):
4299 r"""do_get_inputs(DistributeSingletonsScoreState self) -> IMP::ModelObjectsTemp"""
4300 return _IMP_container.DistributeSingletonsScoreState_do_get_inputs(self)
4302 def do_get_outputs(self):
4303 r"""do_get_outputs(DistributeSingletonsScoreState self) -> IMP::ModelObjectsTemp"""
4304 return _IMP_container.DistributeSingletonsScoreState_do_get_outputs(self)
4306 def get_version_info(self):
4307 r"""get_version_info(DistributeSingletonsScoreState self) -> VersionInfo"""
4308 return _IMP_container.DistributeSingletonsScoreState_get_version_info(self)
4309 __swig_destroy__ = _IMP_container.delete_DistributeSingletonsScoreState
4312 r"""__str__(DistributeSingletonsScoreState self) -> std::string"""
4313 return _IMP_container.DistributeSingletonsScoreState___str__(self)
4316 r"""__repr__(DistributeSingletonsScoreState self) -> std::string"""
4317 return _IMP_container.DistributeSingletonsScoreState___repr__(self)
4321 return _object_cast_to_DistributeSingletonsScoreState(o)
4325 _IMP_container.DistributeSingletonsScoreState_swigregister(DistributeSingletonsScoreState)
4327 r"""Proxy of C++ IMP::container::DistributePairsScoreState class."""
4329 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4331 def __init__(self, *args):
4332 r"""__init__(DistributePairsScoreState self, _PairContainerAdaptor input, std::string name="DistributePairsScoreState %1%") -> DistributePairsScoreState"""
4333 _IMP_container.DistributePairsScoreState_swiginit(self, _IMP_container.new_DistributePairsScoreState(*args))
4335 def add_predicate(self, predicate, value):
4336 r"""add_predicate(DistributePairsScoreState self, PairPredicate predicate, int value) -> DynamicListPairContainer"""
4337 return _IMP_container.DistributePairsScoreState_add_predicate(self, predicate, value)
4339 def do_before_evaluate(self):
4340 r"""do_before_evaluate(DistributePairsScoreState self)"""
4341 return _IMP_container.DistributePairsScoreState_do_before_evaluate(self)
4343 def do_after_evaluate(self, da):
4344 r"""do_after_evaluate(DistributePairsScoreState self, DerivativeAccumulator da)"""
4345 return _IMP_container.DistributePairsScoreState_do_after_evaluate(self, da)
4347 def do_get_inputs(self):
4348 r"""do_get_inputs(DistributePairsScoreState self) -> IMP::ModelObjectsTemp"""
4349 return _IMP_container.DistributePairsScoreState_do_get_inputs(self)
4351 def do_get_outputs(self):
4352 r"""do_get_outputs(DistributePairsScoreState self) -> IMP::ModelObjectsTemp"""
4353 return _IMP_container.DistributePairsScoreState_do_get_outputs(self)
4355 def get_version_info(self):
4356 r"""get_version_info(DistributePairsScoreState self) -> VersionInfo"""
4357 return _IMP_container.DistributePairsScoreState_get_version_info(self)
4358 __swig_destroy__ = _IMP_container.delete_DistributePairsScoreState
4361 r"""__str__(DistributePairsScoreState self) -> std::string"""
4362 return _IMP_container.DistributePairsScoreState___str__(self)
4365 r"""__repr__(DistributePairsScoreState self) -> std::string"""
4366 return _IMP_container.DistributePairsScoreState___repr__(self)
4370 return _object_cast_to_DistributePairsScoreState(o)
4374 _IMP_container.DistributePairsScoreState_swigregister(DistributePairsScoreState)
4376 r"""Proxy of C++ IMP::container::DistributeTripletsScoreState class."""
4378 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4380 def __init__(self, *args):
4381 r"""__init__(DistributeTripletsScoreState self, _TripletContainerAdaptor input, std::string name="DistributeTripletsScoreState %1%") -> DistributeTripletsScoreState"""
4382 _IMP_container.DistributeTripletsScoreState_swiginit(self, _IMP_container.new_DistributeTripletsScoreState(*args))
4384 def add_predicate(self, predicate, value):
4385 r"""add_predicate(DistributeTripletsScoreState self, TripletPredicate predicate, int value) -> DynamicListTripletContainer"""
4386 return _IMP_container.DistributeTripletsScoreState_add_predicate(self, predicate, value)
4388 def do_before_evaluate(self):
4389 r"""do_before_evaluate(DistributeTripletsScoreState self)"""
4390 return _IMP_container.DistributeTripletsScoreState_do_before_evaluate(self)
4392 def do_after_evaluate(self, da):
4393 r"""do_after_evaluate(DistributeTripletsScoreState self, DerivativeAccumulator da)"""
4394 return _IMP_container.DistributeTripletsScoreState_do_after_evaluate(self, da)
4396 def do_get_inputs(self):
4397 r"""do_get_inputs(DistributeTripletsScoreState self) -> IMP::ModelObjectsTemp"""
4398 return _IMP_container.DistributeTripletsScoreState_do_get_inputs(self)
4400 def do_get_outputs(self):
4401 r"""do_get_outputs(DistributeTripletsScoreState self) -> IMP::ModelObjectsTemp"""
4402 return _IMP_container.DistributeTripletsScoreState_do_get_outputs(self)
4404 def get_version_info(self):
4405 r"""get_version_info(DistributeTripletsScoreState self) -> VersionInfo"""
4406 return _IMP_container.DistributeTripletsScoreState_get_version_info(self)
4407 __swig_destroy__ = _IMP_container.delete_DistributeTripletsScoreState
4410 r"""__str__(DistributeTripletsScoreState self) -> std::string"""
4411 return _IMP_container.DistributeTripletsScoreState___str__(self)
4414 r"""__repr__(DistributeTripletsScoreState self) -> std::string"""
4415 return _IMP_container.DistributeTripletsScoreState___repr__(self)
4419 return _object_cast_to_DistributeTripletsScoreState(o)
4423 _IMP_container.DistributeTripletsScoreState_swigregister(DistributeTripletsScoreState)
4425 r"""Proxy of C++ IMP::container::DistributeQuadsScoreState class."""
4427 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4429 def __init__(self, *args):
4430 r"""__init__(DistributeQuadsScoreState self, _QuadContainerAdaptor input, std::string name="DistributeQuadsScoreState %1%") -> DistributeQuadsScoreState"""
4431 _IMP_container.DistributeQuadsScoreState_swiginit(self, _IMP_container.new_DistributeQuadsScoreState(*args))
4433 def add_predicate(self, predicate, value):
4434 r"""add_predicate(DistributeQuadsScoreState self, QuadPredicate predicate, int value) -> DynamicListQuadContainer"""
4435 return _IMP_container.DistributeQuadsScoreState_add_predicate(self, predicate, value)
4437 def do_before_evaluate(self):
4438 r"""do_before_evaluate(DistributeQuadsScoreState self)"""
4439 return _IMP_container.DistributeQuadsScoreState_do_before_evaluate(self)
4441 def do_after_evaluate(self, da):
4442 r"""do_after_evaluate(DistributeQuadsScoreState self, DerivativeAccumulator da)"""
4443 return _IMP_container.DistributeQuadsScoreState_do_after_evaluate(self, da)
4445 def do_get_inputs(self):
4446 r"""do_get_inputs(DistributeQuadsScoreState self) -> IMP::ModelObjectsTemp"""
4447 return _IMP_container.DistributeQuadsScoreState_do_get_inputs(self)
4449 def do_get_outputs(self):
4450 r"""do_get_outputs(DistributeQuadsScoreState self) -> IMP::ModelObjectsTemp"""
4451 return _IMP_container.DistributeQuadsScoreState_do_get_outputs(self)
4453 def get_version_info(self):
4454 r"""get_version_info(DistributeQuadsScoreState self) -> VersionInfo"""
4455 return _IMP_container.DistributeQuadsScoreState_get_version_info(self)
4456 __swig_destroy__ = _IMP_container.delete_DistributeQuadsScoreState
4459 r"""__str__(DistributeQuadsScoreState self) -> std::string"""
4460 return _IMP_container.DistributeQuadsScoreState___str__(self)
4463 r"""__repr__(DistributeQuadsScoreState self) -> std::string"""
4464 return _IMP_container.DistributeQuadsScoreState___repr__(self)
4468 return _object_cast_to_DistributeQuadsScoreState(o)
4472 _IMP_container.DistributeQuadsScoreState_swigregister(DistributeQuadsScoreState)
4476 create_restraint(PairScore ps, IMP::ParticlePair pp) -> Restraint
4477 create_restraint(PairScore ps, PairContainer pp) -> Restraint
4479 return _IMP_container.create_restraint(*args)
4481 def get_module_name():
4482 r"""get_module_name() -> std::string const"""
4483 return _IMP_container.get_module_name()
4486 r"""get_module_version() -> std::string const"""
4487 return _IMP_container.get_module_version()
4490 r"""get_example_path(std::string fname) -> std::string"""
4491 return _IMP_container.get_example_path(fname)
4494 r"""get_data_path(std::string fname) -> std::string"""
4495 return _IMP_container.get_data_path(fname)
4497 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...
Warning for incomplete JAX support or different behavior of JAX code.
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.