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)
820 def _get_static_contents(self):
821 return self.get_contents()
825 _IMP_container.AllBipartitePairContainer_swigregister(AllBipartitePairContainer)
827 r"""Proxy of C++ IMP::container::AllPairContainer class."""
829 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
831 def __init__(self, *args):
832 r"""__init__(AllPairContainer self, _SingletonContainerAdaptor c, std::string name="AllPairContainer%1%") -> AllPairContainer"""
833 _IMP_container.AllPairContainer_swiginit(self, _IMP_container.new_AllPairContainer(*args))
835 def do_get_inputs(self):
836 r"""do_get_inputs(AllPairContainer self) -> IMP::ModelObjectsTemp"""
837 return _IMP_container.AllPairContainer_do_get_inputs(self)
839 def do_apply(self, sm):
840 r"""do_apply(AllPairContainer self, PairModifier sm)"""
841 return _IMP_container.AllPairContainer_do_apply(self, sm)
843 def do_apply_moved(self, sm, moved_pis, reset_pis):
844 r"""do_apply_moved(AllPairContainer self, PairModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
845 return _IMP_container.AllPairContainer_do_apply_moved(self, sm, moved_pis, reset_pis)
847 def get_version_info(self):
848 r"""get_version_info(AllPairContainer self) -> VersionInfo"""
849 return _IMP_container.AllPairContainer_get_version_info(self)
850 __swig_destroy__ = _IMP_container.delete_AllPairContainer
853 r"""__str__(AllPairContainer self) -> std::string"""
854 return _IMP_container.AllPairContainer___str__(self)
857 r"""__repr__(AllPairContainer self) -> std::string"""
858 return _IMP_container.AllPairContainer___repr__(self)
862 return _object_cast_to_AllPairContainer(o)
865 def _get_static_contents(self):
866 return self.get_contents()
870 _IMP_container.AllPairContainer_swigregister(AllPairContainer)
872 r"""Proxy of C++ IMP::container::CloseBipartitePairContainer class."""
874 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
876 def __init__(self, *args):
878 __init__(CloseBipartitePairContainer self, _SingletonContainerAdaptor a, _SingletonContainerAdaptor b, double distance, double slack=1, std::string name="CloseBipartitePairContainer%1%") -> CloseBipartitePairContainer
879 __init__(CloseBipartitePairContainer self, _SingletonContainerAdaptor a, _SingletonContainerAdaptor b, double distance, ClosePairsFinder cpf, double slack=1, std::string name="CloseBipartitePairContainer%1%") -> CloseBipartitePairContainer
880 __init__(CloseBipartitePairContainer self) -> CloseBipartitePairContainer
882 _IMP_container.CloseBipartitePairContainer_swiginit(self, _IMP_container.new_CloseBipartitePairContainer(*args))
883 def __get_pair_filters(self):
return IMP._list_util.VarList(getdimfunc=self.get_number_of_pair_filters, getfunc=self.get_pair_filter, erasefunc=self.erase_pair_filter, appendfunc=self.add_pair_filter, extendfunc=self.add_pair_filters, clearfunc=self.clear_pair_filters, indexfunc=self._python_index_pair_filter)
884 def __set_pair_filters(self, obj): IMP._list_util.set_varlist(self.pair_filters, obj)
885 def __del_pair_filters(self): IMP._list_util.del_varlist(self.pair_filters)
886 pair_filters = property(__get_pair_filters, __set_pair_filters, __del_pair_filters, doc=
"List of ##ucnames")
888 def remove_pair_filter(self, d):
889 r"""remove_pair_filter(CloseBipartitePairContainer self, PairPredicate d)"""
890 return _IMP_container.CloseBipartitePairContainer_remove_pair_filter(self, d)
892 def _python_index_pair_filter(self, d, start, stop):
893 r"""_python_index_pair_filter(CloseBipartitePairContainer self, PairPredicate d, unsigned int start, unsigned int stop) -> unsigned int"""
894 return _IMP_container.CloseBipartitePairContainer__python_index_pair_filter(self, d, start, stop)
896 def remove_pair_filters(self, d):
897 r"""remove_pair_filters(CloseBipartitePairContainer self, IMP::PairPredicates const & d)"""
898 return _IMP_container.CloseBipartitePairContainer_remove_pair_filters(self, d)
900 def set_pair_filters(self, ps):
901 r"""set_pair_filters(CloseBipartitePairContainer self, IMP::PairPredicates const & ps)"""
902 return _IMP_container.CloseBipartitePairContainer_set_pair_filters(self, ps)
904 def set_pair_filters_order(self, objs):
905 r"""set_pair_filters_order(CloseBipartitePairContainer self, IMP::PairPredicates const & objs)"""
906 return _IMP_container.CloseBipartitePairContainer_set_pair_filters_order(self, objs)
908 def add_pair_filter(self, obj):
909 r"""add_pair_filter(CloseBipartitePairContainer self, PairPredicate obj) -> unsigned int"""
910 return _IMP_container.CloseBipartitePairContainer_add_pair_filter(self, obj)
912 def add_pair_filters(self, objs):
913 r"""add_pair_filters(CloseBipartitePairContainer self, IMP::PairPredicates const & objs)"""
914 return _IMP_container.CloseBipartitePairContainer_add_pair_filters(self, objs)
916 def clear_pair_filters(self):
917 r"""clear_pair_filters(CloseBipartitePairContainer self)"""
918 return _IMP_container.CloseBipartitePairContainer_clear_pair_filters(self)
920 def get_number_of_pair_filters(self):
921 r"""get_number_of_pair_filters(CloseBipartitePairContainer self) -> unsigned int"""
922 return _IMP_container.CloseBipartitePairContainer_get_number_of_pair_filters(self)
924 def get_has_pair_filters(self):
925 r"""get_has_pair_filters(CloseBipartitePairContainer self) -> bool"""
926 return _IMP_container.CloseBipartitePairContainer_get_has_pair_filters(self)
928 def get_pair_filter(self, i):
929 r"""get_pair_filter(CloseBipartitePairContainer self, unsigned int i) -> PairPredicate"""
930 return _IMP_container.CloseBipartitePairContainer_get_pair_filter(self, i)
932 def get_pair_filters(self):
933 r"""get_pair_filters(CloseBipartitePairContainer self) -> IMP::PairPredicates"""
934 return _IMP_container.CloseBipartitePairContainer_get_pair_filters(self)
936 def erase_pair_filter(self, i):
937 r"""erase_pair_filter(CloseBipartitePairContainer self, unsigned int i)"""
938 return _IMP_container.CloseBipartitePairContainer_erase_pair_filter(self, i)
940 def reserve_pair_filters(self, sz):
941 r"""reserve_pair_filters(CloseBipartitePairContainer self, unsigned int sz)"""
942 return _IMP_container.CloseBipartitePairContainer_reserve_pair_filters(self, sz)
944 def do_get_inputs(self):
945 r"""do_get_inputs(CloseBipartitePairContainer self) -> IMP::ModelObjectsTemp"""
946 return _IMP_container.CloseBipartitePairContainer_do_get_inputs(self)
948 def do_apply(self, sm):
949 r"""do_apply(CloseBipartitePairContainer self, PairModifier sm)"""
950 return _IMP_container.CloseBipartitePairContainer_do_apply(self, sm)
952 def get_version_info(self):
953 r"""get_version_info(CloseBipartitePairContainer self) -> VersionInfo"""
954 return _IMP_container.CloseBipartitePairContainer_get_version_info(self)
955 __swig_destroy__ = _IMP_container.delete_CloseBipartitePairContainer
958 r"""__str__(CloseBipartitePairContainer self) -> std::string"""
959 return _IMP_container.CloseBipartitePairContainer___str__(self)
962 r"""__repr__(CloseBipartitePairContainer self) -> std::string"""
963 return _IMP_container.CloseBipartitePairContainer___repr__(self)
967 return _object_cast_to_CloseBipartitePairContainer(o)
970 def _get_as_binary(self):
971 r"""_get_as_binary(CloseBipartitePairContainer self) -> PyObject *"""
972 return _IMP_container.CloseBipartitePairContainer__get_as_binary(self)
974 def _set_from_binary(self, p):
975 r"""_set_from_binary(CloseBipartitePairContainer self, PyObject * p)"""
976 return _IMP_container.CloseBipartitePairContainer__set_from_binary(self, p)
978 def __getstate__(self):
979 p = self._get_as_binary()
980 if len(self.__dict__) > 1:
981 d = self.__dict__.copy()
986 def __setstate__(self, p):
987 if not hasattr(self,
'this'):
989 if isinstance(p, tuple):
991 self.__dict__.update(d)
992 return self._set_from_binary(p)
995 def _get_static_contents(self):
996 warnings.warn(
"No JAX support for close pairs, so using all "
998 return self.get_range_indexes()
1002 _IMP_container.CloseBipartitePairContainer_swigregister(CloseBipartitePairContainer)
1004 r"""Proxy of C++ IMP::container::ClosePairContainer class."""
1006 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1008 def __init__(self, *args):
1010 __init__(ClosePairContainer self, _SingletonContainerAdaptor c, double distance_cutoff, double slack=1, std::string name="ClosePairContainer%1%") -> ClosePairContainer
1011 __init__(ClosePairContainer self, _SingletonContainerAdaptor c, double distance_cutoff, ClosePairsFinder cpf, double slack=1, std::string name="ClosePairContainer%1%") -> ClosePairContainer
1012 __init__(ClosePairContainer self) -> ClosePairContainer
1014 _IMP_container.ClosePairContainer_swiginit(self, _IMP_container.new_ClosePairContainer(*args))
1015 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)
1016 def __set_pair_filters(self, obj): IMP._list_util.set_varlist(self.pair_filters, obj)
1017 def __del_pair_filters(self): IMP._list_util.del_varlist(self.pair_filters)
1018 pair_filters = property(__get_pair_filters, __set_pair_filters, __del_pair_filters, doc=
"List of ##ucnames")
1020 def remove_pair_filter(self, d):
1021 r"""remove_pair_filter(ClosePairContainer self, PairPredicate d)"""
1022 return _IMP_container.ClosePairContainer_remove_pair_filter(self, d)
1024 def _python_index_pair_filter(self, d, start, stop):
1025 r"""_python_index_pair_filter(ClosePairContainer self, PairPredicate d, unsigned int start, unsigned int stop) -> unsigned int"""
1026 return _IMP_container.ClosePairContainer__python_index_pair_filter(self, d, start, stop)
1028 def remove_pair_filters(self, d):
1029 r"""remove_pair_filters(ClosePairContainer self, IMP::PairPredicates const & d)"""
1030 return _IMP_container.ClosePairContainer_remove_pair_filters(self, d)
1032 def set_pair_filters(self, ps):
1033 r"""set_pair_filters(ClosePairContainer self, IMP::PairPredicates const & ps)"""
1034 return _IMP_container.ClosePairContainer_set_pair_filters(self, ps)
1036 def set_pair_filters_order(self, objs):
1037 r"""set_pair_filters_order(ClosePairContainer self, IMP::PairPredicates const & objs)"""
1038 return _IMP_container.ClosePairContainer_set_pair_filters_order(self, objs)
1040 def add_pair_filter(self, obj):
1041 r"""add_pair_filter(ClosePairContainer self, PairPredicate obj) -> unsigned int"""
1042 return _IMP_container.ClosePairContainer_add_pair_filter(self, obj)
1044 def add_pair_filters(self, objs):
1045 r"""add_pair_filters(ClosePairContainer self, IMP::PairPredicates const & objs)"""
1046 return _IMP_container.ClosePairContainer_add_pair_filters(self, objs)
1048 def clear_pair_filters(self):
1049 r"""clear_pair_filters(ClosePairContainer self)"""
1050 return _IMP_container.ClosePairContainer_clear_pair_filters(self)
1052 def get_number_of_pair_filters(self):
1053 r"""get_number_of_pair_filters(ClosePairContainer self) -> unsigned int"""
1054 return _IMP_container.ClosePairContainer_get_number_of_pair_filters(self)
1056 def get_has_pair_filters(self):
1057 r"""get_has_pair_filters(ClosePairContainer self) -> bool"""
1058 return _IMP_container.ClosePairContainer_get_has_pair_filters(self)
1060 def get_pair_filter(self, i):
1061 r"""get_pair_filter(ClosePairContainer self, unsigned int i) -> PairPredicate"""
1062 return _IMP_container.ClosePairContainer_get_pair_filter(self, i)
1064 def get_pair_filters(self):
1065 r"""get_pair_filters(ClosePairContainer self) -> IMP::PairPredicates"""
1066 return _IMP_container.ClosePairContainer_get_pair_filters(self)
1068 def erase_pair_filter(self, i):
1069 r"""erase_pair_filter(ClosePairContainer self, unsigned int i)"""
1070 return _IMP_container.ClosePairContainer_erase_pair_filter(self, i)
1072 def reserve_pair_filters(self, sz):
1073 r"""reserve_pair_filters(ClosePairContainer self, unsigned int sz)"""
1074 return _IMP_container.ClosePairContainer_reserve_pair_filters(self, sz)
1076 def set_slack(self, s):
1077 r"""set_slack(ClosePairContainer self, double s)"""
1078 return _IMP_container.ClosePairContainer_set_slack(self, s)
1080 def get_slack(self):
1081 r"""get_slack(ClosePairContainer self) -> double"""
1082 return _IMP_container.ClosePairContainer_get_slack(self)
1084 def do_get_inputs(self):
1085 r"""do_get_inputs(ClosePairContainer self) -> IMP::ModelObjectsTemp"""
1086 return _IMP_container.ClosePairContainer_do_get_inputs(self)
1088 def do_apply(self, sm):
1089 r"""do_apply(ClosePairContainer self, PairModifier sm)"""
1090 return _IMP_container.ClosePairContainer_do_apply(self, sm)
1092 def get_number_of_update_calls(self):
1093 r"""get_number_of_update_calls(ClosePairContainer self) -> unsigned int"""
1094 return _IMP_container.ClosePairContainer_get_number_of_update_calls(self)
1096 def get_number_of_full_rebuilds(self):
1097 r"""get_number_of_full_rebuilds(ClosePairContainer self) -> unsigned int"""
1098 return _IMP_container.ClosePairContainer_get_number_of_full_rebuilds(self)
1100 def get_number_of_partial_rebuilds(self):
1101 r"""get_number_of_partial_rebuilds(ClosePairContainer self) -> unsigned int"""
1102 return _IMP_container.ClosePairContainer_get_number_of_partial_rebuilds(self)
1104 def get_version_info(self):
1105 r"""get_version_info(ClosePairContainer self) -> VersionInfo"""
1106 return _IMP_container.ClosePairContainer_get_version_info(self)
1107 __swig_destroy__ = _IMP_container.delete_ClosePairContainer
1110 r"""__str__(ClosePairContainer self) -> std::string"""
1111 return _IMP_container.ClosePairContainer___str__(self)
1114 r"""__repr__(ClosePairContainer self) -> std::string"""
1115 return _IMP_container.ClosePairContainer___repr__(self)
1119 return _object_cast_to_ClosePairContainer(o)
1122 def _get_as_binary(self):
1123 r"""_get_as_binary(ClosePairContainer self) -> PyObject *"""
1124 return _IMP_container.ClosePairContainer__get_as_binary(self)
1126 def _set_from_binary(self, p):
1127 r"""_set_from_binary(ClosePairContainer self, PyObject * p)"""
1128 return _IMP_container.ClosePairContainer__set_from_binary(self, p)
1130 def __getstate__(self):
1131 p = self._get_as_binary()
1132 if len(self.__dict__) > 1:
1133 d = self.__dict__.copy()
1138 def __setstate__(self, p):
1139 if not hasattr(self,
'this'):
1141 if isinstance(p, tuple):
1143 self.__dict__.update(d)
1144 return self._set_from_binary(p)
1147 def _get_static_contents(self):
1148 warnings.warn(
"No JAX support for close pairs, so using all "
1150 return self.get_range_indexes()
1154 _IMP_container.ClosePairContainer_swigregister(ClosePairContainer)
1157 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"""
1158 return _IMP_container.get_slack_estimate(m, ps, upper_bound, step, restraints, derivatives, opt, cpc)
1160 r"""Proxy of C++ IMP::container::ConnectingPairContainer class."""
1162 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1164 def __init__(self, sc, error):
1165 r"""__init__(ConnectingPairContainer self, SingletonContainer sc, double error) -> ConnectingPairContainer"""
1166 _IMP_container.ConnectingPairContainer_swiginit(self, _IMP_container.new_ConnectingPairContainer(sc, error))
1168 def do_get_inputs(self):
1169 r"""do_get_inputs(ConnectingPairContainer self) -> IMP::ModelObjectsTemp"""
1170 return _IMP_container.ConnectingPairContainer_do_get_inputs(self)
1172 def do_apply(self, sm):
1173 r"""do_apply(ConnectingPairContainer self, PairModifier sm)"""
1174 return _IMP_container.ConnectingPairContainer_do_apply(self, sm)
1176 def get_version_info(self):
1177 r"""get_version_info(ConnectingPairContainer self) -> VersionInfo"""
1178 return _IMP_container.ConnectingPairContainer_get_version_info(self)
1179 __swig_destroy__ = _IMP_container.delete_ConnectingPairContainer
1182 r"""__str__(ConnectingPairContainer self) -> std::string"""
1183 return _IMP_container.ConnectingPairContainer___str__(self)
1186 r"""__repr__(ConnectingPairContainer self) -> std::string"""
1187 return _IMP_container.ConnectingPairContainer___repr__(self)
1191 return _object_cast_to_ConnectingPairContainer(o)
1195 _IMP_container.ConnectingPairContainer_swigregister(ConnectingPairContainer)
1197 r"""Proxy of C++ IMP::container::ConsecutivePairContainer class."""
1199 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1201 def __init__(self, *args):
1202 r"""__init__(ConsecutivePairContainer self, Model m, IMP::ParticleIndexes const & ps, std::string name="ConsecutivePairContainer%1%") -> ConsecutivePairContainer"""
1203 _IMP_container.ConsecutivePairContainer_swiginit(self, _IMP_container.new_ConsecutivePairContainer(*args))
1205 def do_get_inputs(self):
1206 r"""do_get_inputs(ConsecutivePairContainer self) -> IMP::ModelObjectsTemp"""
1207 return _IMP_container.ConsecutivePairContainer_do_get_inputs(self)
1209 def do_apply(self, sm):
1210 r"""do_apply(ConsecutivePairContainer self, PairModifier sm)"""
1211 return _IMP_container.ConsecutivePairContainer_do_apply(self, sm)
1213 def do_apply_moved(self, sm, moved_pis, reset_pis):
1214 r"""do_apply_moved(ConsecutivePairContainer self, PairModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
1215 return _IMP_container.ConsecutivePairContainer_do_apply_moved(self, sm, moved_pis, reset_pis)
1217 def get_version_info(self):
1218 r"""get_version_info(ConsecutivePairContainer self) -> VersionInfo"""
1219 return _IMP_container.ConsecutivePairContainer_get_version_info(self)
1220 __swig_destroy__ = _IMP_container.delete_ConsecutivePairContainer
1223 r"""__str__(ConsecutivePairContainer self) -> std::string"""
1224 return _IMP_container.ConsecutivePairContainer___str__(self)
1227 r"""__repr__(ConsecutivePairContainer self) -> std::string"""
1228 return _IMP_container.ConsecutivePairContainer___repr__(self)
1232 return _object_cast_to_ConsecutivePairContainer(o)
1236 _IMP_container.ConsecutivePairContainer_swigregister(ConsecutivePairContainer)
1238 r"""Proxy of C++ IMP::container::ConsecutivePairFilter class."""
1240 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1242 def __init__(self, cpc):
1243 r"""__init__(ConsecutivePairFilter self, ConsecutivePairContainer cpc) -> ConsecutivePairFilter"""
1244 _IMP_container.ConsecutivePairFilter_swiginit(self, _IMP_container.new_ConsecutivePairFilter(cpc))
1246 def do_get_inputs(self, m, pi):
1247 r"""do_get_inputs(ConsecutivePairFilter self, Model m, IMP::ParticleIndexes const & pi) -> IMP::ModelObjectsTemp"""
1248 return _IMP_container.ConsecutivePairFilter_do_get_inputs(self, m, pi)
1250 def get_value(self, *args):
1252 get_value(ConsecutivePairFilter self, IMP::ParticlePair const & a) -> int
1253 get_value(ConsecutivePairFilter self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
1255 return _IMP_container.ConsecutivePairFilter_get_value(self, *args)
1257 def get_value_index(self, *args):
1259 get_value_index(ConsecutivePairFilter self, Model arg2, IMP::ParticleIndexPair const & pip) -> int
1260 get_value_index(ConsecutivePairFilter self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
1262 return _IMP_container.ConsecutivePairFilter_get_value_index(self, *args)
1264 def get_version_info(self):
1265 r"""get_version_info(ConsecutivePairFilter self) -> VersionInfo"""
1266 return _IMP_container.ConsecutivePairFilter_get_version_info(self)
1267 __swig_destroy__ = _IMP_container.delete_ConsecutivePairFilter
1270 r"""__str__(ConsecutivePairFilter self) -> std::string"""
1271 return _IMP_container.ConsecutivePairFilter___str__(self)
1274 r"""__repr__(ConsecutivePairFilter self) -> std::string"""
1275 return _IMP_container.ConsecutivePairFilter___repr__(self)
1279 return _object_cast_to_ConsecutivePairFilter(o)
1283 _IMP_container.ConsecutivePairFilter_swigregister(ConsecutivePairFilter)
1285 r"""Proxy of C++ IMP::container::ExclusiveConsecutivePairContainer class."""
1287 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1289 def __init__(self, *args):
1290 r"""__init__(ExclusiveConsecutivePairContainer self, Model m, IMP::ParticleIndexes const & ps, std::string name="ExclusiveConsecutivePairContainer%1%") -> ExclusiveConsecutivePairContainer"""
1291 _IMP_container.ExclusiveConsecutivePairContainer_swiginit(self, _IMP_container.new_ExclusiveConsecutivePairContainer(*args))
1293 def do_get_inputs(self):
1294 r"""do_get_inputs(ExclusiveConsecutivePairContainer self) -> IMP::ModelObjectsTemp"""
1295 return _IMP_container.ExclusiveConsecutivePairContainer_do_get_inputs(self)
1297 def do_apply(self, sm):
1298 r"""do_apply(ExclusiveConsecutivePairContainer self, PairModifier sm)"""
1299 return _IMP_container.ExclusiveConsecutivePairContainer_do_apply(self, sm)
1301 def do_apply_moved(self, sm, moved_pis, reset_pis):
1302 r"""do_apply_moved(ExclusiveConsecutivePairContainer self, PairModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
1303 return _IMP_container.ExclusiveConsecutivePairContainer_do_apply_moved(self, sm, moved_pis, reset_pis)
1305 def get_version_info(self):
1306 r"""get_version_info(ExclusiveConsecutivePairContainer self) -> VersionInfo"""
1307 return _IMP_container.ExclusiveConsecutivePairContainer_get_version_info(self)
1308 __swig_destroy__ = _IMP_container.delete_ExclusiveConsecutivePairContainer
1311 r"""__str__(ExclusiveConsecutivePairContainer self) -> std::string"""
1312 return _IMP_container.ExclusiveConsecutivePairContainer___str__(self)
1315 r"""__repr__(ExclusiveConsecutivePairContainer self) -> std::string"""
1316 return _IMP_container.ExclusiveConsecutivePairContainer___repr__(self)
1320 return _object_cast_to_ExclusiveConsecutivePairContainer(o)
1324 _IMP_container.ExclusiveConsecutivePairContainer_swigregister(ExclusiveConsecutivePairContainer)
1326 r"""Proxy of C++ IMP::container::ExclusiveConsecutivePairFilter class."""
1328 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1331 r"""__init__(ExclusiveConsecutivePairFilter self) -> ExclusiveConsecutivePairFilter"""
1332 _IMP_container.ExclusiveConsecutivePairFilter_swiginit(self, _IMP_container.new_ExclusiveConsecutivePairFilter())
1334 def do_get_inputs(self, m, pi):
1335 r"""do_get_inputs(ExclusiveConsecutivePairFilter self, Model m, IMP::ParticleIndexes const & pi) -> IMP::ModelObjectsTemp"""
1336 return _IMP_container.ExclusiveConsecutivePairFilter_do_get_inputs(self, m, pi)
1338 def get_value(self, *args):
1340 get_value(ExclusiveConsecutivePairFilter self, IMP::ParticlePair const & a) -> int
1341 get_value(ExclusiveConsecutivePairFilter self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
1343 return _IMP_container.ExclusiveConsecutivePairFilter_get_value(self, *args)
1345 def get_value_index(self, *args):
1347 get_value_index(ExclusiveConsecutivePairFilter self, Model m, IMP::ParticleIndexPair const & pip) -> int
1348 get_value_index(ExclusiveConsecutivePairFilter self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
1350 return _IMP_container.ExclusiveConsecutivePairFilter_get_value_index(self, *args)
1352 def get_version_info(self):
1353 r"""get_version_info(ExclusiveConsecutivePairFilter self) -> VersionInfo"""
1354 return _IMP_container.ExclusiveConsecutivePairFilter_get_version_info(self)
1355 __swig_destroy__ = _IMP_container.delete_ExclusiveConsecutivePairFilter
1358 r"""__str__(ExclusiveConsecutivePairFilter self) -> std::string"""
1359 return _IMP_container.ExclusiveConsecutivePairFilter___str__(self)
1362 r"""__repr__(ExclusiveConsecutivePairFilter self) -> std::string"""
1363 return _IMP_container.ExclusiveConsecutivePairFilter___repr__(self)
1367 return _object_cast_to_ExclusiveConsecutivePairFilter(o)
1371 _IMP_container.ExclusiveConsecutivePairFilter_swigregister(ExclusiveConsecutivePairFilter)
1373 r"""Proxy of C++ IMP::container::ListPairContainer class."""
1375 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1377 def __init__(self, *args):
1379 __init__(ListPairContainer self, Model m, IMP::ParticleIndexPairs const & contents, std::string name="ListPairContainer%1%") -> ListPairContainer
1380 __init__(ListPairContainer self, Model m, std::string name="ListPairContainer %1%") -> ListPairContainer
1381 __init__(ListPairContainer self, Model m, char const * name) -> ListPairContainer
1382 __init__(ListPairContainer self) -> ListPairContainer
1384 _IMP_container.ListPairContainer_swiginit(self, _IMP_container.new_ListPairContainer(*args))
1386 def add(self, *args):
1388 add(ListPairContainer self, IMP::ParticleIndexPair const & vt)
1389 add(ListPairContainer self, IMP::ParticleIndexPairs const & c)
1391 return _IMP_container.ListPairContainer_add(self, *args)
1394 r"""set(ListPairContainer self, IMP::ParticleIndexPairs cp)"""
1395 return _IMP_container.ListPairContainer_set(self, cp)
1398 r"""clear(ListPairContainer self)"""
1399 return _IMP_container.ListPairContainer_clear(self)
1401 def do_get_inputs(self):
1402 r"""do_get_inputs(ListPairContainer self) -> IMP::ModelObjectsTemp"""
1403 return _IMP_container.ListPairContainer_do_get_inputs(self)
1405 def do_apply(self, sm):
1406 r"""do_apply(ListPairContainer self, PairModifier sm)"""
1407 return _IMP_container.ListPairContainer_do_apply(self, sm)
1409 def do_apply_moved(self, sm, moved_pis, reset_pis):
1410 r"""do_apply_moved(ListPairContainer self, PairModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
1411 return _IMP_container.ListPairContainer_do_apply_moved(self, sm, moved_pis, reset_pis)
1413 def get_version_info(self):
1414 r"""get_version_info(ListPairContainer self) -> VersionInfo"""
1415 return _IMP_container.ListPairContainer_get_version_info(self)
1416 __swig_destroy__ = _IMP_container.delete_ListPairContainer
1419 r"""__str__(ListPairContainer self) -> std::string"""
1420 return _IMP_container.ListPairContainer___str__(self)
1423 r"""__repr__(ListPairContainer self) -> std::string"""
1424 return _IMP_container.ListPairContainer___repr__(self)
1428 return _object_cast_to_ListPairContainer(o)
1431 def _get_as_binary(self):
1432 r"""_get_as_binary(ListPairContainer self) -> PyObject *"""
1433 return _IMP_container.ListPairContainer__get_as_binary(self)
1435 def _set_from_binary(self, p):
1436 r"""_set_from_binary(ListPairContainer self, PyObject * p)"""
1437 return _IMP_container.ListPairContainer__set_from_binary(self, p)
1439 def __getstate__(self):
1440 p = self._get_as_binary()
1441 if len(self.__dict__) > 1:
1442 d = self.__dict__.copy()
1447 def __setstate__(self, p):
1448 if not hasattr(self,
'this'):
1450 if isinstance(p, tuple):
1452 self.__dict__.update(d)
1453 return self._set_from_binary(p)
1456 def _get_static_contents(self):
1457 return self.get_contents()
1461 _IMP_container.ListPairContainer_swigregister(ListPairContainer)
1463 r"""Proxy of C++ IMP::container::ListQuadContainer class."""
1465 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1467 def __init__(self, *args):
1469 __init__(ListQuadContainer self, Model m, IMP::ParticleIndexQuads const & contents, std::string name="ListQuadContainer%1%") -> ListQuadContainer
1470 __init__(ListQuadContainer self, Model m, std::string name="ListQuadContainer %1%") -> ListQuadContainer
1471 __init__(ListQuadContainer self, Model m, char const * name) -> ListQuadContainer
1472 __init__(ListQuadContainer self) -> ListQuadContainer
1474 _IMP_container.ListQuadContainer_swiginit(self, _IMP_container.new_ListQuadContainer(*args))
1476 def add(self, *args):
1478 add(ListQuadContainer self, IMP::ParticleIndexQuad const & vt)
1479 add(ListQuadContainer self, IMP::ParticleIndexQuads const & c)
1481 return _IMP_container.ListQuadContainer_add(self, *args)
1484 r"""set(ListQuadContainer self, IMP::ParticleIndexQuads cp)"""
1485 return _IMP_container.ListQuadContainer_set(self, cp)
1488 r"""clear(ListQuadContainer self)"""
1489 return _IMP_container.ListQuadContainer_clear(self)
1491 def do_get_inputs(self):
1492 r"""do_get_inputs(ListQuadContainer self) -> IMP::ModelObjectsTemp"""
1493 return _IMP_container.ListQuadContainer_do_get_inputs(self)
1495 def do_apply(self, sm):
1496 r"""do_apply(ListQuadContainer self, QuadModifier sm)"""
1497 return _IMP_container.ListQuadContainer_do_apply(self, sm)
1499 def do_apply_moved(self, sm, moved_pis, reset_pis):
1500 r"""do_apply_moved(ListQuadContainer self, QuadModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
1501 return _IMP_container.ListQuadContainer_do_apply_moved(self, sm, moved_pis, reset_pis)
1503 def get_version_info(self):
1504 r"""get_version_info(ListQuadContainer self) -> VersionInfo"""
1505 return _IMP_container.ListQuadContainer_get_version_info(self)
1506 __swig_destroy__ = _IMP_container.delete_ListQuadContainer
1509 r"""__str__(ListQuadContainer self) -> std::string"""
1510 return _IMP_container.ListQuadContainer___str__(self)
1513 r"""__repr__(ListQuadContainer self) -> std::string"""
1514 return _IMP_container.ListQuadContainer___repr__(self)
1518 return _object_cast_to_ListQuadContainer(o)
1521 def _get_as_binary(self):
1522 r"""_get_as_binary(ListQuadContainer self) -> PyObject *"""
1523 return _IMP_container.ListQuadContainer__get_as_binary(self)
1525 def _set_from_binary(self, p):
1526 r"""_set_from_binary(ListQuadContainer self, PyObject * p)"""
1527 return _IMP_container.ListQuadContainer__set_from_binary(self, p)
1529 def __getstate__(self):
1530 p = self._get_as_binary()
1531 if len(self.__dict__) > 1:
1532 d = self.__dict__.copy()
1537 def __setstate__(self, p):
1538 if not hasattr(self,
'this'):
1540 if isinstance(p, tuple):
1542 self.__dict__.update(d)
1543 return self._set_from_binary(p)
1547 _IMP_container.ListQuadContainer_swigregister(ListQuadContainer)
1549 r"""Proxy of C++ IMP::container::ListSingletonContainer class."""
1551 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1553 def __init__(self, *args):
1555 __init__(ListSingletonContainer self, Model m, IMP::ParticleIndexes const & contents, std::string name="ListSingletonContainer%1%") -> ListSingletonContainer
1556 __init__(ListSingletonContainer self, Model m, std::string name="ListSingletonContainer %1%") -> ListSingletonContainer
1557 __init__(ListSingletonContainer self, Model m, char const * name) -> ListSingletonContainer
1558 __init__(ListSingletonContainer self) -> ListSingletonContainer
1560 _IMP_container.ListSingletonContainer_swiginit(self, _IMP_container.new_ListSingletonContainer(*args))
1562 def add(self, *args):
1564 add(ListSingletonContainer self, ParticleIndex vt)
1565 add(ListSingletonContainer self, IMP::ParticleIndexes const & c)
1567 return _IMP_container.ListSingletonContainer_add(self, *args)
1570 r"""set(ListSingletonContainer self, IMP::ParticleIndexes cp)"""
1571 return _IMP_container.ListSingletonContainer_set(self, cp)
1574 r"""clear(ListSingletonContainer self)"""
1575 return _IMP_container.ListSingletonContainer_clear(self)
1577 def do_get_inputs(self):
1578 r"""do_get_inputs(ListSingletonContainer self) -> IMP::ModelObjectsTemp"""
1579 return _IMP_container.ListSingletonContainer_do_get_inputs(self)
1581 def do_apply(self, sm):
1582 r"""do_apply(ListSingletonContainer self, SingletonModifier sm)"""
1583 return _IMP_container.ListSingletonContainer_do_apply(self, sm)
1585 def do_apply_moved(self, sm, moved_pis, reset_pis):
1586 r"""do_apply_moved(ListSingletonContainer self, SingletonModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
1587 return _IMP_container.ListSingletonContainer_do_apply_moved(self, sm, moved_pis, reset_pis)
1589 def get_version_info(self):
1590 r"""get_version_info(ListSingletonContainer self) -> VersionInfo"""
1591 return _IMP_container.ListSingletonContainer_get_version_info(self)
1592 __swig_destroy__ = _IMP_container.delete_ListSingletonContainer
1595 r"""__str__(ListSingletonContainer self) -> std::string"""
1596 return _IMP_container.ListSingletonContainer___str__(self)
1599 r"""__repr__(ListSingletonContainer self) -> std::string"""
1600 return _IMP_container.ListSingletonContainer___repr__(self)
1604 return _object_cast_to_ListSingletonContainer(o)
1607 def _get_as_binary(self):
1608 r"""_get_as_binary(ListSingletonContainer self) -> PyObject *"""
1609 return _IMP_container.ListSingletonContainer__get_as_binary(self)
1611 def _set_from_binary(self, p):
1612 r"""_set_from_binary(ListSingletonContainer self, PyObject * p)"""
1613 return _IMP_container.ListSingletonContainer__set_from_binary(self, p)
1615 def __getstate__(self):
1616 p = self._get_as_binary()
1617 if len(self.__dict__) > 1:
1618 d = self.__dict__.copy()
1623 def __setstate__(self, p):
1624 if not hasattr(self,
'this'):
1626 if isinstance(p, tuple):
1628 self.__dict__.update(d)
1629 return self._set_from_binary(p)
1632 def _get_static_contents(self):
1633 return self.get_contents()
1637 _IMP_container.ListSingletonContainer_swigregister(ListSingletonContainer)
1639 r"""Proxy of C++ IMP::container::ListTripletContainer class."""
1641 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1643 def __init__(self, *args):
1645 __init__(ListTripletContainer self, Model m, IMP::ParticleIndexTriplets const & contents, std::string name="ListTripletContainer%1%") -> ListTripletContainer
1646 __init__(ListTripletContainer self, Model m, std::string name="ListTripletContainer %1%") -> ListTripletContainer
1647 __init__(ListTripletContainer self, Model m, char const * name) -> ListTripletContainer
1648 __init__(ListTripletContainer self) -> ListTripletContainer
1650 _IMP_container.ListTripletContainer_swiginit(self, _IMP_container.new_ListTripletContainer(*args))
1652 def add(self, *args):
1654 add(ListTripletContainer self, IMP::ParticleIndexTriplet const & vt)
1655 add(ListTripletContainer self, IMP::ParticleIndexTriplets const & c)
1657 return _IMP_container.ListTripletContainer_add(self, *args)
1660 r"""set(ListTripletContainer self, IMP::ParticleIndexTriplets cp)"""
1661 return _IMP_container.ListTripletContainer_set(self, cp)
1664 r"""clear(ListTripletContainer self)"""
1665 return _IMP_container.ListTripletContainer_clear(self)
1667 def do_get_inputs(self):
1668 r"""do_get_inputs(ListTripletContainer self) -> IMP::ModelObjectsTemp"""
1669 return _IMP_container.ListTripletContainer_do_get_inputs(self)
1671 def do_apply(self, sm):
1672 r"""do_apply(ListTripletContainer self, TripletModifier sm)"""
1673 return _IMP_container.ListTripletContainer_do_apply(self, sm)
1675 def do_apply_moved(self, sm, moved_pis, reset_pis):
1676 r"""do_apply_moved(ListTripletContainer self, TripletModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
1677 return _IMP_container.ListTripletContainer_do_apply_moved(self, sm, moved_pis, reset_pis)
1679 def get_version_info(self):
1680 r"""get_version_info(ListTripletContainer self) -> VersionInfo"""
1681 return _IMP_container.ListTripletContainer_get_version_info(self)
1682 __swig_destroy__ = _IMP_container.delete_ListTripletContainer
1685 r"""__str__(ListTripletContainer self) -> std::string"""
1686 return _IMP_container.ListTripletContainer___str__(self)
1689 r"""__repr__(ListTripletContainer self) -> std::string"""
1690 return _IMP_container.ListTripletContainer___repr__(self)
1694 return _object_cast_to_ListTripletContainer(o)
1697 def _get_as_binary(self):
1698 r"""_get_as_binary(ListTripletContainer self) -> PyObject *"""
1699 return _IMP_container.ListTripletContainer__get_as_binary(self)
1701 def _set_from_binary(self, p):
1702 r"""_set_from_binary(ListTripletContainer self, PyObject * p)"""
1703 return _IMP_container.ListTripletContainer__set_from_binary(self, p)
1705 def __getstate__(self):
1706 p = self._get_as_binary()
1707 if len(self.__dict__) > 1:
1708 d = self.__dict__.copy()
1713 def __setstate__(self, p):
1714 if not hasattr(self,
'this'):
1716 if isinstance(p, tuple):
1718 self.__dict__.update(d)
1719 return self._set_from_binary(p)
1723 _IMP_container.ListTripletContainer_swigregister(ListTripletContainer)
1725 r"""Proxy of C++ IMP::container::DynamicListPairContainer class."""
1727 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1729 def __init__(self, *args, **kwargs):
1730 raise AttributeError(
"No constructor defined - class is abstract")
1732 def add(self, *args):
1734 add(DynamicListPairContainer self, IMP::ParticleIndexPair const & vt)
1735 add(DynamicListPairContainer self, IMP::ParticleIndexPairs const & c)
1737 return _IMP_container.DynamicListPairContainer_add(self, *args)
1740 r"""set(DynamicListPairContainer self, IMP::ParticleIndexPairs cp)"""
1741 return _IMP_container.DynamicListPairContainer_set(self, cp)
1744 r"""clear(DynamicListPairContainer self)"""
1745 return _IMP_container.DynamicListPairContainer_clear(self)
1747 def do_get_inputs(self):
1748 r"""do_get_inputs(DynamicListPairContainer self) -> IMP::ModelObjectsTemp"""
1749 return _IMP_container.DynamicListPairContainer_do_get_inputs(self)
1751 def do_apply(self, sm):
1752 r"""do_apply(DynamicListPairContainer self, PairModifier sm)"""
1753 return _IMP_container.DynamicListPairContainer_do_apply(self, sm)
1755 def do_apply_moved(self, sm, moved_pis, reset_pis):
1756 r"""do_apply_moved(DynamicListPairContainer self, PairModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
1757 return _IMP_container.DynamicListPairContainer_do_apply_moved(self, sm, moved_pis, reset_pis)
1759 def get_version_info(self):
1760 r"""get_version_info(DynamicListPairContainer self) -> VersionInfo"""
1761 return _IMP_container.DynamicListPairContainer_get_version_info(self)
1762 __swig_destroy__ = _IMP_container.delete_DynamicListPairContainer
1765 r"""__str__(DynamicListPairContainer self) -> std::string"""
1766 return _IMP_container.DynamicListPairContainer___str__(self)
1769 r"""__repr__(DynamicListPairContainer self) -> std::string"""
1770 return _IMP_container.DynamicListPairContainer___repr__(self)
1774 return _object_cast_to_DynamicListPairContainer(o)
1778 _IMP_container.DynamicListPairContainer_swigregister(DynamicListPairContainer)
1780 r"""Proxy of C++ IMP::container::DynamicListQuadContainer class."""
1782 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1784 def __init__(self, *args, **kwargs):
1785 raise AttributeError(
"No constructor defined - class is abstract")
1787 def add(self, *args):
1789 add(DynamicListQuadContainer self, IMP::ParticleIndexQuad const & vt)
1790 add(DynamicListQuadContainer self, IMP::ParticleIndexQuads const & c)
1792 return _IMP_container.DynamicListQuadContainer_add(self, *args)
1795 r"""set(DynamicListQuadContainer self, IMP::ParticleIndexQuads cp)"""
1796 return _IMP_container.DynamicListQuadContainer_set(self, cp)
1799 r"""clear(DynamicListQuadContainer self)"""
1800 return _IMP_container.DynamicListQuadContainer_clear(self)
1802 def do_get_inputs(self):
1803 r"""do_get_inputs(DynamicListQuadContainer self) -> IMP::ModelObjectsTemp"""
1804 return _IMP_container.DynamicListQuadContainer_do_get_inputs(self)
1806 def do_apply(self, sm):
1807 r"""do_apply(DynamicListQuadContainer self, QuadModifier sm)"""
1808 return _IMP_container.DynamicListQuadContainer_do_apply(self, sm)
1810 def do_apply_moved(self, sm, moved_pis, reset_pis):
1811 r"""do_apply_moved(DynamicListQuadContainer self, QuadModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
1812 return _IMP_container.DynamicListQuadContainer_do_apply_moved(self, sm, moved_pis, reset_pis)
1814 def get_version_info(self):
1815 r"""get_version_info(DynamicListQuadContainer self) -> VersionInfo"""
1816 return _IMP_container.DynamicListQuadContainer_get_version_info(self)
1817 __swig_destroy__ = _IMP_container.delete_DynamicListQuadContainer
1820 r"""__str__(DynamicListQuadContainer self) -> std::string"""
1821 return _IMP_container.DynamicListQuadContainer___str__(self)
1824 r"""__repr__(DynamicListQuadContainer self) -> std::string"""
1825 return _IMP_container.DynamicListQuadContainer___repr__(self)
1829 return _object_cast_to_DynamicListQuadContainer(o)
1833 _IMP_container.DynamicListQuadContainer_swigregister(DynamicListQuadContainer)
1835 r"""Proxy of C++ IMP::container::DynamicListSingletonContainer class."""
1837 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1839 def __init__(self, *args, **kwargs):
1840 raise AttributeError(
"No constructor defined - class is abstract")
1842 def add(self, *args):
1844 add(DynamicListSingletonContainer self, ParticleIndex vt)
1845 add(DynamicListSingletonContainer self, IMP::ParticleIndexes const & c)
1847 return _IMP_container.DynamicListSingletonContainer_add(self, *args)
1850 r"""set(DynamicListSingletonContainer self, IMP::ParticleIndexes cp)"""
1851 return _IMP_container.DynamicListSingletonContainer_set(self, cp)
1854 r"""clear(DynamicListSingletonContainer self)"""
1855 return _IMP_container.DynamicListSingletonContainer_clear(self)
1857 def do_get_inputs(self):
1858 r"""do_get_inputs(DynamicListSingletonContainer self) -> IMP::ModelObjectsTemp"""
1859 return _IMP_container.DynamicListSingletonContainer_do_get_inputs(self)
1861 def do_apply(self, sm):
1862 r"""do_apply(DynamicListSingletonContainer self, SingletonModifier sm)"""
1863 return _IMP_container.DynamicListSingletonContainer_do_apply(self, sm)
1865 def do_apply_moved(self, sm, moved_pis, reset_pis):
1866 r"""do_apply_moved(DynamicListSingletonContainer self, SingletonModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
1867 return _IMP_container.DynamicListSingletonContainer_do_apply_moved(self, sm, moved_pis, reset_pis)
1869 def get_version_info(self):
1870 r"""get_version_info(DynamicListSingletonContainer self) -> VersionInfo"""
1871 return _IMP_container.DynamicListSingletonContainer_get_version_info(self)
1872 __swig_destroy__ = _IMP_container.delete_DynamicListSingletonContainer
1875 r"""__str__(DynamicListSingletonContainer self) -> std::string"""
1876 return _IMP_container.DynamicListSingletonContainer___str__(self)
1879 r"""__repr__(DynamicListSingletonContainer self) -> std::string"""
1880 return _IMP_container.DynamicListSingletonContainer___repr__(self)
1884 return _object_cast_to_DynamicListSingletonContainer(o)
1888 _IMP_container.DynamicListSingletonContainer_swigregister(DynamicListSingletonContainer)
1890 r"""Proxy of C++ IMP::container::DynamicListTripletContainer class."""
1892 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1894 def __init__(self, *args, **kwargs):
1895 raise AttributeError(
"No constructor defined - class is abstract")
1897 def add(self, *args):
1899 add(DynamicListTripletContainer self, IMP::ParticleIndexTriplet const & vt)
1900 add(DynamicListTripletContainer self, IMP::ParticleIndexTriplets const & c)
1902 return _IMP_container.DynamicListTripletContainer_add(self, *args)
1905 r"""set(DynamicListTripletContainer self, IMP::ParticleIndexTriplets cp)"""
1906 return _IMP_container.DynamicListTripletContainer_set(self, cp)
1909 r"""clear(DynamicListTripletContainer self)"""
1910 return _IMP_container.DynamicListTripletContainer_clear(self)
1912 def do_get_inputs(self):
1913 r"""do_get_inputs(DynamicListTripletContainer self) -> IMP::ModelObjectsTemp"""
1914 return _IMP_container.DynamicListTripletContainer_do_get_inputs(self)
1916 def do_apply(self, sm):
1917 r"""do_apply(DynamicListTripletContainer self, TripletModifier sm)"""
1918 return _IMP_container.DynamicListTripletContainer_do_apply(self, sm)
1920 def do_apply_moved(self, sm, moved_pis, reset_pis):
1921 r"""do_apply_moved(DynamicListTripletContainer self, TripletModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
1922 return _IMP_container.DynamicListTripletContainer_do_apply_moved(self, sm, moved_pis, reset_pis)
1924 def get_version_info(self):
1925 r"""get_version_info(DynamicListTripletContainer self) -> VersionInfo"""
1926 return _IMP_container.DynamicListTripletContainer_get_version_info(self)
1927 __swig_destroy__ = _IMP_container.delete_DynamicListTripletContainer
1930 r"""__str__(DynamicListTripletContainer self) -> std::string"""
1931 return _IMP_container.DynamicListTripletContainer___str__(self)
1934 r"""__repr__(DynamicListTripletContainer self) -> std::string"""
1935 return _IMP_container.DynamicListTripletContainer___repr__(self)
1939 return _object_cast_to_DynamicListTripletContainer(o)
1943 _IMP_container.DynamicListTripletContainer_swigregister(DynamicListTripletContainer)
1945 r"""Proxy of C++ IMP::container::MinimumPairRestraint class."""
1947 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1949 def __init__(self, *args):
1950 r"""__init__(MinimumPairRestraint self, PairScore f, _PairContainerAdaptor c, unsigned int n=1, std::string name="MinimumPairRestraint %1%") -> MinimumPairRestraint"""
1951 _IMP_container.MinimumPairRestraint_swiginit(self, _IMP_container.new_MinimumPairRestraint(*args))
1953 def do_get_inputs(self):
1954 r"""do_get_inputs(MinimumPairRestraint self) -> IMP::ModelObjectsTemp"""
1955 return _IMP_container.MinimumPairRestraint_do_get_inputs(self)
1957 def get_version_info(self):
1958 r"""get_version_info(MinimumPairRestraint self) -> VersionInfo"""
1959 return _IMP_container.MinimumPairRestraint_get_version_info(self)
1960 __swig_destroy__ = _IMP_container.delete_MinimumPairRestraint
1963 r"""set_n(MinimumPairRestraint self, unsigned int n)"""
1964 return _IMP_container.MinimumPairRestraint_set_n(self, n)
1966 def do_create_current_decomposition(self):
1967 r"""do_create_current_decomposition(MinimumPairRestraint self) -> IMP::Restraints"""
1968 return _IMP_container.MinimumPairRestraint_do_create_current_decomposition(self)
1971 r"""__str__(MinimumPairRestraint self) -> std::string"""
1972 return _IMP_container.MinimumPairRestraint___str__(self)
1975 r"""__repr__(MinimumPairRestraint self) -> std::string"""
1976 return _IMP_container.MinimumPairRestraint___repr__(self)
1980 return _object_cast_to_MinimumPairRestraint(o)
1984 _IMP_container.MinimumPairRestraint_swigregister(MinimumPairRestraint)
1986 r"""Proxy of C++ IMP::container::MinimumPairScore class."""
1988 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1990 def __init__(self, *args):
1991 r"""__init__(MinimumPairScore self, IMP::PairScoresTemp const & scores, unsigned int n=1, std::string name="PairScore %1%") -> MinimumPairScore"""
1992 _IMP_container.MinimumPairScore_swiginit(self, _IMP_container.new_MinimumPairScore(*args))
1994 def do_get_inputs(self, m, pis):
1995 r"""do_get_inputs(MinimumPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
1996 return _IMP_container.MinimumPairScore_do_get_inputs(self, m, pis)
1998 def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
1999 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"""
2000 return _IMP_container.MinimumPairScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
2002 def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
2003 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"""
2004 return _IMP_container.MinimumPairScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
2006 def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
2007 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"""
2008 return _IMP_container.MinimumPairScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
2010 def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
2011 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"""
2012 return _IMP_container.MinimumPairScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
2014 def get_version_info(self):
2015 r"""get_version_info(MinimumPairScore self) -> VersionInfo"""
2016 return _IMP_container.MinimumPairScore_get_version_info(self)
2017 __swig_destroy__ = _IMP_container.delete_MinimumPairScore
2019 def do_create_current_decomposition(self, m, vt):
2020 r"""do_create_current_decomposition(MinimumPairScore self, Model m, IMP::ParticleIndexPair const & vt) -> IMP::Restraints"""
2021 return _IMP_container.MinimumPairScore_do_create_current_decomposition(self, m, vt)
2024 r"""__str__(MinimumPairScore self) -> std::string"""
2025 return _IMP_container.MinimumPairScore___str__(self)
2028 r"""__repr__(MinimumPairScore self) -> std::string"""
2029 return _IMP_container.MinimumPairScore___repr__(self)
2033 return _object_cast_to_MinimumPairScore(o)
2037 _IMP_container.MinimumPairScore_swigregister(MinimumPairScore)
2039 r"""Proxy of C++ IMP::container::MinimumQuadRestraint class."""
2041 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2043 def __init__(self, *args):
2044 r"""__init__(MinimumQuadRestraint self, QuadScore f, _QuadContainerAdaptor c, unsigned int n=1, std::string name="MinimumQuadRestraint %1%") -> MinimumQuadRestraint"""
2045 _IMP_container.MinimumQuadRestraint_swiginit(self, _IMP_container.new_MinimumQuadRestraint(*args))
2047 def do_get_inputs(self):
2048 r"""do_get_inputs(MinimumQuadRestraint self) -> IMP::ModelObjectsTemp"""
2049 return _IMP_container.MinimumQuadRestraint_do_get_inputs(self)
2051 def get_version_info(self):
2052 r"""get_version_info(MinimumQuadRestraint self) -> VersionInfo"""
2053 return _IMP_container.MinimumQuadRestraint_get_version_info(self)
2054 __swig_destroy__ = _IMP_container.delete_MinimumQuadRestraint
2057 r"""set_n(MinimumQuadRestraint self, unsigned int n)"""
2058 return _IMP_container.MinimumQuadRestraint_set_n(self, n)
2060 def do_create_current_decomposition(self):
2061 r"""do_create_current_decomposition(MinimumQuadRestraint self) -> IMP::Restraints"""
2062 return _IMP_container.MinimumQuadRestraint_do_create_current_decomposition(self)
2065 r"""__str__(MinimumQuadRestraint self) -> std::string"""
2066 return _IMP_container.MinimumQuadRestraint___str__(self)
2069 r"""__repr__(MinimumQuadRestraint self) -> std::string"""
2070 return _IMP_container.MinimumQuadRestraint___repr__(self)
2074 return _object_cast_to_MinimumQuadRestraint(o)
2078 _IMP_container.MinimumQuadRestraint_swigregister(MinimumQuadRestraint)
2080 r"""Proxy of C++ IMP::container::MinimumQuadScore class."""
2082 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2084 def __init__(self, *args):
2085 r"""__init__(MinimumQuadScore self, IMP::QuadScoresTemp const & scores, unsigned int n=1, std::string name="QuadScore %1%") -> MinimumQuadScore"""
2086 _IMP_container.MinimumQuadScore_swiginit(self, _IMP_container.new_MinimumQuadScore(*args))
2088 def do_get_inputs(self, m, pis):
2089 r"""do_get_inputs(MinimumQuadScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
2090 return _IMP_container.MinimumQuadScore_do_get_inputs(self, m, pis)
2092 def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
2093 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"""
2094 return _IMP_container.MinimumQuadScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
2096 def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
2097 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"""
2098 return _IMP_container.MinimumQuadScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
2100 def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
2101 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"""
2102 return _IMP_container.MinimumQuadScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
2104 def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
2105 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"""
2106 return _IMP_container.MinimumQuadScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
2108 def get_version_info(self):
2109 r"""get_version_info(MinimumQuadScore self) -> VersionInfo"""
2110 return _IMP_container.MinimumQuadScore_get_version_info(self)
2111 __swig_destroy__ = _IMP_container.delete_MinimumQuadScore
2113 def do_create_current_decomposition(self, m, vt):
2114 r"""do_create_current_decomposition(MinimumQuadScore self, Model m, IMP::ParticleIndexQuad const & vt) -> IMP::Restraints"""
2115 return _IMP_container.MinimumQuadScore_do_create_current_decomposition(self, m, vt)
2118 r"""__str__(MinimumQuadScore self) -> std::string"""
2119 return _IMP_container.MinimumQuadScore___str__(self)
2122 r"""__repr__(MinimumQuadScore self) -> std::string"""
2123 return _IMP_container.MinimumQuadScore___repr__(self)
2127 return _object_cast_to_MinimumQuadScore(o)
2131 _IMP_container.MinimumQuadScore_swigregister(MinimumQuadScore)
2133 r"""Proxy of C++ IMP::container::MinimumSingletonRestraint class."""
2135 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2137 def __init__(self, *args):
2138 r"""__init__(MinimumSingletonRestraint self, SingletonScore f, _SingletonContainerAdaptor c, unsigned int n=1, std::string name="MinimumSingletonRestraint %1%") -> MinimumSingletonRestraint"""
2139 _IMP_container.MinimumSingletonRestraint_swiginit(self, _IMP_container.new_MinimumSingletonRestraint(*args))
2141 def do_get_inputs(self):
2142 r"""do_get_inputs(MinimumSingletonRestraint self) -> IMP::ModelObjectsTemp"""
2143 return _IMP_container.MinimumSingletonRestraint_do_get_inputs(self)
2145 def get_version_info(self):
2146 r"""get_version_info(MinimumSingletonRestraint self) -> VersionInfo"""
2147 return _IMP_container.MinimumSingletonRestraint_get_version_info(self)
2148 __swig_destroy__ = _IMP_container.delete_MinimumSingletonRestraint
2151 r"""set_n(MinimumSingletonRestraint self, unsigned int n)"""
2152 return _IMP_container.MinimumSingletonRestraint_set_n(self, n)
2154 def do_create_current_decomposition(self):
2155 r"""do_create_current_decomposition(MinimumSingletonRestraint self) -> IMP::Restraints"""
2156 return _IMP_container.MinimumSingletonRestraint_do_create_current_decomposition(self)
2159 r"""__str__(MinimumSingletonRestraint self) -> std::string"""
2160 return _IMP_container.MinimumSingletonRestraint___str__(self)
2163 r"""__repr__(MinimumSingletonRestraint self) -> std::string"""
2164 return _IMP_container.MinimumSingletonRestraint___repr__(self)
2168 return _object_cast_to_MinimumSingletonRestraint(o)
2172 _IMP_container.MinimumSingletonRestraint_swigregister(MinimumSingletonRestraint)
2174 r"""Proxy of C++ IMP::container::MinimumSingletonScore class."""
2176 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2178 def __init__(self, *args):
2179 r"""__init__(MinimumSingletonScore self, IMP::SingletonScoresTemp const & scores, unsigned int n=1, std::string name="SingletonScore %1%") -> MinimumSingletonScore"""
2180 _IMP_container.MinimumSingletonScore_swiginit(self, _IMP_container.new_MinimumSingletonScore(*args))
2182 def do_get_inputs(self, m, pis):
2183 r"""do_get_inputs(MinimumSingletonScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
2184 return _IMP_container.MinimumSingletonScore_do_get_inputs(self, m, pis)
2186 def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
2187 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"""
2188 return _IMP_container.MinimumSingletonScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
2190 def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
2191 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"""
2192 return _IMP_container.MinimumSingletonScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
2194 def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
2195 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"""
2196 return _IMP_container.MinimumSingletonScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
2198 def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
2199 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"""
2200 return _IMP_container.MinimumSingletonScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
2202 def get_version_info(self):
2203 r"""get_version_info(MinimumSingletonScore self) -> VersionInfo"""
2204 return _IMP_container.MinimumSingletonScore_get_version_info(self)
2205 __swig_destroy__ = _IMP_container.delete_MinimumSingletonScore
2207 def do_create_current_decomposition(self, m, vt):
2208 r"""do_create_current_decomposition(MinimumSingletonScore self, Model m, ParticleIndex vt) -> IMP::Restraints"""
2209 return _IMP_container.MinimumSingletonScore_do_create_current_decomposition(self, m, vt)
2212 r"""__str__(MinimumSingletonScore self) -> std::string"""
2213 return _IMP_container.MinimumSingletonScore___str__(self)
2216 r"""__repr__(MinimumSingletonScore self) -> std::string"""
2217 return _IMP_container.MinimumSingletonScore___repr__(self)
2221 return _object_cast_to_MinimumSingletonScore(o)
2225 _IMP_container.MinimumSingletonScore_swigregister(MinimumSingletonScore)
2227 r"""Proxy of C++ IMP::container::MinimumTripletRestraint class."""
2229 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2231 def __init__(self, *args):
2232 r"""__init__(MinimumTripletRestraint self, TripletScore f, _TripletContainerAdaptor c, unsigned int n=1, std::string name="MinimumTripletRestraint %1%") -> MinimumTripletRestraint"""
2233 _IMP_container.MinimumTripletRestraint_swiginit(self, _IMP_container.new_MinimumTripletRestraint(*args))
2235 def do_get_inputs(self):
2236 r"""do_get_inputs(MinimumTripletRestraint self) -> IMP::ModelObjectsTemp"""
2237 return _IMP_container.MinimumTripletRestraint_do_get_inputs(self)
2239 def get_version_info(self):
2240 r"""get_version_info(MinimumTripletRestraint self) -> VersionInfo"""
2241 return _IMP_container.MinimumTripletRestraint_get_version_info(self)
2242 __swig_destroy__ = _IMP_container.delete_MinimumTripletRestraint
2245 r"""set_n(MinimumTripletRestraint self, unsigned int n)"""
2246 return _IMP_container.MinimumTripletRestraint_set_n(self, n)
2248 def do_create_current_decomposition(self):
2249 r"""do_create_current_decomposition(MinimumTripletRestraint self) -> IMP::Restraints"""
2250 return _IMP_container.MinimumTripletRestraint_do_create_current_decomposition(self)
2253 r"""__str__(MinimumTripletRestraint self) -> std::string"""
2254 return _IMP_container.MinimumTripletRestraint___str__(self)
2257 r"""__repr__(MinimumTripletRestraint self) -> std::string"""
2258 return _IMP_container.MinimumTripletRestraint___repr__(self)
2262 return _object_cast_to_MinimumTripletRestraint(o)
2266 _IMP_container.MinimumTripletRestraint_swigregister(MinimumTripletRestraint)
2268 r"""Proxy of C++ IMP::container::MinimumTripletScore class."""
2270 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2272 def __init__(self, *args):
2273 r"""__init__(MinimumTripletScore self, IMP::TripletScoresTemp const & scores, unsigned int n=1, std::string name="TripletScore %1%") -> MinimumTripletScore"""
2274 _IMP_container.MinimumTripletScore_swiginit(self, _IMP_container.new_MinimumTripletScore(*args))
2276 def do_get_inputs(self, m, pis):
2277 r"""do_get_inputs(MinimumTripletScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
2278 return _IMP_container.MinimumTripletScore_do_get_inputs(self, m, pis)
2280 def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
2281 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"""
2282 return _IMP_container.MinimumTripletScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
2284 def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
2285 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"""
2286 return _IMP_container.MinimumTripletScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
2288 def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
2289 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"""
2290 return _IMP_container.MinimumTripletScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
2292 def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
2293 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"""
2294 return _IMP_container.MinimumTripletScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
2296 def get_version_info(self):
2297 r"""get_version_info(MinimumTripletScore self) -> VersionInfo"""
2298 return _IMP_container.MinimumTripletScore_get_version_info(self)
2299 __swig_destroy__ = _IMP_container.delete_MinimumTripletScore
2301 def do_create_current_decomposition(self, m, vt):
2302 r"""do_create_current_decomposition(MinimumTripletScore self, Model m, IMP::ParticleIndexTriplet const & vt) -> IMP::Restraints"""
2303 return _IMP_container.MinimumTripletScore_do_create_current_decomposition(self, m, vt)
2306 r"""__str__(MinimumTripletScore self) -> std::string"""
2307 return _IMP_container.MinimumTripletScore___str__(self)
2310 r"""__repr__(MinimumTripletScore self) -> std::string"""
2311 return _IMP_container.MinimumTripletScore___repr__(self)
2315 return _object_cast_to_MinimumTripletScore(o)
2319 _IMP_container.MinimumTripletScore_swigregister(MinimumTripletScore)
2321 r"""Proxy of C++ IMP::container::PairContainerSet class."""
2323 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2325 def __init__(self, *args):
2327 __init__(PairContainerSet self, Model m, std::string name="PairContainerSet %1%") -> PairContainerSet
2328 __init__(PairContainerSet self, IMP::PairContainersTemp const & pc, std::string name="PairContainerSet %1%") -> PairContainerSet
2330 _IMP_container.PairContainerSet_swiginit(self, _IMP_container.new_PairContainerSet(*args))
2332 def do_apply(self, sm):
2333 r"""do_apply(PairContainerSet self, PairModifier sm)"""
2334 return _IMP_container.PairContainerSet_do_apply(self, sm)
2336 def do_apply_moved(self, sm, moved_pis, reset_pis):
2337 r"""do_apply_moved(PairContainerSet self, PairModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
2338 return _IMP_container.PairContainerSet_do_apply_moved(self, sm, moved_pis, reset_pis)
2340 def get_version_info(self):
2341 r"""get_version_info(PairContainerSet self) -> VersionInfo"""
2342 return _IMP_container.PairContainerSet_get_version_info(self)
2343 __swig_destroy__ = _IMP_container.delete_PairContainerSet
2344 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)
2345 def __set_pair_containers(self, obj): IMP._list_util.set_varlist(self.pair_containers, obj)
2346 def __del_pair_containers(self): IMP._list_util.del_varlist(self.pair_containers)
2347 pair_containers = property(__get_pair_containers, __set_pair_containers, __del_pair_containers, doc=
"List of ##ucnames")
2349 def remove_pair_container(self, d):
2350 r"""remove_pair_container(PairContainerSet self, PairContainer d)"""
2351 return _IMP_container.PairContainerSet_remove_pair_container(self, d)
2353 def _python_index_pair_container(self, d, start, stop):
2354 r"""_python_index_pair_container(PairContainerSet self, PairContainer d, unsigned int start, unsigned int stop) -> unsigned int"""
2355 return _IMP_container.PairContainerSet__python_index_pair_container(self, d, start, stop)
2357 def remove_pair_containers(self, d):
2358 r"""remove_pair_containers(PairContainerSet self, IMP::PairContainers const & d)"""
2359 return _IMP_container.PairContainerSet_remove_pair_containers(self, d)
2361 def set_pair_containers(self, ps):
2362 r"""set_pair_containers(PairContainerSet self, IMP::PairContainers const & ps)"""
2363 return _IMP_container.PairContainerSet_set_pair_containers(self, ps)
2365 def set_pair_containers_order(self, objs):
2366 r"""set_pair_containers_order(PairContainerSet self, IMP::PairContainers const & objs)"""
2367 return _IMP_container.PairContainerSet_set_pair_containers_order(self, objs)
2369 def add_pair_container(self, obj):
2370 r"""add_pair_container(PairContainerSet self, PairContainer obj) -> unsigned int"""
2371 return _IMP_container.PairContainerSet_add_pair_container(self, obj)
2373 def add_pair_containers(self, objs):
2374 r"""add_pair_containers(PairContainerSet self, IMP::PairContainers const & objs)"""
2375 return _IMP_container.PairContainerSet_add_pair_containers(self, objs)
2377 def clear_pair_containers(self):
2378 r"""clear_pair_containers(PairContainerSet self)"""
2379 return _IMP_container.PairContainerSet_clear_pair_containers(self)
2381 def get_number_of_pair_containers(self):
2382 r"""get_number_of_pair_containers(PairContainerSet self) -> unsigned int"""
2383 return _IMP_container.PairContainerSet_get_number_of_pair_containers(self)
2385 def get_has_pair_containers(self):
2386 r"""get_has_pair_containers(PairContainerSet self) -> bool"""
2387 return _IMP_container.PairContainerSet_get_has_pair_containers(self)
2389 def get_pair_container(self, i):
2390 r"""get_pair_container(PairContainerSet self, unsigned int i) -> PairContainer"""
2391 return _IMP_container.PairContainerSet_get_pair_container(self, i)
2393 def get_pair_containers(self):
2394 r"""get_pair_containers(PairContainerSet self) -> IMP::PairContainers"""
2395 return _IMP_container.PairContainerSet_get_pair_containers(self)
2397 def erase_pair_container(self, i):
2398 r"""erase_pair_container(PairContainerSet self, unsigned int i)"""
2399 return _IMP_container.PairContainerSet_erase_pair_container(self, i)
2401 def reserve_pair_containers(self, sz):
2402 r"""reserve_pair_containers(PairContainerSet self, unsigned int sz)"""
2403 return _IMP_container.PairContainerSet_reserve_pair_containers(self, sz)
2405 def do_get_inputs(self):
2406 r"""do_get_inputs(PairContainerSet self) -> IMP::ModelObjectsTemp"""
2407 return _IMP_container.PairContainerSet_do_get_inputs(self)
2410 r"""__str__(PairContainerSet self) -> std::string"""
2411 return _IMP_container.PairContainerSet___str__(self)
2414 r"""__repr__(PairContainerSet self) -> std::string"""
2415 return _IMP_container.PairContainerSet___repr__(self)
2419 return _object_cast_to_PairContainerSet(o)
2423 _IMP_container.PairContainerSet_swigregister(PairContainerSet)
2425 r"""Proxy of C++ IMP::container::PairsConstraint class."""
2427 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2429 def __init__(self, *args):
2431 __init__(PairsConstraint self, PairModifier before, PairModifier after, _PairContainerAdaptor c, std::string name="PairsConstraint %1%") -> PairsConstraint
2432 __init__(PairsConstraint self) -> PairsConstraint
2434 _IMP_container.PairsConstraint_swiginit(self, _IMP_container.new_PairsConstraint(*args))
2436 def get_before_modifier(self):
2437 r"""get_before_modifier(PairsConstraint self) -> PairModifier"""
2438 return _IMP_container.PairsConstraint_get_before_modifier(self)
2440 def get_container(self):
2441 r"""get_container(PairsConstraint self) -> PairContainer"""
2442 return _IMP_container.PairsConstraint_get_container(self)
2444 def get_version_info(self):
2445 r"""get_version_info(PairsConstraint self) -> VersionInfo"""
2446 return _IMP_container.PairsConstraint_get_version_info(self)
2447 __swig_destroy__ = _IMP_container.delete_PairsConstraint
2450 r"""__str__(PairsConstraint self) -> std::string"""
2451 return _IMP_container.PairsConstraint___str__(self)
2454 r"""__repr__(PairsConstraint self) -> std::string"""
2455 return _IMP_container.PairsConstraint___repr__(self)
2459 return _object_cast_to_PairsConstraint(o)
2462 def _get_as_binary(self):
2463 r"""_get_as_binary(PairsConstraint self) -> PyObject *"""
2464 return _IMP_container.PairsConstraint__get_as_binary(self)
2466 def _set_from_binary(self, p):
2467 r"""_set_from_binary(PairsConstraint self, PyObject * p)"""
2468 return _IMP_container.PairsConstraint__set_from_binary(self, p)
2470 def __getstate__(self):
2471 p = self._get_as_binary()
2472 if len(self.__dict__) > 1:
2473 d = self.__dict__.copy()
2478 def __setstate__(self, p):
2479 if not hasattr(self,
'this'):
2481 if isinstance(p, tuple):
2483 self.__dict__.update(d)
2484 return self._set_from_binary(p)
2488 _IMP_container.PairsConstraint_swigregister(PairsConstraint)
2490 r"""Proxy of C++ IMP::container::PairsOptimizerState class."""
2492 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2494 def __init__(self, *args):
2495 r"""__init__(PairsOptimizerState self, _PairContainerAdaptor c, PairModifier gf, std::string name="PairsOptimizerState %1%") -> PairsOptimizerState"""
2496 _IMP_container.PairsOptimizerState_swiginit(self, _IMP_container.new_PairsOptimizerState(*args))
2498 def do_update(self, call):
2499 r"""do_update(PairsOptimizerState self, unsigned int call)"""
2500 return _IMP_container.PairsOptimizerState_do_update(self, call)
2502 def get_version_info(self):
2503 r"""get_version_info(PairsOptimizerState self) -> VersionInfo"""
2504 return _IMP_container.PairsOptimizerState_get_version_info(self)
2505 __swig_destroy__ = _IMP_container.delete_PairsOptimizerState
2508 r"""__str__(PairsOptimizerState self) -> std::string"""
2509 return _IMP_container.PairsOptimizerState___str__(self)
2512 r"""__repr__(PairsOptimizerState self) -> std::string"""
2513 return _IMP_container.PairsOptimizerState___repr__(self)
2517 return _object_cast_to_PairsOptimizerState(o)
2521 _IMP_container.PairsOptimizerState_swigregister(PairsOptimizerState)
2523 r"""Proxy of C++ IMP::container::PairsRestraint class."""
2525 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2527 def __init__(self, *args):
2529 __init__(PairsRestraint self, PairScore ss, _PairContainerAdaptor pc, std::string name="PairsRestraint %1%") -> PairsRestraint
2530 __init__(PairsRestraint self) -> PairsRestraint
2532 _IMP_container.PairsRestraint_swiginit(self, _IMP_container.new_PairsRestraint(*args))
2534 def get_score_object(self):
2535 r"""get_score_object(PairsRestraint self) -> PairScore"""
2536 return _IMP_container.PairsRestraint_get_score_object(self)
2538 def get_container(self):
2539 r"""get_container(PairsRestraint self) -> PairContainer"""
2540 return _IMP_container.PairsRestraint_get_container(self)
2542 def do_get_inputs(self):
2543 r"""do_get_inputs(PairsRestraint self) -> IMP::ModelObjectsTemp"""
2544 return _IMP_container.PairsRestraint_do_get_inputs(self)
2546 def get_version_info(self):
2547 r"""get_version_info(PairsRestraint self) -> VersionInfo"""
2548 return _IMP_container.PairsRestraint_get_version_info(self)
2549 __swig_destroy__ = _IMP_container.delete_PairsRestraint
2552 r"""__str__(PairsRestraint self) -> std::string"""
2553 return _IMP_container.PairsRestraint___str__(self)
2556 r"""__repr__(PairsRestraint self) -> std::string"""
2557 return _IMP_container.PairsRestraint___repr__(self)
2561 return _object_cast_to_PairsRestraint(o)
2564 def _get_as_binary(self):
2565 r"""_get_as_binary(PairsRestraint self) -> PyObject *"""
2566 return _IMP_container.PairsRestraint__get_as_binary(self)
2568 def _set_from_binary(self, p):
2569 r"""_set_from_binary(PairsRestraint self, PyObject * p)"""
2570 return _IMP_container.PairsRestraint__set_from_binary(self, p)
2572 def __getstate__(self):
2573 p = self._get_as_binary()
2574 if len(self.__dict__) > 1:
2575 d = self.__dict__.copy()
2580 def __setstate__(self, p):
2581 if not hasattr(self,
'this'):
2583 if isinstance(p, tuple):
2585 self.__dict__.update(d)
2586 return self._set_from_binary(p)
2590 from .
import _jax_util
2591 return _jax_util._get_jax_container_restraint(self)
2595 _IMP_container.PairsRestraint_swigregister(PairsRestraint)
2597 r"""Proxy of C++ IMP::container::QuadContainerSet class."""
2599 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2601 def __init__(self, *args):
2603 __init__(QuadContainerSet self, Model m, std::string name="QuadContainerSet %1%") -> QuadContainerSet
2604 __init__(QuadContainerSet self, IMP::QuadContainersTemp const & pc, std::string name="QuadContainerSet %1%") -> QuadContainerSet
2606 _IMP_container.QuadContainerSet_swiginit(self, _IMP_container.new_QuadContainerSet(*args))
2608 def do_apply(self, sm):
2609 r"""do_apply(QuadContainerSet self, QuadModifier sm)"""
2610 return _IMP_container.QuadContainerSet_do_apply(self, sm)
2612 def do_apply_moved(self, sm, moved_pis, reset_pis):
2613 r"""do_apply_moved(QuadContainerSet self, QuadModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
2614 return _IMP_container.QuadContainerSet_do_apply_moved(self, sm, moved_pis, reset_pis)
2616 def get_version_info(self):
2617 r"""get_version_info(QuadContainerSet self) -> VersionInfo"""
2618 return _IMP_container.QuadContainerSet_get_version_info(self)
2619 __swig_destroy__ = _IMP_container.delete_QuadContainerSet
2620 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)
2621 def __set_quad_containers(self, obj): IMP._list_util.set_varlist(self.quad_containers, obj)
2622 def __del_quad_containers(self): IMP._list_util.del_varlist(self.quad_containers)
2623 quad_containers = property(__get_quad_containers, __set_quad_containers, __del_quad_containers, doc=
"List of ##ucnames")
2625 def remove_quad_container(self, d):
2626 r"""remove_quad_container(QuadContainerSet self, QuadContainer d)"""
2627 return _IMP_container.QuadContainerSet_remove_quad_container(self, d)
2629 def _python_index_quad_container(self, d, start, stop):
2630 r"""_python_index_quad_container(QuadContainerSet self, QuadContainer d, unsigned int start, unsigned int stop) -> unsigned int"""
2631 return _IMP_container.QuadContainerSet__python_index_quad_container(self, d, start, stop)
2633 def remove_quad_containers(self, d):
2634 r"""remove_quad_containers(QuadContainerSet self, IMP::QuadContainers const & d)"""
2635 return _IMP_container.QuadContainerSet_remove_quad_containers(self, d)
2637 def set_quad_containers(self, ps):
2638 r"""set_quad_containers(QuadContainerSet self, IMP::QuadContainers const & ps)"""
2639 return _IMP_container.QuadContainerSet_set_quad_containers(self, ps)
2641 def set_quad_containers_order(self, objs):
2642 r"""set_quad_containers_order(QuadContainerSet self, IMP::QuadContainers const & objs)"""
2643 return _IMP_container.QuadContainerSet_set_quad_containers_order(self, objs)
2645 def add_quad_container(self, obj):
2646 r"""add_quad_container(QuadContainerSet self, QuadContainer obj) -> unsigned int"""
2647 return _IMP_container.QuadContainerSet_add_quad_container(self, obj)
2649 def add_quad_containers(self, objs):
2650 r"""add_quad_containers(QuadContainerSet self, IMP::QuadContainers const & objs)"""
2651 return _IMP_container.QuadContainerSet_add_quad_containers(self, objs)
2653 def clear_quad_containers(self):
2654 r"""clear_quad_containers(QuadContainerSet self)"""
2655 return _IMP_container.QuadContainerSet_clear_quad_containers(self)
2657 def get_number_of_quad_containers(self):
2658 r"""get_number_of_quad_containers(QuadContainerSet self) -> unsigned int"""
2659 return _IMP_container.QuadContainerSet_get_number_of_quad_containers(self)
2661 def get_has_quad_containers(self):
2662 r"""get_has_quad_containers(QuadContainerSet self) -> bool"""
2663 return _IMP_container.QuadContainerSet_get_has_quad_containers(self)
2665 def get_quad_container(self, i):
2666 r"""get_quad_container(QuadContainerSet self, unsigned int i) -> QuadContainer"""
2667 return _IMP_container.QuadContainerSet_get_quad_container(self, i)
2669 def get_quad_containers(self):
2670 r"""get_quad_containers(QuadContainerSet self) -> IMP::QuadContainers"""
2671 return _IMP_container.QuadContainerSet_get_quad_containers(self)
2673 def erase_quad_container(self, i):
2674 r"""erase_quad_container(QuadContainerSet self, unsigned int i)"""
2675 return _IMP_container.QuadContainerSet_erase_quad_container(self, i)
2677 def reserve_quad_containers(self, sz):
2678 r"""reserve_quad_containers(QuadContainerSet self, unsigned int sz)"""
2679 return _IMP_container.QuadContainerSet_reserve_quad_containers(self, sz)
2681 def do_get_inputs(self):
2682 r"""do_get_inputs(QuadContainerSet self) -> IMP::ModelObjectsTemp"""
2683 return _IMP_container.QuadContainerSet_do_get_inputs(self)
2686 r"""__str__(QuadContainerSet self) -> std::string"""
2687 return _IMP_container.QuadContainerSet___str__(self)
2690 r"""__repr__(QuadContainerSet self) -> std::string"""
2691 return _IMP_container.QuadContainerSet___repr__(self)
2695 return _object_cast_to_QuadContainerSet(o)
2699 _IMP_container.QuadContainerSet_swigregister(QuadContainerSet)
2701 r"""Proxy of C++ IMP::container::QuadsConstraint class."""
2703 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2705 def __init__(self, *args):
2707 __init__(QuadsConstraint self, QuadModifier before, QuadModifier after, _QuadContainerAdaptor c, std::string name="QuadsConstraint %1%") -> QuadsConstraint
2708 __init__(QuadsConstraint self) -> QuadsConstraint
2710 _IMP_container.QuadsConstraint_swiginit(self, _IMP_container.new_QuadsConstraint(*args))
2712 def get_before_modifier(self):
2713 r"""get_before_modifier(QuadsConstraint self) -> QuadModifier"""
2714 return _IMP_container.QuadsConstraint_get_before_modifier(self)
2716 def get_container(self):
2717 r"""get_container(QuadsConstraint self) -> QuadContainer"""
2718 return _IMP_container.QuadsConstraint_get_container(self)
2720 def get_version_info(self):
2721 r"""get_version_info(QuadsConstraint self) -> VersionInfo"""
2722 return _IMP_container.QuadsConstraint_get_version_info(self)
2723 __swig_destroy__ = _IMP_container.delete_QuadsConstraint
2726 r"""__str__(QuadsConstraint self) -> std::string"""
2727 return _IMP_container.QuadsConstraint___str__(self)
2730 r"""__repr__(QuadsConstraint self) -> std::string"""
2731 return _IMP_container.QuadsConstraint___repr__(self)
2735 return _object_cast_to_QuadsConstraint(o)
2738 def _get_as_binary(self):
2739 r"""_get_as_binary(QuadsConstraint self) -> PyObject *"""
2740 return _IMP_container.QuadsConstraint__get_as_binary(self)
2742 def _set_from_binary(self, p):
2743 r"""_set_from_binary(QuadsConstraint self, PyObject * p)"""
2744 return _IMP_container.QuadsConstraint__set_from_binary(self, p)
2746 def __getstate__(self):
2747 p = self._get_as_binary()
2748 if len(self.__dict__) > 1:
2749 d = self.__dict__.copy()
2754 def __setstate__(self, p):
2755 if not hasattr(self,
'this'):
2757 if isinstance(p, tuple):
2759 self.__dict__.update(d)
2760 return self._set_from_binary(p)
2764 _IMP_container.QuadsConstraint_swigregister(QuadsConstraint)
2766 r"""Proxy of C++ IMP::container::QuadsOptimizerState class."""
2768 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2770 def __init__(self, *args):
2771 r"""__init__(QuadsOptimizerState self, _QuadContainerAdaptor c, QuadModifier gf, std::string name="QuadsOptimizerState %1%") -> QuadsOptimizerState"""
2772 _IMP_container.QuadsOptimizerState_swiginit(self, _IMP_container.new_QuadsOptimizerState(*args))
2774 def do_update(self, call):
2775 r"""do_update(QuadsOptimizerState self, unsigned int call)"""
2776 return _IMP_container.QuadsOptimizerState_do_update(self, call)
2778 def get_version_info(self):
2779 r"""get_version_info(QuadsOptimizerState self) -> VersionInfo"""
2780 return _IMP_container.QuadsOptimizerState_get_version_info(self)
2781 __swig_destroy__ = _IMP_container.delete_QuadsOptimizerState
2784 r"""__str__(QuadsOptimizerState self) -> std::string"""
2785 return _IMP_container.QuadsOptimizerState___str__(self)
2788 r"""__repr__(QuadsOptimizerState self) -> std::string"""
2789 return _IMP_container.QuadsOptimizerState___repr__(self)
2793 return _object_cast_to_QuadsOptimizerState(o)
2797 _IMP_container.QuadsOptimizerState_swigregister(QuadsOptimizerState)
2799 r"""Proxy of C++ IMP::container::QuadsRestraint class."""
2801 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2803 def __init__(self, *args):
2805 __init__(QuadsRestraint self, QuadScore ss, _QuadContainerAdaptor pc, std::string name="QuadsRestraint %1%") -> QuadsRestraint
2806 __init__(QuadsRestraint self) -> QuadsRestraint
2808 _IMP_container.QuadsRestraint_swiginit(self, _IMP_container.new_QuadsRestraint(*args))
2810 def get_score_object(self):
2811 r"""get_score_object(QuadsRestraint self) -> QuadScore"""
2812 return _IMP_container.QuadsRestraint_get_score_object(self)
2814 def get_container(self):
2815 r"""get_container(QuadsRestraint self) -> QuadContainer"""
2816 return _IMP_container.QuadsRestraint_get_container(self)
2818 def do_get_inputs(self):
2819 r"""do_get_inputs(QuadsRestraint self) -> IMP::ModelObjectsTemp"""
2820 return _IMP_container.QuadsRestraint_do_get_inputs(self)
2822 def get_version_info(self):
2823 r"""get_version_info(QuadsRestraint self) -> VersionInfo"""
2824 return _IMP_container.QuadsRestraint_get_version_info(self)
2825 __swig_destroy__ = _IMP_container.delete_QuadsRestraint
2828 r"""__str__(QuadsRestraint self) -> std::string"""
2829 return _IMP_container.QuadsRestraint___str__(self)
2832 r"""__repr__(QuadsRestraint self) -> std::string"""
2833 return _IMP_container.QuadsRestraint___repr__(self)
2837 return _object_cast_to_QuadsRestraint(o)
2840 def _get_as_binary(self):
2841 r"""_get_as_binary(QuadsRestraint self) -> PyObject *"""
2842 return _IMP_container.QuadsRestraint__get_as_binary(self)
2844 def _set_from_binary(self, p):
2845 r"""_set_from_binary(QuadsRestraint self, PyObject * p)"""
2846 return _IMP_container.QuadsRestraint__set_from_binary(self, p)
2848 def __getstate__(self):
2849 p = self._get_as_binary()
2850 if len(self.__dict__) > 1:
2851 d = self.__dict__.copy()
2856 def __setstate__(self, p):
2857 if not hasattr(self,
'this'):
2859 if isinstance(p, tuple):
2861 self.__dict__.update(d)
2862 return self._set_from_binary(p)
2866 _IMP_container.QuadsRestraint_swigregister(QuadsRestraint)
2868 r"""Proxy of C++ IMP::container::SingletonContainerSet class."""
2870 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2872 def __init__(self, *args):
2874 __init__(SingletonContainerSet self, Model m, std::string name="SingletonContainerSet %1%") -> SingletonContainerSet
2875 __init__(SingletonContainerSet self, IMP::SingletonContainersTemp const & pc, std::string name="SingletonContainerSet %1%") -> SingletonContainerSet
2877 _IMP_container.SingletonContainerSet_swiginit(self, _IMP_container.new_SingletonContainerSet(*args))
2879 def do_apply(self, sm):
2880 r"""do_apply(SingletonContainerSet self, SingletonModifier sm)"""
2881 return _IMP_container.SingletonContainerSet_do_apply(self, sm)
2883 def do_apply_moved(self, sm, moved_pis, reset_pis):
2884 r"""do_apply_moved(SingletonContainerSet self, SingletonModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
2885 return _IMP_container.SingletonContainerSet_do_apply_moved(self, sm, moved_pis, reset_pis)
2887 def get_version_info(self):
2888 r"""get_version_info(SingletonContainerSet self) -> VersionInfo"""
2889 return _IMP_container.SingletonContainerSet_get_version_info(self)
2890 __swig_destroy__ = _IMP_container.delete_SingletonContainerSet
2891 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)
2892 def __set_singleton_containers(self, obj): IMP._list_util.set_varlist(self.singleton_containers, obj)
2893 def __del_singleton_containers(self): IMP._list_util.del_varlist(self.singleton_containers)
2894 singleton_containers = property(__get_singleton_containers, __set_singleton_containers, __del_singleton_containers, doc=
"List of ##ucnames")
2896 def remove_singleton_container(self, d):
2897 r"""remove_singleton_container(SingletonContainerSet self, SingletonContainer d)"""
2898 return _IMP_container.SingletonContainerSet_remove_singleton_container(self, d)
2900 def _python_index_singleton_container(self, d, start, stop):
2901 r"""_python_index_singleton_container(SingletonContainerSet self, SingletonContainer d, unsigned int start, unsigned int stop) -> unsigned int"""
2902 return _IMP_container.SingletonContainerSet__python_index_singleton_container(self, d, start, stop)
2904 def remove_singleton_containers(self, d):
2905 r"""remove_singleton_containers(SingletonContainerSet self, IMP::SingletonContainers const & d)"""
2906 return _IMP_container.SingletonContainerSet_remove_singleton_containers(self, d)
2908 def set_singleton_containers(self, ps):
2909 r"""set_singleton_containers(SingletonContainerSet self, IMP::SingletonContainers const & ps)"""
2910 return _IMP_container.SingletonContainerSet_set_singleton_containers(self, ps)
2912 def set_singleton_containers_order(self, objs):
2913 r"""set_singleton_containers_order(SingletonContainerSet self, IMP::SingletonContainers const & objs)"""
2914 return _IMP_container.SingletonContainerSet_set_singleton_containers_order(self, objs)
2916 def add_singleton_container(self, obj):
2917 r"""add_singleton_container(SingletonContainerSet self, SingletonContainer obj) -> unsigned int"""
2918 return _IMP_container.SingletonContainerSet_add_singleton_container(self, obj)
2920 def add_singleton_containers(self, objs):
2921 r"""add_singleton_containers(SingletonContainerSet self, IMP::SingletonContainers const & objs)"""
2922 return _IMP_container.SingletonContainerSet_add_singleton_containers(self, objs)
2924 def clear_singleton_containers(self):
2925 r"""clear_singleton_containers(SingletonContainerSet self)"""
2926 return _IMP_container.SingletonContainerSet_clear_singleton_containers(self)
2928 def get_number_of_singleton_containers(self):
2929 r"""get_number_of_singleton_containers(SingletonContainerSet self) -> unsigned int"""
2930 return _IMP_container.SingletonContainerSet_get_number_of_singleton_containers(self)
2932 def get_has_singleton_containers(self):
2933 r"""get_has_singleton_containers(SingletonContainerSet self) -> bool"""
2934 return _IMP_container.SingletonContainerSet_get_has_singleton_containers(self)
2936 def get_singleton_container(self, i):
2937 r"""get_singleton_container(SingletonContainerSet self, unsigned int i) -> SingletonContainer"""
2938 return _IMP_container.SingletonContainerSet_get_singleton_container(self, i)
2940 def get_singleton_containers(self):
2941 r"""get_singleton_containers(SingletonContainerSet self) -> IMP::SingletonContainers"""
2942 return _IMP_container.SingletonContainerSet_get_singleton_containers(self)
2944 def erase_singleton_container(self, i):
2945 r"""erase_singleton_container(SingletonContainerSet self, unsigned int i)"""
2946 return _IMP_container.SingletonContainerSet_erase_singleton_container(self, i)
2948 def reserve_singleton_containers(self, sz):
2949 r"""reserve_singleton_containers(SingletonContainerSet self, unsigned int sz)"""
2950 return _IMP_container.SingletonContainerSet_reserve_singleton_containers(self, sz)
2952 def do_get_inputs(self):
2953 r"""do_get_inputs(SingletonContainerSet self) -> IMP::ModelObjectsTemp"""
2954 return _IMP_container.SingletonContainerSet_do_get_inputs(self)
2957 r"""__str__(SingletonContainerSet self) -> std::string"""
2958 return _IMP_container.SingletonContainerSet___str__(self)
2961 r"""__repr__(SingletonContainerSet self) -> std::string"""
2962 return _IMP_container.SingletonContainerSet___repr__(self)
2966 return _object_cast_to_SingletonContainerSet(o)
2970 _IMP_container.SingletonContainerSet_swigregister(SingletonContainerSet)
2972 r"""Proxy of C++ IMP::container::SingletonsConstraint class."""
2974 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2976 def __init__(self, *args):
2978 __init__(SingletonsConstraint self, SingletonModifier before, SingletonModifier after, _SingletonContainerAdaptor c, std::string name="SingletonsConstraint %1%") -> SingletonsConstraint
2979 __init__(SingletonsConstraint self) -> SingletonsConstraint
2981 _IMP_container.SingletonsConstraint_swiginit(self, _IMP_container.new_SingletonsConstraint(*args))
2983 def get_before_modifier(self):
2984 r"""get_before_modifier(SingletonsConstraint self) -> SingletonModifier"""
2985 return _IMP_container.SingletonsConstraint_get_before_modifier(self)
2987 def get_container(self):
2988 r"""get_container(SingletonsConstraint self) -> SingletonContainer"""
2989 return _IMP_container.SingletonsConstraint_get_container(self)
2991 def get_version_info(self):
2992 r"""get_version_info(SingletonsConstraint self) -> VersionInfo"""
2993 return _IMP_container.SingletonsConstraint_get_version_info(self)
2994 __swig_destroy__ = _IMP_container.delete_SingletonsConstraint
2997 r"""__str__(SingletonsConstraint self) -> std::string"""
2998 return _IMP_container.SingletonsConstraint___str__(self)
3001 r"""__repr__(SingletonsConstraint self) -> std::string"""
3002 return _IMP_container.SingletonsConstraint___repr__(self)
3006 return _object_cast_to_SingletonsConstraint(o)
3009 def _get_as_binary(self):
3010 r"""_get_as_binary(SingletonsConstraint self) -> PyObject *"""
3011 return _IMP_container.SingletonsConstraint__get_as_binary(self)
3013 def _set_from_binary(self, p):
3014 r"""_set_from_binary(SingletonsConstraint self, PyObject * p)"""
3015 return _IMP_container.SingletonsConstraint__set_from_binary(self, p)
3017 def __getstate__(self):
3018 p = self._get_as_binary()
3019 if len(self.__dict__) > 1:
3020 d = self.__dict__.copy()
3025 def __setstate__(self, p):
3026 if not hasattr(self,
'this'):
3028 if isinstance(p, tuple):
3030 self.__dict__.update(d)
3031 return self._set_from_binary(p)
3035 from .
import _jax_util
3036 return _jax_util._get_jax_container_constraint(self)
3040 _IMP_container.SingletonsConstraint_swigregister(SingletonsConstraint)
3042 r"""Proxy of C++ IMP::container::SingletonsOptimizerState class."""
3044 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3046 def __init__(self, *args):
3047 r"""__init__(SingletonsOptimizerState self, _SingletonContainerAdaptor c, SingletonModifier gf, std::string name="SingletonsOptimizerState %1%") -> SingletonsOptimizerState"""
3048 _IMP_container.SingletonsOptimizerState_swiginit(self, _IMP_container.new_SingletonsOptimizerState(*args))
3050 def do_update(self, call):
3051 r"""do_update(SingletonsOptimizerState self, unsigned int call)"""
3052 return _IMP_container.SingletonsOptimizerState_do_update(self, call)
3054 def get_version_info(self):
3055 r"""get_version_info(SingletonsOptimizerState self) -> VersionInfo"""
3056 return _IMP_container.SingletonsOptimizerState_get_version_info(self)
3057 __swig_destroy__ = _IMP_container.delete_SingletonsOptimizerState
3060 r"""__str__(SingletonsOptimizerState self) -> std::string"""
3061 return _IMP_container.SingletonsOptimizerState___str__(self)
3064 r"""__repr__(SingletonsOptimizerState self) -> std::string"""
3065 return _IMP_container.SingletonsOptimizerState___repr__(self)
3069 return _object_cast_to_SingletonsOptimizerState(o)
3073 _IMP_container.SingletonsOptimizerState_swigregister(SingletonsOptimizerState)
3075 r"""Proxy of C++ IMP::container::SingletonsRestraint class."""
3077 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3079 def __init__(self, *args):
3081 __init__(SingletonsRestraint self, SingletonScore ss, _SingletonContainerAdaptor pc, std::string name="SingletonsRestraint %1%") -> SingletonsRestraint
3082 __init__(SingletonsRestraint self) -> SingletonsRestraint
3084 _IMP_container.SingletonsRestraint_swiginit(self, _IMP_container.new_SingletonsRestraint(*args))
3086 def get_score_object(self):
3087 r"""get_score_object(SingletonsRestraint self) -> SingletonScore"""
3088 return _IMP_container.SingletonsRestraint_get_score_object(self)
3090 def get_container(self):
3091 r"""get_container(SingletonsRestraint self) -> SingletonContainer"""
3092 return _IMP_container.SingletonsRestraint_get_container(self)
3094 def do_get_inputs(self):
3095 r"""do_get_inputs(SingletonsRestraint self) -> IMP::ModelObjectsTemp"""
3096 return _IMP_container.SingletonsRestraint_do_get_inputs(self)
3098 def get_version_info(self):
3099 r"""get_version_info(SingletonsRestraint self) -> VersionInfo"""
3100 return _IMP_container.SingletonsRestraint_get_version_info(self)
3101 __swig_destroy__ = _IMP_container.delete_SingletonsRestraint
3104 r"""__str__(SingletonsRestraint self) -> std::string"""
3105 return _IMP_container.SingletonsRestraint___str__(self)
3108 r"""__repr__(SingletonsRestraint self) -> std::string"""
3109 return _IMP_container.SingletonsRestraint___repr__(self)
3113 return _object_cast_to_SingletonsRestraint(o)
3116 def _get_as_binary(self):
3117 r"""_get_as_binary(SingletonsRestraint self) -> PyObject *"""
3118 return _IMP_container.SingletonsRestraint__get_as_binary(self)
3120 def _set_from_binary(self, p):
3121 r"""_set_from_binary(SingletonsRestraint self, PyObject * p)"""
3122 return _IMP_container.SingletonsRestraint__set_from_binary(self, p)
3124 def __getstate__(self):
3125 p = self._get_as_binary()
3126 if len(self.__dict__) > 1:
3127 d = self.__dict__.copy()
3132 def __setstate__(self, p):
3133 if not hasattr(self,
'this'):
3135 if isinstance(p, tuple):
3137 self.__dict__.update(d)
3138 return self._set_from_binary(p)
3142 from .
import _jax_util
3143 return _jax_util._get_jax_container_restraint(self)
3147 _IMP_container.SingletonsRestraint_swigregister(SingletonsRestraint)
3149 r"""Proxy of C++ IMP::container::TripletContainerSet class."""
3151 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3153 def __init__(self, *args):
3155 __init__(TripletContainerSet self, Model m, std::string name="TripletContainerSet %1%") -> TripletContainerSet
3156 __init__(TripletContainerSet self, IMP::TripletContainersTemp const & pc, std::string name="TripletContainerSet %1%") -> TripletContainerSet
3158 _IMP_container.TripletContainerSet_swiginit(self, _IMP_container.new_TripletContainerSet(*args))
3160 def do_apply(self, sm):
3161 r"""do_apply(TripletContainerSet self, TripletModifier sm)"""
3162 return _IMP_container.TripletContainerSet_do_apply(self, sm)
3164 def do_apply_moved(self, sm, moved_pis, reset_pis):
3165 r"""do_apply_moved(TripletContainerSet self, TripletModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
3166 return _IMP_container.TripletContainerSet_do_apply_moved(self, sm, moved_pis, reset_pis)
3168 def get_version_info(self):
3169 r"""get_version_info(TripletContainerSet self) -> VersionInfo"""
3170 return _IMP_container.TripletContainerSet_get_version_info(self)
3171 __swig_destroy__ = _IMP_container.delete_TripletContainerSet
3172 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)
3173 def __set_triplet_containers(self, obj): IMP._list_util.set_varlist(self.triplet_containers, obj)
3174 def __del_triplet_containers(self): IMP._list_util.del_varlist(self.triplet_containers)
3175 triplet_containers = property(__get_triplet_containers, __set_triplet_containers, __del_triplet_containers, doc=
"List of ##ucnames")
3177 def remove_triplet_container(self, d):
3178 r"""remove_triplet_container(TripletContainerSet self, TripletContainer d)"""
3179 return _IMP_container.TripletContainerSet_remove_triplet_container(self, d)
3181 def _python_index_triplet_container(self, d, start, stop):
3182 r"""_python_index_triplet_container(TripletContainerSet self, TripletContainer d, unsigned int start, unsigned int stop) -> unsigned int"""
3183 return _IMP_container.TripletContainerSet__python_index_triplet_container(self, d, start, stop)
3185 def remove_triplet_containers(self, d):
3186 r"""remove_triplet_containers(TripletContainerSet self, IMP::TripletContainers const & d)"""
3187 return _IMP_container.TripletContainerSet_remove_triplet_containers(self, d)
3189 def set_triplet_containers(self, ps):
3190 r"""set_triplet_containers(TripletContainerSet self, IMP::TripletContainers const & ps)"""
3191 return _IMP_container.TripletContainerSet_set_triplet_containers(self, ps)
3193 def set_triplet_containers_order(self, objs):
3194 r"""set_triplet_containers_order(TripletContainerSet self, IMP::TripletContainers const & objs)"""
3195 return _IMP_container.TripletContainerSet_set_triplet_containers_order(self, objs)
3197 def add_triplet_container(self, obj):
3198 r"""add_triplet_container(TripletContainerSet self, TripletContainer obj) -> unsigned int"""
3199 return _IMP_container.TripletContainerSet_add_triplet_container(self, obj)
3201 def add_triplet_containers(self, objs):
3202 r"""add_triplet_containers(TripletContainerSet self, IMP::TripletContainers const & objs)"""
3203 return _IMP_container.TripletContainerSet_add_triplet_containers(self, objs)
3205 def clear_triplet_containers(self):
3206 r"""clear_triplet_containers(TripletContainerSet self)"""
3207 return _IMP_container.TripletContainerSet_clear_triplet_containers(self)
3209 def get_number_of_triplet_containers(self):
3210 r"""get_number_of_triplet_containers(TripletContainerSet self) -> unsigned int"""
3211 return _IMP_container.TripletContainerSet_get_number_of_triplet_containers(self)
3213 def get_has_triplet_containers(self):
3214 r"""get_has_triplet_containers(TripletContainerSet self) -> bool"""
3215 return _IMP_container.TripletContainerSet_get_has_triplet_containers(self)
3217 def get_triplet_container(self, i):
3218 r"""get_triplet_container(TripletContainerSet self, unsigned int i) -> TripletContainer"""
3219 return _IMP_container.TripletContainerSet_get_triplet_container(self, i)
3221 def get_triplet_containers(self):
3222 r"""get_triplet_containers(TripletContainerSet self) -> IMP::TripletContainers"""
3223 return _IMP_container.TripletContainerSet_get_triplet_containers(self)
3225 def erase_triplet_container(self, i):
3226 r"""erase_triplet_container(TripletContainerSet self, unsigned int i)"""
3227 return _IMP_container.TripletContainerSet_erase_triplet_container(self, i)
3229 def reserve_triplet_containers(self, sz):
3230 r"""reserve_triplet_containers(TripletContainerSet self, unsigned int sz)"""
3231 return _IMP_container.TripletContainerSet_reserve_triplet_containers(self, sz)
3233 def do_get_inputs(self):
3234 r"""do_get_inputs(TripletContainerSet self) -> IMP::ModelObjectsTemp"""
3235 return _IMP_container.TripletContainerSet_do_get_inputs(self)
3238 r"""__str__(TripletContainerSet self) -> std::string"""
3239 return _IMP_container.TripletContainerSet___str__(self)
3242 r"""__repr__(TripletContainerSet self) -> std::string"""
3243 return _IMP_container.TripletContainerSet___repr__(self)
3247 return _object_cast_to_TripletContainerSet(o)
3251 _IMP_container.TripletContainerSet_swigregister(TripletContainerSet)
3253 r"""Proxy of C++ IMP::container::TripletsConstraint class."""
3255 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3257 def __init__(self, *args):
3259 __init__(TripletsConstraint self, TripletModifier before, TripletModifier after, _TripletContainerAdaptor c, std::string name="TripletsConstraint %1%") -> TripletsConstraint
3260 __init__(TripletsConstraint self) -> TripletsConstraint
3262 _IMP_container.TripletsConstraint_swiginit(self, _IMP_container.new_TripletsConstraint(*args))
3264 def get_before_modifier(self):
3265 r"""get_before_modifier(TripletsConstraint self) -> TripletModifier"""
3266 return _IMP_container.TripletsConstraint_get_before_modifier(self)
3268 def get_container(self):
3269 r"""get_container(TripletsConstraint self) -> TripletContainer"""
3270 return _IMP_container.TripletsConstraint_get_container(self)
3272 def get_version_info(self):
3273 r"""get_version_info(TripletsConstraint self) -> VersionInfo"""
3274 return _IMP_container.TripletsConstraint_get_version_info(self)
3275 __swig_destroy__ = _IMP_container.delete_TripletsConstraint
3278 r"""__str__(TripletsConstraint self) -> std::string"""
3279 return _IMP_container.TripletsConstraint___str__(self)
3282 r"""__repr__(TripletsConstraint self) -> std::string"""
3283 return _IMP_container.TripletsConstraint___repr__(self)
3287 return _object_cast_to_TripletsConstraint(o)
3290 def _get_as_binary(self):
3291 r"""_get_as_binary(TripletsConstraint self) -> PyObject *"""
3292 return _IMP_container.TripletsConstraint__get_as_binary(self)
3294 def _set_from_binary(self, p):
3295 r"""_set_from_binary(TripletsConstraint self, PyObject * p)"""
3296 return _IMP_container.TripletsConstraint__set_from_binary(self, p)
3298 def __getstate__(self):
3299 p = self._get_as_binary()
3300 if len(self.__dict__) > 1:
3301 d = self.__dict__.copy()
3306 def __setstate__(self, p):
3307 if not hasattr(self,
'this'):
3309 if isinstance(p, tuple):
3311 self.__dict__.update(d)
3312 return self._set_from_binary(p)
3316 _IMP_container.TripletsConstraint_swigregister(TripletsConstraint)
3318 r"""Proxy of C++ IMP::container::TripletsOptimizerState class."""
3320 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3322 def __init__(self, *args):
3323 r"""__init__(TripletsOptimizerState self, _TripletContainerAdaptor c, TripletModifier gf, std::string name="TripletsOptimizerState %1%") -> TripletsOptimizerState"""
3324 _IMP_container.TripletsOptimizerState_swiginit(self, _IMP_container.new_TripletsOptimizerState(*args))
3326 def do_update(self, call):
3327 r"""do_update(TripletsOptimizerState self, unsigned int call)"""
3328 return _IMP_container.TripletsOptimizerState_do_update(self, call)
3330 def get_version_info(self):
3331 r"""get_version_info(TripletsOptimizerState self) -> VersionInfo"""
3332 return _IMP_container.TripletsOptimizerState_get_version_info(self)
3333 __swig_destroy__ = _IMP_container.delete_TripletsOptimizerState
3336 r"""__str__(TripletsOptimizerState self) -> std::string"""
3337 return _IMP_container.TripletsOptimizerState___str__(self)
3340 r"""__repr__(TripletsOptimizerState self) -> std::string"""
3341 return _IMP_container.TripletsOptimizerState___repr__(self)
3345 return _object_cast_to_TripletsOptimizerState(o)
3349 _IMP_container.TripletsOptimizerState_swigregister(TripletsOptimizerState)
3351 r"""Proxy of C++ IMP::container::TripletsRestraint class."""
3353 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3355 def __init__(self, *args):
3357 __init__(TripletsRestraint self, TripletScore ss, _TripletContainerAdaptor pc, std::string name="TripletsRestraint %1%") -> TripletsRestraint
3358 __init__(TripletsRestraint self) -> TripletsRestraint
3360 _IMP_container.TripletsRestraint_swiginit(self, _IMP_container.new_TripletsRestraint(*args))
3362 def get_score_object(self):
3363 r"""get_score_object(TripletsRestraint self) -> TripletScore"""
3364 return _IMP_container.TripletsRestraint_get_score_object(self)
3366 def get_container(self):
3367 r"""get_container(TripletsRestraint self) -> TripletContainer"""
3368 return _IMP_container.TripletsRestraint_get_container(self)
3370 def do_get_inputs(self):
3371 r"""do_get_inputs(TripletsRestraint self) -> IMP::ModelObjectsTemp"""
3372 return _IMP_container.TripletsRestraint_do_get_inputs(self)
3374 def get_version_info(self):
3375 r"""get_version_info(TripletsRestraint self) -> VersionInfo"""
3376 return _IMP_container.TripletsRestraint_get_version_info(self)
3377 __swig_destroy__ = _IMP_container.delete_TripletsRestraint
3380 r"""__str__(TripletsRestraint self) -> std::string"""
3381 return _IMP_container.TripletsRestraint___str__(self)
3384 r"""__repr__(TripletsRestraint self) -> std::string"""
3385 return _IMP_container.TripletsRestraint___repr__(self)
3389 return _object_cast_to_TripletsRestraint(o)
3392 def _get_as_binary(self):
3393 r"""_get_as_binary(TripletsRestraint self) -> PyObject *"""
3394 return _IMP_container.TripletsRestraint__get_as_binary(self)
3396 def _set_from_binary(self, p):
3397 r"""_set_from_binary(TripletsRestraint self, PyObject * p)"""
3398 return _IMP_container.TripletsRestraint__set_from_binary(self, p)
3400 def __getstate__(self):
3401 p = self._get_as_binary()
3402 if len(self.__dict__) > 1:
3403 d = self.__dict__.copy()
3408 def __setstate__(self, p):
3409 if not hasattr(self,
'this'):
3411 if isinstance(p, tuple):
3413 self.__dict__.update(d)
3414 return self._set_from_binary(p)
3418 _IMP_container.TripletsRestraint_swigregister(TripletsRestraint)
3420 r"""Proxy of C++ IMP::container::InContainerSingletonFilter class."""
3422 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3424 def __init__(self, *args):
3426 __init__(InContainerSingletonFilter self, SingletonContainer c, std::string name="SingletonFilter %1%") -> InContainerSingletonFilter
3427 __init__(InContainerSingletonFilter self, SingletonContainer c, bool handle_permutations, std::string name="SingletonFilter %1%") -> InContainerSingletonFilter
3429 _IMP_container.InContainerSingletonFilter_swiginit(self, _IMP_container.new_InContainerSingletonFilter(*args))
3431 def do_get_inputs(self, m, pi):
3432 r"""do_get_inputs(InContainerSingletonFilter self, Model m, IMP::ParticleIndexes const & pi) -> IMP::ModelObjectsTemp"""
3433 return _IMP_container.InContainerSingletonFilter_do_get_inputs(self, m, pi)
3435 def get_value(self, *args):
3437 get_value(InContainerSingletonFilter self, Particle a) -> int
3438 get_value(InContainerSingletonFilter self, IMP::ParticlesTemp const & o) -> IMP::Ints
3440 return _IMP_container.InContainerSingletonFilter_get_value(self, *args)
3442 def get_value_index(self, *args):
3444 get_value_index(InContainerSingletonFilter self, Model arg2, ParticleIndex vt) -> int
3445 get_value_index(InContainerSingletonFilter self, Model m, IMP::ParticleIndexes const & o) -> IMP::Ints
3447 return _IMP_container.InContainerSingletonFilter_get_value_index(self, *args)
3449 def get_version_info(self):
3450 r"""get_version_info(InContainerSingletonFilter self) -> VersionInfo"""
3451 return _IMP_container.InContainerSingletonFilter_get_version_info(self)
3452 __swig_destroy__ = _IMP_container.delete_InContainerSingletonFilter
3455 r"""__str__(InContainerSingletonFilter self) -> std::string"""
3456 return _IMP_container.InContainerSingletonFilter___str__(self)
3459 r"""__repr__(InContainerSingletonFilter self) -> std::string"""
3460 return _IMP_container.InContainerSingletonFilter___repr__(self)
3464 return _object_cast_to_InContainerSingletonFilter(o)
3468 _IMP_container.InContainerSingletonFilter_swigregister(InContainerSingletonFilter)
3470 r"""Proxy of C++ IMP::container::InContainerPairFilter class."""
3472 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3474 def __init__(self, *args):
3476 __init__(InContainerPairFilter self, PairContainer c, std::string name="PairFilter %1%") -> InContainerPairFilter
3477 __init__(InContainerPairFilter self, PairContainer c, bool handle_permutations, std::string name="PairFilter %1%") -> InContainerPairFilter
3479 _IMP_container.InContainerPairFilter_swiginit(self, _IMP_container.new_InContainerPairFilter(*args))
3481 def do_get_inputs(self, m, pi):
3482 r"""do_get_inputs(InContainerPairFilter self, Model m, IMP::ParticleIndexes const & pi) -> IMP::ModelObjectsTemp"""
3483 return _IMP_container.InContainerPairFilter_do_get_inputs(self, m, pi)
3485 def get_value(self, *args):
3487 get_value(InContainerPairFilter self, IMP::ParticlePair const & a) -> int
3488 get_value(InContainerPairFilter self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
3490 return _IMP_container.InContainerPairFilter_get_value(self, *args)
3492 def get_value_index(self, *args):
3494 get_value_index(InContainerPairFilter self, Model arg2, IMP::ParticleIndexPair const & vt) -> int
3495 get_value_index(InContainerPairFilter self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
3497 return _IMP_container.InContainerPairFilter_get_value_index(self, *args)
3499 def get_version_info(self):
3500 r"""get_version_info(InContainerPairFilter self) -> VersionInfo"""
3501 return _IMP_container.InContainerPairFilter_get_version_info(self)
3502 __swig_destroy__ = _IMP_container.delete_InContainerPairFilter
3505 r"""__str__(InContainerPairFilter self) -> std::string"""
3506 return _IMP_container.InContainerPairFilter___str__(self)
3509 r"""__repr__(InContainerPairFilter self) -> std::string"""
3510 return _IMP_container.InContainerPairFilter___repr__(self)
3514 return _object_cast_to_InContainerPairFilter(o)
3518 _IMP_container.InContainerPairFilter_swigregister(InContainerPairFilter)
3520 r"""Proxy of C++ IMP::container::InContainerTripletFilter class."""
3522 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3524 def __init__(self, *args):
3526 __init__(InContainerTripletFilter self, TripletContainer c, std::string name="TripletFilter %1%") -> InContainerTripletFilter
3527 __init__(InContainerTripletFilter self, TripletContainer c, bool handle_permutations, std::string name="TripletFilter %1%") -> InContainerTripletFilter
3529 _IMP_container.InContainerTripletFilter_swiginit(self, _IMP_container.new_InContainerTripletFilter(*args))
3531 def do_get_inputs(self, m, pi):
3532 r"""do_get_inputs(InContainerTripletFilter self, Model m, IMP::ParticleIndexes const & pi) -> IMP::ModelObjectsTemp"""
3533 return _IMP_container.InContainerTripletFilter_do_get_inputs(self, m, pi)
3535 def get_value(self, *args):
3537 get_value(InContainerTripletFilter self, IMP::ParticleTriplet const & a) -> int
3538 get_value(InContainerTripletFilter self, IMP::ParticleTripletsTemp const & o) -> IMP::Ints
3540 return _IMP_container.InContainerTripletFilter_get_value(self, *args)
3542 def get_value_index(self, *args):
3544 get_value_index(InContainerTripletFilter self, Model arg2, IMP::ParticleIndexTriplet const & vt) -> int
3545 get_value_index(InContainerTripletFilter self, Model m, IMP::ParticleIndexTriplets const & o) -> IMP::Ints
3547 return _IMP_container.InContainerTripletFilter_get_value_index(self, *args)
3549 def get_version_info(self):
3550 r"""get_version_info(InContainerTripletFilter self) -> VersionInfo"""
3551 return _IMP_container.InContainerTripletFilter_get_version_info(self)
3552 __swig_destroy__ = _IMP_container.delete_InContainerTripletFilter
3555 r"""__str__(InContainerTripletFilter self) -> std::string"""
3556 return _IMP_container.InContainerTripletFilter___str__(self)
3559 r"""__repr__(InContainerTripletFilter self) -> std::string"""
3560 return _IMP_container.InContainerTripletFilter___repr__(self)
3564 return _object_cast_to_InContainerTripletFilter(o)
3568 _IMP_container.InContainerTripletFilter_swigregister(InContainerTripletFilter)
3570 r"""Proxy of C++ IMP::container::InContainerQuadFilter class."""
3572 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3574 def __init__(self, *args):
3576 __init__(InContainerQuadFilter self, QuadContainer c, std::string name="QuadFilter %1%") -> InContainerQuadFilter
3577 __init__(InContainerQuadFilter self, QuadContainer c, bool handle_permutations, std::string name="QuadFilter %1%") -> InContainerQuadFilter
3579 _IMP_container.InContainerQuadFilter_swiginit(self, _IMP_container.new_InContainerQuadFilter(*args))
3581 def do_get_inputs(self, m, pi):
3582 r"""do_get_inputs(InContainerQuadFilter self, Model m, IMP::ParticleIndexes const & pi) -> IMP::ModelObjectsTemp"""
3583 return _IMP_container.InContainerQuadFilter_do_get_inputs(self, m, pi)
3585 def get_value(self, *args):
3587 get_value(InContainerQuadFilter self, IMP::ParticleQuad const & a) -> int
3588 get_value(InContainerQuadFilter self, IMP::ParticleQuadsTemp const & o) -> IMP::Ints
3590 return _IMP_container.InContainerQuadFilter_get_value(self, *args)
3592 def get_value_index(self, *args):
3594 get_value_index(InContainerQuadFilter self, Model arg2, IMP::ParticleIndexQuad const & vt) -> int
3595 get_value_index(InContainerQuadFilter self, Model m, IMP::ParticleIndexQuads const & o) -> IMP::Ints
3597 return _IMP_container.InContainerQuadFilter_get_value_index(self, *args)
3599 def get_version_info(self):
3600 r"""get_version_info(InContainerQuadFilter self) -> VersionInfo"""
3601 return _IMP_container.InContainerQuadFilter_get_version_info(self)
3602 __swig_destroy__ = _IMP_container.delete_InContainerQuadFilter
3605 r"""__str__(InContainerQuadFilter self) -> std::string"""
3606 return _IMP_container.InContainerQuadFilter___str__(self)
3609 r"""__repr__(InContainerQuadFilter self) -> std::string"""
3610 return _IMP_container.InContainerQuadFilter___repr__(self)
3614 return _object_cast_to_InContainerQuadFilter(o)
3618 _IMP_container.InContainerQuadFilter_swigregister(InContainerQuadFilter)
3620 r"""Proxy of C++ IMP::container::SingletonContainerStatistics class."""
3622 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3624 def __init__(self, c):
3625 r"""__init__(SingletonContainerStatistics self, _SingletonContainerAdaptor c) -> SingletonContainerStatistics"""
3626 _IMP_container.SingletonContainerStatistics_swiginit(self, _IMP_container.new_SingletonContainerStatistics(c))
3628 def show_statistics(self, out):
3629 r"""show_statistics(SingletonContainerStatistics self, _ostream out)"""
3630 return _IMP_container.SingletonContainerStatistics_show_statistics(self, out)
3632 def set_track_unique(self, tf):
3633 r"""set_track_unique(SingletonContainerStatistics self, bool tf)"""
3634 return _IMP_container.SingletonContainerStatistics_set_track_unique(self, tf)
3636 def do_before_evaluate(self):
3637 r"""do_before_evaluate(SingletonContainerStatistics self)"""
3638 return _IMP_container.SingletonContainerStatistics_do_before_evaluate(self)
3640 def do_after_evaluate(self, da):
3641 r"""do_after_evaluate(SingletonContainerStatistics self, DerivativeAccumulator da)"""
3642 return _IMP_container.SingletonContainerStatistics_do_after_evaluate(self, da)
3644 def do_get_inputs(self):
3645 r"""do_get_inputs(SingletonContainerStatistics self) -> IMP::ModelObjectsTemp"""
3646 return _IMP_container.SingletonContainerStatistics_do_get_inputs(self)
3648 def do_get_outputs(self):
3649 r"""do_get_outputs(SingletonContainerStatistics self) -> IMP::ModelObjectsTemp"""
3650 return _IMP_container.SingletonContainerStatistics_do_get_outputs(self)
3652 def get_version_info(self):
3653 r"""get_version_info(SingletonContainerStatistics self) -> VersionInfo"""
3654 return _IMP_container.SingletonContainerStatistics_get_version_info(self)
3655 __swig_destroy__ = _IMP_container.delete_SingletonContainerStatistics
3658 r"""__str__(SingletonContainerStatistics self) -> std::string"""
3659 return _IMP_container.SingletonContainerStatistics___str__(self)
3662 r"""__repr__(SingletonContainerStatistics self) -> std::string"""
3663 return _IMP_container.SingletonContainerStatistics___repr__(self)
3667 return _object_cast_to_SingletonContainerStatistics(o)
3671 _IMP_container.SingletonContainerStatistics_swigregister(SingletonContainerStatistics)
3673 r"""Proxy of C++ IMP::container::PairContainerStatistics class."""
3675 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3677 def __init__(self, c):
3678 r"""__init__(PairContainerStatistics self, _PairContainerAdaptor c) -> PairContainerStatistics"""
3679 _IMP_container.PairContainerStatistics_swiginit(self, _IMP_container.new_PairContainerStatistics(c))
3681 def show_statistics(self, out):
3682 r"""show_statistics(PairContainerStatistics self, _ostream out)"""
3683 return _IMP_container.PairContainerStatistics_show_statistics(self, out)
3685 def set_track_unique(self, tf):
3686 r"""set_track_unique(PairContainerStatistics self, bool tf)"""
3687 return _IMP_container.PairContainerStatistics_set_track_unique(self, tf)
3689 def do_before_evaluate(self):
3690 r"""do_before_evaluate(PairContainerStatistics self)"""
3691 return _IMP_container.PairContainerStatistics_do_before_evaluate(self)
3693 def do_after_evaluate(self, da):
3694 r"""do_after_evaluate(PairContainerStatistics self, DerivativeAccumulator da)"""
3695 return _IMP_container.PairContainerStatistics_do_after_evaluate(self, da)
3697 def do_get_inputs(self):
3698 r"""do_get_inputs(PairContainerStatistics self) -> IMP::ModelObjectsTemp"""
3699 return _IMP_container.PairContainerStatistics_do_get_inputs(self)
3701 def do_get_outputs(self):
3702 r"""do_get_outputs(PairContainerStatistics self) -> IMP::ModelObjectsTemp"""
3703 return _IMP_container.PairContainerStatistics_do_get_outputs(self)
3705 def get_version_info(self):
3706 r"""get_version_info(PairContainerStatistics self) -> VersionInfo"""
3707 return _IMP_container.PairContainerStatistics_get_version_info(self)
3708 __swig_destroy__ = _IMP_container.delete_PairContainerStatistics
3711 r"""__str__(PairContainerStatistics self) -> std::string"""
3712 return _IMP_container.PairContainerStatistics___str__(self)
3715 r"""__repr__(PairContainerStatistics self) -> std::string"""
3716 return _IMP_container.PairContainerStatistics___repr__(self)
3720 return _object_cast_to_PairContainerStatistics(o)
3724 _IMP_container.PairContainerStatistics_swigregister(PairContainerStatistics)
3726 r"""Proxy of C++ IMP::container::TripletContainerStatistics class."""
3728 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3730 def __init__(self, c):
3731 r"""__init__(TripletContainerStatistics self, _TripletContainerAdaptor c) -> TripletContainerStatistics"""
3732 _IMP_container.TripletContainerStatistics_swiginit(self, _IMP_container.new_TripletContainerStatistics(c))
3734 def show_statistics(self, out):
3735 r"""show_statistics(TripletContainerStatistics self, _ostream out)"""
3736 return _IMP_container.TripletContainerStatistics_show_statistics(self, out)
3738 def set_track_unique(self, tf):
3739 r"""set_track_unique(TripletContainerStatistics self, bool tf)"""
3740 return _IMP_container.TripletContainerStatistics_set_track_unique(self, tf)
3742 def do_before_evaluate(self):
3743 r"""do_before_evaluate(TripletContainerStatistics self)"""
3744 return _IMP_container.TripletContainerStatistics_do_before_evaluate(self)
3746 def do_after_evaluate(self, da):
3747 r"""do_after_evaluate(TripletContainerStatistics self, DerivativeAccumulator da)"""
3748 return _IMP_container.TripletContainerStatistics_do_after_evaluate(self, da)
3750 def do_get_inputs(self):
3751 r"""do_get_inputs(TripletContainerStatistics self) -> IMP::ModelObjectsTemp"""
3752 return _IMP_container.TripletContainerStatistics_do_get_inputs(self)
3754 def do_get_outputs(self):
3755 r"""do_get_outputs(TripletContainerStatistics self) -> IMP::ModelObjectsTemp"""
3756 return _IMP_container.TripletContainerStatistics_do_get_outputs(self)
3758 def get_version_info(self):
3759 r"""get_version_info(TripletContainerStatistics self) -> VersionInfo"""
3760 return _IMP_container.TripletContainerStatistics_get_version_info(self)
3761 __swig_destroy__ = _IMP_container.delete_TripletContainerStatistics
3764 r"""__str__(TripletContainerStatistics self) -> std::string"""
3765 return _IMP_container.TripletContainerStatistics___str__(self)
3768 r"""__repr__(TripletContainerStatistics self) -> std::string"""
3769 return _IMP_container.TripletContainerStatistics___repr__(self)
3773 return _object_cast_to_TripletContainerStatistics(o)
3777 _IMP_container.TripletContainerStatistics_swigregister(TripletContainerStatistics)
3779 r"""Proxy of C++ IMP::container::QuadContainerStatistics class."""
3781 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3783 def __init__(self, c):
3784 r"""__init__(QuadContainerStatistics self, _QuadContainerAdaptor c) -> QuadContainerStatistics"""
3785 _IMP_container.QuadContainerStatistics_swiginit(self, _IMP_container.new_QuadContainerStatistics(c))
3787 def show_statistics(self, out):
3788 r"""show_statistics(QuadContainerStatistics self, _ostream out)"""
3789 return _IMP_container.QuadContainerStatistics_show_statistics(self, out)
3791 def set_track_unique(self, tf):
3792 r"""set_track_unique(QuadContainerStatistics self, bool tf)"""
3793 return _IMP_container.QuadContainerStatistics_set_track_unique(self, tf)
3795 def do_before_evaluate(self):
3796 r"""do_before_evaluate(QuadContainerStatistics self)"""
3797 return _IMP_container.QuadContainerStatistics_do_before_evaluate(self)
3799 def do_after_evaluate(self, da):
3800 r"""do_after_evaluate(QuadContainerStatistics self, DerivativeAccumulator da)"""
3801 return _IMP_container.QuadContainerStatistics_do_after_evaluate(self, da)
3803 def do_get_inputs(self):
3804 r"""do_get_inputs(QuadContainerStatistics self) -> IMP::ModelObjectsTemp"""
3805 return _IMP_container.QuadContainerStatistics_do_get_inputs(self)
3807 def do_get_outputs(self):
3808 r"""do_get_outputs(QuadContainerStatistics self) -> IMP::ModelObjectsTemp"""
3809 return _IMP_container.QuadContainerStatistics_do_get_outputs(self)
3811 def get_version_info(self):
3812 r"""get_version_info(QuadContainerStatistics self) -> VersionInfo"""
3813 return _IMP_container.QuadContainerStatistics_get_version_info(self)
3814 __swig_destroy__ = _IMP_container.delete_QuadContainerStatistics
3817 r"""__str__(QuadContainerStatistics self) -> std::string"""
3818 return _IMP_container.QuadContainerStatistics___str__(self)
3821 r"""__repr__(QuadContainerStatistics self) -> std::string"""
3822 return _IMP_container.QuadContainerStatistics___repr__(self)
3826 return _object_cast_to_QuadContainerStatistics(o)
3830 _IMP_container.QuadContainerStatistics_swigregister(QuadContainerStatistics)
3832 r"""Proxy of C++ IMP::container::EventSingletonsOptimizerState class."""
3834 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3836 def __init__(self, *args):
3837 r"""__init__(EventSingletonsOptimizerState self, SingletonPredicate pred, _SingletonContainerAdaptor container, int value, int min_count, int max_count, std::string name="ConstSingletonPredicate%1%") -> EventSingletonsOptimizerState"""
3838 _IMP_container.EventSingletonsOptimizerState_swiginit(self, _IMP_container.new_EventSingletonsOptimizerState(*args))
3840 def do_update(self, call):
3841 r"""do_update(EventSingletonsOptimizerState self, unsigned int call)"""
3842 return _IMP_container.EventSingletonsOptimizerState_do_update(self, call)
3844 def get_version_info(self):
3845 r"""get_version_info(EventSingletonsOptimizerState self) -> VersionInfo"""
3846 return _IMP_container.EventSingletonsOptimizerState_get_version_info(self)
3847 __swig_destroy__ = _IMP_container.delete_EventSingletonsOptimizerState
3850 r"""__str__(EventSingletonsOptimizerState self) -> std::string"""
3851 return _IMP_container.EventSingletonsOptimizerState___str__(self)
3854 r"""__repr__(EventSingletonsOptimizerState self) -> std::string"""
3855 return _IMP_container.EventSingletonsOptimizerState___repr__(self)
3859 return _object_cast_to_EventSingletonsOptimizerState(o)
3863 _IMP_container.EventSingletonsOptimizerState_swigregister(EventSingletonsOptimizerState)
3865 r"""Proxy of C++ IMP::container::EventPairsOptimizerState class."""
3867 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3869 def __init__(self, *args):
3870 r"""__init__(EventPairsOptimizerState self, PairPredicate pred, _PairContainerAdaptor container, int value, int min_count, int max_count, std::string name="ConstPairPredicate%1%") -> EventPairsOptimizerState"""
3871 _IMP_container.EventPairsOptimizerState_swiginit(self, _IMP_container.new_EventPairsOptimizerState(*args))
3873 def do_update(self, call):
3874 r"""do_update(EventPairsOptimizerState self, unsigned int call)"""
3875 return _IMP_container.EventPairsOptimizerState_do_update(self, call)
3877 def get_version_info(self):
3878 r"""get_version_info(EventPairsOptimizerState self) -> VersionInfo"""
3879 return _IMP_container.EventPairsOptimizerState_get_version_info(self)
3880 __swig_destroy__ = _IMP_container.delete_EventPairsOptimizerState
3883 r"""__str__(EventPairsOptimizerState self) -> std::string"""
3884 return _IMP_container.EventPairsOptimizerState___str__(self)
3887 r"""__repr__(EventPairsOptimizerState self) -> std::string"""
3888 return _IMP_container.EventPairsOptimizerState___repr__(self)
3892 return _object_cast_to_EventPairsOptimizerState(o)
3896 _IMP_container.EventPairsOptimizerState_swigregister(EventPairsOptimizerState)
3898 r"""Proxy of C++ IMP::container::EventTripletsOptimizerState class."""
3900 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3902 def __init__(self, *args):
3903 r"""__init__(EventTripletsOptimizerState self, TripletPredicate pred, _TripletContainerAdaptor container, int value, int min_count, int max_count, std::string name="ConstTripletPredicate%1%") -> EventTripletsOptimizerState"""
3904 _IMP_container.EventTripletsOptimizerState_swiginit(self, _IMP_container.new_EventTripletsOptimizerState(*args))
3906 def do_update(self, call):
3907 r"""do_update(EventTripletsOptimizerState self, unsigned int call)"""
3908 return _IMP_container.EventTripletsOptimizerState_do_update(self, call)
3910 def get_version_info(self):
3911 r"""get_version_info(EventTripletsOptimizerState self) -> VersionInfo"""
3912 return _IMP_container.EventTripletsOptimizerState_get_version_info(self)
3913 __swig_destroy__ = _IMP_container.delete_EventTripletsOptimizerState
3916 r"""__str__(EventTripletsOptimizerState self) -> std::string"""
3917 return _IMP_container.EventTripletsOptimizerState___str__(self)
3920 r"""__repr__(EventTripletsOptimizerState self) -> std::string"""
3921 return _IMP_container.EventTripletsOptimizerState___repr__(self)
3925 return _object_cast_to_EventTripletsOptimizerState(o)
3929 _IMP_container.EventTripletsOptimizerState_swigregister(EventTripletsOptimizerState)
3931 r"""Proxy of C++ IMP::container::EventQuadsOptimizerState class."""
3933 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3935 def __init__(self, *args):
3936 r"""__init__(EventQuadsOptimizerState self, QuadPredicate pred, _QuadContainerAdaptor container, int value, int min_count, int max_count, std::string name="ConstQuadPredicate%1%") -> EventQuadsOptimizerState"""
3937 _IMP_container.EventQuadsOptimizerState_swiginit(self, _IMP_container.new_EventQuadsOptimizerState(*args))
3939 def do_update(self, call):
3940 r"""do_update(EventQuadsOptimizerState self, unsigned int call)"""
3941 return _IMP_container.EventQuadsOptimizerState_do_update(self, call)
3943 def get_version_info(self):
3944 r"""get_version_info(EventQuadsOptimizerState self) -> VersionInfo"""
3945 return _IMP_container.EventQuadsOptimizerState_get_version_info(self)
3946 __swig_destroy__ = _IMP_container.delete_EventQuadsOptimizerState
3949 r"""__str__(EventQuadsOptimizerState self) -> std::string"""
3950 return _IMP_container.EventQuadsOptimizerState___str__(self)
3953 r"""__repr__(EventQuadsOptimizerState self) -> std::string"""
3954 return _IMP_container.EventQuadsOptimizerState___repr__(self)
3958 return _object_cast_to_EventQuadsOptimizerState(o)
3962 _IMP_container.EventQuadsOptimizerState_swigregister(EventQuadsOptimizerState)
3964 r"""Proxy of C++ IMP::container::PredicateSingletonsRestraint class."""
3966 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3968 def __init__(self, *args):
3970 __init__(PredicateSingletonsRestraint self, SingletonPredicate pred, _SingletonContainerAdaptor input, std::string name="PredicateSingletonsRestraint %1%") -> PredicateSingletonsRestraint
3971 __init__(PredicateSingletonsRestraint self) -> PredicateSingletonsRestraint
3973 _IMP_container.PredicateSingletonsRestraint_swiginit(self, _IMP_container.new_PredicateSingletonsRestraint(*args))
3975 def set_score(self, predicate_value, score):
3976 r"""set_score(PredicateSingletonsRestraint self, int predicate_value, SingletonScore score)"""
3977 return _IMP_container.PredicateSingletonsRestraint_set_score(self, predicate_value, score)
3979 def set_unknown_score(self, score):
3980 r"""set_unknown_score(PredicateSingletonsRestraint self, SingletonScore score)"""
3981 return _IMP_container.PredicateSingletonsRestraint_set_unknown_score(self, score)
3983 def set_is_complete(self, tf):
3984 r"""set_is_complete(PredicateSingletonsRestraint self, bool tf)"""
3985 return _IMP_container.PredicateSingletonsRestraint_set_is_complete(self, tf)
3988 r"""get_indexes(PredicateSingletonsRestraint self, int predicate_value) -> IMP::ParticleIndexes"""
3989 return _IMP_container.PredicateSingletonsRestraint_get_indexes(self, predicate_value)
3991 def do_add_score_and_derivatives(self, sa):
3992 r"""do_add_score_and_derivatives(PredicateSingletonsRestraint self, ScoreAccumulator sa)"""
3993 return _IMP_container.PredicateSingletonsRestraint_do_add_score_and_derivatives(self, sa)
3995 def do_get_inputs(self):
3996 r"""do_get_inputs(PredicateSingletonsRestraint self) -> IMP::ModelObjectsTemp"""
3997 return _IMP_container.PredicateSingletonsRestraint_do_get_inputs(self)
3999 def get_version_info(self):
4000 r"""get_version_info(PredicateSingletonsRestraint self) -> VersionInfo"""
4001 return _IMP_container.PredicateSingletonsRestraint_get_version_info(self)
4002 __swig_destroy__ = _IMP_container.delete_PredicateSingletonsRestraint
4005 r"""__str__(PredicateSingletonsRestraint self) -> std::string"""
4006 return _IMP_container.PredicateSingletonsRestraint___str__(self)
4009 r"""__repr__(PredicateSingletonsRestraint self) -> std::string"""
4010 return _IMP_container.PredicateSingletonsRestraint___repr__(self)
4014 return _object_cast_to_PredicateSingletonsRestraint(o)
4017 def _get_as_binary(self):
4018 r"""_get_as_binary(PredicateSingletonsRestraint self) -> PyObject *"""
4019 return _IMP_container.PredicateSingletonsRestraint__get_as_binary(self)
4021 def _set_from_binary(self, p):
4022 r"""_set_from_binary(PredicateSingletonsRestraint self, PyObject * p)"""
4023 return _IMP_container.PredicateSingletonsRestraint__set_from_binary(self, p)
4025 def __getstate__(self):
4026 p = self._get_as_binary()
4027 if len(self.__dict__) > 1:
4028 d = self.__dict__.copy()
4033 def __setstate__(self, p):
4034 if not hasattr(self,
'this'):
4036 if isinstance(p, tuple):
4038 self.__dict__.update(d)
4039 return self._set_from_binary(p)
4043 _IMP_container.PredicateSingletonsRestraint_swigregister(PredicateSingletonsRestraint)
4045 r"""Proxy of C++ IMP::container::PredicatePairsRestraint class."""
4047 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4049 def __init__(self, *args):
4051 __init__(PredicatePairsRestraint self, PairPredicate pred, _PairContainerAdaptor input, std::string name="PredicatePairsRestraint %1%") -> PredicatePairsRestraint
4052 __init__(PredicatePairsRestraint self) -> PredicatePairsRestraint
4054 _IMP_container.PredicatePairsRestraint_swiginit(self, _IMP_container.new_PredicatePairsRestraint(*args))
4056 def set_score(self, predicate_value, score):
4057 r"""set_score(PredicatePairsRestraint self, int predicate_value, PairScore score)"""
4058 return _IMP_container.PredicatePairsRestraint_set_score(self, predicate_value, score)
4060 def set_unknown_score(self, score):
4061 r"""set_unknown_score(PredicatePairsRestraint self, PairScore score)"""
4062 return _IMP_container.PredicatePairsRestraint_set_unknown_score(self, score)
4064 def set_is_complete(self, tf):
4065 r"""set_is_complete(PredicatePairsRestraint self, bool tf)"""
4066 return _IMP_container.PredicatePairsRestraint_set_is_complete(self, tf)
4069 r"""get_indexes(PredicatePairsRestraint self, int predicate_value) -> IMP::ParticleIndexPairs"""
4070 return _IMP_container.PredicatePairsRestraint_get_indexes(self, predicate_value)
4072 def do_add_score_and_derivatives(self, sa):
4073 r"""do_add_score_and_derivatives(PredicatePairsRestraint self, ScoreAccumulator sa)"""
4074 return _IMP_container.PredicatePairsRestraint_do_add_score_and_derivatives(self, sa)
4076 def do_get_inputs(self):
4077 r"""do_get_inputs(PredicatePairsRestraint self) -> IMP::ModelObjectsTemp"""
4078 return _IMP_container.PredicatePairsRestraint_do_get_inputs(self)
4080 def get_version_info(self):
4081 r"""get_version_info(PredicatePairsRestraint self) -> VersionInfo"""
4082 return _IMP_container.PredicatePairsRestraint_get_version_info(self)
4083 __swig_destroy__ = _IMP_container.delete_PredicatePairsRestraint
4086 r"""__str__(PredicatePairsRestraint self) -> std::string"""
4087 return _IMP_container.PredicatePairsRestraint___str__(self)
4090 r"""__repr__(PredicatePairsRestraint self) -> std::string"""
4091 return _IMP_container.PredicatePairsRestraint___repr__(self)
4095 return _object_cast_to_PredicatePairsRestraint(o)
4098 def _get_as_binary(self):
4099 r"""_get_as_binary(PredicatePairsRestraint self) -> PyObject *"""
4100 return _IMP_container.PredicatePairsRestraint__get_as_binary(self)
4102 def _set_from_binary(self, p):
4103 r"""_set_from_binary(PredicatePairsRestraint self, PyObject * p)"""
4104 return _IMP_container.PredicatePairsRestraint__set_from_binary(self, p)
4106 def __getstate__(self):
4107 p = self._get_as_binary()
4108 if len(self.__dict__) > 1:
4109 d = self.__dict__.copy()
4114 def __setstate__(self, p):
4115 if not hasattr(self,
'this'):
4117 if isinstance(p, tuple):
4119 self.__dict__.update(d)
4120 return self._set_from_binary(p)
4124 _IMP_container.PredicatePairsRestraint_swigregister(PredicatePairsRestraint)
4126 r"""Proxy of C++ IMP::container::PredicateTripletsRestraint class."""
4128 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4130 def __init__(self, *args):
4132 __init__(PredicateTripletsRestraint self, TripletPredicate pred, _TripletContainerAdaptor input, std::string name="PredicateTripletsRestraint %1%") -> PredicateTripletsRestraint
4133 __init__(PredicateTripletsRestraint self) -> PredicateTripletsRestraint
4135 _IMP_container.PredicateTripletsRestraint_swiginit(self, _IMP_container.new_PredicateTripletsRestraint(*args))
4137 def set_score(self, predicate_value, score):
4138 r"""set_score(PredicateTripletsRestraint self, int predicate_value, TripletScore score)"""
4139 return _IMP_container.PredicateTripletsRestraint_set_score(self, predicate_value, score)
4141 def set_unknown_score(self, score):
4142 r"""set_unknown_score(PredicateTripletsRestraint self, TripletScore score)"""
4143 return _IMP_container.PredicateTripletsRestraint_set_unknown_score(self, score)
4145 def set_is_complete(self, tf):
4146 r"""set_is_complete(PredicateTripletsRestraint self, bool tf)"""
4147 return _IMP_container.PredicateTripletsRestraint_set_is_complete(self, tf)
4150 r"""get_indexes(PredicateTripletsRestraint self, int predicate_value) -> IMP::ParticleIndexTriplets"""
4151 return _IMP_container.PredicateTripletsRestraint_get_indexes(self, predicate_value)
4153 def do_add_score_and_derivatives(self, sa):
4154 r"""do_add_score_and_derivatives(PredicateTripletsRestraint self, ScoreAccumulator sa)"""
4155 return _IMP_container.PredicateTripletsRestraint_do_add_score_and_derivatives(self, sa)
4157 def do_get_inputs(self):
4158 r"""do_get_inputs(PredicateTripletsRestraint self) -> IMP::ModelObjectsTemp"""
4159 return _IMP_container.PredicateTripletsRestraint_do_get_inputs(self)
4161 def get_version_info(self):
4162 r"""get_version_info(PredicateTripletsRestraint self) -> VersionInfo"""
4163 return _IMP_container.PredicateTripletsRestraint_get_version_info(self)
4164 __swig_destroy__ = _IMP_container.delete_PredicateTripletsRestraint
4167 r"""__str__(PredicateTripletsRestraint self) -> std::string"""
4168 return _IMP_container.PredicateTripletsRestraint___str__(self)
4171 r"""__repr__(PredicateTripletsRestraint self) -> std::string"""
4172 return _IMP_container.PredicateTripletsRestraint___repr__(self)
4176 return _object_cast_to_PredicateTripletsRestraint(o)
4179 def _get_as_binary(self):
4180 r"""_get_as_binary(PredicateTripletsRestraint self) -> PyObject *"""
4181 return _IMP_container.PredicateTripletsRestraint__get_as_binary(self)
4183 def _set_from_binary(self, p):
4184 r"""_set_from_binary(PredicateTripletsRestraint self, PyObject * p)"""
4185 return _IMP_container.PredicateTripletsRestraint__set_from_binary(self, p)
4187 def __getstate__(self):
4188 p = self._get_as_binary()
4189 if len(self.__dict__) > 1:
4190 d = self.__dict__.copy()
4195 def __setstate__(self, p):
4196 if not hasattr(self,
'this'):
4198 if isinstance(p, tuple):
4200 self.__dict__.update(d)
4201 return self._set_from_binary(p)
4205 _IMP_container.PredicateTripletsRestraint_swigregister(PredicateTripletsRestraint)
4207 r"""Proxy of C++ IMP::container::PredicateQuadsRestraint class."""
4209 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4211 def __init__(self, *args):
4213 __init__(PredicateQuadsRestraint self, QuadPredicate pred, _QuadContainerAdaptor input, std::string name="PredicateQuadsRestraint %1%") -> PredicateQuadsRestraint
4214 __init__(PredicateQuadsRestraint self) -> PredicateQuadsRestraint
4216 _IMP_container.PredicateQuadsRestraint_swiginit(self, _IMP_container.new_PredicateQuadsRestraint(*args))
4218 def set_score(self, predicate_value, score):
4219 r"""set_score(PredicateQuadsRestraint self, int predicate_value, QuadScore score)"""
4220 return _IMP_container.PredicateQuadsRestraint_set_score(self, predicate_value, score)
4222 def set_unknown_score(self, score):
4223 r"""set_unknown_score(PredicateQuadsRestraint self, QuadScore score)"""
4224 return _IMP_container.PredicateQuadsRestraint_set_unknown_score(self, score)
4226 def set_is_complete(self, tf):
4227 r"""set_is_complete(PredicateQuadsRestraint self, bool tf)"""
4228 return _IMP_container.PredicateQuadsRestraint_set_is_complete(self, tf)
4231 r"""get_indexes(PredicateQuadsRestraint self, int predicate_value) -> IMP::ParticleIndexQuads"""
4232 return _IMP_container.PredicateQuadsRestraint_get_indexes(self, predicate_value)
4234 def do_add_score_and_derivatives(self, sa):
4235 r"""do_add_score_and_derivatives(PredicateQuadsRestraint self, ScoreAccumulator sa)"""
4236 return _IMP_container.PredicateQuadsRestraint_do_add_score_and_derivatives(self, sa)
4238 def do_get_inputs(self):
4239 r"""do_get_inputs(PredicateQuadsRestraint self) -> IMP::ModelObjectsTemp"""
4240 return _IMP_container.PredicateQuadsRestraint_do_get_inputs(self)
4242 def get_version_info(self):
4243 r"""get_version_info(PredicateQuadsRestraint self) -> VersionInfo"""
4244 return _IMP_container.PredicateQuadsRestraint_get_version_info(self)
4245 __swig_destroy__ = _IMP_container.delete_PredicateQuadsRestraint
4248 r"""__str__(PredicateQuadsRestraint self) -> std::string"""
4249 return _IMP_container.PredicateQuadsRestraint___str__(self)
4252 r"""__repr__(PredicateQuadsRestraint self) -> std::string"""
4253 return _IMP_container.PredicateQuadsRestraint___repr__(self)
4257 return _object_cast_to_PredicateQuadsRestraint(o)
4260 def _get_as_binary(self):
4261 r"""_get_as_binary(PredicateQuadsRestraint self) -> PyObject *"""
4262 return _IMP_container.PredicateQuadsRestraint__get_as_binary(self)
4264 def _set_from_binary(self, p):
4265 r"""_set_from_binary(PredicateQuadsRestraint self, PyObject * p)"""
4266 return _IMP_container.PredicateQuadsRestraint__set_from_binary(self, p)
4268 def __getstate__(self):
4269 p = self._get_as_binary()
4270 if len(self.__dict__) > 1:
4271 d = self.__dict__.copy()
4276 def __setstate__(self, p):
4277 if not hasattr(self,
'this'):
4279 if isinstance(p, tuple):
4281 self.__dict__.update(d)
4282 return self._set_from_binary(p)
4286 _IMP_container.PredicateQuadsRestraint_swigregister(PredicateQuadsRestraint)
4288 r"""Proxy of C++ IMP::container::DistributeSingletonsScoreState class."""
4290 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4292 def __init__(self, *args):
4293 r"""__init__(DistributeSingletonsScoreState self, _SingletonContainerAdaptor input, std::string name="DistributeSingletonsScoreState %1%") -> DistributeSingletonsScoreState"""
4294 _IMP_container.DistributeSingletonsScoreState_swiginit(self, _IMP_container.new_DistributeSingletonsScoreState(*args))
4296 def add_predicate(self, predicate, value):
4297 r"""add_predicate(DistributeSingletonsScoreState self, SingletonPredicate predicate, int value) -> DynamicListSingletonContainer"""
4298 return _IMP_container.DistributeSingletonsScoreState_add_predicate(self, predicate, value)
4300 def do_before_evaluate(self):
4301 r"""do_before_evaluate(DistributeSingletonsScoreState self)"""
4302 return _IMP_container.DistributeSingletonsScoreState_do_before_evaluate(self)
4304 def do_after_evaluate(self, da):
4305 r"""do_after_evaluate(DistributeSingletonsScoreState self, DerivativeAccumulator da)"""
4306 return _IMP_container.DistributeSingletonsScoreState_do_after_evaluate(self, da)
4308 def do_get_inputs(self):
4309 r"""do_get_inputs(DistributeSingletonsScoreState self) -> IMP::ModelObjectsTemp"""
4310 return _IMP_container.DistributeSingletonsScoreState_do_get_inputs(self)
4312 def do_get_outputs(self):
4313 r"""do_get_outputs(DistributeSingletonsScoreState self) -> IMP::ModelObjectsTemp"""
4314 return _IMP_container.DistributeSingletonsScoreState_do_get_outputs(self)
4316 def get_version_info(self):
4317 r"""get_version_info(DistributeSingletonsScoreState self) -> VersionInfo"""
4318 return _IMP_container.DistributeSingletonsScoreState_get_version_info(self)
4319 __swig_destroy__ = _IMP_container.delete_DistributeSingletonsScoreState
4322 r"""__str__(DistributeSingletonsScoreState self) -> std::string"""
4323 return _IMP_container.DistributeSingletonsScoreState___str__(self)
4326 r"""__repr__(DistributeSingletonsScoreState self) -> std::string"""
4327 return _IMP_container.DistributeSingletonsScoreState___repr__(self)
4331 return _object_cast_to_DistributeSingletonsScoreState(o)
4335 _IMP_container.DistributeSingletonsScoreState_swigregister(DistributeSingletonsScoreState)
4337 r"""Proxy of C++ IMP::container::DistributePairsScoreState class."""
4339 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4341 def __init__(self, *args):
4342 r"""__init__(DistributePairsScoreState self, _PairContainerAdaptor input, std::string name="DistributePairsScoreState %1%") -> DistributePairsScoreState"""
4343 _IMP_container.DistributePairsScoreState_swiginit(self, _IMP_container.new_DistributePairsScoreState(*args))
4345 def add_predicate(self, predicate, value):
4346 r"""add_predicate(DistributePairsScoreState self, PairPredicate predicate, int value) -> DynamicListPairContainer"""
4347 return _IMP_container.DistributePairsScoreState_add_predicate(self, predicate, value)
4349 def do_before_evaluate(self):
4350 r"""do_before_evaluate(DistributePairsScoreState self)"""
4351 return _IMP_container.DistributePairsScoreState_do_before_evaluate(self)
4353 def do_after_evaluate(self, da):
4354 r"""do_after_evaluate(DistributePairsScoreState self, DerivativeAccumulator da)"""
4355 return _IMP_container.DistributePairsScoreState_do_after_evaluate(self, da)
4357 def do_get_inputs(self):
4358 r"""do_get_inputs(DistributePairsScoreState self) -> IMP::ModelObjectsTemp"""
4359 return _IMP_container.DistributePairsScoreState_do_get_inputs(self)
4361 def do_get_outputs(self):
4362 r"""do_get_outputs(DistributePairsScoreState self) -> IMP::ModelObjectsTemp"""
4363 return _IMP_container.DistributePairsScoreState_do_get_outputs(self)
4365 def get_version_info(self):
4366 r"""get_version_info(DistributePairsScoreState self) -> VersionInfo"""
4367 return _IMP_container.DistributePairsScoreState_get_version_info(self)
4368 __swig_destroy__ = _IMP_container.delete_DistributePairsScoreState
4371 r"""__str__(DistributePairsScoreState self) -> std::string"""
4372 return _IMP_container.DistributePairsScoreState___str__(self)
4375 r"""__repr__(DistributePairsScoreState self) -> std::string"""
4376 return _IMP_container.DistributePairsScoreState___repr__(self)
4380 return _object_cast_to_DistributePairsScoreState(o)
4384 _IMP_container.DistributePairsScoreState_swigregister(DistributePairsScoreState)
4386 r"""Proxy of C++ IMP::container::DistributeTripletsScoreState class."""
4388 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4390 def __init__(self, *args):
4391 r"""__init__(DistributeTripletsScoreState self, _TripletContainerAdaptor input, std::string name="DistributeTripletsScoreState %1%") -> DistributeTripletsScoreState"""
4392 _IMP_container.DistributeTripletsScoreState_swiginit(self, _IMP_container.new_DistributeTripletsScoreState(*args))
4394 def add_predicate(self, predicate, value):
4395 r"""add_predicate(DistributeTripletsScoreState self, TripletPredicate predicate, int value) -> DynamicListTripletContainer"""
4396 return _IMP_container.DistributeTripletsScoreState_add_predicate(self, predicate, value)
4398 def do_before_evaluate(self):
4399 r"""do_before_evaluate(DistributeTripletsScoreState self)"""
4400 return _IMP_container.DistributeTripletsScoreState_do_before_evaluate(self)
4402 def do_after_evaluate(self, da):
4403 r"""do_after_evaluate(DistributeTripletsScoreState self, DerivativeAccumulator da)"""
4404 return _IMP_container.DistributeTripletsScoreState_do_after_evaluate(self, da)
4406 def do_get_inputs(self):
4407 r"""do_get_inputs(DistributeTripletsScoreState self) -> IMP::ModelObjectsTemp"""
4408 return _IMP_container.DistributeTripletsScoreState_do_get_inputs(self)
4410 def do_get_outputs(self):
4411 r"""do_get_outputs(DistributeTripletsScoreState self) -> IMP::ModelObjectsTemp"""
4412 return _IMP_container.DistributeTripletsScoreState_do_get_outputs(self)
4414 def get_version_info(self):
4415 r"""get_version_info(DistributeTripletsScoreState self) -> VersionInfo"""
4416 return _IMP_container.DistributeTripletsScoreState_get_version_info(self)
4417 __swig_destroy__ = _IMP_container.delete_DistributeTripletsScoreState
4420 r"""__str__(DistributeTripletsScoreState self) -> std::string"""
4421 return _IMP_container.DistributeTripletsScoreState___str__(self)
4424 r"""__repr__(DistributeTripletsScoreState self) -> std::string"""
4425 return _IMP_container.DistributeTripletsScoreState___repr__(self)
4429 return _object_cast_to_DistributeTripletsScoreState(o)
4433 _IMP_container.DistributeTripletsScoreState_swigregister(DistributeTripletsScoreState)
4435 r"""Proxy of C++ IMP::container::DistributeQuadsScoreState class."""
4437 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4439 def __init__(self, *args):
4440 r"""__init__(DistributeQuadsScoreState self, _QuadContainerAdaptor input, std::string name="DistributeQuadsScoreState %1%") -> DistributeQuadsScoreState"""
4441 _IMP_container.DistributeQuadsScoreState_swiginit(self, _IMP_container.new_DistributeQuadsScoreState(*args))
4443 def add_predicate(self, predicate, value):
4444 r"""add_predicate(DistributeQuadsScoreState self, QuadPredicate predicate, int value) -> DynamicListQuadContainer"""
4445 return _IMP_container.DistributeQuadsScoreState_add_predicate(self, predicate, value)
4447 def do_before_evaluate(self):
4448 r"""do_before_evaluate(DistributeQuadsScoreState self)"""
4449 return _IMP_container.DistributeQuadsScoreState_do_before_evaluate(self)
4451 def do_after_evaluate(self, da):
4452 r"""do_after_evaluate(DistributeQuadsScoreState self, DerivativeAccumulator da)"""
4453 return _IMP_container.DistributeQuadsScoreState_do_after_evaluate(self, da)
4455 def do_get_inputs(self):
4456 r"""do_get_inputs(DistributeQuadsScoreState self) -> IMP::ModelObjectsTemp"""
4457 return _IMP_container.DistributeQuadsScoreState_do_get_inputs(self)
4459 def do_get_outputs(self):
4460 r"""do_get_outputs(DistributeQuadsScoreState self) -> IMP::ModelObjectsTemp"""
4461 return _IMP_container.DistributeQuadsScoreState_do_get_outputs(self)
4463 def get_version_info(self):
4464 r"""get_version_info(DistributeQuadsScoreState self) -> VersionInfo"""
4465 return _IMP_container.DistributeQuadsScoreState_get_version_info(self)
4466 __swig_destroy__ = _IMP_container.delete_DistributeQuadsScoreState
4469 r"""__str__(DistributeQuadsScoreState self) -> std::string"""
4470 return _IMP_container.DistributeQuadsScoreState___str__(self)
4473 r"""__repr__(DistributeQuadsScoreState self) -> std::string"""
4474 return _IMP_container.DistributeQuadsScoreState___repr__(self)
4478 return _object_cast_to_DistributeQuadsScoreState(o)
4482 _IMP_container.DistributeQuadsScoreState_swigregister(DistributeQuadsScoreState)
4486 create_restraint(PairScore ps, IMP::ParticlePair pp) -> Restraint
4487 create_restraint(PairScore ps, PairContainer pp) -> Restraint
4489 return _IMP_container.create_restraint(*args)
4491 def get_module_name():
4492 r"""get_module_name() -> std::string const"""
4493 return _IMP_container.get_module_name()
4496 r"""get_module_version() -> std::string const"""
4497 return _IMP_container.get_module_version()
4500 r"""get_example_path(std::string fname) -> std::string"""
4501 return _IMP_container.get_example_path(fname)
4504 r"""get_data_path(std::string fname) -> std::string"""
4505 return _IMP_container.get_data_path(fname)
4507 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.