20 import builtins
as __builtin__
24 strthis =
"proxy of " + self.this.__repr__()
25 except __builtin__.Exception:
27 return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
30 def _swig_setattr_nondynamic_instance_variable(set):
31 def set_instance_attr(self, name, value):
33 set(self, name, value)
34 elif name ==
"thisown":
36 elif hasattr(self, name)
and isinstance(getattr(type(self), name), property):
37 set(self, name, value)
39 raise AttributeError(
"You cannot add instance attributes to %s" % self)
40 return set_instance_attr
43 def _swig_setattr_nondynamic_class_variable(set):
44 def set_class_attr(cls, name, value):
45 if hasattr(cls, name)
and not isinstance(getattr(cls, name), property):
48 raise AttributeError(
"You cannot add class attributes to %s" % cls)
52 class _SwigNonDynamicMeta(type):
53 """Meta class to enforce nondynamic attributes (no new attributes) for a class"""
54 __setattr__ = _swig_setattr_nondynamic_class_variable(type.__setattr__)
59 class IMP_CONTAINER_SwigPyIterator(object):
60 r"""Proxy of C++ swig::IMP_CONTAINER_SwigPyIterator class."""
62 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
64 def __init__(self, *args, **kwargs):
65 raise AttributeError(
"No constructor defined - class is abstract")
67 __swig_destroy__ = _IMP_container.delete_IMP_CONTAINER_SwigPyIterator
70 r"""value(IMP_CONTAINER_SwigPyIterator self) -> PyObject *"""
71 return _IMP_container.IMP_CONTAINER_SwigPyIterator_value(self)
74 r"""incr(IMP_CONTAINER_SwigPyIterator self, size_t n=1) -> IMP_CONTAINER_SwigPyIterator"""
75 return _IMP_container.IMP_CONTAINER_SwigPyIterator_incr(self, n)
78 r"""decr(IMP_CONTAINER_SwigPyIterator self, size_t n=1) -> IMP_CONTAINER_SwigPyIterator"""
79 return _IMP_container.IMP_CONTAINER_SwigPyIterator_decr(self, n)
81 def distance(self, x):
82 r"""distance(IMP_CONTAINER_SwigPyIterator self, IMP_CONTAINER_SwigPyIterator x) -> ptrdiff_t"""
83 return _IMP_container.IMP_CONTAINER_SwigPyIterator_distance(self, x)
86 r"""equal(IMP_CONTAINER_SwigPyIterator self, IMP_CONTAINER_SwigPyIterator x) -> bool"""
87 return _IMP_container.IMP_CONTAINER_SwigPyIterator_equal(self, x)
90 r"""copy(IMP_CONTAINER_SwigPyIterator self) -> IMP_CONTAINER_SwigPyIterator"""
91 return _IMP_container.IMP_CONTAINER_SwigPyIterator_copy(self)
94 r"""__next__(IMP_CONTAINER_SwigPyIterator self) -> PyObject *"""
95 return _IMP_container.IMP_CONTAINER_SwigPyIterator___next__(self)
98 r"""previous(IMP_CONTAINER_SwigPyIterator self) -> PyObject *"""
99 return _IMP_container.IMP_CONTAINER_SwigPyIterator_previous(self)
101 def advance(self, n):
102 r"""advance(IMP_CONTAINER_SwigPyIterator self, ptrdiff_t n) -> IMP_CONTAINER_SwigPyIterator"""
103 return _IMP_container.IMP_CONTAINER_SwigPyIterator_advance(self, n)
106 r"""__eq__(IMP_CONTAINER_SwigPyIterator self, IMP_CONTAINER_SwigPyIterator x) -> bool"""
107 return _IMP_container.IMP_CONTAINER_SwigPyIterator___eq__(self, x)
110 r"""__ne__(IMP_CONTAINER_SwigPyIterator self, IMP_CONTAINER_SwigPyIterator x) -> bool"""
111 return _IMP_container.IMP_CONTAINER_SwigPyIterator___ne__(self, x)
113 def __iadd__(self, n):
114 r"""__iadd__(IMP_CONTAINER_SwigPyIterator self, ptrdiff_t n) -> IMP_CONTAINER_SwigPyIterator"""
115 return _IMP_container.IMP_CONTAINER_SwigPyIterator___iadd__(self, n)
117 def __isub__(self, n):
118 r"""__isub__(IMP_CONTAINER_SwigPyIterator self, ptrdiff_t n) -> IMP_CONTAINER_SwigPyIterator"""
119 return _IMP_container.IMP_CONTAINER_SwigPyIterator___isub__(self, n)
121 def __add__(self, n):
122 r"""__add__(IMP_CONTAINER_SwigPyIterator self, ptrdiff_t n) -> IMP_CONTAINER_SwigPyIterator"""
123 return _IMP_container.IMP_CONTAINER_SwigPyIterator___add__(self, n)
125 def __sub__(self, *args):
127 __sub__(IMP_CONTAINER_SwigPyIterator self, ptrdiff_t n) -> IMP_CONTAINER_SwigPyIterator
128 __sub__(IMP_CONTAINER_SwigPyIterator self, IMP_CONTAINER_SwigPyIterator x) -> ptrdiff_t
130 return _IMP_container.IMP_CONTAINER_SwigPyIterator___sub__(self, *args)
135 _IMP_container.IMP_CONTAINER_SwigPyIterator_swigregister(IMP_CONTAINER_SwigPyIterator)
142 IMP_DEBUG = _IMP_container.IMP_DEBUG
144 IMP_RELEASE = _IMP_container.IMP_RELEASE
146 IMP_SILENT = _IMP_container.IMP_SILENT
148 IMP_PROGRESS = _IMP_container.IMP_PROGRESS
150 IMP_TERSE = _IMP_container.IMP_TERSE
152 IMP_VERBOSE = _IMP_container.IMP_VERBOSE
154 IMP_MEMORY = _IMP_container.IMP_MEMORY
156 IMP_NONE = _IMP_container.IMP_NONE
158 IMP_USAGE = _IMP_container.IMP_USAGE
160 IMP_INTERNAL = _IMP_container.IMP_INTERNAL
162 IMP_KERNEL_HAS_LOG4CXX = _IMP_container.IMP_KERNEL_HAS_LOG4CXX
164 IMP_COMPILER_HAS_CEREAL_RAW_POINTER = _IMP_container.IMP_COMPILER_HAS_CEREAL_RAW_POINTER
166 IMP_COMPILER_HAS_DEBUG_VECTOR = _IMP_container.IMP_COMPILER_HAS_DEBUG_VECTOR
168 IMP_COMPILER_HAS_RANDOM_SHUFFLE = _IMP_container.IMP_COMPILER_HAS_RANDOM_SHUFFLE
170 IMP_COMPILER_HAS_THREE_WAY = _IMP_container.IMP_COMPILER_HAS_THREE_WAY
172 IMP_KERNEL_HAS_BOOST_RANDOM = _IMP_container.IMP_KERNEL_HAS_BOOST_RANDOM
174 IMP_KERNEL_HAS_NUMPY = _IMP_container.IMP_KERNEL_HAS_NUMPY
176 IMP_KERNEL_HAS_BOOST_SYSTEM = _IMP_container.IMP_KERNEL_HAS_BOOST_SYSTEM
178 IMP_KERNEL_HAS_GPERFTOOLS = _IMP_container.IMP_KERNEL_HAS_GPERFTOOLS
180 IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER = _IMP_container.IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER
182 IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER = _IMP_container.IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER
184 IMPKERNEL_SHOW_WARNINGS = _IMP_container.IMPKERNEL_SHOW_WARNINGS
188 class _DirectorObjects:
189 """@internal Simple class to keep references to director objects
190 to prevent premature deletion."""
193 def register(self, obj):
194 """Take a reference to a director object; will only work for
195 refcounted C++ classes"""
196 if hasattr(obj,
'get_ref_count'):
197 self._objects.append(obj)
199 """Only drop our reference and allow cleanup by Python if no other
200 Python references exist (we hold 3 references: one in self._objects,
201 one in x, and one in the argument list for getrefcount) *and* no
202 other C++ references exist (the Python object always holds one)"""
203 objs = [x
for x
in self._objects
if sys.getrefcount(x) > 3 \
204 or x.get_ref_count() > 1]
208 def get_object_count(self):
209 """Get number of director objects (useful for testing only)"""
210 return len(self._objects)
211 _director_objects = _DirectorObjects()
213 class _ostream(object):
214 r"""Proxy of C++ std::ostream class."""
216 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
218 def __init__(self, *args, **kwargs):
219 raise AttributeError(
"No constructor defined")
220 __repr__ = _swig_repr
222 def write(self, osa_buf):
223 r"""write(_ostream self, char const * osa_buf)"""
224 return _IMP_container._ostream_write(self, osa_buf)
227 _IMP_container._ostream_swigregister(_ostream)
228 IMP_C_OPEN_BINARY = _IMP_container.IMP_C_OPEN_BINARY
231 IMP_CGAL_HAS_BOOST_FILESYSTEM = _IMP_container.IMP_CGAL_HAS_BOOST_FILESYSTEM
233 IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS = _IMP_container.IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS
235 IMP_CGAL_HAS_BOOST_RANDOM = _IMP_container.IMP_CGAL_HAS_BOOST_RANDOM
237 IMP_CGAL_HAS_NUMPY = _IMP_container.IMP_CGAL_HAS_NUMPY
239 IMPCGAL_SHOW_WARNINGS = _IMP_container.IMPCGAL_SHOW_WARNINGS
242 IMP_ALGEBRA_HAS_IMP_CGAL = _IMP_container.IMP_ALGEBRA_HAS_IMP_CGAL
244 IMP_ALGEBRA_HAS_BOOST_FILESYSTEM = _IMP_container.IMP_ALGEBRA_HAS_BOOST_FILESYSTEM
246 IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS = _IMP_container.IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS
248 IMP_ALGEBRA_HAS_BOOST_RANDOM = _IMP_container.IMP_ALGEBRA_HAS_BOOST_RANDOM
250 IMP_ALGEBRA_HAS_CGAL = _IMP_container.IMP_ALGEBRA_HAS_CGAL
252 IMP_ALGEBRA_HAS_NUMPY = _IMP_container.IMP_ALGEBRA_HAS_NUMPY
254 IMP_ALGEBRA_HAS_ANN = _IMP_container.IMP_ALGEBRA_HAS_ANN
256 IMPALGEBRA_SHOW_WARNINGS = _IMP_container.IMPALGEBRA_SHOW_WARNINGS
259 IMP_DISPLAY_HAS_IMP_CGAL = _IMP_container.IMP_DISPLAY_HAS_IMP_CGAL
261 IMP_DISPLAY_HAS_BOOST_FILESYSTEM = _IMP_container.IMP_DISPLAY_HAS_BOOST_FILESYSTEM
263 IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS = _IMP_container.IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS
265 IMP_DISPLAY_HAS_BOOST_RANDOM = _IMP_container.IMP_DISPLAY_HAS_BOOST_RANDOM
267 IMP_DISPLAY_HAS_CGAL = _IMP_container.IMP_DISPLAY_HAS_CGAL
269 IMP_DISPLAY_HAS_NUMPY = _IMP_container.IMP_DISPLAY_HAS_NUMPY
271 IMPDISPLAY_SHOW_WARNINGS = _IMP_container.IMPDISPLAY_SHOW_WARNINGS
274 IMP_SCORE_FUNCTOR_HAS_IMP_CGAL = _IMP_container.IMP_SCORE_FUNCTOR_HAS_IMP_CGAL
276 IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM = _IMP_container.IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM
278 IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS = _IMP_container.IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS
280 IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM = _IMP_container.IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM
282 IMP_SCORE_FUNCTOR_HAS_CGAL = _IMP_container.IMP_SCORE_FUNCTOR_HAS_CGAL
284 IMP_SCORE_FUNCTOR_HAS_HDF5 = _IMP_container.IMP_SCORE_FUNCTOR_HAS_HDF5
286 IMP_SCORE_FUNCTOR_HAS_NUMPY = _IMP_container.IMP_SCORE_FUNCTOR_HAS_NUMPY
288 IMPSCOREFUNCTOR_SHOW_WARNINGS = _IMP_container.IMPSCOREFUNCTOR_SHOW_WARNINGS
291 IMP_CORE_HAS_IMP_CGAL = _IMP_container.IMP_CORE_HAS_IMP_CGAL
293 IMP_CORE_HAS_IMP_KERNEL = _IMP_container.IMP_CORE_HAS_IMP_KERNEL
295 IMP_CORE_HAS_BOOST_FILESYSTEM = _IMP_container.IMP_CORE_HAS_BOOST_FILESYSTEM
297 IMP_CORE_HAS_BOOST_PROGRAMOPTIONS = _IMP_container.IMP_CORE_HAS_BOOST_PROGRAMOPTIONS
299 IMP_CORE_HAS_BOOST_RANDOM = _IMP_container.IMP_CORE_HAS_BOOST_RANDOM
301 IMP_CORE_HAS_CGAL = _IMP_container.IMP_CORE_HAS_CGAL
303 IMP_CORE_HAS_HDF5 = _IMP_container.IMP_CORE_HAS_HDF5
305 IMP_CORE_HAS_NUMPY = _IMP_container.IMP_CORE_HAS_NUMPY
307 IMPCORE_SHOW_WARNINGS = _IMP_container.IMPCORE_SHOW_WARNINGS
310 IMP_CONTAINER_HAS_IMP_ALGEBRA = _IMP_container.IMP_CONTAINER_HAS_IMP_ALGEBRA
312 IMP_CONTAINER_HAS_IMP_CGAL = _IMP_container.IMP_CONTAINER_HAS_IMP_CGAL
314 IMP_CONTAINER_HAS_IMP_DISPLAY = _IMP_container.IMP_CONTAINER_HAS_IMP_DISPLAY
316 IMP_CONTAINER_HAS_IMP_KERNEL = _IMP_container.IMP_CONTAINER_HAS_IMP_KERNEL
318 IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR = _IMP_container.IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR
320 IMP_CONTAINER_HAS_BOOST_FILESYSTEM = _IMP_container.IMP_CONTAINER_HAS_BOOST_FILESYSTEM
322 IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS = _IMP_container.IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS
324 IMP_CONTAINER_HAS_BOOST_RANDOM = _IMP_container.IMP_CONTAINER_HAS_BOOST_RANDOM
326 IMP_CONTAINER_HAS_CGAL = _IMP_container.IMP_CONTAINER_HAS_CGAL
328 IMP_CONTAINER_HAS_HDF5 = _IMP_container.IMP_CONTAINER_HAS_HDF5
330 IMP_CONTAINER_HAS_NUMPY = _IMP_container.IMP_CONTAINER_HAS_NUMPY
332 IMP_CONTAINER_HAS_PYTHON_IHM = _IMP_container.IMP_CONTAINER_HAS_PYTHON_IHM
334 IMP_CONTAINER_HAS_GOOGLE_DENSE_HASH_MAP = _IMP_container.IMP_CONTAINER_HAS_GOOGLE_DENSE_HASH_MAP
336 IMP_CONTAINER_HAS_ROBIN_MAP = _IMP_container.IMP_CONTAINER_HAS_ROBIN_MAP
338 IMPCONTAINER_SHOW_WARNINGS = _IMP_container.IMPCONTAINER_SHOW_WARNINGS
341 _object_types.append(
"AllBipartitePairContainer")
344 def _object_cast_to_AllBipartitePairContainer(o):
345 r"""_object_cast_to_AllBipartitePairContainer(Object o) -> AllBipartitePairContainer"""
346 return _IMP_container._object_cast_to_AllBipartitePairContainer(o)
348 _object_types.append(
"AllPairContainer")
351 def _object_cast_to_AllPairContainer(o):
352 r"""_object_cast_to_AllPairContainer(Object o) -> AllPairContainer"""
353 return _IMP_container._object_cast_to_AllPairContainer(o)
355 _object_types.append(
"CloseBipartitePairContainer")
358 def _object_cast_to_CloseBipartitePairContainer(o):
359 r"""_object_cast_to_CloseBipartitePairContainer(Object o) -> CloseBipartitePairContainer"""
360 return _IMP_container._object_cast_to_CloseBipartitePairContainer(o)
362 _object_types.append(
"ClosePairContainer")
365 def _object_cast_to_ClosePairContainer(o):
366 r"""_object_cast_to_ClosePairContainer(Object o) -> ClosePairContainer"""
367 return _IMP_container._object_cast_to_ClosePairContainer(o)
369 _object_types.append(
"ConnectingPairContainer")
372 def _object_cast_to_ConnectingPairContainer(o):
373 r"""_object_cast_to_ConnectingPairContainer(Object o) -> ConnectingPairContainer"""
374 return _IMP_container._object_cast_to_ConnectingPairContainer(o)
376 _object_types.append(
"ConsecutivePairContainer")
379 def _object_cast_to_ConsecutivePairContainer(o):
380 r"""_object_cast_to_ConsecutivePairContainer(Object o) -> ConsecutivePairContainer"""
381 return _IMP_container._object_cast_to_ConsecutivePairContainer(o)
383 _object_types.append(
"ExclusiveConsecutivePairContainer")
386 def _object_cast_to_ExclusiveConsecutivePairContainer(o):
387 r"""_object_cast_to_ExclusiveConsecutivePairContainer(Object o) -> ExclusiveConsecutivePairContainer"""
388 return _IMP_container._object_cast_to_ExclusiveConsecutivePairContainer(o)
390 _object_types.append(
"ExclusiveConsecutivePairFilter")
393 def _object_cast_to_ExclusiveConsecutivePairFilter(o):
394 r"""_object_cast_to_ExclusiveConsecutivePairFilter(Object o) -> ExclusiveConsecutivePairFilter"""
395 return _IMP_container._object_cast_to_ExclusiveConsecutivePairFilter(o)
397 _object_types.append(
"ConsecutivePairFilter")
400 def _object_cast_to_ConsecutivePairFilter(o):
401 r"""_object_cast_to_ConsecutivePairFilter(Object o) -> ConsecutivePairFilter"""
402 return _IMP_container._object_cast_to_ConsecutivePairFilter(o)
404 _object_types.append(
"ListPairContainer")
407 def _object_cast_to_ListPairContainer(o):
408 r"""_object_cast_to_ListPairContainer(Object o) -> ListPairContainer"""
409 return _IMP_container._object_cast_to_ListPairContainer(o)
411 _object_types.append(
"ListQuadContainer")
414 def _object_cast_to_ListQuadContainer(o):
415 r"""_object_cast_to_ListQuadContainer(Object o) -> ListQuadContainer"""
416 return _IMP_container._object_cast_to_ListQuadContainer(o)
418 _object_types.append(
"ListSingletonContainer")
421 def _object_cast_to_ListSingletonContainer(o):
422 r"""_object_cast_to_ListSingletonContainer(Object o) -> ListSingletonContainer"""
423 return _IMP_container._object_cast_to_ListSingletonContainer(o)
425 _object_types.append(
"ListTripletContainer")
428 def _object_cast_to_ListTripletContainer(o):
429 r"""_object_cast_to_ListTripletContainer(Object o) -> ListTripletContainer"""
430 return _IMP_container._object_cast_to_ListTripletContainer(o)
432 _object_types.append(
"DynamicListPairContainer")
435 def _object_cast_to_DynamicListPairContainer(o):
436 r"""_object_cast_to_DynamicListPairContainer(Object o) -> DynamicListPairContainer"""
437 return _IMP_container._object_cast_to_DynamicListPairContainer(o)
439 _object_types.append(
"DynamicListQuadContainer")
442 def _object_cast_to_DynamicListQuadContainer(o):
443 r"""_object_cast_to_DynamicListQuadContainer(Object o) -> DynamicListQuadContainer"""
444 return _IMP_container._object_cast_to_DynamicListQuadContainer(o)
446 _object_types.append(
"DynamicListSingletonContainer")
449 def _object_cast_to_DynamicListSingletonContainer(o):
450 r"""_object_cast_to_DynamicListSingletonContainer(Object o) -> DynamicListSingletonContainer"""
451 return _IMP_container._object_cast_to_DynamicListSingletonContainer(o)
453 _object_types.append(
"DynamicListTripletContainer")
456 def _object_cast_to_DynamicListTripletContainer(o):
457 r"""_object_cast_to_DynamicListTripletContainer(Object o) -> DynamicListTripletContainer"""
458 return _IMP_container._object_cast_to_DynamicListTripletContainer(o)
460 _object_types.append(
"MinimumPairRestraint")
463 def _object_cast_to_MinimumPairRestraint(o):
464 r"""_object_cast_to_MinimumPairRestraint(Object o) -> MinimumPairRestraint"""
465 return _IMP_container._object_cast_to_MinimumPairRestraint(o)
467 _object_types.append(
"MinimumPairScore")
470 def _object_cast_to_MinimumPairScore(o):
471 r"""_object_cast_to_MinimumPairScore(Object o) -> MinimumPairScore"""
472 return _IMP_container._object_cast_to_MinimumPairScore(o)
474 _object_types.append(
"MinimumQuadRestraint")
477 def _object_cast_to_MinimumQuadRestraint(o):
478 r"""_object_cast_to_MinimumQuadRestraint(Object o) -> MinimumQuadRestraint"""
479 return _IMP_container._object_cast_to_MinimumQuadRestraint(o)
481 _object_types.append(
"MinimumQuadScore")
484 def _object_cast_to_MinimumQuadScore(o):
485 r"""_object_cast_to_MinimumQuadScore(Object o) -> MinimumQuadScore"""
486 return _IMP_container._object_cast_to_MinimumQuadScore(o)
488 _object_types.append(
"MinimumSingletonRestraint")
491 def _object_cast_to_MinimumSingletonRestraint(o):
492 r"""_object_cast_to_MinimumSingletonRestraint(Object o) -> MinimumSingletonRestraint"""
493 return _IMP_container._object_cast_to_MinimumSingletonRestraint(o)
495 _object_types.append(
"MinimumSingletonScore")
498 def _object_cast_to_MinimumSingletonScore(o):
499 r"""_object_cast_to_MinimumSingletonScore(Object o) -> MinimumSingletonScore"""
500 return _IMP_container._object_cast_to_MinimumSingletonScore(o)
502 _object_types.append(
"MinimumTripletRestraint")
505 def _object_cast_to_MinimumTripletRestraint(o):
506 r"""_object_cast_to_MinimumTripletRestraint(Object o) -> MinimumTripletRestraint"""
507 return _IMP_container._object_cast_to_MinimumTripletRestraint(o)
509 _object_types.append(
"MinimumTripletScore")
512 def _object_cast_to_MinimumTripletScore(o):
513 r"""_object_cast_to_MinimumTripletScore(Object o) -> MinimumTripletScore"""
514 return _IMP_container._object_cast_to_MinimumTripletScore(o)
516 _object_types.append(
"PairContainerSet")
519 def _object_cast_to_PairContainerSet(o):
520 r"""_object_cast_to_PairContainerSet(Object o) -> PairContainerSet"""
521 return _IMP_container._object_cast_to_PairContainerSet(o)
523 _object_types.append(
"PairsConstraint")
526 def _object_cast_to_PairsConstraint(o):
527 r"""_object_cast_to_PairsConstraint(Object o) -> PairsConstraint"""
528 return _IMP_container._object_cast_to_PairsConstraint(o)
530 _object_types.append(
"PairsOptimizerState")
533 def _object_cast_to_PairsOptimizerState(o):
534 r"""_object_cast_to_PairsOptimizerState(Object o) -> PairsOptimizerState"""
535 return _IMP_container._object_cast_to_PairsOptimizerState(o)
537 _object_types.append(
"PairsRestraint")
540 def _object_cast_to_PairsRestraint(o):
541 r"""_object_cast_to_PairsRestraint(Object o) -> PairsRestraint"""
542 return _IMP_container._object_cast_to_PairsRestraint(o)
544 _object_types.append(
"QuadContainerSet")
547 def _object_cast_to_QuadContainerSet(o):
548 r"""_object_cast_to_QuadContainerSet(Object o) -> QuadContainerSet"""
549 return _IMP_container._object_cast_to_QuadContainerSet(o)
551 _object_types.append(
"QuadsConstraint")
554 def _object_cast_to_QuadsConstraint(o):
555 r"""_object_cast_to_QuadsConstraint(Object o) -> QuadsConstraint"""
556 return _IMP_container._object_cast_to_QuadsConstraint(o)
558 _object_types.append(
"QuadsOptimizerState")
561 def _object_cast_to_QuadsOptimizerState(o):
562 r"""_object_cast_to_QuadsOptimizerState(Object o) -> QuadsOptimizerState"""
563 return _IMP_container._object_cast_to_QuadsOptimizerState(o)
565 _object_types.append(
"QuadsRestraint")
568 def _object_cast_to_QuadsRestraint(o):
569 r"""_object_cast_to_QuadsRestraint(Object o) -> QuadsRestraint"""
570 return _IMP_container._object_cast_to_QuadsRestraint(o)
572 _object_types.append(
"SingletonContainerSet")
575 def _object_cast_to_SingletonContainerSet(o):
576 r"""_object_cast_to_SingletonContainerSet(Object o) -> SingletonContainerSet"""
577 return _IMP_container._object_cast_to_SingletonContainerSet(o)
579 _object_types.append(
"SingletonsConstraint")
582 def _object_cast_to_SingletonsConstraint(o):
583 r"""_object_cast_to_SingletonsConstraint(Object o) -> SingletonsConstraint"""
584 return _IMP_container._object_cast_to_SingletonsConstraint(o)
586 _object_types.append(
"SingletonsOptimizerState")
589 def _object_cast_to_SingletonsOptimizerState(o):
590 r"""_object_cast_to_SingletonsOptimizerState(Object o) -> SingletonsOptimizerState"""
591 return _IMP_container._object_cast_to_SingletonsOptimizerState(o)
593 _object_types.append(
"SingletonsRestraint")
596 def _object_cast_to_SingletonsRestraint(o):
597 r"""_object_cast_to_SingletonsRestraint(Object o) -> SingletonsRestraint"""
598 return _IMP_container._object_cast_to_SingletonsRestraint(o)
600 _object_types.append(
"TripletContainerSet")
603 def _object_cast_to_TripletContainerSet(o):
604 r"""_object_cast_to_TripletContainerSet(Object o) -> TripletContainerSet"""
605 return _IMP_container._object_cast_to_TripletContainerSet(o)
607 _object_types.append(
"TripletsConstraint")
610 def _object_cast_to_TripletsConstraint(o):
611 r"""_object_cast_to_TripletsConstraint(Object o) -> TripletsConstraint"""
612 return _IMP_container._object_cast_to_TripletsConstraint(o)
614 _object_types.append(
"TripletsOptimizerState")
617 def _object_cast_to_TripletsOptimizerState(o):
618 r"""_object_cast_to_TripletsOptimizerState(Object o) -> TripletsOptimizerState"""
619 return _IMP_container._object_cast_to_TripletsOptimizerState(o)
621 _object_types.append(
"TripletsRestraint")
624 def _object_cast_to_TripletsRestraint(o):
625 r"""_object_cast_to_TripletsRestraint(Object o) -> TripletsRestraint"""
626 return _IMP_container._object_cast_to_TripletsRestraint(o)
628 _object_types.append(
"InContainerSingletonFilter")
631 def _object_cast_to_InContainerSingletonFilter(o):
632 r"""_object_cast_to_InContainerSingletonFilter(Object o) -> InContainerSingletonFilter"""
633 return _IMP_container._object_cast_to_InContainerSingletonFilter(o)
635 _object_types.append(
"InContainerPairFilter")
638 def _object_cast_to_InContainerPairFilter(o):
639 r"""_object_cast_to_InContainerPairFilter(Object o) -> InContainerPairFilter"""
640 return _IMP_container._object_cast_to_InContainerPairFilter(o)
642 _object_types.append(
"InContainerTripletFilter")
645 def _object_cast_to_InContainerTripletFilter(o):
646 r"""_object_cast_to_InContainerTripletFilter(Object o) -> InContainerTripletFilter"""
647 return _IMP_container._object_cast_to_InContainerTripletFilter(o)
649 _object_types.append(
"InContainerQuadFilter")
652 def _object_cast_to_InContainerQuadFilter(o):
653 r"""_object_cast_to_InContainerQuadFilter(Object o) -> InContainerQuadFilter"""
654 return _IMP_container._object_cast_to_InContainerQuadFilter(o)
656 _object_types.append(
"SingletonContainerStatistics")
659 def _object_cast_to_SingletonContainerStatistics(o):
660 r"""_object_cast_to_SingletonContainerStatistics(Object o) -> SingletonContainerStatistics"""
661 return _IMP_container._object_cast_to_SingletonContainerStatistics(o)
663 _object_types.append(
"PairContainerStatistics")
666 def _object_cast_to_PairContainerStatistics(o):
667 r"""_object_cast_to_PairContainerStatistics(Object o) -> PairContainerStatistics"""
668 return _IMP_container._object_cast_to_PairContainerStatistics(o)
670 _object_types.append(
"TripletContainerStatistics")
673 def _object_cast_to_TripletContainerStatistics(o):
674 r"""_object_cast_to_TripletContainerStatistics(Object o) -> TripletContainerStatistics"""
675 return _IMP_container._object_cast_to_TripletContainerStatistics(o)
677 _object_types.append(
"QuadContainerStatistics")
680 def _object_cast_to_QuadContainerStatistics(o):
681 r"""_object_cast_to_QuadContainerStatistics(Object o) -> QuadContainerStatistics"""
682 return _IMP_container._object_cast_to_QuadContainerStatistics(o)
684 _object_types.append(
"EventSingletonsOptimizerState")
687 def _object_cast_to_EventSingletonsOptimizerState(o):
688 r"""_object_cast_to_EventSingletonsOptimizerState(Object o) -> EventSingletonsOptimizerState"""
689 return _IMP_container._object_cast_to_EventSingletonsOptimizerState(o)
691 _object_types.append(
"EventPairsOptimizerState")
694 def _object_cast_to_EventPairsOptimizerState(o):
695 r"""_object_cast_to_EventPairsOptimizerState(Object o) -> EventPairsOptimizerState"""
696 return _IMP_container._object_cast_to_EventPairsOptimizerState(o)
698 _object_types.append(
"EventTripletsOptimizerState")
701 def _object_cast_to_EventTripletsOptimizerState(o):
702 r"""_object_cast_to_EventTripletsOptimizerState(Object o) -> EventTripletsOptimizerState"""
703 return _IMP_container._object_cast_to_EventTripletsOptimizerState(o)
705 _object_types.append(
"EventQuadsOptimizerState")
708 def _object_cast_to_EventQuadsOptimizerState(o):
709 r"""_object_cast_to_EventQuadsOptimizerState(Object o) -> EventQuadsOptimizerState"""
710 return _IMP_container._object_cast_to_EventQuadsOptimizerState(o)
712 _object_types.append(
"PredicateSingletonsRestraint")
715 def _object_cast_to_PredicateSingletonsRestraint(o):
716 r"""_object_cast_to_PredicateSingletonsRestraint(Object o) -> PredicateSingletonsRestraint"""
717 return _IMP_container._object_cast_to_PredicateSingletonsRestraint(o)
719 _object_types.append(
"PredicatePairsRestraint")
722 def _object_cast_to_PredicatePairsRestraint(o):
723 r"""_object_cast_to_PredicatePairsRestraint(Object o) -> PredicatePairsRestraint"""
724 return _IMP_container._object_cast_to_PredicatePairsRestraint(o)
726 _object_types.append(
"PredicateTripletsRestraint")
729 def _object_cast_to_PredicateTripletsRestraint(o):
730 r"""_object_cast_to_PredicateTripletsRestraint(Object o) -> PredicateTripletsRestraint"""
731 return _IMP_container._object_cast_to_PredicateTripletsRestraint(o)
733 _object_types.append(
"PredicateQuadsRestraint")
736 def _object_cast_to_PredicateQuadsRestraint(o):
737 r"""_object_cast_to_PredicateQuadsRestraint(Object o) -> PredicateQuadsRestraint"""
738 return _IMP_container._object_cast_to_PredicateQuadsRestraint(o)
740 _object_types.append(
"DistributeSingletonsScoreState")
743 def _object_cast_to_DistributeSingletonsScoreState(o):
744 r"""_object_cast_to_DistributeSingletonsScoreState(Object o) -> DistributeSingletonsScoreState"""
745 return _IMP_container._object_cast_to_DistributeSingletonsScoreState(o)
747 _object_types.append(
"DistributePairsScoreState")
750 def _object_cast_to_DistributePairsScoreState(o):
751 r"""_object_cast_to_DistributePairsScoreState(Object o) -> DistributePairsScoreState"""
752 return _IMP_container._object_cast_to_DistributePairsScoreState(o)
754 _object_types.append(
"DistributeTripletsScoreState")
757 def _object_cast_to_DistributeTripletsScoreState(o):
758 r"""_object_cast_to_DistributeTripletsScoreState(Object o) -> DistributeTripletsScoreState"""
759 return _IMP_container._object_cast_to_DistributeTripletsScoreState(o)
761 _object_types.append(
"DistributeQuadsScoreState")
764 def _object_cast_to_DistributeQuadsScoreState(o):
765 r"""_object_cast_to_DistributeQuadsScoreState(Object o) -> DistributeQuadsScoreState"""
766 return _IMP_container._object_cast_to_DistributeQuadsScoreState(o)
768 r"""Proxy of C++ IMP::container::AllBipartitePairContainer class."""
770 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
772 def __init__(self, *args):
773 r"""__init__(AllBipartitePairContainer self, _SingletonContainerAdaptor a, _SingletonContainerAdaptor b, std::string name="AllBipartitePairContainer%1%") -> AllBipartitePairContainer"""
774 _IMP_container.AllBipartitePairContainer_swiginit(self, _IMP_container.new_AllBipartitePairContainer(*args))
776 def do_get_inputs(self):
777 r"""do_get_inputs(AllBipartitePairContainer self) -> IMP::ModelObjectsTemp"""
778 return _IMP_container.AllBipartitePairContainer_do_get_inputs(self)
780 def do_apply(self, sm):
781 r"""do_apply(AllBipartitePairContainer self, PairModifier sm)"""
782 return _IMP_container.AllBipartitePairContainer_do_apply(self, sm)
784 def do_apply_moved(self, sm, moved_pis, reset_pis):
785 r"""do_apply_moved(AllBipartitePairContainer self, PairModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
786 return _IMP_container.AllBipartitePairContainer_do_apply_moved(self, sm, moved_pis, reset_pis)
788 def get_version_info(self):
789 r"""get_version_info(AllBipartitePairContainer self) -> VersionInfo"""
790 return _IMP_container.AllBipartitePairContainer_get_version_info(self)
791 __swig_destroy__ = _IMP_container.delete_AllBipartitePairContainer
794 r"""__str__(AllBipartitePairContainer self) -> std::string"""
795 return _IMP_container.AllBipartitePairContainer___str__(self)
798 r"""__repr__(AllBipartitePairContainer self) -> std::string"""
799 return _IMP_container.AllBipartitePairContainer___repr__(self)
803 return _object_cast_to_AllBipartitePairContainer(o)
806 def _get_static_contents(self):
807 return self.get_contents()
811 _IMP_container.AllBipartitePairContainer_swigregister(AllBipartitePairContainer)
813 r"""Proxy of C++ IMP::container::AllPairContainer class."""
815 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
817 def __init__(self, *args):
818 r"""__init__(AllPairContainer self, _SingletonContainerAdaptor c, std::string name="AllPairContainer%1%") -> AllPairContainer"""
819 _IMP_container.AllPairContainer_swiginit(self, _IMP_container.new_AllPairContainer(*args))
821 def do_get_inputs(self):
822 r"""do_get_inputs(AllPairContainer self) -> IMP::ModelObjectsTemp"""
823 return _IMP_container.AllPairContainer_do_get_inputs(self)
825 def do_apply(self, sm):
826 r"""do_apply(AllPairContainer self, PairModifier sm)"""
827 return _IMP_container.AllPairContainer_do_apply(self, sm)
829 def do_apply_moved(self, sm, moved_pis, reset_pis):
830 r"""do_apply_moved(AllPairContainer self, PairModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
831 return _IMP_container.AllPairContainer_do_apply_moved(self, sm, moved_pis, reset_pis)
833 def get_version_info(self):
834 r"""get_version_info(AllPairContainer self) -> VersionInfo"""
835 return _IMP_container.AllPairContainer_get_version_info(self)
836 __swig_destroy__ = _IMP_container.delete_AllPairContainer
839 r"""__str__(AllPairContainer self) -> std::string"""
840 return _IMP_container.AllPairContainer___str__(self)
843 r"""__repr__(AllPairContainer self) -> std::string"""
844 return _IMP_container.AllPairContainer___repr__(self)
848 return _object_cast_to_AllPairContainer(o)
851 def _get_static_contents(self):
852 return self.get_contents()
856 _IMP_container.AllPairContainer_swigregister(AllPairContainer)
858 r"""Proxy of C++ IMP::container::CloseBipartitePairContainer class."""
860 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
862 def __init__(self, *args):
864 __init__(CloseBipartitePairContainer self, _SingletonContainerAdaptor a, _SingletonContainerAdaptor b, double distance, double slack=1, std::string name="CloseBipartitePairContainer%1%") -> CloseBipartitePairContainer
865 __init__(CloseBipartitePairContainer self, _SingletonContainerAdaptor a, _SingletonContainerAdaptor b, double distance, ClosePairsFinder cpf, double slack=1, std::string name="CloseBipartitePairContainer%1%") -> CloseBipartitePairContainer
866 __init__(CloseBipartitePairContainer self) -> CloseBipartitePairContainer
868 _IMP_container.CloseBipartitePairContainer_swiginit(self, _IMP_container.new_CloseBipartitePairContainer(*args))
869 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)
870 def __set_pair_filters(self, obj): IMP._list_util.set_varlist(self.pair_filters, obj)
871 def __del_pair_filters(self): IMP._list_util.del_varlist(self.pair_filters)
872 pair_filters = property(__get_pair_filters, __set_pair_filters, __del_pair_filters, doc=
"List of ##ucnames")
874 def remove_pair_filter(self, d):
875 r"""remove_pair_filter(CloseBipartitePairContainer self, PairPredicate d)"""
876 return _IMP_container.CloseBipartitePairContainer_remove_pair_filter(self, d)
878 def _python_index_pair_filter(self, d, start, stop):
879 r"""_python_index_pair_filter(CloseBipartitePairContainer self, PairPredicate d, unsigned int start, unsigned int stop) -> unsigned int"""
880 return _IMP_container.CloseBipartitePairContainer__python_index_pair_filter(self, d, start, stop)
882 def remove_pair_filters(self, d):
883 r"""remove_pair_filters(CloseBipartitePairContainer self, IMP::PairPredicates const & d)"""
884 return _IMP_container.CloseBipartitePairContainer_remove_pair_filters(self, d)
886 def set_pair_filters(self, ps):
887 r"""set_pair_filters(CloseBipartitePairContainer self, IMP::PairPredicates const & ps)"""
888 return _IMP_container.CloseBipartitePairContainer_set_pair_filters(self, ps)
890 def set_pair_filters_order(self, objs):
891 r"""set_pair_filters_order(CloseBipartitePairContainer self, IMP::PairPredicates const & objs)"""
892 return _IMP_container.CloseBipartitePairContainer_set_pair_filters_order(self, objs)
894 def add_pair_filter(self, obj):
895 r"""add_pair_filter(CloseBipartitePairContainer self, PairPredicate obj) -> unsigned int"""
896 return _IMP_container.CloseBipartitePairContainer_add_pair_filter(self, obj)
898 def add_pair_filters(self, objs):
899 r"""add_pair_filters(CloseBipartitePairContainer self, IMP::PairPredicates const & objs)"""
900 return _IMP_container.CloseBipartitePairContainer_add_pair_filters(self, objs)
902 def clear_pair_filters(self):
903 r"""clear_pair_filters(CloseBipartitePairContainer self)"""
904 return _IMP_container.CloseBipartitePairContainer_clear_pair_filters(self)
906 def get_number_of_pair_filters(self):
907 r"""get_number_of_pair_filters(CloseBipartitePairContainer self) -> unsigned int"""
908 return _IMP_container.CloseBipartitePairContainer_get_number_of_pair_filters(self)
910 def get_has_pair_filters(self):
911 r"""get_has_pair_filters(CloseBipartitePairContainer self) -> bool"""
912 return _IMP_container.CloseBipartitePairContainer_get_has_pair_filters(self)
914 def get_pair_filter(self, i):
915 r"""get_pair_filter(CloseBipartitePairContainer self, unsigned int i) -> PairPredicate"""
916 return _IMP_container.CloseBipartitePairContainer_get_pair_filter(self, i)
918 def get_pair_filters(self):
919 r"""get_pair_filters(CloseBipartitePairContainer self) -> IMP::PairPredicates"""
920 return _IMP_container.CloseBipartitePairContainer_get_pair_filters(self)
922 def erase_pair_filter(self, i):
923 r"""erase_pair_filter(CloseBipartitePairContainer self, unsigned int i)"""
924 return _IMP_container.CloseBipartitePairContainer_erase_pair_filter(self, i)
926 def reserve_pair_filters(self, sz):
927 r"""reserve_pair_filters(CloseBipartitePairContainer self, unsigned int sz)"""
928 return _IMP_container.CloseBipartitePairContainer_reserve_pair_filters(self, sz)
930 def do_get_inputs(self):
931 r"""do_get_inputs(CloseBipartitePairContainer self) -> IMP::ModelObjectsTemp"""
932 return _IMP_container.CloseBipartitePairContainer_do_get_inputs(self)
934 def do_apply(self, sm):
935 r"""do_apply(CloseBipartitePairContainer self, PairModifier sm)"""
936 return _IMP_container.CloseBipartitePairContainer_do_apply(self, sm)
938 def get_version_info(self):
939 r"""get_version_info(CloseBipartitePairContainer self) -> VersionInfo"""
940 return _IMP_container.CloseBipartitePairContainer_get_version_info(self)
941 __swig_destroy__ = _IMP_container.delete_CloseBipartitePairContainer
944 r"""__str__(CloseBipartitePairContainer self) -> std::string"""
945 return _IMP_container.CloseBipartitePairContainer___str__(self)
948 r"""__repr__(CloseBipartitePairContainer self) -> std::string"""
949 return _IMP_container.CloseBipartitePairContainer___repr__(self)
953 return _object_cast_to_CloseBipartitePairContainer(o)
956 def _get_as_binary(self):
957 r"""_get_as_binary(CloseBipartitePairContainer self) -> PyObject *"""
958 return _IMP_container.CloseBipartitePairContainer__get_as_binary(self)
960 def _set_from_binary(self, p):
961 r"""_set_from_binary(CloseBipartitePairContainer self, PyObject * p)"""
962 return _IMP_container.CloseBipartitePairContainer__set_from_binary(self, p)
964 def __getstate__(self):
965 p = self._get_as_binary()
966 if len(self.__dict__) > 1:
967 d = self.__dict__.copy()
972 def __setstate__(self, p):
973 if not hasattr(self,
'this'):
975 if isinstance(p, tuple):
977 self.__dict__.update(d)
978 return self._set_from_binary(p)
981 def _get_static_contents(self):
982 warnings.warn(
"No JAX support for close pairs, so using all "
984 return self.get_range_indexes()
988 _IMP_container.CloseBipartitePairContainer_swigregister(CloseBipartitePairContainer)
990 r"""Proxy of C++ IMP::container::ClosePairContainer class."""
992 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
994 def __init__(self, *args):
996 __init__(ClosePairContainer self, _SingletonContainerAdaptor c, double distance_cutoff, double slack=1, std::string name="ClosePairContainer%1%") -> ClosePairContainer
997 __init__(ClosePairContainer self, _SingletonContainerAdaptor c, double distance_cutoff, ClosePairsFinder cpf, double slack=1, std::string name="ClosePairContainer%1%") -> ClosePairContainer
998 __init__(ClosePairContainer self) -> ClosePairContainer
1000 _IMP_container.ClosePairContainer_swiginit(self, _IMP_container.new_ClosePairContainer(*args))
1001 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)
1002 def __set_pair_filters(self, obj): IMP._list_util.set_varlist(self.pair_filters, obj)
1003 def __del_pair_filters(self): IMP._list_util.del_varlist(self.pair_filters)
1004 pair_filters = property(__get_pair_filters, __set_pair_filters, __del_pair_filters, doc=
"List of ##ucnames")
1006 def remove_pair_filter(self, d):
1007 r"""remove_pair_filter(ClosePairContainer self, PairPredicate d)"""
1008 return _IMP_container.ClosePairContainer_remove_pair_filter(self, d)
1010 def _python_index_pair_filter(self, d, start, stop):
1011 r"""_python_index_pair_filter(ClosePairContainer self, PairPredicate d, unsigned int start, unsigned int stop) -> unsigned int"""
1012 return _IMP_container.ClosePairContainer__python_index_pair_filter(self, d, start, stop)
1014 def remove_pair_filters(self, d):
1015 r"""remove_pair_filters(ClosePairContainer self, IMP::PairPredicates const & d)"""
1016 return _IMP_container.ClosePairContainer_remove_pair_filters(self, d)
1018 def set_pair_filters(self, ps):
1019 r"""set_pair_filters(ClosePairContainer self, IMP::PairPredicates const & ps)"""
1020 return _IMP_container.ClosePairContainer_set_pair_filters(self, ps)
1022 def set_pair_filters_order(self, objs):
1023 r"""set_pair_filters_order(ClosePairContainer self, IMP::PairPredicates const & objs)"""
1024 return _IMP_container.ClosePairContainer_set_pair_filters_order(self, objs)
1026 def add_pair_filter(self, obj):
1027 r"""add_pair_filter(ClosePairContainer self, PairPredicate obj) -> unsigned int"""
1028 return _IMP_container.ClosePairContainer_add_pair_filter(self, obj)
1030 def add_pair_filters(self, objs):
1031 r"""add_pair_filters(ClosePairContainer self, IMP::PairPredicates const & objs)"""
1032 return _IMP_container.ClosePairContainer_add_pair_filters(self, objs)
1034 def clear_pair_filters(self):
1035 r"""clear_pair_filters(ClosePairContainer self)"""
1036 return _IMP_container.ClosePairContainer_clear_pair_filters(self)
1038 def get_number_of_pair_filters(self):
1039 r"""get_number_of_pair_filters(ClosePairContainer self) -> unsigned int"""
1040 return _IMP_container.ClosePairContainer_get_number_of_pair_filters(self)
1042 def get_has_pair_filters(self):
1043 r"""get_has_pair_filters(ClosePairContainer self) -> bool"""
1044 return _IMP_container.ClosePairContainer_get_has_pair_filters(self)
1046 def get_pair_filter(self, i):
1047 r"""get_pair_filter(ClosePairContainer self, unsigned int i) -> PairPredicate"""
1048 return _IMP_container.ClosePairContainer_get_pair_filter(self, i)
1050 def get_pair_filters(self):
1051 r"""get_pair_filters(ClosePairContainer self) -> IMP::PairPredicates"""
1052 return _IMP_container.ClosePairContainer_get_pair_filters(self)
1054 def erase_pair_filter(self, i):
1055 r"""erase_pair_filter(ClosePairContainer self, unsigned int i)"""
1056 return _IMP_container.ClosePairContainer_erase_pair_filter(self, i)
1058 def reserve_pair_filters(self, sz):
1059 r"""reserve_pair_filters(ClosePairContainer self, unsigned int sz)"""
1060 return _IMP_container.ClosePairContainer_reserve_pair_filters(self, sz)
1062 def set_slack(self, s):
1063 r"""set_slack(ClosePairContainer self, double s)"""
1064 return _IMP_container.ClosePairContainer_set_slack(self, s)
1066 def get_slack(self):
1067 r"""get_slack(ClosePairContainer self) -> double"""
1068 return _IMP_container.ClosePairContainer_get_slack(self)
1070 def do_get_inputs(self):
1071 r"""do_get_inputs(ClosePairContainer self) -> IMP::ModelObjectsTemp"""
1072 return _IMP_container.ClosePairContainer_do_get_inputs(self)
1074 def do_apply(self, sm):
1075 r"""do_apply(ClosePairContainer self, PairModifier sm)"""
1076 return _IMP_container.ClosePairContainer_do_apply(self, sm)
1078 def get_number_of_update_calls(self):
1079 r"""get_number_of_update_calls(ClosePairContainer self) -> unsigned int"""
1080 return _IMP_container.ClosePairContainer_get_number_of_update_calls(self)
1082 def get_number_of_full_rebuilds(self):
1083 r"""get_number_of_full_rebuilds(ClosePairContainer self) -> unsigned int"""
1084 return _IMP_container.ClosePairContainer_get_number_of_full_rebuilds(self)
1086 def get_number_of_partial_rebuilds(self):
1087 r"""get_number_of_partial_rebuilds(ClosePairContainer self) -> unsigned int"""
1088 return _IMP_container.ClosePairContainer_get_number_of_partial_rebuilds(self)
1090 def get_version_info(self):
1091 r"""get_version_info(ClosePairContainer self) -> VersionInfo"""
1092 return _IMP_container.ClosePairContainer_get_version_info(self)
1093 __swig_destroy__ = _IMP_container.delete_ClosePairContainer
1096 r"""__str__(ClosePairContainer self) -> std::string"""
1097 return _IMP_container.ClosePairContainer___str__(self)
1100 r"""__repr__(ClosePairContainer self) -> std::string"""
1101 return _IMP_container.ClosePairContainer___repr__(self)
1105 return _object_cast_to_ClosePairContainer(o)
1108 def _get_as_binary(self):
1109 r"""_get_as_binary(ClosePairContainer self) -> PyObject *"""
1110 return _IMP_container.ClosePairContainer__get_as_binary(self)
1112 def _set_from_binary(self, p):
1113 r"""_set_from_binary(ClosePairContainer self, PyObject * p)"""
1114 return _IMP_container.ClosePairContainer__set_from_binary(self, p)
1116 def __getstate__(self):
1117 p = self._get_as_binary()
1118 if len(self.__dict__) > 1:
1119 d = self.__dict__.copy()
1124 def __setstate__(self, p):
1125 if not hasattr(self,
'this'):
1127 if isinstance(p, tuple):
1129 self.__dict__.update(d)
1130 return self._set_from_binary(p)
1133 def _get_static_contents(self):
1134 warnings.warn(
"No JAX support for close pairs, so using all "
1136 return self.get_range_indexes()
1140 _IMP_container.ClosePairContainer_swigregister(ClosePairContainer)
1143 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"""
1144 return _IMP_container.get_slack_estimate(m, ps, upper_bound, step, restraints, derivatives, opt, cpc)
1146 r"""Proxy of C++ IMP::container::ConnectingPairContainer class."""
1148 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1150 def __init__(self, sc, error):
1151 r"""__init__(ConnectingPairContainer self, SingletonContainer sc, double error) -> ConnectingPairContainer"""
1152 _IMP_container.ConnectingPairContainer_swiginit(self, _IMP_container.new_ConnectingPairContainer(sc, error))
1154 def do_get_inputs(self):
1155 r"""do_get_inputs(ConnectingPairContainer self) -> IMP::ModelObjectsTemp"""
1156 return _IMP_container.ConnectingPairContainer_do_get_inputs(self)
1158 def do_apply(self, sm):
1159 r"""do_apply(ConnectingPairContainer self, PairModifier sm)"""
1160 return _IMP_container.ConnectingPairContainer_do_apply(self, sm)
1162 def get_version_info(self):
1163 r"""get_version_info(ConnectingPairContainer self) -> VersionInfo"""
1164 return _IMP_container.ConnectingPairContainer_get_version_info(self)
1165 __swig_destroy__ = _IMP_container.delete_ConnectingPairContainer
1168 r"""__str__(ConnectingPairContainer self) -> std::string"""
1169 return _IMP_container.ConnectingPairContainer___str__(self)
1172 r"""__repr__(ConnectingPairContainer self) -> std::string"""
1173 return _IMP_container.ConnectingPairContainer___repr__(self)
1177 return _object_cast_to_ConnectingPairContainer(o)
1181 _IMP_container.ConnectingPairContainer_swigregister(ConnectingPairContainer)
1183 r"""Proxy of C++ IMP::container::ConsecutivePairContainer class."""
1185 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1187 def __init__(self, *args):
1188 r"""__init__(ConsecutivePairContainer self, Model m, IMP::ParticleIndexes const & ps, std::string name="ConsecutivePairContainer%1%") -> ConsecutivePairContainer"""
1189 _IMP_container.ConsecutivePairContainer_swiginit(self, _IMP_container.new_ConsecutivePairContainer(*args))
1191 def do_get_inputs(self):
1192 r"""do_get_inputs(ConsecutivePairContainer self) -> IMP::ModelObjectsTemp"""
1193 return _IMP_container.ConsecutivePairContainer_do_get_inputs(self)
1195 def do_apply(self, sm):
1196 r"""do_apply(ConsecutivePairContainer self, PairModifier sm)"""
1197 return _IMP_container.ConsecutivePairContainer_do_apply(self, sm)
1199 def do_apply_moved(self, sm, moved_pis, reset_pis):
1200 r"""do_apply_moved(ConsecutivePairContainer self, PairModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
1201 return _IMP_container.ConsecutivePairContainer_do_apply_moved(self, sm, moved_pis, reset_pis)
1203 def get_version_info(self):
1204 r"""get_version_info(ConsecutivePairContainer self) -> VersionInfo"""
1205 return _IMP_container.ConsecutivePairContainer_get_version_info(self)
1206 __swig_destroy__ = _IMP_container.delete_ConsecutivePairContainer
1209 r"""__str__(ConsecutivePairContainer self) -> std::string"""
1210 return _IMP_container.ConsecutivePairContainer___str__(self)
1213 r"""__repr__(ConsecutivePairContainer self) -> std::string"""
1214 return _IMP_container.ConsecutivePairContainer___repr__(self)
1218 return _object_cast_to_ConsecutivePairContainer(o)
1222 _IMP_container.ConsecutivePairContainer_swigregister(ConsecutivePairContainer)
1224 r"""Proxy of C++ IMP::container::ConsecutivePairFilter class."""
1226 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1228 def __init__(self, cpc):
1229 r"""__init__(ConsecutivePairFilter self, ConsecutivePairContainer cpc) -> ConsecutivePairFilter"""
1230 _IMP_container.ConsecutivePairFilter_swiginit(self, _IMP_container.new_ConsecutivePairFilter(cpc))
1232 def do_get_inputs(self, m, pi):
1233 r"""do_get_inputs(ConsecutivePairFilter self, Model m, IMP::ParticleIndexes const & pi) -> IMP::ModelObjectsTemp"""
1234 return _IMP_container.ConsecutivePairFilter_do_get_inputs(self, m, pi)
1236 def get_value(self, *args):
1238 get_value(ConsecutivePairFilter self, IMP::ParticlePair const & a) -> int
1239 get_value(ConsecutivePairFilter self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
1241 return _IMP_container.ConsecutivePairFilter_get_value(self, *args)
1243 def get_value_index(self, *args):
1245 get_value_index(ConsecutivePairFilter self, Model arg2, IMP::ParticleIndexPair const & pip) -> int
1246 get_value_index(ConsecutivePairFilter self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
1248 return _IMP_container.ConsecutivePairFilter_get_value_index(self, *args)
1250 def get_version_info(self):
1251 r"""get_version_info(ConsecutivePairFilter self) -> VersionInfo"""
1252 return _IMP_container.ConsecutivePairFilter_get_version_info(self)
1253 __swig_destroy__ = _IMP_container.delete_ConsecutivePairFilter
1256 r"""__str__(ConsecutivePairFilter self) -> std::string"""
1257 return _IMP_container.ConsecutivePairFilter___str__(self)
1260 r"""__repr__(ConsecutivePairFilter self) -> std::string"""
1261 return _IMP_container.ConsecutivePairFilter___repr__(self)
1265 return _object_cast_to_ConsecutivePairFilter(o)
1269 _IMP_container.ConsecutivePairFilter_swigregister(ConsecutivePairFilter)
1271 r"""Proxy of C++ IMP::container::ExclusiveConsecutivePairContainer class."""
1273 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1275 def __init__(self, *args):
1276 r"""__init__(ExclusiveConsecutivePairContainer self, Model m, IMP::ParticleIndexes const & ps, std::string name="ExclusiveConsecutivePairContainer%1%") -> ExclusiveConsecutivePairContainer"""
1277 _IMP_container.ExclusiveConsecutivePairContainer_swiginit(self, _IMP_container.new_ExclusiveConsecutivePairContainer(*args))
1279 def do_get_inputs(self):
1280 r"""do_get_inputs(ExclusiveConsecutivePairContainer self) -> IMP::ModelObjectsTemp"""
1281 return _IMP_container.ExclusiveConsecutivePairContainer_do_get_inputs(self)
1283 def do_apply(self, sm):
1284 r"""do_apply(ExclusiveConsecutivePairContainer self, PairModifier sm)"""
1285 return _IMP_container.ExclusiveConsecutivePairContainer_do_apply(self, sm)
1287 def do_apply_moved(self, sm, moved_pis, reset_pis):
1288 r"""do_apply_moved(ExclusiveConsecutivePairContainer self, PairModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
1289 return _IMP_container.ExclusiveConsecutivePairContainer_do_apply_moved(self, sm, moved_pis, reset_pis)
1291 def get_version_info(self):
1292 r"""get_version_info(ExclusiveConsecutivePairContainer self) -> VersionInfo"""
1293 return _IMP_container.ExclusiveConsecutivePairContainer_get_version_info(self)
1294 __swig_destroy__ = _IMP_container.delete_ExclusiveConsecutivePairContainer
1297 r"""__str__(ExclusiveConsecutivePairContainer self) -> std::string"""
1298 return _IMP_container.ExclusiveConsecutivePairContainer___str__(self)
1301 r"""__repr__(ExclusiveConsecutivePairContainer self) -> std::string"""
1302 return _IMP_container.ExclusiveConsecutivePairContainer___repr__(self)
1306 return _object_cast_to_ExclusiveConsecutivePairContainer(o)
1310 _IMP_container.ExclusiveConsecutivePairContainer_swigregister(ExclusiveConsecutivePairContainer)
1312 r"""Proxy of C++ IMP::container::ExclusiveConsecutivePairFilter class."""
1314 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1317 r"""__init__(ExclusiveConsecutivePairFilter self) -> ExclusiveConsecutivePairFilter"""
1318 _IMP_container.ExclusiveConsecutivePairFilter_swiginit(self, _IMP_container.new_ExclusiveConsecutivePairFilter())
1320 def do_get_inputs(self, m, pi):
1321 r"""do_get_inputs(ExclusiveConsecutivePairFilter self, Model m, IMP::ParticleIndexes const & pi) -> IMP::ModelObjectsTemp"""
1322 return _IMP_container.ExclusiveConsecutivePairFilter_do_get_inputs(self, m, pi)
1324 def get_value(self, *args):
1326 get_value(ExclusiveConsecutivePairFilter self, IMP::ParticlePair const & a) -> int
1327 get_value(ExclusiveConsecutivePairFilter self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
1329 return _IMP_container.ExclusiveConsecutivePairFilter_get_value(self, *args)
1331 def get_value_index(self, *args):
1333 get_value_index(ExclusiveConsecutivePairFilter self, Model m, IMP::ParticleIndexPair const & pip) -> int
1334 get_value_index(ExclusiveConsecutivePairFilter self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
1336 return _IMP_container.ExclusiveConsecutivePairFilter_get_value_index(self, *args)
1338 def get_version_info(self):
1339 r"""get_version_info(ExclusiveConsecutivePairFilter self) -> VersionInfo"""
1340 return _IMP_container.ExclusiveConsecutivePairFilter_get_version_info(self)
1341 __swig_destroy__ = _IMP_container.delete_ExclusiveConsecutivePairFilter
1344 r"""__str__(ExclusiveConsecutivePairFilter self) -> std::string"""
1345 return _IMP_container.ExclusiveConsecutivePairFilter___str__(self)
1348 r"""__repr__(ExclusiveConsecutivePairFilter self) -> std::string"""
1349 return _IMP_container.ExclusiveConsecutivePairFilter___repr__(self)
1353 return _object_cast_to_ExclusiveConsecutivePairFilter(o)
1357 _IMP_container.ExclusiveConsecutivePairFilter_swigregister(ExclusiveConsecutivePairFilter)
1359 r"""Proxy of C++ IMP::container::ListPairContainer class."""
1361 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1363 def __init__(self, *args):
1365 __init__(ListPairContainer self, Model m, IMP::ParticleIndexPairs const & contents, std::string name="ListPairContainer%1%") -> ListPairContainer
1366 __init__(ListPairContainer self, Model m, std::string name="ListPairContainer %1%") -> ListPairContainer
1367 __init__(ListPairContainer self, Model m, char const * name) -> ListPairContainer
1368 __init__(ListPairContainer self) -> ListPairContainer
1370 _IMP_container.ListPairContainer_swiginit(self, _IMP_container.new_ListPairContainer(*args))
1372 def add(self, *args):
1374 add(ListPairContainer self, IMP::ParticleIndexPair const & vt)
1375 add(ListPairContainer self, IMP::ParticleIndexPairs const & c)
1377 return _IMP_container.ListPairContainer_add(self, *args)
1380 r"""set(ListPairContainer self, IMP::ParticleIndexPairs cp)"""
1381 return _IMP_container.ListPairContainer_set(self, cp)
1384 r"""clear(ListPairContainer self)"""
1385 return _IMP_container.ListPairContainer_clear(self)
1387 def do_get_inputs(self):
1388 r"""do_get_inputs(ListPairContainer self) -> IMP::ModelObjectsTemp"""
1389 return _IMP_container.ListPairContainer_do_get_inputs(self)
1391 def do_apply(self, sm):
1392 r"""do_apply(ListPairContainer self, PairModifier sm)"""
1393 return _IMP_container.ListPairContainer_do_apply(self, sm)
1395 def do_apply_moved(self, sm, moved_pis, reset_pis):
1396 r"""do_apply_moved(ListPairContainer self, PairModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
1397 return _IMP_container.ListPairContainer_do_apply_moved(self, sm, moved_pis, reset_pis)
1399 def get_version_info(self):
1400 r"""get_version_info(ListPairContainer self) -> VersionInfo"""
1401 return _IMP_container.ListPairContainer_get_version_info(self)
1402 __swig_destroy__ = _IMP_container.delete_ListPairContainer
1405 r"""__str__(ListPairContainer self) -> std::string"""
1406 return _IMP_container.ListPairContainer___str__(self)
1409 r"""__repr__(ListPairContainer self) -> std::string"""
1410 return _IMP_container.ListPairContainer___repr__(self)
1414 return _object_cast_to_ListPairContainer(o)
1417 def _get_as_binary(self):
1418 r"""_get_as_binary(ListPairContainer self) -> PyObject *"""
1419 return _IMP_container.ListPairContainer__get_as_binary(self)
1421 def _set_from_binary(self, p):
1422 r"""_set_from_binary(ListPairContainer self, PyObject * p)"""
1423 return _IMP_container.ListPairContainer__set_from_binary(self, p)
1425 def __getstate__(self):
1426 p = self._get_as_binary()
1427 if len(self.__dict__) > 1:
1428 d = self.__dict__.copy()
1433 def __setstate__(self, p):
1434 if not hasattr(self,
'this'):
1436 if isinstance(p, tuple):
1438 self.__dict__.update(d)
1439 return self._set_from_binary(p)
1442 def _get_static_contents(self):
1443 return self.get_contents()
1447 _IMP_container.ListPairContainer_swigregister(ListPairContainer)
1449 r"""Proxy of C++ IMP::container::ListQuadContainer class."""
1451 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1453 def __init__(self, *args):
1455 __init__(ListQuadContainer self, Model m, IMP::ParticleIndexQuads const & contents, std::string name="ListQuadContainer%1%") -> ListQuadContainer
1456 __init__(ListQuadContainer self, Model m, std::string name="ListQuadContainer %1%") -> ListQuadContainer
1457 __init__(ListQuadContainer self, Model m, char const * name) -> ListQuadContainer
1458 __init__(ListQuadContainer self) -> ListQuadContainer
1460 _IMP_container.ListQuadContainer_swiginit(self, _IMP_container.new_ListQuadContainer(*args))
1462 def add(self, *args):
1464 add(ListQuadContainer self, IMP::ParticleIndexQuad const & vt)
1465 add(ListQuadContainer self, IMP::ParticleIndexQuads const & c)
1467 return _IMP_container.ListQuadContainer_add(self, *args)
1470 r"""set(ListQuadContainer self, IMP::ParticleIndexQuads cp)"""
1471 return _IMP_container.ListQuadContainer_set(self, cp)
1474 r"""clear(ListQuadContainer self)"""
1475 return _IMP_container.ListQuadContainer_clear(self)
1477 def do_get_inputs(self):
1478 r"""do_get_inputs(ListQuadContainer self) -> IMP::ModelObjectsTemp"""
1479 return _IMP_container.ListQuadContainer_do_get_inputs(self)
1481 def do_apply(self, sm):
1482 r"""do_apply(ListQuadContainer self, QuadModifier sm)"""
1483 return _IMP_container.ListQuadContainer_do_apply(self, sm)
1485 def do_apply_moved(self, sm, moved_pis, reset_pis):
1486 r"""do_apply_moved(ListQuadContainer self, QuadModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
1487 return _IMP_container.ListQuadContainer_do_apply_moved(self, sm, moved_pis, reset_pis)
1489 def get_version_info(self):
1490 r"""get_version_info(ListQuadContainer self) -> VersionInfo"""
1491 return _IMP_container.ListQuadContainer_get_version_info(self)
1492 __swig_destroy__ = _IMP_container.delete_ListQuadContainer
1495 r"""__str__(ListQuadContainer self) -> std::string"""
1496 return _IMP_container.ListQuadContainer___str__(self)
1499 r"""__repr__(ListQuadContainer self) -> std::string"""
1500 return _IMP_container.ListQuadContainer___repr__(self)
1504 return _object_cast_to_ListQuadContainer(o)
1507 def _get_as_binary(self):
1508 r"""_get_as_binary(ListQuadContainer self) -> PyObject *"""
1509 return _IMP_container.ListQuadContainer__get_as_binary(self)
1511 def _set_from_binary(self, p):
1512 r"""_set_from_binary(ListQuadContainer self, PyObject * p)"""
1513 return _IMP_container.ListQuadContainer__set_from_binary(self, p)
1515 def __getstate__(self):
1516 p = self._get_as_binary()
1517 if len(self.__dict__) > 1:
1518 d = self.__dict__.copy()
1523 def __setstate__(self, p):
1524 if not hasattr(self,
'this'):
1526 if isinstance(p, tuple):
1528 self.__dict__.update(d)
1529 return self._set_from_binary(p)
1533 _IMP_container.ListQuadContainer_swigregister(ListQuadContainer)
1535 r"""Proxy of C++ IMP::container::ListSingletonContainer class."""
1537 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1539 def __init__(self, *args):
1541 __init__(ListSingletonContainer self, Model m, IMP::ParticleIndexes const & contents, std::string name="ListSingletonContainer%1%") -> ListSingletonContainer
1542 __init__(ListSingletonContainer self, Model m, std::string name="ListSingletonContainer %1%") -> ListSingletonContainer
1543 __init__(ListSingletonContainer self, Model m, char const * name) -> ListSingletonContainer
1544 __init__(ListSingletonContainer self) -> ListSingletonContainer
1546 _IMP_container.ListSingletonContainer_swiginit(self, _IMP_container.new_ListSingletonContainer(*args))
1548 def add(self, *args):
1550 add(ListSingletonContainer self, ParticleIndex vt)
1551 add(ListSingletonContainer self, IMP::ParticleIndexes const & c)
1553 return _IMP_container.ListSingletonContainer_add(self, *args)
1556 r"""set(ListSingletonContainer self, IMP::ParticleIndexes cp)"""
1557 return _IMP_container.ListSingletonContainer_set(self, cp)
1560 r"""clear(ListSingletonContainer self)"""
1561 return _IMP_container.ListSingletonContainer_clear(self)
1563 def do_get_inputs(self):
1564 r"""do_get_inputs(ListSingletonContainer self) -> IMP::ModelObjectsTemp"""
1565 return _IMP_container.ListSingletonContainer_do_get_inputs(self)
1567 def do_apply(self, sm):
1568 r"""do_apply(ListSingletonContainer self, SingletonModifier sm)"""
1569 return _IMP_container.ListSingletonContainer_do_apply(self, sm)
1571 def do_apply_moved(self, sm, moved_pis, reset_pis):
1572 r"""do_apply_moved(ListSingletonContainer self, SingletonModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
1573 return _IMP_container.ListSingletonContainer_do_apply_moved(self, sm, moved_pis, reset_pis)
1575 def get_version_info(self):
1576 r"""get_version_info(ListSingletonContainer self) -> VersionInfo"""
1577 return _IMP_container.ListSingletonContainer_get_version_info(self)
1578 __swig_destroy__ = _IMP_container.delete_ListSingletonContainer
1581 r"""__str__(ListSingletonContainer self) -> std::string"""
1582 return _IMP_container.ListSingletonContainer___str__(self)
1585 r"""__repr__(ListSingletonContainer self) -> std::string"""
1586 return _IMP_container.ListSingletonContainer___repr__(self)
1590 return _object_cast_to_ListSingletonContainer(o)
1593 def _get_as_binary(self):
1594 r"""_get_as_binary(ListSingletonContainer self) -> PyObject *"""
1595 return _IMP_container.ListSingletonContainer__get_as_binary(self)
1597 def _set_from_binary(self, p):
1598 r"""_set_from_binary(ListSingletonContainer self, PyObject * p)"""
1599 return _IMP_container.ListSingletonContainer__set_from_binary(self, p)
1601 def __getstate__(self):
1602 p = self._get_as_binary()
1603 if len(self.__dict__) > 1:
1604 d = self.__dict__.copy()
1609 def __setstate__(self, p):
1610 if not hasattr(self,
'this'):
1612 if isinstance(p, tuple):
1614 self.__dict__.update(d)
1615 return self._set_from_binary(p)
1618 def _get_static_contents(self):
1619 return self.get_contents()
1623 _IMP_container.ListSingletonContainer_swigregister(ListSingletonContainer)
1625 r"""Proxy of C++ IMP::container::ListTripletContainer class."""
1627 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1629 def __init__(self, *args):
1631 __init__(ListTripletContainer self, Model m, IMP::ParticleIndexTriplets const & contents, std::string name="ListTripletContainer%1%") -> ListTripletContainer
1632 __init__(ListTripletContainer self, Model m, std::string name="ListTripletContainer %1%") -> ListTripletContainer
1633 __init__(ListTripletContainer self, Model m, char const * name) -> ListTripletContainer
1634 __init__(ListTripletContainer self) -> ListTripletContainer
1636 _IMP_container.ListTripletContainer_swiginit(self, _IMP_container.new_ListTripletContainer(*args))
1638 def add(self, *args):
1640 add(ListTripletContainer self, IMP::ParticleIndexTriplet const & vt)
1641 add(ListTripletContainer self, IMP::ParticleIndexTriplets const & c)
1643 return _IMP_container.ListTripletContainer_add(self, *args)
1646 r"""set(ListTripletContainer self, IMP::ParticleIndexTriplets cp)"""
1647 return _IMP_container.ListTripletContainer_set(self, cp)
1650 r"""clear(ListTripletContainer self)"""
1651 return _IMP_container.ListTripletContainer_clear(self)
1653 def do_get_inputs(self):
1654 r"""do_get_inputs(ListTripletContainer self) -> IMP::ModelObjectsTemp"""
1655 return _IMP_container.ListTripletContainer_do_get_inputs(self)
1657 def do_apply(self, sm):
1658 r"""do_apply(ListTripletContainer self, TripletModifier sm)"""
1659 return _IMP_container.ListTripletContainer_do_apply(self, sm)
1661 def do_apply_moved(self, sm, moved_pis, reset_pis):
1662 r"""do_apply_moved(ListTripletContainer self, TripletModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
1663 return _IMP_container.ListTripletContainer_do_apply_moved(self, sm, moved_pis, reset_pis)
1665 def get_version_info(self):
1666 r"""get_version_info(ListTripletContainer self) -> VersionInfo"""
1667 return _IMP_container.ListTripletContainer_get_version_info(self)
1668 __swig_destroy__ = _IMP_container.delete_ListTripletContainer
1671 r"""__str__(ListTripletContainer self) -> std::string"""
1672 return _IMP_container.ListTripletContainer___str__(self)
1675 r"""__repr__(ListTripletContainer self) -> std::string"""
1676 return _IMP_container.ListTripletContainer___repr__(self)
1680 return _object_cast_to_ListTripletContainer(o)
1683 def _get_as_binary(self):
1684 r"""_get_as_binary(ListTripletContainer self) -> PyObject *"""
1685 return _IMP_container.ListTripletContainer__get_as_binary(self)
1687 def _set_from_binary(self, p):
1688 r"""_set_from_binary(ListTripletContainer self, PyObject * p)"""
1689 return _IMP_container.ListTripletContainer__set_from_binary(self, p)
1691 def __getstate__(self):
1692 p = self._get_as_binary()
1693 if len(self.__dict__) > 1:
1694 d = self.__dict__.copy()
1699 def __setstate__(self, p):
1700 if not hasattr(self,
'this'):
1702 if isinstance(p, tuple):
1704 self.__dict__.update(d)
1705 return self._set_from_binary(p)
1709 _IMP_container.ListTripletContainer_swigregister(ListTripletContainer)
1711 r"""Proxy of C++ IMP::container::DynamicListPairContainer class."""
1713 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1715 def __init__(self, *args, **kwargs):
1716 raise AttributeError(
"No constructor defined - class is abstract")
1718 def add(self, *args):
1720 add(DynamicListPairContainer self, IMP::ParticleIndexPair const & vt)
1721 add(DynamicListPairContainer self, IMP::ParticleIndexPairs const & c)
1723 return _IMP_container.DynamicListPairContainer_add(self, *args)
1726 r"""set(DynamicListPairContainer self, IMP::ParticleIndexPairs cp)"""
1727 return _IMP_container.DynamicListPairContainer_set(self, cp)
1730 r"""clear(DynamicListPairContainer self)"""
1731 return _IMP_container.DynamicListPairContainer_clear(self)
1733 def do_get_inputs(self):
1734 r"""do_get_inputs(DynamicListPairContainer self) -> IMP::ModelObjectsTemp"""
1735 return _IMP_container.DynamicListPairContainer_do_get_inputs(self)
1737 def do_apply(self, sm):
1738 r"""do_apply(DynamicListPairContainer self, PairModifier sm)"""
1739 return _IMP_container.DynamicListPairContainer_do_apply(self, sm)
1741 def do_apply_moved(self, sm, moved_pis, reset_pis):
1742 r"""do_apply_moved(DynamicListPairContainer self, PairModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
1743 return _IMP_container.DynamicListPairContainer_do_apply_moved(self, sm, moved_pis, reset_pis)
1745 def get_version_info(self):
1746 r"""get_version_info(DynamicListPairContainer self) -> VersionInfo"""
1747 return _IMP_container.DynamicListPairContainer_get_version_info(self)
1748 __swig_destroy__ = _IMP_container.delete_DynamicListPairContainer
1751 r"""__str__(DynamicListPairContainer self) -> std::string"""
1752 return _IMP_container.DynamicListPairContainer___str__(self)
1755 r"""__repr__(DynamicListPairContainer self) -> std::string"""
1756 return _IMP_container.DynamicListPairContainer___repr__(self)
1760 return _object_cast_to_DynamicListPairContainer(o)
1764 _IMP_container.DynamicListPairContainer_swigregister(DynamicListPairContainer)
1766 r"""Proxy of C++ IMP::container::DynamicListQuadContainer class."""
1768 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1770 def __init__(self, *args, **kwargs):
1771 raise AttributeError(
"No constructor defined - class is abstract")
1773 def add(self, *args):
1775 add(DynamicListQuadContainer self, IMP::ParticleIndexQuad const & vt)
1776 add(DynamicListQuadContainer self, IMP::ParticleIndexQuads const & c)
1778 return _IMP_container.DynamicListQuadContainer_add(self, *args)
1781 r"""set(DynamicListQuadContainer self, IMP::ParticleIndexQuads cp)"""
1782 return _IMP_container.DynamicListQuadContainer_set(self, cp)
1785 r"""clear(DynamicListQuadContainer self)"""
1786 return _IMP_container.DynamicListQuadContainer_clear(self)
1788 def do_get_inputs(self):
1789 r"""do_get_inputs(DynamicListQuadContainer self) -> IMP::ModelObjectsTemp"""
1790 return _IMP_container.DynamicListQuadContainer_do_get_inputs(self)
1792 def do_apply(self, sm):
1793 r"""do_apply(DynamicListQuadContainer self, QuadModifier sm)"""
1794 return _IMP_container.DynamicListQuadContainer_do_apply(self, sm)
1796 def do_apply_moved(self, sm, moved_pis, reset_pis):
1797 r"""do_apply_moved(DynamicListQuadContainer self, QuadModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
1798 return _IMP_container.DynamicListQuadContainer_do_apply_moved(self, sm, moved_pis, reset_pis)
1800 def get_version_info(self):
1801 r"""get_version_info(DynamicListQuadContainer self) -> VersionInfo"""
1802 return _IMP_container.DynamicListQuadContainer_get_version_info(self)
1803 __swig_destroy__ = _IMP_container.delete_DynamicListQuadContainer
1806 r"""__str__(DynamicListQuadContainer self) -> std::string"""
1807 return _IMP_container.DynamicListQuadContainer___str__(self)
1810 r"""__repr__(DynamicListQuadContainer self) -> std::string"""
1811 return _IMP_container.DynamicListQuadContainer___repr__(self)
1815 return _object_cast_to_DynamicListQuadContainer(o)
1819 _IMP_container.DynamicListQuadContainer_swigregister(DynamicListQuadContainer)
1821 r"""Proxy of C++ IMP::container::DynamicListSingletonContainer class."""
1823 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1825 def __init__(self, *args, **kwargs):
1826 raise AttributeError(
"No constructor defined - class is abstract")
1828 def add(self, *args):
1830 add(DynamicListSingletonContainer self, ParticleIndex vt)
1831 add(DynamicListSingletonContainer self, IMP::ParticleIndexes const & c)
1833 return _IMP_container.DynamicListSingletonContainer_add(self, *args)
1836 r"""set(DynamicListSingletonContainer self, IMP::ParticleIndexes cp)"""
1837 return _IMP_container.DynamicListSingletonContainer_set(self, cp)
1840 r"""clear(DynamicListSingletonContainer self)"""
1841 return _IMP_container.DynamicListSingletonContainer_clear(self)
1843 def do_get_inputs(self):
1844 r"""do_get_inputs(DynamicListSingletonContainer self) -> IMP::ModelObjectsTemp"""
1845 return _IMP_container.DynamicListSingletonContainer_do_get_inputs(self)
1847 def do_apply(self, sm):
1848 r"""do_apply(DynamicListSingletonContainer self, SingletonModifier sm)"""
1849 return _IMP_container.DynamicListSingletonContainer_do_apply(self, sm)
1851 def do_apply_moved(self, sm, moved_pis, reset_pis):
1852 r"""do_apply_moved(DynamicListSingletonContainer self, SingletonModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
1853 return _IMP_container.DynamicListSingletonContainer_do_apply_moved(self, sm, moved_pis, reset_pis)
1855 def get_version_info(self):
1856 r"""get_version_info(DynamicListSingletonContainer self) -> VersionInfo"""
1857 return _IMP_container.DynamicListSingletonContainer_get_version_info(self)
1858 __swig_destroy__ = _IMP_container.delete_DynamicListSingletonContainer
1861 r"""__str__(DynamicListSingletonContainer self) -> std::string"""
1862 return _IMP_container.DynamicListSingletonContainer___str__(self)
1865 r"""__repr__(DynamicListSingletonContainer self) -> std::string"""
1866 return _IMP_container.DynamicListSingletonContainer___repr__(self)
1870 return _object_cast_to_DynamicListSingletonContainer(o)
1874 _IMP_container.DynamicListSingletonContainer_swigregister(DynamicListSingletonContainer)
1876 r"""Proxy of C++ IMP::container::DynamicListTripletContainer class."""
1878 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1880 def __init__(self, *args, **kwargs):
1881 raise AttributeError(
"No constructor defined - class is abstract")
1883 def add(self, *args):
1885 add(DynamicListTripletContainer self, IMP::ParticleIndexTriplet const & vt)
1886 add(DynamicListTripletContainer self, IMP::ParticleIndexTriplets const & c)
1888 return _IMP_container.DynamicListTripletContainer_add(self, *args)
1891 r"""set(DynamicListTripletContainer self, IMP::ParticleIndexTriplets cp)"""
1892 return _IMP_container.DynamicListTripletContainer_set(self, cp)
1895 r"""clear(DynamicListTripletContainer self)"""
1896 return _IMP_container.DynamicListTripletContainer_clear(self)
1898 def do_get_inputs(self):
1899 r"""do_get_inputs(DynamicListTripletContainer self) -> IMP::ModelObjectsTemp"""
1900 return _IMP_container.DynamicListTripletContainer_do_get_inputs(self)
1902 def do_apply(self, sm):
1903 r"""do_apply(DynamicListTripletContainer self, TripletModifier sm)"""
1904 return _IMP_container.DynamicListTripletContainer_do_apply(self, sm)
1906 def do_apply_moved(self, sm, moved_pis, reset_pis):
1907 r"""do_apply_moved(DynamicListTripletContainer self, TripletModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
1908 return _IMP_container.DynamicListTripletContainer_do_apply_moved(self, sm, moved_pis, reset_pis)
1910 def get_version_info(self):
1911 r"""get_version_info(DynamicListTripletContainer self) -> VersionInfo"""
1912 return _IMP_container.DynamicListTripletContainer_get_version_info(self)
1913 __swig_destroy__ = _IMP_container.delete_DynamicListTripletContainer
1916 r"""__str__(DynamicListTripletContainer self) -> std::string"""
1917 return _IMP_container.DynamicListTripletContainer___str__(self)
1920 r"""__repr__(DynamicListTripletContainer self) -> std::string"""
1921 return _IMP_container.DynamicListTripletContainer___repr__(self)
1925 return _object_cast_to_DynamicListTripletContainer(o)
1929 _IMP_container.DynamicListTripletContainer_swigregister(DynamicListTripletContainer)
1931 r"""Proxy of C++ IMP::container::MinimumPairRestraint class."""
1933 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1935 def __init__(self, *args):
1936 r"""__init__(MinimumPairRestraint self, PairScore f, _PairContainerAdaptor c, unsigned int n=1, std::string name="MinimumPairRestraint %1%") -> MinimumPairRestraint"""
1937 _IMP_container.MinimumPairRestraint_swiginit(self, _IMP_container.new_MinimumPairRestraint(*args))
1939 def do_get_inputs(self):
1940 r"""do_get_inputs(MinimumPairRestraint self) -> IMP::ModelObjectsTemp"""
1941 return _IMP_container.MinimumPairRestraint_do_get_inputs(self)
1943 def get_version_info(self):
1944 r"""get_version_info(MinimumPairRestraint self) -> VersionInfo"""
1945 return _IMP_container.MinimumPairRestraint_get_version_info(self)
1946 __swig_destroy__ = _IMP_container.delete_MinimumPairRestraint
1949 r"""set_n(MinimumPairRestraint self, unsigned int n)"""
1950 return _IMP_container.MinimumPairRestraint_set_n(self, n)
1952 def do_create_current_decomposition(self):
1953 r"""do_create_current_decomposition(MinimumPairRestraint self) -> IMP::Restraints"""
1954 return _IMP_container.MinimumPairRestraint_do_create_current_decomposition(self)
1957 r"""__str__(MinimumPairRestraint self) -> std::string"""
1958 return _IMP_container.MinimumPairRestraint___str__(self)
1961 r"""__repr__(MinimumPairRestraint self) -> std::string"""
1962 return _IMP_container.MinimumPairRestraint___repr__(self)
1966 return _object_cast_to_MinimumPairRestraint(o)
1970 _IMP_container.MinimumPairRestraint_swigregister(MinimumPairRestraint)
1972 r"""Proxy of C++ IMP::container::MinimumPairScore class."""
1974 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1976 def __init__(self, *args):
1977 r"""__init__(MinimumPairScore self, IMP::PairScoresTemp const & scores, unsigned int n=1, std::string name="PairScore %1%") -> MinimumPairScore"""
1978 _IMP_container.MinimumPairScore_swiginit(self, _IMP_container.new_MinimumPairScore(*args))
1980 def do_get_inputs(self, m, pis):
1981 r"""do_get_inputs(MinimumPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
1982 return _IMP_container.MinimumPairScore_do_get_inputs(self, m, pis)
1984 def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
1985 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"""
1986 return _IMP_container.MinimumPairScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
1988 def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
1989 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"""
1990 return _IMP_container.MinimumPairScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
1992 def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
1993 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"""
1994 return _IMP_container.MinimumPairScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
1996 def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
1997 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"""
1998 return _IMP_container.MinimumPairScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
2000 def get_version_info(self):
2001 r"""get_version_info(MinimumPairScore self) -> VersionInfo"""
2002 return _IMP_container.MinimumPairScore_get_version_info(self)
2003 __swig_destroy__ = _IMP_container.delete_MinimumPairScore
2005 def do_create_current_decomposition(self, m, vt):
2006 r"""do_create_current_decomposition(MinimumPairScore self, Model m, IMP::ParticleIndexPair const & vt) -> IMP::Restraints"""
2007 return _IMP_container.MinimumPairScore_do_create_current_decomposition(self, m, vt)
2010 r"""__str__(MinimumPairScore self) -> std::string"""
2011 return _IMP_container.MinimumPairScore___str__(self)
2014 r"""__repr__(MinimumPairScore self) -> std::string"""
2015 return _IMP_container.MinimumPairScore___repr__(self)
2019 return _object_cast_to_MinimumPairScore(o)
2023 _IMP_container.MinimumPairScore_swigregister(MinimumPairScore)
2025 r"""Proxy of C++ IMP::container::MinimumQuadRestraint class."""
2027 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2029 def __init__(self, *args):
2030 r"""__init__(MinimumQuadRestraint self, QuadScore f, _QuadContainerAdaptor c, unsigned int n=1, std::string name="MinimumQuadRestraint %1%") -> MinimumQuadRestraint"""
2031 _IMP_container.MinimumQuadRestraint_swiginit(self, _IMP_container.new_MinimumQuadRestraint(*args))
2033 def do_get_inputs(self):
2034 r"""do_get_inputs(MinimumQuadRestraint self) -> IMP::ModelObjectsTemp"""
2035 return _IMP_container.MinimumQuadRestraint_do_get_inputs(self)
2037 def get_version_info(self):
2038 r"""get_version_info(MinimumQuadRestraint self) -> VersionInfo"""
2039 return _IMP_container.MinimumQuadRestraint_get_version_info(self)
2040 __swig_destroy__ = _IMP_container.delete_MinimumQuadRestraint
2043 r"""set_n(MinimumQuadRestraint self, unsigned int n)"""
2044 return _IMP_container.MinimumQuadRestraint_set_n(self, n)
2046 def do_create_current_decomposition(self):
2047 r"""do_create_current_decomposition(MinimumQuadRestraint self) -> IMP::Restraints"""
2048 return _IMP_container.MinimumQuadRestraint_do_create_current_decomposition(self)
2051 r"""__str__(MinimumQuadRestraint self) -> std::string"""
2052 return _IMP_container.MinimumQuadRestraint___str__(self)
2055 r"""__repr__(MinimumQuadRestraint self) -> std::string"""
2056 return _IMP_container.MinimumQuadRestraint___repr__(self)
2060 return _object_cast_to_MinimumQuadRestraint(o)
2064 _IMP_container.MinimumQuadRestraint_swigregister(MinimumQuadRestraint)
2066 r"""Proxy of C++ IMP::container::MinimumQuadScore class."""
2068 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2070 def __init__(self, *args):
2071 r"""__init__(MinimumQuadScore self, IMP::QuadScoresTemp const & scores, unsigned int n=1, std::string name="QuadScore %1%") -> MinimumQuadScore"""
2072 _IMP_container.MinimumQuadScore_swiginit(self, _IMP_container.new_MinimumQuadScore(*args))
2074 def do_get_inputs(self, m, pis):
2075 r"""do_get_inputs(MinimumQuadScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
2076 return _IMP_container.MinimumQuadScore_do_get_inputs(self, m, pis)
2078 def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
2079 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"""
2080 return _IMP_container.MinimumQuadScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
2082 def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
2083 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"""
2084 return _IMP_container.MinimumQuadScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
2086 def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
2087 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"""
2088 return _IMP_container.MinimumQuadScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
2090 def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
2091 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"""
2092 return _IMP_container.MinimumQuadScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
2094 def get_version_info(self):
2095 r"""get_version_info(MinimumQuadScore self) -> VersionInfo"""
2096 return _IMP_container.MinimumQuadScore_get_version_info(self)
2097 __swig_destroy__ = _IMP_container.delete_MinimumQuadScore
2099 def do_create_current_decomposition(self, m, vt):
2100 r"""do_create_current_decomposition(MinimumQuadScore self, Model m, IMP::ParticleIndexQuad const & vt) -> IMP::Restraints"""
2101 return _IMP_container.MinimumQuadScore_do_create_current_decomposition(self, m, vt)
2104 r"""__str__(MinimumQuadScore self) -> std::string"""
2105 return _IMP_container.MinimumQuadScore___str__(self)
2108 r"""__repr__(MinimumQuadScore self) -> std::string"""
2109 return _IMP_container.MinimumQuadScore___repr__(self)
2113 return _object_cast_to_MinimumQuadScore(o)
2117 _IMP_container.MinimumQuadScore_swigregister(MinimumQuadScore)
2119 r"""Proxy of C++ IMP::container::MinimumSingletonRestraint class."""
2121 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2123 def __init__(self, *args):
2124 r"""__init__(MinimumSingletonRestraint self, SingletonScore f, _SingletonContainerAdaptor c, unsigned int n=1, std::string name="MinimumSingletonRestraint %1%") -> MinimumSingletonRestraint"""
2125 _IMP_container.MinimumSingletonRestraint_swiginit(self, _IMP_container.new_MinimumSingletonRestraint(*args))
2127 def do_get_inputs(self):
2128 r"""do_get_inputs(MinimumSingletonRestraint self) -> IMP::ModelObjectsTemp"""
2129 return _IMP_container.MinimumSingletonRestraint_do_get_inputs(self)
2131 def get_version_info(self):
2132 r"""get_version_info(MinimumSingletonRestraint self) -> VersionInfo"""
2133 return _IMP_container.MinimumSingletonRestraint_get_version_info(self)
2134 __swig_destroy__ = _IMP_container.delete_MinimumSingletonRestraint
2137 r"""set_n(MinimumSingletonRestraint self, unsigned int n)"""
2138 return _IMP_container.MinimumSingletonRestraint_set_n(self, n)
2140 def do_create_current_decomposition(self):
2141 r"""do_create_current_decomposition(MinimumSingletonRestraint self) -> IMP::Restraints"""
2142 return _IMP_container.MinimumSingletonRestraint_do_create_current_decomposition(self)
2145 r"""__str__(MinimumSingletonRestraint self) -> std::string"""
2146 return _IMP_container.MinimumSingletonRestraint___str__(self)
2149 r"""__repr__(MinimumSingletonRestraint self) -> std::string"""
2150 return _IMP_container.MinimumSingletonRestraint___repr__(self)
2154 return _object_cast_to_MinimumSingletonRestraint(o)
2158 _IMP_container.MinimumSingletonRestraint_swigregister(MinimumSingletonRestraint)
2160 r"""Proxy of C++ IMP::container::MinimumSingletonScore class."""
2162 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2164 def __init__(self, *args):
2165 r"""__init__(MinimumSingletonScore self, IMP::SingletonScoresTemp const & scores, unsigned int n=1, std::string name="SingletonScore %1%") -> MinimumSingletonScore"""
2166 _IMP_container.MinimumSingletonScore_swiginit(self, _IMP_container.new_MinimumSingletonScore(*args))
2168 def do_get_inputs(self, m, pis):
2169 r"""do_get_inputs(MinimumSingletonScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
2170 return _IMP_container.MinimumSingletonScore_do_get_inputs(self, m, pis)
2172 def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
2173 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"""
2174 return _IMP_container.MinimumSingletonScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
2176 def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
2177 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"""
2178 return _IMP_container.MinimumSingletonScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
2180 def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
2181 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"""
2182 return _IMP_container.MinimumSingletonScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
2184 def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
2185 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"""
2186 return _IMP_container.MinimumSingletonScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
2188 def get_version_info(self):
2189 r"""get_version_info(MinimumSingletonScore self) -> VersionInfo"""
2190 return _IMP_container.MinimumSingletonScore_get_version_info(self)
2191 __swig_destroy__ = _IMP_container.delete_MinimumSingletonScore
2193 def do_create_current_decomposition(self, m, vt):
2194 r"""do_create_current_decomposition(MinimumSingletonScore self, Model m, ParticleIndex vt) -> IMP::Restraints"""
2195 return _IMP_container.MinimumSingletonScore_do_create_current_decomposition(self, m, vt)
2198 r"""__str__(MinimumSingletonScore self) -> std::string"""
2199 return _IMP_container.MinimumSingletonScore___str__(self)
2202 r"""__repr__(MinimumSingletonScore self) -> std::string"""
2203 return _IMP_container.MinimumSingletonScore___repr__(self)
2207 return _object_cast_to_MinimumSingletonScore(o)
2211 _IMP_container.MinimumSingletonScore_swigregister(MinimumSingletonScore)
2213 r"""Proxy of C++ IMP::container::MinimumTripletRestraint class."""
2215 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2217 def __init__(self, *args):
2218 r"""__init__(MinimumTripletRestraint self, TripletScore f, _TripletContainerAdaptor c, unsigned int n=1, std::string name="MinimumTripletRestraint %1%") -> MinimumTripletRestraint"""
2219 _IMP_container.MinimumTripletRestraint_swiginit(self, _IMP_container.new_MinimumTripletRestraint(*args))
2221 def do_get_inputs(self):
2222 r"""do_get_inputs(MinimumTripletRestraint self) -> IMP::ModelObjectsTemp"""
2223 return _IMP_container.MinimumTripletRestraint_do_get_inputs(self)
2225 def get_version_info(self):
2226 r"""get_version_info(MinimumTripletRestraint self) -> VersionInfo"""
2227 return _IMP_container.MinimumTripletRestraint_get_version_info(self)
2228 __swig_destroy__ = _IMP_container.delete_MinimumTripletRestraint
2231 r"""set_n(MinimumTripletRestraint self, unsigned int n)"""
2232 return _IMP_container.MinimumTripletRestraint_set_n(self, n)
2234 def do_create_current_decomposition(self):
2235 r"""do_create_current_decomposition(MinimumTripletRestraint self) -> IMP::Restraints"""
2236 return _IMP_container.MinimumTripletRestraint_do_create_current_decomposition(self)
2239 r"""__str__(MinimumTripletRestraint self) -> std::string"""
2240 return _IMP_container.MinimumTripletRestraint___str__(self)
2243 r"""__repr__(MinimumTripletRestraint self) -> std::string"""
2244 return _IMP_container.MinimumTripletRestraint___repr__(self)
2248 return _object_cast_to_MinimumTripletRestraint(o)
2252 _IMP_container.MinimumTripletRestraint_swigregister(MinimumTripletRestraint)
2254 r"""Proxy of C++ IMP::container::MinimumTripletScore class."""
2256 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2258 def __init__(self, *args):
2259 r"""__init__(MinimumTripletScore self, IMP::TripletScoresTemp const & scores, unsigned int n=1, std::string name="TripletScore %1%") -> MinimumTripletScore"""
2260 _IMP_container.MinimumTripletScore_swiginit(self, _IMP_container.new_MinimumTripletScore(*args))
2262 def do_get_inputs(self, m, pis):
2263 r"""do_get_inputs(MinimumTripletScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
2264 return _IMP_container.MinimumTripletScore_do_get_inputs(self, m, pis)
2266 def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
2267 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"""
2268 return _IMP_container.MinimumTripletScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
2270 def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
2271 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"""
2272 return _IMP_container.MinimumTripletScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
2274 def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
2275 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"""
2276 return _IMP_container.MinimumTripletScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
2278 def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
2279 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"""
2280 return _IMP_container.MinimumTripletScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
2282 def get_version_info(self):
2283 r"""get_version_info(MinimumTripletScore self) -> VersionInfo"""
2284 return _IMP_container.MinimumTripletScore_get_version_info(self)
2285 __swig_destroy__ = _IMP_container.delete_MinimumTripletScore
2287 def do_create_current_decomposition(self, m, vt):
2288 r"""do_create_current_decomposition(MinimumTripletScore self, Model m, IMP::ParticleIndexTriplet const & vt) -> IMP::Restraints"""
2289 return _IMP_container.MinimumTripletScore_do_create_current_decomposition(self, m, vt)
2292 r"""__str__(MinimumTripletScore self) -> std::string"""
2293 return _IMP_container.MinimumTripletScore___str__(self)
2296 r"""__repr__(MinimumTripletScore self) -> std::string"""
2297 return _IMP_container.MinimumTripletScore___repr__(self)
2301 return _object_cast_to_MinimumTripletScore(o)
2305 _IMP_container.MinimumTripletScore_swigregister(MinimumTripletScore)
2307 r"""Proxy of C++ IMP::container::PairContainerSet class."""
2309 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2311 def __init__(self, *args):
2313 __init__(PairContainerSet self, Model m, std::string name="PairContainerSet %1%") -> PairContainerSet
2314 __init__(PairContainerSet self, IMP::PairContainersTemp const & pc, std::string name="PairContainerSet %1%") -> PairContainerSet
2316 _IMP_container.PairContainerSet_swiginit(self, _IMP_container.new_PairContainerSet(*args))
2318 def do_apply(self, sm):
2319 r"""do_apply(PairContainerSet self, PairModifier sm)"""
2320 return _IMP_container.PairContainerSet_do_apply(self, sm)
2322 def do_apply_moved(self, sm, moved_pis, reset_pis):
2323 r"""do_apply_moved(PairContainerSet self, PairModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
2324 return _IMP_container.PairContainerSet_do_apply_moved(self, sm, moved_pis, reset_pis)
2326 def get_version_info(self):
2327 r"""get_version_info(PairContainerSet self) -> VersionInfo"""
2328 return _IMP_container.PairContainerSet_get_version_info(self)
2329 __swig_destroy__ = _IMP_container.delete_PairContainerSet
2330 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)
2331 def __set_pair_containers(self, obj): IMP._list_util.set_varlist(self.pair_containers, obj)
2332 def __del_pair_containers(self): IMP._list_util.del_varlist(self.pair_containers)
2333 pair_containers = property(__get_pair_containers, __set_pair_containers, __del_pair_containers, doc=
"List of ##ucnames")
2335 def remove_pair_container(self, d):
2336 r"""remove_pair_container(PairContainerSet self, PairContainer d)"""
2337 return _IMP_container.PairContainerSet_remove_pair_container(self, d)
2339 def _python_index_pair_container(self, d, start, stop):
2340 r"""_python_index_pair_container(PairContainerSet self, PairContainer d, unsigned int start, unsigned int stop) -> unsigned int"""
2341 return _IMP_container.PairContainerSet__python_index_pair_container(self, d, start, stop)
2343 def remove_pair_containers(self, d):
2344 r"""remove_pair_containers(PairContainerSet self, IMP::PairContainers const & d)"""
2345 return _IMP_container.PairContainerSet_remove_pair_containers(self, d)
2347 def set_pair_containers(self, ps):
2348 r"""set_pair_containers(PairContainerSet self, IMP::PairContainers const & ps)"""
2349 return _IMP_container.PairContainerSet_set_pair_containers(self, ps)
2351 def set_pair_containers_order(self, objs):
2352 r"""set_pair_containers_order(PairContainerSet self, IMP::PairContainers const & objs)"""
2353 return _IMP_container.PairContainerSet_set_pair_containers_order(self, objs)
2355 def add_pair_container(self, obj):
2356 r"""add_pair_container(PairContainerSet self, PairContainer obj) -> unsigned int"""
2357 return _IMP_container.PairContainerSet_add_pair_container(self, obj)
2359 def add_pair_containers(self, objs):
2360 r"""add_pair_containers(PairContainerSet self, IMP::PairContainers const & objs)"""
2361 return _IMP_container.PairContainerSet_add_pair_containers(self, objs)
2363 def clear_pair_containers(self):
2364 r"""clear_pair_containers(PairContainerSet self)"""
2365 return _IMP_container.PairContainerSet_clear_pair_containers(self)
2367 def get_number_of_pair_containers(self):
2368 r"""get_number_of_pair_containers(PairContainerSet self) -> unsigned int"""
2369 return _IMP_container.PairContainerSet_get_number_of_pair_containers(self)
2371 def get_has_pair_containers(self):
2372 r"""get_has_pair_containers(PairContainerSet self) -> bool"""
2373 return _IMP_container.PairContainerSet_get_has_pair_containers(self)
2375 def get_pair_container(self, i):
2376 r"""get_pair_container(PairContainerSet self, unsigned int i) -> PairContainer"""
2377 return _IMP_container.PairContainerSet_get_pair_container(self, i)
2379 def get_pair_containers(self):
2380 r"""get_pair_containers(PairContainerSet self) -> IMP::PairContainers"""
2381 return _IMP_container.PairContainerSet_get_pair_containers(self)
2383 def erase_pair_container(self, i):
2384 r"""erase_pair_container(PairContainerSet self, unsigned int i)"""
2385 return _IMP_container.PairContainerSet_erase_pair_container(self, i)
2387 def reserve_pair_containers(self, sz):
2388 r"""reserve_pair_containers(PairContainerSet self, unsigned int sz)"""
2389 return _IMP_container.PairContainerSet_reserve_pair_containers(self, sz)
2391 def do_get_inputs(self):
2392 r"""do_get_inputs(PairContainerSet self) -> IMP::ModelObjectsTemp"""
2393 return _IMP_container.PairContainerSet_do_get_inputs(self)
2396 r"""__str__(PairContainerSet self) -> std::string"""
2397 return _IMP_container.PairContainerSet___str__(self)
2400 r"""__repr__(PairContainerSet self) -> std::string"""
2401 return _IMP_container.PairContainerSet___repr__(self)
2405 return _object_cast_to_PairContainerSet(o)
2409 _IMP_container.PairContainerSet_swigregister(PairContainerSet)
2411 r"""Proxy of C++ IMP::container::PairsConstraint class."""
2413 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2415 def __init__(self, *args):
2417 __init__(PairsConstraint self, PairModifier before, PairModifier after, _PairContainerAdaptor c, std::string name="PairsConstraint %1%") -> PairsConstraint
2418 __init__(PairsConstraint self) -> PairsConstraint
2420 _IMP_container.PairsConstraint_swiginit(self, _IMP_container.new_PairsConstraint(*args))
2422 def get_before_modifier(self):
2423 r"""get_before_modifier(PairsConstraint self) -> PairModifier"""
2424 return _IMP_container.PairsConstraint_get_before_modifier(self)
2426 def get_container(self):
2427 r"""get_container(PairsConstraint self) -> PairContainer"""
2428 return _IMP_container.PairsConstraint_get_container(self)
2430 def get_version_info(self):
2431 r"""get_version_info(PairsConstraint self) -> VersionInfo"""
2432 return _IMP_container.PairsConstraint_get_version_info(self)
2433 __swig_destroy__ = _IMP_container.delete_PairsConstraint
2436 r"""__str__(PairsConstraint self) -> std::string"""
2437 return _IMP_container.PairsConstraint___str__(self)
2440 r"""__repr__(PairsConstraint self) -> std::string"""
2441 return _IMP_container.PairsConstraint___repr__(self)
2445 return _object_cast_to_PairsConstraint(o)
2448 def _get_as_binary(self):
2449 r"""_get_as_binary(PairsConstraint self) -> PyObject *"""
2450 return _IMP_container.PairsConstraint__get_as_binary(self)
2452 def _set_from_binary(self, p):
2453 r"""_set_from_binary(PairsConstraint self, PyObject * p)"""
2454 return _IMP_container.PairsConstraint__set_from_binary(self, p)
2456 def __getstate__(self):
2457 p = self._get_as_binary()
2458 if len(self.__dict__) > 1:
2459 d = self.__dict__.copy()
2464 def __setstate__(self, p):
2465 if not hasattr(self,
'this'):
2467 if isinstance(p, tuple):
2469 self.__dict__.update(d)
2470 return self._set_from_binary(p)
2474 _IMP_container.PairsConstraint_swigregister(PairsConstraint)
2476 r"""Proxy of C++ IMP::container::PairsOptimizerState class."""
2478 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2480 def __init__(self, *args):
2481 r"""__init__(PairsOptimizerState self, _PairContainerAdaptor c, PairModifier gf, std::string name="PairsOptimizerState %1%") -> PairsOptimizerState"""
2482 _IMP_container.PairsOptimizerState_swiginit(self, _IMP_container.new_PairsOptimizerState(*args))
2484 def do_update(self, call):
2485 r"""do_update(PairsOptimizerState self, unsigned int call)"""
2486 return _IMP_container.PairsOptimizerState_do_update(self, call)
2488 def get_version_info(self):
2489 r"""get_version_info(PairsOptimizerState self) -> VersionInfo"""
2490 return _IMP_container.PairsOptimizerState_get_version_info(self)
2491 __swig_destroy__ = _IMP_container.delete_PairsOptimizerState
2494 r"""__str__(PairsOptimizerState self) -> std::string"""
2495 return _IMP_container.PairsOptimizerState___str__(self)
2498 r"""__repr__(PairsOptimizerState self) -> std::string"""
2499 return _IMP_container.PairsOptimizerState___repr__(self)
2503 return _object_cast_to_PairsOptimizerState(o)
2507 _IMP_container.PairsOptimizerState_swigregister(PairsOptimizerState)
2509 r"""Proxy of C++ IMP::container::PairsRestraint class."""
2511 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2513 def __init__(self, *args):
2515 __init__(PairsRestraint self, PairScore ss, _PairContainerAdaptor pc, std::string name="PairsRestraint %1%") -> PairsRestraint
2516 __init__(PairsRestraint self) -> PairsRestraint
2518 _IMP_container.PairsRestraint_swiginit(self, _IMP_container.new_PairsRestraint(*args))
2520 def get_score_object(self):
2521 r"""get_score_object(PairsRestraint self) -> PairScore"""
2522 return _IMP_container.PairsRestraint_get_score_object(self)
2524 def get_container(self):
2525 r"""get_container(PairsRestraint self) -> PairContainer"""
2526 return _IMP_container.PairsRestraint_get_container(self)
2528 def do_get_inputs(self):
2529 r"""do_get_inputs(PairsRestraint self) -> IMP::ModelObjectsTemp"""
2530 return _IMP_container.PairsRestraint_do_get_inputs(self)
2532 def get_version_info(self):
2533 r"""get_version_info(PairsRestraint self) -> VersionInfo"""
2534 return _IMP_container.PairsRestraint_get_version_info(self)
2535 __swig_destroy__ = _IMP_container.delete_PairsRestraint
2538 r"""__str__(PairsRestraint self) -> std::string"""
2539 return _IMP_container.PairsRestraint___str__(self)
2542 r"""__repr__(PairsRestraint self) -> std::string"""
2543 return _IMP_container.PairsRestraint___repr__(self)
2547 return _object_cast_to_PairsRestraint(o)
2550 def _get_as_binary(self):
2551 r"""_get_as_binary(PairsRestraint self) -> PyObject *"""
2552 return _IMP_container.PairsRestraint__get_as_binary(self)
2554 def _set_from_binary(self, p):
2555 r"""_set_from_binary(PairsRestraint self, PyObject * p)"""
2556 return _IMP_container.PairsRestraint__set_from_binary(self, p)
2558 def __getstate__(self):
2559 p = self._get_as_binary()
2560 if len(self.__dict__) > 1:
2561 d = self.__dict__.copy()
2566 def __setstate__(self, p):
2567 if not hasattr(self,
'this'):
2569 if isinstance(p, tuple):
2571 self.__dict__.update(d)
2572 return self._set_from_binary(p)
2576 from .
import _jax_util
2577 return _jax_util._get_jax_container_restraint(self)
2581 _IMP_container.PairsRestraint_swigregister(PairsRestraint)
2583 r"""Proxy of C++ IMP::container::QuadContainerSet class."""
2585 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2587 def __init__(self, *args):
2589 __init__(QuadContainerSet self, Model m, std::string name="QuadContainerSet %1%") -> QuadContainerSet
2590 __init__(QuadContainerSet self, IMP::QuadContainersTemp const & pc, std::string name="QuadContainerSet %1%") -> QuadContainerSet
2592 _IMP_container.QuadContainerSet_swiginit(self, _IMP_container.new_QuadContainerSet(*args))
2594 def do_apply(self, sm):
2595 r"""do_apply(QuadContainerSet self, QuadModifier sm)"""
2596 return _IMP_container.QuadContainerSet_do_apply(self, sm)
2598 def do_apply_moved(self, sm, moved_pis, reset_pis):
2599 r"""do_apply_moved(QuadContainerSet self, QuadModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
2600 return _IMP_container.QuadContainerSet_do_apply_moved(self, sm, moved_pis, reset_pis)
2602 def get_version_info(self):
2603 r"""get_version_info(QuadContainerSet self) -> VersionInfo"""
2604 return _IMP_container.QuadContainerSet_get_version_info(self)
2605 __swig_destroy__ = _IMP_container.delete_QuadContainerSet
2606 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)
2607 def __set_quad_containers(self, obj): IMP._list_util.set_varlist(self.quad_containers, obj)
2608 def __del_quad_containers(self): IMP._list_util.del_varlist(self.quad_containers)
2609 quad_containers = property(__get_quad_containers, __set_quad_containers, __del_quad_containers, doc=
"List of ##ucnames")
2611 def remove_quad_container(self, d):
2612 r"""remove_quad_container(QuadContainerSet self, QuadContainer d)"""
2613 return _IMP_container.QuadContainerSet_remove_quad_container(self, d)
2615 def _python_index_quad_container(self, d, start, stop):
2616 r"""_python_index_quad_container(QuadContainerSet self, QuadContainer d, unsigned int start, unsigned int stop) -> unsigned int"""
2617 return _IMP_container.QuadContainerSet__python_index_quad_container(self, d, start, stop)
2619 def remove_quad_containers(self, d):
2620 r"""remove_quad_containers(QuadContainerSet self, IMP::QuadContainers const & d)"""
2621 return _IMP_container.QuadContainerSet_remove_quad_containers(self, d)
2623 def set_quad_containers(self, ps):
2624 r"""set_quad_containers(QuadContainerSet self, IMP::QuadContainers const & ps)"""
2625 return _IMP_container.QuadContainerSet_set_quad_containers(self, ps)
2627 def set_quad_containers_order(self, objs):
2628 r"""set_quad_containers_order(QuadContainerSet self, IMP::QuadContainers const & objs)"""
2629 return _IMP_container.QuadContainerSet_set_quad_containers_order(self, objs)
2631 def add_quad_container(self, obj):
2632 r"""add_quad_container(QuadContainerSet self, QuadContainer obj) -> unsigned int"""
2633 return _IMP_container.QuadContainerSet_add_quad_container(self, obj)
2635 def add_quad_containers(self, objs):
2636 r"""add_quad_containers(QuadContainerSet self, IMP::QuadContainers const & objs)"""
2637 return _IMP_container.QuadContainerSet_add_quad_containers(self, objs)
2639 def clear_quad_containers(self):
2640 r"""clear_quad_containers(QuadContainerSet self)"""
2641 return _IMP_container.QuadContainerSet_clear_quad_containers(self)
2643 def get_number_of_quad_containers(self):
2644 r"""get_number_of_quad_containers(QuadContainerSet self) -> unsigned int"""
2645 return _IMP_container.QuadContainerSet_get_number_of_quad_containers(self)
2647 def get_has_quad_containers(self):
2648 r"""get_has_quad_containers(QuadContainerSet self) -> bool"""
2649 return _IMP_container.QuadContainerSet_get_has_quad_containers(self)
2651 def get_quad_container(self, i):
2652 r"""get_quad_container(QuadContainerSet self, unsigned int i) -> QuadContainer"""
2653 return _IMP_container.QuadContainerSet_get_quad_container(self, i)
2655 def get_quad_containers(self):
2656 r"""get_quad_containers(QuadContainerSet self) -> IMP::QuadContainers"""
2657 return _IMP_container.QuadContainerSet_get_quad_containers(self)
2659 def erase_quad_container(self, i):
2660 r"""erase_quad_container(QuadContainerSet self, unsigned int i)"""
2661 return _IMP_container.QuadContainerSet_erase_quad_container(self, i)
2663 def reserve_quad_containers(self, sz):
2664 r"""reserve_quad_containers(QuadContainerSet self, unsigned int sz)"""
2665 return _IMP_container.QuadContainerSet_reserve_quad_containers(self, sz)
2667 def do_get_inputs(self):
2668 r"""do_get_inputs(QuadContainerSet self) -> IMP::ModelObjectsTemp"""
2669 return _IMP_container.QuadContainerSet_do_get_inputs(self)
2672 r"""__str__(QuadContainerSet self) -> std::string"""
2673 return _IMP_container.QuadContainerSet___str__(self)
2676 r"""__repr__(QuadContainerSet self) -> std::string"""
2677 return _IMP_container.QuadContainerSet___repr__(self)
2681 return _object_cast_to_QuadContainerSet(o)
2685 _IMP_container.QuadContainerSet_swigregister(QuadContainerSet)
2687 r"""Proxy of C++ IMP::container::QuadsConstraint class."""
2689 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2691 def __init__(self, *args):
2693 __init__(QuadsConstraint self, QuadModifier before, QuadModifier after, _QuadContainerAdaptor c, std::string name="QuadsConstraint %1%") -> QuadsConstraint
2694 __init__(QuadsConstraint self) -> QuadsConstraint
2696 _IMP_container.QuadsConstraint_swiginit(self, _IMP_container.new_QuadsConstraint(*args))
2698 def get_before_modifier(self):
2699 r"""get_before_modifier(QuadsConstraint self) -> QuadModifier"""
2700 return _IMP_container.QuadsConstraint_get_before_modifier(self)
2702 def get_container(self):
2703 r"""get_container(QuadsConstraint self) -> QuadContainer"""
2704 return _IMP_container.QuadsConstraint_get_container(self)
2706 def get_version_info(self):
2707 r"""get_version_info(QuadsConstraint self) -> VersionInfo"""
2708 return _IMP_container.QuadsConstraint_get_version_info(self)
2709 __swig_destroy__ = _IMP_container.delete_QuadsConstraint
2712 r"""__str__(QuadsConstraint self) -> std::string"""
2713 return _IMP_container.QuadsConstraint___str__(self)
2716 r"""__repr__(QuadsConstraint self) -> std::string"""
2717 return _IMP_container.QuadsConstraint___repr__(self)
2721 return _object_cast_to_QuadsConstraint(o)
2724 def _get_as_binary(self):
2725 r"""_get_as_binary(QuadsConstraint self) -> PyObject *"""
2726 return _IMP_container.QuadsConstraint__get_as_binary(self)
2728 def _set_from_binary(self, p):
2729 r"""_set_from_binary(QuadsConstraint self, PyObject * p)"""
2730 return _IMP_container.QuadsConstraint__set_from_binary(self, p)
2732 def __getstate__(self):
2733 p = self._get_as_binary()
2734 if len(self.__dict__) > 1:
2735 d = self.__dict__.copy()
2740 def __setstate__(self, p):
2741 if not hasattr(self,
'this'):
2743 if isinstance(p, tuple):
2745 self.__dict__.update(d)
2746 return self._set_from_binary(p)
2750 _IMP_container.QuadsConstraint_swigregister(QuadsConstraint)
2752 r"""Proxy of C++ IMP::container::QuadsOptimizerState class."""
2754 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2756 def __init__(self, *args):
2757 r"""__init__(QuadsOptimizerState self, _QuadContainerAdaptor c, QuadModifier gf, std::string name="QuadsOptimizerState %1%") -> QuadsOptimizerState"""
2758 _IMP_container.QuadsOptimizerState_swiginit(self, _IMP_container.new_QuadsOptimizerState(*args))
2760 def do_update(self, call):
2761 r"""do_update(QuadsOptimizerState self, unsigned int call)"""
2762 return _IMP_container.QuadsOptimizerState_do_update(self, call)
2764 def get_version_info(self):
2765 r"""get_version_info(QuadsOptimizerState self) -> VersionInfo"""
2766 return _IMP_container.QuadsOptimizerState_get_version_info(self)
2767 __swig_destroy__ = _IMP_container.delete_QuadsOptimizerState
2770 r"""__str__(QuadsOptimizerState self) -> std::string"""
2771 return _IMP_container.QuadsOptimizerState___str__(self)
2774 r"""__repr__(QuadsOptimizerState self) -> std::string"""
2775 return _IMP_container.QuadsOptimizerState___repr__(self)
2779 return _object_cast_to_QuadsOptimizerState(o)
2783 _IMP_container.QuadsOptimizerState_swigregister(QuadsOptimizerState)
2785 r"""Proxy of C++ IMP::container::QuadsRestraint class."""
2787 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2789 def __init__(self, *args):
2791 __init__(QuadsRestraint self, QuadScore ss, _QuadContainerAdaptor pc, std::string name="QuadsRestraint %1%") -> QuadsRestraint
2792 __init__(QuadsRestraint self) -> QuadsRestraint
2794 _IMP_container.QuadsRestraint_swiginit(self, _IMP_container.new_QuadsRestraint(*args))
2796 def get_score_object(self):
2797 r"""get_score_object(QuadsRestraint self) -> QuadScore"""
2798 return _IMP_container.QuadsRestraint_get_score_object(self)
2800 def get_container(self):
2801 r"""get_container(QuadsRestraint self) -> QuadContainer"""
2802 return _IMP_container.QuadsRestraint_get_container(self)
2804 def do_get_inputs(self):
2805 r"""do_get_inputs(QuadsRestraint self) -> IMP::ModelObjectsTemp"""
2806 return _IMP_container.QuadsRestraint_do_get_inputs(self)
2808 def get_version_info(self):
2809 r"""get_version_info(QuadsRestraint self) -> VersionInfo"""
2810 return _IMP_container.QuadsRestraint_get_version_info(self)
2811 __swig_destroy__ = _IMP_container.delete_QuadsRestraint
2814 r"""__str__(QuadsRestraint self) -> std::string"""
2815 return _IMP_container.QuadsRestraint___str__(self)
2818 r"""__repr__(QuadsRestraint self) -> std::string"""
2819 return _IMP_container.QuadsRestraint___repr__(self)
2823 return _object_cast_to_QuadsRestraint(o)
2826 def _get_as_binary(self):
2827 r"""_get_as_binary(QuadsRestraint self) -> PyObject *"""
2828 return _IMP_container.QuadsRestraint__get_as_binary(self)
2830 def _set_from_binary(self, p):
2831 r"""_set_from_binary(QuadsRestraint self, PyObject * p)"""
2832 return _IMP_container.QuadsRestraint__set_from_binary(self, p)
2834 def __getstate__(self):
2835 p = self._get_as_binary()
2836 if len(self.__dict__) > 1:
2837 d = self.__dict__.copy()
2842 def __setstate__(self, p):
2843 if not hasattr(self,
'this'):
2845 if isinstance(p, tuple):
2847 self.__dict__.update(d)
2848 return self._set_from_binary(p)
2852 _IMP_container.QuadsRestraint_swigregister(QuadsRestraint)
2854 r"""Proxy of C++ IMP::container::SingletonContainerSet class."""
2856 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2858 def __init__(self, *args):
2860 __init__(SingletonContainerSet self, Model m, std::string name="SingletonContainerSet %1%") -> SingletonContainerSet
2861 __init__(SingletonContainerSet self, IMP::SingletonContainersTemp const & pc, std::string name="SingletonContainerSet %1%") -> SingletonContainerSet
2863 _IMP_container.SingletonContainerSet_swiginit(self, _IMP_container.new_SingletonContainerSet(*args))
2865 def do_apply(self, sm):
2866 r"""do_apply(SingletonContainerSet self, SingletonModifier sm)"""
2867 return _IMP_container.SingletonContainerSet_do_apply(self, sm)
2869 def do_apply_moved(self, sm, moved_pis, reset_pis):
2870 r"""do_apply_moved(SingletonContainerSet self, SingletonModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
2871 return _IMP_container.SingletonContainerSet_do_apply_moved(self, sm, moved_pis, reset_pis)
2873 def get_version_info(self):
2874 r"""get_version_info(SingletonContainerSet self) -> VersionInfo"""
2875 return _IMP_container.SingletonContainerSet_get_version_info(self)
2876 __swig_destroy__ = _IMP_container.delete_SingletonContainerSet
2877 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)
2878 def __set_singleton_containers(self, obj): IMP._list_util.set_varlist(self.singleton_containers, obj)
2879 def __del_singleton_containers(self): IMP._list_util.del_varlist(self.singleton_containers)
2880 singleton_containers = property(__get_singleton_containers, __set_singleton_containers, __del_singleton_containers, doc=
"List of ##ucnames")
2882 def remove_singleton_container(self, d):
2883 r"""remove_singleton_container(SingletonContainerSet self, SingletonContainer d)"""
2884 return _IMP_container.SingletonContainerSet_remove_singleton_container(self, d)
2886 def _python_index_singleton_container(self, d, start, stop):
2887 r"""_python_index_singleton_container(SingletonContainerSet self, SingletonContainer d, unsigned int start, unsigned int stop) -> unsigned int"""
2888 return _IMP_container.SingletonContainerSet__python_index_singleton_container(self, d, start, stop)
2890 def remove_singleton_containers(self, d):
2891 r"""remove_singleton_containers(SingletonContainerSet self, IMP::SingletonContainers const & d)"""
2892 return _IMP_container.SingletonContainerSet_remove_singleton_containers(self, d)
2894 def set_singleton_containers(self, ps):
2895 r"""set_singleton_containers(SingletonContainerSet self, IMP::SingletonContainers const & ps)"""
2896 return _IMP_container.SingletonContainerSet_set_singleton_containers(self, ps)
2898 def set_singleton_containers_order(self, objs):
2899 r"""set_singleton_containers_order(SingletonContainerSet self, IMP::SingletonContainers const & objs)"""
2900 return _IMP_container.SingletonContainerSet_set_singleton_containers_order(self, objs)
2902 def add_singleton_container(self, obj):
2903 r"""add_singleton_container(SingletonContainerSet self, SingletonContainer obj) -> unsigned int"""
2904 return _IMP_container.SingletonContainerSet_add_singleton_container(self, obj)
2906 def add_singleton_containers(self, objs):
2907 r"""add_singleton_containers(SingletonContainerSet self, IMP::SingletonContainers const & objs)"""
2908 return _IMP_container.SingletonContainerSet_add_singleton_containers(self, objs)
2910 def clear_singleton_containers(self):
2911 r"""clear_singleton_containers(SingletonContainerSet self)"""
2912 return _IMP_container.SingletonContainerSet_clear_singleton_containers(self)
2914 def get_number_of_singleton_containers(self):
2915 r"""get_number_of_singleton_containers(SingletonContainerSet self) -> unsigned int"""
2916 return _IMP_container.SingletonContainerSet_get_number_of_singleton_containers(self)
2918 def get_has_singleton_containers(self):
2919 r"""get_has_singleton_containers(SingletonContainerSet self) -> bool"""
2920 return _IMP_container.SingletonContainerSet_get_has_singleton_containers(self)
2922 def get_singleton_container(self, i):
2923 r"""get_singleton_container(SingletonContainerSet self, unsigned int i) -> SingletonContainer"""
2924 return _IMP_container.SingletonContainerSet_get_singleton_container(self, i)
2926 def get_singleton_containers(self):
2927 r"""get_singleton_containers(SingletonContainerSet self) -> IMP::SingletonContainers"""
2928 return _IMP_container.SingletonContainerSet_get_singleton_containers(self)
2930 def erase_singleton_container(self, i):
2931 r"""erase_singleton_container(SingletonContainerSet self, unsigned int i)"""
2932 return _IMP_container.SingletonContainerSet_erase_singleton_container(self, i)
2934 def reserve_singleton_containers(self, sz):
2935 r"""reserve_singleton_containers(SingletonContainerSet self, unsigned int sz)"""
2936 return _IMP_container.SingletonContainerSet_reserve_singleton_containers(self, sz)
2938 def do_get_inputs(self):
2939 r"""do_get_inputs(SingletonContainerSet self) -> IMP::ModelObjectsTemp"""
2940 return _IMP_container.SingletonContainerSet_do_get_inputs(self)
2943 r"""__str__(SingletonContainerSet self) -> std::string"""
2944 return _IMP_container.SingletonContainerSet___str__(self)
2947 r"""__repr__(SingletonContainerSet self) -> std::string"""
2948 return _IMP_container.SingletonContainerSet___repr__(self)
2952 return _object_cast_to_SingletonContainerSet(o)
2956 _IMP_container.SingletonContainerSet_swigregister(SingletonContainerSet)
2958 r"""Proxy of C++ IMP::container::SingletonsConstraint class."""
2960 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2962 def __init__(self, *args):
2964 __init__(SingletonsConstraint self, SingletonModifier before, SingletonModifier after, _SingletonContainerAdaptor c, std::string name="SingletonsConstraint %1%") -> SingletonsConstraint
2965 __init__(SingletonsConstraint self) -> SingletonsConstraint
2967 _IMP_container.SingletonsConstraint_swiginit(self, _IMP_container.new_SingletonsConstraint(*args))
2969 def get_before_modifier(self):
2970 r"""get_before_modifier(SingletonsConstraint self) -> SingletonModifier"""
2971 return _IMP_container.SingletonsConstraint_get_before_modifier(self)
2973 def get_container(self):
2974 r"""get_container(SingletonsConstraint self) -> SingletonContainer"""
2975 return _IMP_container.SingletonsConstraint_get_container(self)
2977 def get_version_info(self):
2978 r"""get_version_info(SingletonsConstraint self) -> VersionInfo"""
2979 return _IMP_container.SingletonsConstraint_get_version_info(self)
2980 __swig_destroy__ = _IMP_container.delete_SingletonsConstraint
2983 r"""__str__(SingletonsConstraint self) -> std::string"""
2984 return _IMP_container.SingletonsConstraint___str__(self)
2987 r"""__repr__(SingletonsConstraint self) -> std::string"""
2988 return _IMP_container.SingletonsConstraint___repr__(self)
2992 return _object_cast_to_SingletonsConstraint(o)
2995 def _get_as_binary(self):
2996 r"""_get_as_binary(SingletonsConstraint self) -> PyObject *"""
2997 return _IMP_container.SingletonsConstraint__get_as_binary(self)
2999 def _set_from_binary(self, p):
3000 r"""_set_from_binary(SingletonsConstraint self, PyObject * p)"""
3001 return _IMP_container.SingletonsConstraint__set_from_binary(self, p)
3003 def __getstate__(self):
3004 p = self._get_as_binary()
3005 if len(self.__dict__) > 1:
3006 d = self.__dict__.copy()
3011 def __setstate__(self, p):
3012 if not hasattr(self,
'this'):
3014 if isinstance(p, tuple):
3016 self.__dict__.update(d)
3017 return self._set_from_binary(p)
3021 from .
import _jax_util
3022 return _jax_util._get_jax_container_constraint(self)
3026 _IMP_container.SingletonsConstraint_swigregister(SingletonsConstraint)
3028 r"""Proxy of C++ IMP::container::SingletonsOptimizerState class."""
3030 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3032 def __init__(self, *args):
3033 r"""__init__(SingletonsOptimizerState self, _SingletonContainerAdaptor c, SingletonModifier gf, std::string name="SingletonsOptimizerState %1%") -> SingletonsOptimizerState"""
3034 _IMP_container.SingletonsOptimizerState_swiginit(self, _IMP_container.new_SingletonsOptimizerState(*args))
3036 def do_update(self, call):
3037 r"""do_update(SingletonsOptimizerState self, unsigned int call)"""
3038 return _IMP_container.SingletonsOptimizerState_do_update(self, call)
3040 def get_version_info(self):
3041 r"""get_version_info(SingletonsOptimizerState self) -> VersionInfo"""
3042 return _IMP_container.SingletonsOptimizerState_get_version_info(self)
3043 __swig_destroy__ = _IMP_container.delete_SingletonsOptimizerState
3046 r"""__str__(SingletonsOptimizerState self) -> std::string"""
3047 return _IMP_container.SingletonsOptimizerState___str__(self)
3050 r"""__repr__(SingletonsOptimizerState self) -> std::string"""
3051 return _IMP_container.SingletonsOptimizerState___repr__(self)
3055 return _object_cast_to_SingletonsOptimizerState(o)
3059 _IMP_container.SingletonsOptimizerState_swigregister(SingletonsOptimizerState)
3061 r"""Proxy of C++ IMP::container::SingletonsRestraint class."""
3063 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3065 def __init__(self, *args):
3067 __init__(SingletonsRestraint self, SingletonScore ss, _SingletonContainerAdaptor pc, std::string name="SingletonsRestraint %1%") -> SingletonsRestraint
3068 __init__(SingletonsRestraint self) -> SingletonsRestraint
3070 _IMP_container.SingletonsRestraint_swiginit(self, _IMP_container.new_SingletonsRestraint(*args))
3072 def get_score_object(self):
3073 r"""get_score_object(SingletonsRestraint self) -> SingletonScore"""
3074 return _IMP_container.SingletonsRestraint_get_score_object(self)
3076 def get_container(self):
3077 r"""get_container(SingletonsRestraint self) -> SingletonContainer"""
3078 return _IMP_container.SingletonsRestraint_get_container(self)
3080 def do_get_inputs(self):
3081 r"""do_get_inputs(SingletonsRestraint self) -> IMP::ModelObjectsTemp"""
3082 return _IMP_container.SingletonsRestraint_do_get_inputs(self)
3084 def get_version_info(self):
3085 r"""get_version_info(SingletonsRestraint self) -> VersionInfo"""
3086 return _IMP_container.SingletonsRestraint_get_version_info(self)
3087 __swig_destroy__ = _IMP_container.delete_SingletonsRestraint
3090 r"""__str__(SingletonsRestraint self) -> std::string"""
3091 return _IMP_container.SingletonsRestraint___str__(self)
3094 r"""__repr__(SingletonsRestraint self) -> std::string"""
3095 return _IMP_container.SingletonsRestraint___repr__(self)
3099 return _object_cast_to_SingletonsRestraint(o)
3102 def _get_as_binary(self):
3103 r"""_get_as_binary(SingletonsRestraint self) -> PyObject *"""
3104 return _IMP_container.SingletonsRestraint__get_as_binary(self)
3106 def _set_from_binary(self, p):
3107 r"""_set_from_binary(SingletonsRestraint self, PyObject * p)"""
3108 return _IMP_container.SingletonsRestraint__set_from_binary(self, p)
3110 def __getstate__(self):
3111 p = self._get_as_binary()
3112 if len(self.__dict__) > 1:
3113 d = self.__dict__.copy()
3118 def __setstate__(self, p):
3119 if not hasattr(self,
'this'):
3121 if isinstance(p, tuple):
3123 self.__dict__.update(d)
3124 return self._set_from_binary(p)
3128 from .
import _jax_util
3129 return _jax_util._get_jax_container_restraint(self)
3133 _IMP_container.SingletonsRestraint_swigregister(SingletonsRestraint)
3135 r"""Proxy of C++ IMP::container::TripletContainerSet class."""
3137 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3139 def __init__(self, *args):
3141 __init__(TripletContainerSet self, Model m, std::string name="TripletContainerSet %1%") -> TripletContainerSet
3142 __init__(TripletContainerSet self, IMP::TripletContainersTemp const & pc, std::string name="TripletContainerSet %1%") -> TripletContainerSet
3144 _IMP_container.TripletContainerSet_swiginit(self, _IMP_container.new_TripletContainerSet(*args))
3146 def do_apply(self, sm):
3147 r"""do_apply(TripletContainerSet self, TripletModifier sm)"""
3148 return _IMP_container.TripletContainerSet_do_apply(self, sm)
3150 def do_apply_moved(self, sm, moved_pis, reset_pis):
3151 r"""do_apply_moved(TripletContainerSet self, TripletModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
3152 return _IMP_container.TripletContainerSet_do_apply_moved(self, sm, moved_pis, reset_pis)
3154 def get_version_info(self):
3155 r"""get_version_info(TripletContainerSet self) -> VersionInfo"""
3156 return _IMP_container.TripletContainerSet_get_version_info(self)
3157 __swig_destroy__ = _IMP_container.delete_TripletContainerSet
3158 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)
3159 def __set_triplet_containers(self, obj): IMP._list_util.set_varlist(self.triplet_containers, obj)
3160 def __del_triplet_containers(self): IMP._list_util.del_varlist(self.triplet_containers)
3161 triplet_containers = property(__get_triplet_containers, __set_triplet_containers, __del_triplet_containers, doc=
"List of ##ucnames")
3163 def remove_triplet_container(self, d):
3164 r"""remove_triplet_container(TripletContainerSet self, TripletContainer d)"""
3165 return _IMP_container.TripletContainerSet_remove_triplet_container(self, d)
3167 def _python_index_triplet_container(self, d, start, stop):
3168 r"""_python_index_triplet_container(TripletContainerSet self, TripletContainer d, unsigned int start, unsigned int stop) -> unsigned int"""
3169 return _IMP_container.TripletContainerSet__python_index_triplet_container(self, d, start, stop)
3171 def remove_triplet_containers(self, d):
3172 r"""remove_triplet_containers(TripletContainerSet self, IMP::TripletContainers const & d)"""
3173 return _IMP_container.TripletContainerSet_remove_triplet_containers(self, d)
3175 def set_triplet_containers(self, ps):
3176 r"""set_triplet_containers(TripletContainerSet self, IMP::TripletContainers const & ps)"""
3177 return _IMP_container.TripletContainerSet_set_triplet_containers(self, ps)
3179 def set_triplet_containers_order(self, objs):
3180 r"""set_triplet_containers_order(TripletContainerSet self, IMP::TripletContainers const & objs)"""
3181 return _IMP_container.TripletContainerSet_set_triplet_containers_order(self, objs)
3183 def add_triplet_container(self, obj):
3184 r"""add_triplet_container(TripletContainerSet self, TripletContainer obj) -> unsigned int"""
3185 return _IMP_container.TripletContainerSet_add_triplet_container(self, obj)
3187 def add_triplet_containers(self, objs):
3188 r"""add_triplet_containers(TripletContainerSet self, IMP::TripletContainers const & objs)"""
3189 return _IMP_container.TripletContainerSet_add_triplet_containers(self, objs)
3191 def clear_triplet_containers(self):
3192 r"""clear_triplet_containers(TripletContainerSet self)"""
3193 return _IMP_container.TripletContainerSet_clear_triplet_containers(self)
3195 def get_number_of_triplet_containers(self):
3196 r"""get_number_of_triplet_containers(TripletContainerSet self) -> unsigned int"""
3197 return _IMP_container.TripletContainerSet_get_number_of_triplet_containers(self)
3199 def get_has_triplet_containers(self):
3200 r"""get_has_triplet_containers(TripletContainerSet self) -> bool"""
3201 return _IMP_container.TripletContainerSet_get_has_triplet_containers(self)
3203 def get_triplet_container(self, i):
3204 r"""get_triplet_container(TripletContainerSet self, unsigned int i) -> TripletContainer"""
3205 return _IMP_container.TripletContainerSet_get_triplet_container(self, i)
3207 def get_triplet_containers(self):
3208 r"""get_triplet_containers(TripletContainerSet self) -> IMP::TripletContainers"""
3209 return _IMP_container.TripletContainerSet_get_triplet_containers(self)
3211 def erase_triplet_container(self, i):
3212 r"""erase_triplet_container(TripletContainerSet self, unsigned int i)"""
3213 return _IMP_container.TripletContainerSet_erase_triplet_container(self, i)
3215 def reserve_triplet_containers(self, sz):
3216 r"""reserve_triplet_containers(TripletContainerSet self, unsigned int sz)"""
3217 return _IMP_container.TripletContainerSet_reserve_triplet_containers(self, sz)
3219 def do_get_inputs(self):
3220 r"""do_get_inputs(TripletContainerSet self) -> IMP::ModelObjectsTemp"""
3221 return _IMP_container.TripletContainerSet_do_get_inputs(self)
3224 r"""__str__(TripletContainerSet self) -> std::string"""
3225 return _IMP_container.TripletContainerSet___str__(self)
3228 r"""__repr__(TripletContainerSet self) -> std::string"""
3229 return _IMP_container.TripletContainerSet___repr__(self)
3233 return _object_cast_to_TripletContainerSet(o)
3237 _IMP_container.TripletContainerSet_swigregister(TripletContainerSet)
3239 r"""Proxy of C++ IMP::container::TripletsConstraint class."""
3241 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3243 def __init__(self, *args):
3245 __init__(TripletsConstraint self, TripletModifier before, TripletModifier after, _TripletContainerAdaptor c, std::string name="TripletsConstraint %1%") -> TripletsConstraint
3246 __init__(TripletsConstraint self) -> TripletsConstraint
3248 _IMP_container.TripletsConstraint_swiginit(self, _IMP_container.new_TripletsConstraint(*args))
3250 def get_before_modifier(self):
3251 r"""get_before_modifier(TripletsConstraint self) -> TripletModifier"""
3252 return _IMP_container.TripletsConstraint_get_before_modifier(self)
3254 def get_container(self):
3255 r"""get_container(TripletsConstraint self) -> TripletContainer"""
3256 return _IMP_container.TripletsConstraint_get_container(self)
3258 def get_version_info(self):
3259 r"""get_version_info(TripletsConstraint self) -> VersionInfo"""
3260 return _IMP_container.TripletsConstraint_get_version_info(self)
3261 __swig_destroy__ = _IMP_container.delete_TripletsConstraint
3264 r"""__str__(TripletsConstraint self) -> std::string"""
3265 return _IMP_container.TripletsConstraint___str__(self)
3268 r"""__repr__(TripletsConstraint self) -> std::string"""
3269 return _IMP_container.TripletsConstraint___repr__(self)
3273 return _object_cast_to_TripletsConstraint(o)
3276 def _get_as_binary(self):
3277 r"""_get_as_binary(TripletsConstraint self) -> PyObject *"""
3278 return _IMP_container.TripletsConstraint__get_as_binary(self)
3280 def _set_from_binary(self, p):
3281 r"""_set_from_binary(TripletsConstraint self, PyObject * p)"""
3282 return _IMP_container.TripletsConstraint__set_from_binary(self, p)
3284 def __getstate__(self):
3285 p = self._get_as_binary()
3286 if len(self.__dict__) > 1:
3287 d = self.__dict__.copy()
3292 def __setstate__(self, p):
3293 if not hasattr(self,
'this'):
3295 if isinstance(p, tuple):
3297 self.__dict__.update(d)
3298 return self._set_from_binary(p)
3302 _IMP_container.TripletsConstraint_swigregister(TripletsConstraint)
3304 r"""Proxy of C++ IMP::container::TripletsOptimizerState class."""
3306 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3308 def __init__(self, *args):
3309 r"""__init__(TripletsOptimizerState self, _TripletContainerAdaptor c, TripletModifier gf, std::string name="TripletsOptimizerState %1%") -> TripletsOptimizerState"""
3310 _IMP_container.TripletsOptimizerState_swiginit(self, _IMP_container.new_TripletsOptimizerState(*args))
3312 def do_update(self, call):
3313 r"""do_update(TripletsOptimizerState self, unsigned int call)"""
3314 return _IMP_container.TripletsOptimizerState_do_update(self, call)
3316 def get_version_info(self):
3317 r"""get_version_info(TripletsOptimizerState self) -> VersionInfo"""
3318 return _IMP_container.TripletsOptimizerState_get_version_info(self)
3319 __swig_destroy__ = _IMP_container.delete_TripletsOptimizerState
3322 r"""__str__(TripletsOptimizerState self) -> std::string"""
3323 return _IMP_container.TripletsOptimizerState___str__(self)
3326 r"""__repr__(TripletsOptimizerState self) -> std::string"""
3327 return _IMP_container.TripletsOptimizerState___repr__(self)
3331 return _object_cast_to_TripletsOptimizerState(o)
3335 _IMP_container.TripletsOptimizerState_swigregister(TripletsOptimizerState)
3337 r"""Proxy of C++ IMP::container::TripletsRestraint class."""
3339 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3341 def __init__(self, *args):
3343 __init__(TripletsRestraint self, TripletScore ss, _TripletContainerAdaptor pc, std::string name="TripletsRestraint %1%") -> TripletsRestraint
3344 __init__(TripletsRestraint self) -> TripletsRestraint
3346 _IMP_container.TripletsRestraint_swiginit(self, _IMP_container.new_TripletsRestraint(*args))
3348 def get_score_object(self):
3349 r"""get_score_object(TripletsRestraint self) -> TripletScore"""
3350 return _IMP_container.TripletsRestraint_get_score_object(self)
3352 def get_container(self):
3353 r"""get_container(TripletsRestraint self) -> TripletContainer"""
3354 return _IMP_container.TripletsRestraint_get_container(self)
3356 def do_get_inputs(self):
3357 r"""do_get_inputs(TripletsRestraint self) -> IMP::ModelObjectsTemp"""
3358 return _IMP_container.TripletsRestraint_do_get_inputs(self)
3360 def get_version_info(self):
3361 r"""get_version_info(TripletsRestraint self) -> VersionInfo"""
3362 return _IMP_container.TripletsRestraint_get_version_info(self)
3363 __swig_destroy__ = _IMP_container.delete_TripletsRestraint
3366 r"""__str__(TripletsRestraint self) -> std::string"""
3367 return _IMP_container.TripletsRestraint___str__(self)
3370 r"""__repr__(TripletsRestraint self) -> std::string"""
3371 return _IMP_container.TripletsRestraint___repr__(self)
3375 return _object_cast_to_TripletsRestraint(o)
3378 def _get_as_binary(self):
3379 r"""_get_as_binary(TripletsRestraint self) -> PyObject *"""
3380 return _IMP_container.TripletsRestraint__get_as_binary(self)
3382 def _set_from_binary(self, p):
3383 r"""_set_from_binary(TripletsRestraint self, PyObject * p)"""
3384 return _IMP_container.TripletsRestraint__set_from_binary(self, p)
3386 def __getstate__(self):
3387 p = self._get_as_binary()
3388 if len(self.__dict__) > 1:
3389 d = self.__dict__.copy()
3394 def __setstate__(self, p):
3395 if not hasattr(self,
'this'):
3397 if isinstance(p, tuple):
3399 self.__dict__.update(d)
3400 return self._set_from_binary(p)
3404 _IMP_container.TripletsRestraint_swigregister(TripletsRestraint)
3406 r"""Proxy of C++ IMP::container::InContainerSingletonFilter class."""
3408 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3410 def __init__(self, *args):
3412 __init__(InContainerSingletonFilter self, SingletonContainer c, std::string name="SingletonFilter %1%") -> InContainerSingletonFilter
3413 __init__(InContainerSingletonFilter self, SingletonContainer c, bool handle_permutations, std::string name="SingletonFilter %1%") -> InContainerSingletonFilter
3415 _IMP_container.InContainerSingletonFilter_swiginit(self, _IMP_container.new_InContainerSingletonFilter(*args))
3417 def do_get_inputs(self, m, pi):
3418 r"""do_get_inputs(InContainerSingletonFilter self, Model m, IMP::ParticleIndexes const & pi) -> IMP::ModelObjectsTemp"""
3419 return _IMP_container.InContainerSingletonFilter_do_get_inputs(self, m, pi)
3421 def get_value(self, *args):
3423 get_value(InContainerSingletonFilter self, Particle a) -> int
3424 get_value(InContainerSingletonFilter self, IMP::ParticlesTemp const & o) -> IMP::Ints
3426 return _IMP_container.InContainerSingletonFilter_get_value(self, *args)
3428 def get_value_index(self, *args):
3430 get_value_index(InContainerSingletonFilter self, Model arg2, ParticleIndex vt) -> int
3431 get_value_index(InContainerSingletonFilter self, Model m, IMP::ParticleIndexes const & o) -> IMP::Ints
3433 return _IMP_container.InContainerSingletonFilter_get_value_index(self, *args)
3435 def get_version_info(self):
3436 r"""get_version_info(InContainerSingletonFilter self) -> VersionInfo"""
3437 return _IMP_container.InContainerSingletonFilter_get_version_info(self)
3438 __swig_destroy__ = _IMP_container.delete_InContainerSingletonFilter
3441 r"""__str__(InContainerSingletonFilter self) -> std::string"""
3442 return _IMP_container.InContainerSingletonFilter___str__(self)
3445 r"""__repr__(InContainerSingletonFilter self) -> std::string"""
3446 return _IMP_container.InContainerSingletonFilter___repr__(self)
3450 return _object_cast_to_InContainerSingletonFilter(o)
3454 _IMP_container.InContainerSingletonFilter_swigregister(InContainerSingletonFilter)
3456 r"""Proxy of C++ IMP::container::InContainerPairFilter class."""
3458 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3460 def __init__(self, *args):
3462 __init__(InContainerPairFilter self, PairContainer c, std::string name="PairFilter %1%") -> InContainerPairFilter
3463 __init__(InContainerPairFilter self, PairContainer c, bool handle_permutations, std::string name="PairFilter %1%") -> InContainerPairFilter
3465 _IMP_container.InContainerPairFilter_swiginit(self, _IMP_container.new_InContainerPairFilter(*args))
3467 def do_get_inputs(self, m, pi):
3468 r"""do_get_inputs(InContainerPairFilter self, Model m, IMP::ParticleIndexes const & pi) -> IMP::ModelObjectsTemp"""
3469 return _IMP_container.InContainerPairFilter_do_get_inputs(self, m, pi)
3471 def get_value(self, *args):
3473 get_value(InContainerPairFilter self, IMP::ParticlePair const & a) -> int
3474 get_value(InContainerPairFilter self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
3476 return _IMP_container.InContainerPairFilter_get_value(self, *args)
3478 def get_value_index(self, *args):
3480 get_value_index(InContainerPairFilter self, Model arg2, IMP::ParticleIndexPair const & vt) -> int
3481 get_value_index(InContainerPairFilter self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
3483 return _IMP_container.InContainerPairFilter_get_value_index(self, *args)
3485 def get_version_info(self):
3486 r"""get_version_info(InContainerPairFilter self) -> VersionInfo"""
3487 return _IMP_container.InContainerPairFilter_get_version_info(self)
3488 __swig_destroy__ = _IMP_container.delete_InContainerPairFilter
3491 r"""__str__(InContainerPairFilter self) -> std::string"""
3492 return _IMP_container.InContainerPairFilter___str__(self)
3495 r"""__repr__(InContainerPairFilter self) -> std::string"""
3496 return _IMP_container.InContainerPairFilter___repr__(self)
3500 return _object_cast_to_InContainerPairFilter(o)
3504 _IMP_container.InContainerPairFilter_swigregister(InContainerPairFilter)
3506 r"""Proxy of C++ IMP::container::InContainerTripletFilter class."""
3508 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3510 def __init__(self, *args):
3512 __init__(InContainerTripletFilter self, TripletContainer c, std::string name="TripletFilter %1%") -> InContainerTripletFilter
3513 __init__(InContainerTripletFilter self, TripletContainer c, bool handle_permutations, std::string name="TripletFilter %1%") -> InContainerTripletFilter
3515 _IMP_container.InContainerTripletFilter_swiginit(self, _IMP_container.new_InContainerTripletFilter(*args))
3517 def do_get_inputs(self, m, pi):
3518 r"""do_get_inputs(InContainerTripletFilter self, Model m, IMP::ParticleIndexes const & pi) -> IMP::ModelObjectsTemp"""
3519 return _IMP_container.InContainerTripletFilter_do_get_inputs(self, m, pi)
3521 def get_value(self, *args):
3523 get_value(InContainerTripletFilter self, IMP::ParticleTriplet const & a) -> int
3524 get_value(InContainerTripletFilter self, IMP::ParticleTripletsTemp const & o) -> IMP::Ints
3526 return _IMP_container.InContainerTripletFilter_get_value(self, *args)
3528 def get_value_index(self, *args):
3530 get_value_index(InContainerTripletFilter self, Model arg2, IMP::ParticleIndexTriplet const & vt) -> int
3531 get_value_index(InContainerTripletFilter self, Model m, IMP::ParticleIndexTriplets const & o) -> IMP::Ints
3533 return _IMP_container.InContainerTripletFilter_get_value_index(self, *args)
3535 def get_version_info(self):
3536 r"""get_version_info(InContainerTripletFilter self) -> VersionInfo"""
3537 return _IMP_container.InContainerTripletFilter_get_version_info(self)
3538 __swig_destroy__ = _IMP_container.delete_InContainerTripletFilter
3541 r"""__str__(InContainerTripletFilter self) -> std::string"""
3542 return _IMP_container.InContainerTripletFilter___str__(self)
3545 r"""__repr__(InContainerTripletFilter self) -> std::string"""
3546 return _IMP_container.InContainerTripletFilter___repr__(self)
3550 return _object_cast_to_InContainerTripletFilter(o)
3554 _IMP_container.InContainerTripletFilter_swigregister(InContainerTripletFilter)
3556 r"""Proxy of C++ IMP::container::InContainerQuadFilter class."""
3558 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3560 def __init__(self, *args):
3562 __init__(InContainerQuadFilter self, QuadContainer c, std::string name="QuadFilter %1%") -> InContainerQuadFilter
3563 __init__(InContainerQuadFilter self, QuadContainer c, bool handle_permutations, std::string name="QuadFilter %1%") -> InContainerQuadFilter
3565 _IMP_container.InContainerQuadFilter_swiginit(self, _IMP_container.new_InContainerQuadFilter(*args))
3567 def do_get_inputs(self, m, pi):
3568 r"""do_get_inputs(InContainerQuadFilter self, Model m, IMP::ParticleIndexes const & pi) -> IMP::ModelObjectsTemp"""
3569 return _IMP_container.InContainerQuadFilter_do_get_inputs(self, m, pi)
3571 def get_value(self, *args):
3573 get_value(InContainerQuadFilter self, IMP::ParticleQuad const & a) -> int
3574 get_value(InContainerQuadFilter self, IMP::ParticleQuadsTemp const & o) -> IMP::Ints
3576 return _IMP_container.InContainerQuadFilter_get_value(self, *args)
3578 def get_value_index(self, *args):
3580 get_value_index(InContainerQuadFilter self, Model arg2, IMP::ParticleIndexQuad const & vt) -> int
3581 get_value_index(InContainerQuadFilter self, Model m, IMP::ParticleIndexQuads const & o) -> IMP::Ints
3583 return _IMP_container.InContainerQuadFilter_get_value_index(self, *args)
3585 def get_version_info(self):
3586 r"""get_version_info(InContainerQuadFilter self) -> VersionInfo"""
3587 return _IMP_container.InContainerQuadFilter_get_version_info(self)
3588 __swig_destroy__ = _IMP_container.delete_InContainerQuadFilter
3591 r"""__str__(InContainerQuadFilter self) -> std::string"""
3592 return _IMP_container.InContainerQuadFilter___str__(self)
3595 r"""__repr__(InContainerQuadFilter self) -> std::string"""
3596 return _IMP_container.InContainerQuadFilter___repr__(self)
3600 return _object_cast_to_InContainerQuadFilter(o)
3604 _IMP_container.InContainerQuadFilter_swigregister(InContainerQuadFilter)
3606 r"""Proxy of C++ IMP::container::SingletonContainerStatistics class."""
3608 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3610 def __init__(self, c):
3611 r"""__init__(SingletonContainerStatistics self, _SingletonContainerAdaptor c) -> SingletonContainerStatistics"""
3612 _IMP_container.SingletonContainerStatistics_swiginit(self, _IMP_container.new_SingletonContainerStatistics(c))
3614 def show_statistics(self, out):
3615 r"""show_statistics(SingletonContainerStatistics self, _ostream out)"""
3616 return _IMP_container.SingletonContainerStatistics_show_statistics(self, out)
3618 def set_track_unique(self, tf):
3619 r"""set_track_unique(SingletonContainerStatistics self, bool tf)"""
3620 return _IMP_container.SingletonContainerStatistics_set_track_unique(self, tf)
3622 def do_before_evaluate(self):
3623 r"""do_before_evaluate(SingletonContainerStatistics self)"""
3624 return _IMP_container.SingletonContainerStatistics_do_before_evaluate(self)
3626 def do_after_evaluate(self, da):
3627 r"""do_after_evaluate(SingletonContainerStatistics self, DerivativeAccumulator da)"""
3628 return _IMP_container.SingletonContainerStatistics_do_after_evaluate(self, da)
3630 def do_get_inputs(self):
3631 r"""do_get_inputs(SingletonContainerStatistics self) -> IMP::ModelObjectsTemp"""
3632 return _IMP_container.SingletonContainerStatistics_do_get_inputs(self)
3634 def do_get_outputs(self):
3635 r"""do_get_outputs(SingletonContainerStatistics self) -> IMP::ModelObjectsTemp"""
3636 return _IMP_container.SingletonContainerStatistics_do_get_outputs(self)
3638 def get_version_info(self):
3639 r"""get_version_info(SingletonContainerStatistics self) -> VersionInfo"""
3640 return _IMP_container.SingletonContainerStatistics_get_version_info(self)
3641 __swig_destroy__ = _IMP_container.delete_SingletonContainerStatistics
3644 r"""__str__(SingletonContainerStatistics self) -> std::string"""
3645 return _IMP_container.SingletonContainerStatistics___str__(self)
3648 r"""__repr__(SingletonContainerStatistics self) -> std::string"""
3649 return _IMP_container.SingletonContainerStatistics___repr__(self)
3653 return _object_cast_to_SingletonContainerStatistics(o)
3657 _IMP_container.SingletonContainerStatistics_swigregister(SingletonContainerStatistics)
3659 r"""Proxy of C++ IMP::container::PairContainerStatistics class."""
3661 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3663 def __init__(self, c):
3664 r"""__init__(PairContainerStatistics self, _PairContainerAdaptor c) -> PairContainerStatistics"""
3665 _IMP_container.PairContainerStatistics_swiginit(self, _IMP_container.new_PairContainerStatistics(c))
3667 def show_statistics(self, out):
3668 r"""show_statistics(PairContainerStatistics self, _ostream out)"""
3669 return _IMP_container.PairContainerStatistics_show_statistics(self, out)
3671 def set_track_unique(self, tf):
3672 r"""set_track_unique(PairContainerStatistics self, bool tf)"""
3673 return _IMP_container.PairContainerStatistics_set_track_unique(self, tf)
3675 def do_before_evaluate(self):
3676 r"""do_before_evaluate(PairContainerStatistics self)"""
3677 return _IMP_container.PairContainerStatistics_do_before_evaluate(self)
3679 def do_after_evaluate(self, da):
3680 r"""do_after_evaluate(PairContainerStatistics self, DerivativeAccumulator da)"""
3681 return _IMP_container.PairContainerStatistics_do_after_evaluate(self, da)
3683 def do_get_inputs(self):
3684 r"""do_get_inputs(PairContainerStatistics self) -> IMP::ModelObjectsTemp"""
3685 return _IMP_container.PairContainerStatistics_do_get_inputs(self)
3687 def do_get_outputs(self):
3688 r"""do_get_outputs(PairContainerStatistics self) -> IMP::ModelObjectsTemp"""
3689 return _IMP_container.PairContainerStatistics_do_get_outputs(self)
3691 def get_version_info(self):
3692 r"""get_version_info(PairContainerStatistics self) -> VersionInfo"""
3693 return _IMP_container.PairContainerStatistics_get_version_info(self)
3694 __swig_destroy__ = _IMP_container.delete_PairContainerStatistics
3697 r"""__str__(PairContainerStatistics self) -> std::string"""
3698 return _IMP_container.PairContainerStatistics___str__(self)
3701 r"""__repr__(PairContainerStatistics self) -> std::string"""
3702 return _IMP_container.PairContainerStatistics___repr__(self)
3706 return _object_cast_to_PairContainerStatistics(o)
3710 _IMP_container.PairContainerStatistics_swigregister(PairContainerStatistics)
3712 r"""Proxy of C++ IMP::container::TripletContainerStatistics class."""
3714 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3716 def __init__(self, c):
3717 r"""__init__(TripletContainerStatistics self, _TripletContainerAdaptor c) -> TripletContainerStatistics"""
3718 _IMP_container.TripletContainerStatistics_swiginit(self, _IMP_container.new_TripletContainerStatistics(c))
3720 def show_statistics(self, out):
3721 r"""show_statistics(TripletContainerStatistics self, _ostream out)"""
3722 return _IMP_container.TripletContainerStatistics_show_statistics(self, out)
3724 def set_track_unique(self, tf):
3725 r"""set_track_unique(TripletContainerStatistics self, bool tf)"""
3726 return _IMP_container.TripletContainerStatistics_set_track_unique(self, tf)
3728 def do_before_evaluate(self):
3729 r"""do_before_evaluate(TripletContainerStatistics self)"""
3730 return _IMP_container.TripletContainerStatistics_do_before_evaluate(self)
3732 def do_after_evaluate(self, da):
3733 r"""do_after_evaluate(TripletContainerStatistics self, DerivativeAccumulator da)"""
3734 return _IMP_container.TripletContainerStatistics_do_after_evaluate(self, da)
3736 def do_get_inputs(self):
3737 r"""do_get_inputs(TripletContainerStatistics self) -> IMP::ModelObjectsTemp"""
3738 return _IMP_container.TripletContainerStatistics_do_get_inputs(self)
3740 def do_get_outputs(self):
3741 r"""do_get_outputs(TripletContainerStatistics self) -> IMP::ModelObjectsTemp"""
3742 return _IMP_container.TripletContainerStatistics_do_get_outputs(self)
3744 def get_version_info(self):
3745 r"""get_version_info(TripletContainerStatistics self) -> VersionInfo"""
3746 return _IMP_container.TripletContainerStatistics_get_version_info(self)
3747 __swig_destroy__ = _IMP_container.delete_TripletContainerStatistics
3750 r"""__str__(TripletContainerStatistics self) -> std::string"""
3751 return _IMP_container.TripletContainerStatistics___str__(self)
3754 r"""__repr__(TripletContainerStatistics self) -> std::string"""
3755 return _IMP_container.TripletContainerStatistics___repr__(self)
3759 return _object_cast_to_TripletContainerStatistics(o)
3763 _IMP_container.TripletContainerStatistics_swigregister(TripletContainerStatistics)
3765 r"""Proxy of C++ IMP::container::QuadContainerStatistics class."""
3767 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3769 def __init__(self, c):
3770 r"""__init__(QuadContainerStatistics self, _QuadContainerAdaptor c) -> QuadContainerStatistics"""
3771 _IMP_container.QuadContainerStatistics_swiginit(self, _IMP_container.new_QuadContainerStatistics(c))
3773 def show_statistics(self, out):
3774 r"""show_statistics(QuadContainerStatistics self, _ostream out)"""
3775 return _IMP_container.QuadContainerStatistics_show_statistics(self, out)
3777 def set_track_unique(self, tf):
3778 r"""set_track_unique(QuadContainerStatistics self, bool tf)"""
3779 return _IMP_container.QuadContainerStatistics_set_track_unique(self, tf)
3781 def do_before_evaluate(self):
3782 r"""do_before_evaluate(QuadContainerStatistics self)"""
3783 return _IMP_container.QuadContainerStatistics_do_before_evaluate(self)
3785 def do_after_evaluate(self, da):
3786 r"""do_after_evaluate(QuadContainerStatistics self, DerivativeAccumulator da)"""
3787 return _IMP_container.QuadContainerStatistics_do_after_evaluate(self, da)
3789 def do_get_inputs(self):
3790 r"""do_get_inputs(QuadContainerStatistics self) -> IMP::ModelObjectsTemp"""
3791 return _IMP_container.QuadContainerStatistics_do_get_inputs(self)
3793 def do_get_outputs(self):
3794 r"""do_get_outputs(QuadContainerStatistics self) -> IMP::ModelObjectsTemp"""
3795 return _IMP_container.QuadContainerStatistics_do_get_outputs(self)
3797 def get_version_info(self):
3798 r"""get_version_info(QuadContainerStatistics self) -> VersionInfo"""
3799 return _IMP_container.QuadContainerStatistics_get_version_info(self)
3800 __swig_destroy__ = _IMP_container.delete_QuadContainerStatistics
3803 r"""__str__(QuadContainerStatistics self) -> std::string"""
3804 return _IMP_container.QuadContainerStatistics___str__(self)
3807 r"""__repr__(QuadContainerStatistics self) -> std::string"""
3808 return _IMP_container.QuadContainerStatistics___repr__(self)
3812 return _object_cast_to_QuadContainerStatistics(o)
3816 _IMP_container.QuadContainerStatistics_swigregister(QuadContainerStatistics)
3818 r"""Proxy of C++ IMP::container::EventSingletonsOptimizerState class."""
3820 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3822 def __init__(self, *args):
3823 r"""__init__(EventSingletonsOptimizerState self, SingletonPredicate pred, _SingletonContainerAdaptor container, int value, int min_count, int max_count, std::string name="ConstSingletonPredicate%1%") -> EventSingletonsOptimizerState"""
3824 _IMP_container.EventSingletonsOptimizerState_swiginit(self, _IMP_container.new_EventSingletonsOptimizerState(*args))
3826 def do_update(self, call):
3827 r"""do_update(EventSingletonsOptimizerState self, unsigned int call)"""
3828 return _IMP_container.EventSingletonsOptimizerState_do_update(self, call)
3830 def get_version_info(self):
3831 r"""get_version_info(EventSingletonsOptimizerState self) -> VersionInfo"""
3832 return _IMP_container.EventSingletonsOptimizerState_get_version_info(self)
3833 __swig_destroy__ = _IMP_container.delete_EventSingletonsOptimizerState
3836 r"""__str__(EventSingletonsOptimizerState self) -> std::string"""
3837 return _IMP_container.EventSingletonsOptimizerState___str__(self)
3840 r"""__repr__(EventSingletonsOptimizerState self) -> std::string"""
3841 return _IMP_container.EventSingletonsOptimizerState___repr__(self)
3845 return _object_cast_to_EventSingletonsOptimizerState(o)
3849 _IMP_container.EventSingletonsOptimizerState_swigregister(EventSingletonsOptimizerState)
3851 r"""Proxy of C++ IMP::container::EventPairsOptimizerState class."""
3853 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3855 def __init__(self, *args):
3856 r"""__init__(EventPairsOptimizerState self, PairPredicate pred, _PairContainerAdaptor container, int value, int min_count, int max_count, std::string name="ConstPairPredicate%1%") -> EventPairsOptimizerState"""
3857 _IMP_container.EventPairsOptimizerState_swiginit(self, _IMP_container.new_EventPairsOptimizerState(*args))
3859 def do_update(self, call):
3860 r"""do_update(EventPairsOptimizerState self, unsigned int call)"""
3861 return _IMP_container.EventPairsOptimizerState_do_update(self, call)
3863 def get_version_info(self):
3864 r"""get_version_info(EventPairsOptimizerState self) -> VersionInfo"""
3865 return _IMP_container.EventPairsOptimizerState_get_version_info(self)
3866 __swig_destroy__ = _IMP_container.delete_EventPairsOptimizerState
3869 r"""__str__(EventPairsOptimizerState self) -> std::string"""
3870 return _IMP_container.EventPairsOptimizerState___str__(self)
3873 r"""__repr__(EventPairsOptimizerState self) -> std::string"""
3874 return _IMP_container.EventPairsOptimizerState___repr__(self)
3878 return _object_cast_to_EventPairsOptimizerState(o)
3882 _IMP_container.EventPairsOptimizerState_swigregister(EventPairsOptimizerState)
3884 r"""Proxy of C++ IMP::container::EventTripletsOptimizerState class."""
3886 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3888 def __init__(self, *args):
3889 r"""__init__(EventTripletsOptimizerState self, TripletPredicate pred, _TripletContainerAdaptor container, int value, int min_count, int max_count, std::string name="ConstTripletPredicate%1%") -> EventTripletsOptimizerState"""
3890 _IMP_container.EventTripletsOptimizerState_swiginit(self, _IMP_container.new_EventTripletsOptimizerState(*args))
3892 def do_update(self, call):
3893 r"""do_update(EventTripletsOptimizerState self, unsigned int call)"""
3894 return _IMP_container.EventTripletsOptimizerState_do_update(self, call)
3896 def get_version_info(self):
3897 r"""get_version_info(EventTripletsOptimizerState self) -> VersionInfo"""
3898 return _IMP_container.EventTripletsOptimizerState_get_version_info(self)
3899 __swig_destroy__ = _IMP_container.delete_EventTripletsOptimizerState
3902 r"""__str__(EventTripletsOptimizerState self) -> std::string"""
3903 return _IMP_container.EventTripletsOptimizerState___str__(self)
3906 r"""__repr__(EventTripletsOptimizerState self) -> std::string"""
3907 return _IMP_container.EventTripletsOptimizerState___repr__(self)
3911 return _object_cast_to_EventTripletsOptimizerState(o)
3915 _IMP_container.EventTripletsOptimizerState_swigregister(EventTripletsOptimizerState)
3917 r"""Proxy of C++ IMP::container::EventQuadsOptimizerState class."""
3919 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3921 def __init__(self, *args):
3922 r"""__init__(EventQuadsOptimizerState self, QuadPredicate pred, _QuadContainerAdaptor container, int value, int min_count, int max_count, std::string name="ConstQuadPredicate%1%") -> EventQuadsOptimizerState"""
3923 _IMP_container.EventQuadsOptimizerState_swiginit(self, _IMP_container.new_EventQuadsOptimizerState(*args))
3925 def do_update(self, call):
3926 r"""do_update(EventQuadsOptimizerState self, unsigned int call)"""
3927 return _IMP_container.EventQuadsOptimizerState_do_update(self, call)
3929 def get_version_info(self):
3930 r"""get_version_info(EventQuadsOptimizerState self) -> VersionInfo"""
3931 return _IMP_container.EventQuadsOptimizerState_get_version_info(self)
3932 __swig_destroy__ = _IMP_container.delete_EventQuadsOptimizerState
3935 r"""__str__(EventQuadsOptimizerState self) -> std::string"""
3936 return _IMP_container.EventQuadsOptimizerState___str__(self)
3939 r"""__repr__(EventQuadsOptimizerState self) -> std::string"""
3940 return _IMP_container.EventQuadsOptimizerState___repr__(self)
3944 return _object_cast_to_EventQuadsOptimizerState(o)
3948 _IMP_container.EventQuadsOptimizerState_swigregister(EventQuadsOptimizerState)
3950 r"""Proxy of C++ IMP::container::PredicateSingletonsRestraint class."""
3952 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3954 def __init__(self, *args):
3956 __init__(PredicateSingletonsRestraint self, SingletonPredicate pred, _SingletonContainerAdaptor input, std::string name="PredicateSingletonsRestraint %1%") -> PredicateSingletonsRestraint
3957 __init__(PredicateSingletonsRestraint self) -> PredicateSingletonsRestraint
3959 _IMP_container.PredicateSingletonsRestraint_swiginit(self, _IMP_container.new_PredicateSingletonsRestraint(*args))
3961 def set_score(self, predicate_value, score):
3962 r"""set_score(PredicateSingletonsRestraint self, int predicate_value, SingletonScore score)"""
3963 return _IMP_container.PredicateSingletonsRestraint_set_score(self, predicate_value, score)
3965 def set_unknown_score(self, score):
3966 r"""set_unknown_score(PredicateSingletonsRestraint self, SingletonScore score)"""
3967 return _IMP_container.PredicateSingletonsRestraint_set_unknown_score(self, score)
3969 def set_is_complete(self, tf):
3970 r"""set_is_complete(PredicateSingletonsRestraint self, bool tf)"""
3971 return _IMP_container.PredicateSingletonsRestraint_set_is_complete(self, tf)
3974 r"""get_indexes(PredicateSingletonsRestraint self, int predicate_value) -> IMP::ParticleIndexes"""
3975 return _IMP_container.PredicateSingletonsRestraint_get_indexes(self, predicate_value)
3977 def do_add_score_and_derivatives(self, sa):
3978 r"""do_add_score_and_derivatives(PredicateSingletonsRestraint self, ScoreAccumulator sa)"""
3979 return _IMP_container.PredicateSingletonsRestraint_do_add_score_and_derivatives(self, sa)
3981 def do_get_inputs(self):
3982 r"""do_get_inputs(PredicateSingletonsRestraint self) -> IMP::ModelObjectsTemp"""
3983 return _IMP_container.PredicateSingletonsRestraint_do_get_inputs(self)
3985 def get_version_info(self):
3986 r"""get_version_info(PredicateSingletonsRestraint self) -> VersionInfo"""
3987 return _IMP_container.PredicateSingletonsRestraint_get_version_info(self)
3988 __swig_destroy__ = _IMP_container.delete_PredicateSingletonsRestraint
3991 r"""__str__(PredicateSingletonsRestraint self) -> std::string"""
3992 return _IMP_container.PredicateSingletonsRestraint___str__(self)
3995 r"""__repr__(PredicateSingletonsRestraint self) -> std::string"""
3996 return _IMP_container.PredicateSingletonsRestraint___repr__(self)
4000 return _object_cast_to_PredicateSingletonsRestraint(o)
4003 def _get_as_binary(self):
4004 r"""_get_as_binary(PredicateSingletonsRestraint self) -> PyObject *"""
4005 return _IMP_container.PredicateSingletonsRestraint__get_as_binary(self)
4007 def _set_from_binary(self, p):
4008 r"""_set_from_binary(PredicateSingletonsRestraint self, PyObject * p)"""
4009 return _IMP_container.PredicateSingletonsRestraint__set_from_binary(self, p)
4011 def __getstate__(self):
4012 p = self._get_as_binary()
4013 if len(self.__dict__) > 1:
4014 d = self.__dict__.copy()
4019 def __setstate__(self, p):
4020 if not hasattr(self,
'this'):
4022 if isinstance(p, tuple):
4024 self.__dict__.update(d)
4025 return self._set_from_binary(p)
4029 _IMP_container.PredicateSingletonsRestraint_swigregister(PredicateSingletonsRestraint)
4031 r"""Proxy of C++ IMP::container::PredicatePairsRestraint class."""
4033 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4035 def __init__(self, *args):
4037 __init__(PredicatePairsRestraint self, PairPredicate pred, _PairContainerAdaptor input, std::string name="PredicatePairsRestraint %1%") -> PredicatePairsRestraint
4038 __init__(PredicatePairsRestraint self) -> PredicatePairsRestraint
4040 _IMP_container.PredicatePairsRestraint_swiginit(self, _IMP_container.new_PredicatePairsRestraint(*args))
4042 def set_score(self, predicate_value, score):
4043 r"""set_score(PredicatePairsRestraint self, int predicate_value, PairScore score)"""
4044 return _IMP_container.PredicatePairsRestraint_set_score(self, predicate_value, score)
4046 def set_unknown_score(self, score):
4047 r"""set_unknown_score(PredicatePairsRestraint self, PairScore score)"""
4048 return _IMP_container.PredicatePairsRestraint_set_unknown_score(self, score)
4050 def set_is_complete(self, tf):
4051 r"""set_is_complete(PredicatePairsRestraint self, bool tf)"""
4052 return _IMP_container.PredicatePairsRestraint_set_is_complete(self, tf)
4055 r"""get_indexes(PredicatePairsRestraint self, int predicate_value) -> IMP::ParticleIndexPairs"""
4056 return _IMP_container.PredicatePairsRestraint_get_indexes(self, predicate_value)
4058 def do_add_score_and_derivatives(self, sa):
4059 r"""do_add_score_and_derivatives(PredicatePairsRestraint self, ScoreAccumulator sa)"""
4060 return _IMP_container.PredicatePairsRestraint_do_add_score_and_derivatives(self, sa)
4062 def do_get_inputs(self):
4063 r"""do_get_inputs(PredicatePairsRestraint self) -> IMP::ModelObjectsTemp"""
4064 return _IMP_container.PredicatePairsRestraint_do_get_inputs(self)
4066 def get_version_info(self):
4067 r"""get_version_info(PredicatePairsRestraint self) -> VersionInfo"""
4068 return _IMP_container.PredicatePairsRestraint_get_version_info(self)
4069 __swig_destroy__ = _IMP_container.delete_PredicatePairsRestraint
4072 r"""__str__(PredicatePairsRestraint self) -> std::string"""
4073 return _IMP_container.PredicatePairsRestraint___str__(self)
4076 r"""__repr__(PredicatePairsRestraint self) -> std::string"""
4077 return _IMP_container.PredicatePairsRestraint___repr__(self)
4081 return _object_cast_to_PredicatePairsRestraint(o)
4084 def _get_as_binary(self):
4085 r"""_get_as_binary(PredicatePairsRestraint self) -> PyObject *"""
4086 return _IMP_container.PredicatePairsRestraint__get_as_binary(self)
4088 def _set_from_binary(self, p):
4089 r"""_set_from_binary(PredicatePairsRestraint self, PyObject * p)"""
4090 return _IMP_container.PredicatePairsRestraint__set_from_binary(self, p)
4092 def __getstate__(self):
4093 p = self._get_as_binary()
4094 if len(self.__dict__) > 1:
4095 d = self.__dict__.copy()
4100 def __setstate__(self, p):
4101 if not hasattr(self,
'this'):
4103 if isinstance(p, tuple):
4105 self.__dict__.update(d)
4106 return self._set_from_binary(p)
4110 _IMP_container.PredicatePairsRestraint_swigregister(PredicatePairsRestraint)
4112 r"""Proxy of C++ IMP::container::PredicateTripletsRestraint class."""
4114 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4116 def __init__(self, *args):
4118 __init__(PredicateTripletsRestraint self, TripletPredicate pred, _TripletContainerAdaptor input, std::string name="PredicateTripletsRestraint %1%") -> PredicateTripletsRestraint
4119 __init__(PredicateTripletsRestraint self) -> PredicateTripletsRestraint
4121 _IMP_container.PredicateTripletsRestraint_swiginit(self, _IMP_container.new_PredicateTripletsRestraint(*args))
4123 def set_score(self, predicate_value, score):
4124 r"""set_score(PredicateTripletsRestraint self, int predicate_value, TripletScore score)"""
4125 return _IMP_container.PredicateTripletsRestraint_set_score(self, predicate_value, score)
4127 def set_unknown_score(self, score):
4128 r"""set_unknown_score(PredicateTripletsRestraint self, TripletScore score)"""
4129 return _IMP_container.PredicateTripletsRestraint_set_unknown_score(self, score)
4131 def set_is_complete(self, tf):
4132 r"""set_is_complete(PredicateTripletsRestraint self, bool tf)"""
4133 return _IMP_container.PredicateTripletsRestraint_set_is_complete(self, tf)
4136 r"""get_indexes(PredicateTripletsRestraint self, int predicate_value) -> IMP::ParticleIndexTriplets"""
4137 return _IMP_container.PredicateTripletsRestraint_get_indexes(self, predicate_value)
4139 def do_add_score_and_derivatives(self, sa):
4140 r"""do_add_score_and_derivatives(PredicateTripletsRestraint self, ScoreAccumulator sa)"""
4141 return _IMP_container.PredicateTripletsRestraint_do_add_score_and_derivatives(self, sa)
4143 def do_get_inputs(self):
4144 r"""do_get_inputs(PredicateTripletsRestraint self) -> IMP::ModelObjectsTemp"""
4145 return _IMP_container.PredicateTripletsRestraint_do_get_inputs(self)
4147 def get_version_info(self):
4148 r"""get_version_info(PredicateTripletsRestraint self) -> VersionInfo"""
4149 return _IMP_container.PredicateTripletsRestraint_get_version_info(self)
4150 __swig_destroy__ = _IMP_container.delete_PredicateTripletsRestraint
4153 r"""__str__(PredicateTripletsRestraint self) -> std::string"""
4154 return _IMP_container.PredicateTripletsRestraint___str__(self)
4157 r"""__repr__(PredicateTripletsRestraint self) -> std::string"""
4158 return _IMP_container.PredicateTripletsRestraint___repr__(self)
4162 return _object_cast_to_PredicateTripletsRestraint(o)
4165 def _get_as_binary(self):
4166 r"""_get_as_binary(PredicateTripletsRestraint self) -> PyObject *"""
4167 return _IMP_container.PredicateTripletsRestraint__get_as_binary(self)
4169 def _set_from_binary(self, p):
4170 r"""_set_from_binary(PredicateTripletsRestraint self, PyObject * p)"""
4171 return _IMP_container.PredicateTripletsRestraint__set_from_binary(self, p)
4173 def __getstate__(self):
4174 p = self._get_as_binary()
4175 if len(self.__dict__) > 1:
4176 d = self.__dict__.copy()
4181 def __setstate__(self, p):
4182 if not hasattr(self,
'this'):
4184 if isinstance(p, tuple):
4186 self.__dict__.update(d)
4187 return self._set_from_binary(p)
4191 _IMP_container.PredicateTripletsRestraint_swigregister(PredicateTripletsRestraint)
4193 r"""Proxy of C++ IMP::container::PredicateQuadsRestraint class."""
4195 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4197 def __init__(self, *args):
4199 __init__(PredicateQuadsRestraint self, QuadPredicate pred, _QuadContainerAdaptor input, std::string name="PredicateQuadsRestraint %1%") -> PredicateQuadsRestraint
4200 __init__(PredicateQuadsRestraint self) -> PredicateQuadsRestraint
4202 _IMP_container.PredicateQuadsRestraint_swiginit(self, _IMP_container.new_PredicateQuadsRestraint(*args))
4204 def set_score(self, predicate_value, score):
4205 r"""set_score(PredicateQuadsRestraint self, int predicate_value, QuadScore score)"""
4206 return _IMP_container.PredicateQuadsRestraint_set_score(self, predicate_value, score)
4208 def set_unknown_score(self, score):
4209 r"""set_unknown_score(PredicateQuadsRestraint self, QuadScore score)"""
4210 return _IMP_container.PredicateQuadsRestraint_set_unknown_score(self, score)
4212 def set_is_complete(self, tf):
4213 r"""set_is_complete(PredicateQuadsRestraint self, bool tf)"""
4214 return _IMP_container.PredicateQuadsRestraint_set_is_complete(self, tf)
4217 r"""get_indexes(PredicateQuadsRestraint self, int predicate_value) -> IMP::ParticleIndexQuads"""
4218 return _IMP_container.PredicateQuadsRestraint_get_indexes(self, predicate_value)
4220 def do_add_score_and_derivatives(self, sa):
4221 r"""do_add_score_and_derivatives(PredicateQuadsRestraint self, ScoreAccumulator sa)"""
4222 return _IMP_container.PredicateQuadsRestraint_do_add_score_and_derivatives(self, sa)
4224 def do_get_inputs(self):
4225 r"""do_get_inputs(PredicateQuadsRestraint self) -> IMP::ModelObjectsTemp"""
4226 return _IMP_container.PredicateQuadsRestraint_do_get_inputs(self)
4228 def get_version_info(self):
4229 r"""get_version_info(PredicateQuadsRestraint self) -> VersionInfo"""
4230 return _IMP_container.PredicateQuadsRestraint_get_version_info(self)
4231 __swig_destroy__ = _IMP_container.delete_PredicateQuadsRestraint
4234 r"""__str__(PredicateQuadsRestraint self) -> std::string"""
4235 return _IMP_container.PredicateQuadsRestraint___str__(self)
4238 r"""__repr__(PredicateQuadsRestraint self) -> std::string"""
4239 return _IMP_container.PredicateQuadsRestraint___repr__(self)
4243 return _object_cast_to_PredicateQuadsRestraint(o)
4246 def _get_as_binary(self):
4247 r"""_get_as_binary(PredicateQuadsRestraint self) -> PyObject *"""
4248 return _IMP_container.PredicateQuadsRestraint__get_as_binary(self)
4250 def _set_from_binary(self, p):
4251 r"""_set_from_binary(PredicateQuadsRestraint self, PyObject * p)"""
4252 return _IMP_container.PredicateQuadsRestraint__set_from_binary(self, p)
4254 def __getstate__(self):
4255 p = self._get_as_binary()
4256 if len(self.__dict__) > 1:
4257 d = self.__dict__.copy()
4262 def __setstate__(self, p):
4263 if not hasattr(self,
'this'):
4265 if isinstance(p, tuple):
4267 self.__dict__.update(d)
4268 return self._set_from_binary(p)
4272 _IMP_container.PredicateQuadsRestraint_swigregister(PredicateQuadsRestraint)
4274 r"""Proxy of C++ IMP::container::DistributeSingletonsScoreState class."""
4276 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4278 def __init__(self, *args):
4279 r"""__init__(DistributeSingletonsScoreState self, _SingletonContainerAdaptor input, std::string name="DistributeSingletonsScoreState %1%") -> DistributeSingletonsScoreState"""
4280 _IMP_container.DistributeSingletonsScoreState_swiginit(self, _IMP_container.new_DistributeSingletonsScoreState(*args))
4282 def add_predicate(self, predicate, value):
4283 r"""add_predicate(DistributeSingletonsScoreState self, SingletonPredicate predicate, int value) -> DynamicListSingletonContainer"""
4284 return _IMP_container.DistributeSingletonsScoreState_add_predicate(self, predicate, value)
4286 def do_before_evaluate(self):
4287 r"""do_before_evaluate(DistributeSingletonsScoreState self)"""
4288 return _IMP_container.DistributeSingletonsScoreState_do_before_evaluate(self)
4290 def do_after_evaluate(self, da):
4291 r"""do_after_evaluate(DistributeSingletonsScoreState self, DerivativeAccumulator da)"""
4292 return _IMP_container.DistributeSingletonsScoreState_do_after_evaluate(self, da)
4294 def do_get_inputs(self):
4295 r"""do_get_inputs(DistributeSingletonsScoreState self) -> IMP::ModelObjectsTemp"""
4296 return _IMP_container.DistributeSingletonsScoreState_do_get_inputs(self)
4298 def do_get_outputs(self):
4299 r"""do_get_outputs(DistributeSingletonsScoreState self) -> IMP::ModelObjectsTemp"""
4300 return _IMP_container.DistributeSingletonsScoreState_do_get_outputs(self)
4302 def get_version_info(self):
4303 r"""get_version_info(DistributeSingletonsScoreState self) -> VersionInfo"""
4304 return _IMP_container.DistributeSingletonsScoreState_get_version_info(self)
4305 __swig_destroy__ = _IMP_container.delete_DistributeSingletonsScoreState
4308 r"""__str__(DistributeSingletonsScoreState self) -> std::string"""
4309 return _IMP_container.DistributeSingletonsScoreState___str__(self)
4312 r"""__repr__(DistributeSingletonsScoreState self) -> std::string"""
4313 return _IMP_container.DistributeSingletonsScoreState___repr__(self)
4317 return _object_cast_to_DistributeSingletonsScoreState(o)
4321 _IMP_container.DistributeSingletonsScoreState_swigregister(DistributeSingletonsScoreState)
4323 r"""Proxy of C++ IMP::container::DistributePairsScoreState class."""
4325 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4327 def __init__(self, *args):
4328 r"""__init__(DistributePairsScoreState self, _PairContainerAdaptor input, std::string name="DistributePairsScoreState %1%") -> DistributePairsScoreState"""
4329 _IMP_container.DistributePairsScoreState_swiginit(self, _IMP_container.new_DistributePairsScoreState(*args))
4331 def add_predicate(self, predicate, value):
4332 r"""add_predicate(DistributePairsScoreState self, PairPredicate predicate, int value) -> DynamicListPairContainer"""
4333 return _IMP_container.DistributePairsScoreState_add_predicate(self, predicate, value)
4335 def do_before_evaluate(self):
4336 r"""do_before_evaluate(DistributePairsScoreState self)"""
4337 return _IMP_container.DistributePairsScoreState_do_before_evaluate(self)
4339 def do_after_evaluate(self, da):
4340 r"""do_after_evaluate(DistributePairsScoreState self, DerivativeAccumulator da)"""
4341 return _IMP_container.DistributePairsScoreState_do_after_evaluate(self, da)
4343 def do_get_inputs(self):
4344 r"""do_get_inputs(DistributePairsScoreState self) -> IMP::ModelObjectsTemp"""
4345 return _IMP_container.DistributePairsScoreState_do_get_inputs(self)
4347 def do_get_outputs(self):
4348 r"""do_get_outputs(DistributePairsScoreState self) -> IMP::ModelObjectsTemp"""
4349 return _IMP_container.DistributePairsScoreState_do_get_outputs(self)
4351 def get_version_info(self):
4352 r"""get_version_info(DistributePairsScoreState self) -> VersionInfo"""
4353 return _IMP_container.DistributePairsScoreState_get_version_info(self)
4354 __swig_destroy__ = _IMP_container.delete_DistributePairsScoreState
4357 r"""__str__(DistributePairsScoreState self) -> std::string"""
4358 return _IMP_container.DistributePairsScoreState___str__(self)
4361 r"""__repr__(DistributePairsScoreState self) -> std::string"""
4362 return _IMP_container.DistributePairsScoreState___repr__(self)
4366 return _object_cast_to_DistributePairsScoreState(o)
4370 _IMP_container.DistributePairsScoreState_swigregister(DistributePairsScoreState)
4372 r"""Proxy of C++ IMP::container::DistributeTripletsScoreState class."""
4374 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4376 def __init__(self, *args):
4377 r"""__init__(DistributeTripletsScoreState self, _TripletContainerAdaptor input, std::string name="DistributeTripletsScoreState %1%") -> DistributeTripletsScoreState"""
4378 _IMP_container.DistributeTripletsScoreState_swiginit(self, _IMP_container.new_DistributeTripletsScoreState(*args))
4380 def add_predicate(self, predicate, value):
4381 r"""add_predicate(DistributeTripletsScoreState self, TripletPredicate predicate, int value) -> DynamicListTripletContainer"""
4382 return _IMP_container.DistributeTripletsScoreState_add_predicate(self, predicate, value)
4384 def do_before_evaluate(self):
4385 r"""do_before_evaluate(DistributeTripletsScoreState self)"""
4386 return _IMP_container.DistributeTripletsScoreState_do_before_evaluate(self)
4388 def do_after_evaluate(self, da):
4389 r"""do_after_evaluate(DistributeTripletsScoreState self, DerivativeAccumulator da)"""
4390 return _IMP_container.DistributeTripletsScoreState_do_after_evaluate(self, da)
4392 def do_get_inputs(self):
4393 r"""do_get_inputs(DistributeTripletsScoreState self) -> IMP::ModelObjectsTemp"""
4394 return _IMP_container.DistributeTripletsScoreState_do_get_inputs(self)
4396 def do_get_outputs(self):
4397 r"""do_get_outputs(DistributeTripletsScoreState self) -> IMP::ModelObjectsTemp"""
4398 return _IMP_container.DistributeTripletsScoreState_do_get_outputs(self)
4400 def get_version_info(self):
4401 r"""get_version_info(DistributeTripletsScoreState self) -> VersionInfo"""
4402 return _IMP_container.DistributeTripletsScoreState_get_version_info(self)
4403 __swig_destroy__ = _IMP_container.delete_DistributeTripletsScoreState
4406 r"""__str__(DistributeTripletsScoreState self) -> std::string"""
4407 return _IMP_container.DistributeTripletsScoreState___str__(self)
4410 r"""__repr__(DistributeTripletsScoreState self) -> std::string"""
4411 return _IMP_container.DistributeTripletsScoreState___repr__(self)
4415 return _object_cast_to_DistributeTripletsScoreState(o)
4419 _IMP_container.DistributeTripletsScoreState_swigregister(DistributeTripletsScoreState)
4421 r"""Proxy of C++ IMP::container::DistributeQuadsScoreState class."""
4423 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4425 def __init__(self, *args):
4426 r"""__init__(DistributeQuadsScoreState self, _QuadContainerAdaptor input, std::string name="DistributeQuadsScoreState %1%") -> DistributeQuadsScoreState"""
4427 _IMP_container.DistributeQuadsScoreState_swiginit(self, _IMP_container.new_DistributeQuadsScoreState(*args))
4429 def add_predicate(self, predicate, value):
4430 r"""add_predicate(DistributeQuadsScoreState self, QuadPredicate predicate, int value) -> DynamicListQuadContainer"""
4431 return _IMP_container.DistributeQuadsScoreState_add_predicate(self, predicate, value)
4433 def do_before_evaluate(self):
4434 r"""do_before_evaluate(DistributeQuadsScoreState self)"""
4435 return _IMP_container.DistributeQuadsScoreState_do_before_evaluate(self)
4437 def do_after_evaluate(self, da):
4438 r"""do_after_evaluate(DistributeQuadsScoreState self, DerivativeAccumulator da)"""
4439 return _IMP_container.DistributeQuadsScoreState_do_after_evaluate(self, da)
4441 def do_get_inputs(self):
4442 r"""do_get_inputs(DistributeQuadsScoreState self) -> IMP::ModelObjectsTemp"""
4443 return _IMP_container.DistributeQuadsScoreState_do_get_inputs(self)
4445 def do_get_outputs(self):
4446 r"""do_get_outputs(DistributeQuadsScoreState self) -> IMP::ModelObjectsTemp"""
4447 return _IMP_container.DistributeQuadsScoreState_do_get_outputs(self)
4449 def get_version_info(self):
4450 r"""get_version_info(DistributeQuadsScoreState self) -> VersionInfo"""
4451 return _IMP_container.DistributeQuadsScoreState_get_version_info(self)
4452 __swig_destroy__ = _IMP_container.delete_DistributeQuadsScoreState
4455 r"""__str__(DistributeQuadsScoreState self) -> std::string"""
4456 return _IMP_container.DistributeQuadsScoreState___str__(self)
4459 r"""__repr__(DistributeQuadsScoreState self) -> std::string"""
4460 return _IMP_container.DistributeQuadsScoreState___repr__(self)
4464 return _object_cast_to_DistributeQuadsScoreState(o)
4468 _IMP_container.DistributeQuadsScoreState_swigregister(DistributeQuadsScoreState)
4472 create_restraint(PairScore ps, IMP::ParticlePair pp) -> Restraint
4473 create_restraint(PairScore ps, PairContainer pp) -> Restraint
4475 return _IMP_container.create_restraint(*args)
4477 def get_module_name():
4478 r"""get_module_name() -> std::string const"""
4479 return _IMP_container.get_module_name()
4482 r"""get_module_version() -> std::string const"""
4483 return _IMP_container.get_module_version()
4486 r"""get_example_path(std::string fname) -> std::string"""
4487 return _IMP_container.get_example_path(fname)
4490 r"""get_data_path(std::string fname) -> std::string"""
4491 return _IMP_container.get_data_path(fname)
4493 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.