14 from sys
import version_info
as _swig_python_version_info
18 import builtins
as __builtin__
24 strthis =
"proxy of " + self.this.__repr__()
25 except __builtin__.Exception:
27 return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
30 def _swig_setattr_nondynamic_instance_variable(set):
31 def set_instance_attr(self, name, value):
33 set(self, name, value)
34 elif name ==
"thisown":
36 elif hasattr(self, name)
and isinstance(getattr(type(self), name), property):
37 set(self, name, value)
39 raise AttributeError(
"You cannot add instance attributes to %s" % self)
40 return set_instance_attr
43 def _swig_setattr_nondynamic_class_variable(set):
44 def set_class_attr(cls, name, value):
45 if hasattr(cls, name)
and not isinstance(getattr(cls, name), property):
48 raise AttributeError(
"You cannot add class attributes to %s" % cls)
52 def _swig_add_metaclass(metaclass):
53 """Class decorator for adding a metaclass to a SWIG wrapped class - a slimmed down version of six.add_metaclass"""
55 return metaclass(cls.__name__, cls.__bases__, cls.__dict__.copy())
59 class _SwigNonDynamicMeta(type):
60 """Meta class to enforce nondynamic attributes (no new attributes) for a class"""
61 __setattr__ = _swig_setattr_nondynamic_class_variable(type.__setattr__)
66 class IMP_CONTAINER_SwigPyIterator(object):
67 r"""Proxy of C++ swig::IMP_CONTAINER_SwigPyIterator class."""
69 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
71 def __init__(self, *args, **kwargs):
72 raise AttributeError(
"No constructor defined - class is abstract")
74 __swig_destroy__ = _IMP_container.delete_IMP_CONTAINER_SwigPyIterator
77 r"""value(IMP_CONTAINER_SwigPyIterator self) -> PyObject *"""
78 return _IMP_container.IMP_CONTAINER_SwigPyIterator_value(self)
81 r"""incr(IMP_CONTAINER_SwigPyIterator self, size_t n=1) -> IMP_CONTAINER_SwigPyIterator"""
82 return _IMP_container.IMP_CONTAINER_SwigPyIterator_incr(self, n)
85 r"""decr(IMP_CONTAINER_SwigPyIterator self, size_t n=1) -> IMP_CONTAINER_SwigPyIterator"""
86 return _IMP_container.IMP_CONTAINER_SwigPyIterator_decr(self, n)
88 def distance(self, x):
89 r"""distance(IMP_CONTAINER_SwigPyIterator self, IMP_CONTAINER_SwigPyIterator x) -> ptrdiff_t"""
90 return _IMP_container.IMP_CONTAINER_SwigPyIterator_distance(self, x)
93 r"""equal(IMP_CONTAINER_SwigPyIterator self, IMP_CONTAINER_SwigPyIterator x) -> bool"""
94 return _IMP_container.IMP_CONTAINER_SwigPyIterator_equal(self, x)
97 r"""copy(IMP_CONTAINER_SwigPyIterator self) -> IMP_CONTAINER_SwigPyIterator"""
98 return _IMP_container.IMP_CONTAINER_SwigPyIterator_copy(self)
101 r"""next(IMP_CONTAINER_SwigPyIterator self) -> PyObject *"""
102 return _IMP_container.IMP_CONTAINER_SwigPyIterator_next(self)
105 r"""__next__(IMP_CONTAINER_SwigPyIterator self) -> PyObject *"""
106 return _IMP_container.IMP_CONTAINER_SwigPyIterator___next__(self)
109 r"""previous(IMP_CONTAINER_SwigPyIterator self) -> PyObject *"""
110 return _IMP_container.IMP_CONTAINER_SwigPyIterator_previous(self)
112 def advance(self, n):
113 r"""advance(IMP_CONTAINER_SwigPyIterator self, ptrdiff_t n) -> IMP_CONTAINER_SwigPyIterator"""
114 return _IMP_container.IMP_CONTAINER_SwigPyIterator_advance(self, n)
117 r"""__eq__(IMP_CONTAINER_SwigPyIterator self, IMP_CONTAINER_SwigPyIterator x) -> bool"""
118 return _IMP_container.IMP_CONTAINER_SwigPyIterator___eq__(self, x)
121 r"""__ne__(IMP_CONTAINER_SwigPyIterator self, IMP_CONTAINER_SwigPyIterator x) -> bool"""
122 return _IMP_container.IMP_CONTAINER_SwigPyIterator___ne__(self, x)
124 def __iadd__(self, n):
125 r"""__iadd__(IMP_CONTAINER_SwigPyIterator self, ptrdiff_t n) -> IMP_CONTAINER_SwigPyIterator"""
126 return _IMP_container.IMP_CONTAINER_SwigPyIterator___iadd__(self, n)
128 def __isub__(self, n):
129 r"""__isub__(IMP_CONTAINER_SwigPyIterator self, ptrdiff_t n) -> IMP_CONTAINER_SwigPyIterator"""
130 return _IMP_container.IMP_CONTAINER_SwigPyIterator___isub__(self, n)
132 def __add__(self, n):
133 r"""__add__(IMP_CONTAINER_SwigPyIterator self, ptrdiff_t n) -> IMP_CONTAINER_SwigPyIterator"""
134 return _IMP_container.IMP_CONTAINER_SwigPyIterator___add__(self, n)
136 def __sub__(self, *args):
138 __sub__(IMP_CONTAINER_SwigPyIterator self, ptrdiff_t n) -> IMP_CONTAINER_SwigPyIterator
139 __sub__(IMP_CONTAINER_SwigPyIterator self, IMP_CONTAINER_SwigPyIterator x) -> ptrdiff_t
141 return _IMP_container.IMP_CONTAINER_SwigPyIterator___sub__(self, *args)
146 _IMP_container.IMP_CONTAINER_SwigPyIterator_swigregister(IMP_CONTAINER_SwigPyIterator)
153 IMP_DEBUG = _IMP_container.IMP_DEBUG
155 IMP_RELEASE = _IMP_container.IMP_RELEASE
157 IMP_SILENT = _IMP_container.IMP_SILENT
159 IMP_PROGRESS = _IMP_container.IMP_PROGRESS
161 IMP_TERSE = _IMP_container.IMP_TERSE
163 IMP_VERBOSE = _IMP_container.IMP_VERBOSE
165 IMP_MEMORY = _IMP_container.IMP_MEMORY
167 IMP_NONE = _IMP_container.IMP_NONE
169 IMP_USAGE = _IMP_container.IMP_USAGE
171 IMP_INTERNAL = _IMP_container.IMP_INTERNAL
173 IMP_KERNEL_HAS_LOG4CXX = _IMP_container.IMP_KERNEL_HAS_LOG4CXX
175 IMP_COMPILER_HAS_CEREAL_RAW_POINTER = _IMP_container.IMP_COMPILER_HAS_CEREAL_RAW_POINTER
177 IMP_COMPILER_HAS_DEBUG_VECTOR = _IMP_container.IMP_COMPILER_HAS_DEBUG_VECTOR
179 IMP_COMPILER_HAS_RANDOM_SHUFFLE = _IMP_container.IMP_COMPILER_HAS_RANDOM_SHUFFLE
181 IMP_COMPILER_HAS_THREE_WAY = _IMP_container.IMP_COMPILER_HAS_THREE_WAY
183 IMP_KERNEL_HAS_BOOST_RANDOM = _IMP_container.IMP_KERNEL_HAS_BOOST_RANDOM
185 IMP_KERNEL_HAS_NUMPY = _IMP_container.IMP_KERNEL_HAS_NUMPY
187 IMP_KERNEL_HAS_GPERFTOOLS = _IMP_container.IMP_KERNEL_HAS_GPERFTOOLS
189 IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER = _IMP_container.IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER
191 IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER = _IMP_container.IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER
193 IMPKERNEL_SHOW_WARNINGS = _IMP_container.IMPKERNEL_SHOW_WARNINGS
197 class _DirectorObjects:
198 """@internal Simple class to keep references to director objects
199 to prevent premature deletion."""
202 def register(self, obj):
203 """Take a reference to a director object; will only work for
204 refcounted C++ classes"""
205 if hasattr(obj,
'get_ref_count'):
206 self._objects.append(obj)
208 """Only drop our reference and allow cleanup by Python if no other
209 Python references exist (we hold 3 references: one in self._objects,
210 one in x, and one in the argument list for getrefcount) *and* no
211 other C++ references exist (the Python object always holds one)"""
212 objs = [x
for x
in self._objects
if sys.getrefcount(x) > 3 \
213 or x.get_ref_count() > 1]
217 def get_object_count(self):
218 """Get number of director objects (useful for testing only)"""
219 return len(self._objects)
220 _director_objects = _DirectorObjects()
222 class _ostream(object):
223 r"""Proxy of C++ std::ostream class."""
225 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
227 def __init__(self, *args, **kwargs):
228 raise AttributeError(
"No constructor defined")
229 __repr__ = _swig_repr
231 def write(self, osa_buf):
232 r"""write(_ostream self, char const * osa_buf)"""
233 return _IMP_container._ostream_write(self, osa_buf)
236 _IMP_container._ostream_swigregister(_ostream)
237 IMP_C_OPEN_BINARY = _IMP_container.IMP_C_OPEN_BINARY
240 IMP_CGAL_HAS_BOOST_FILESYSTEM = _IMP_container.IMP_CGAL_HAS_BOOST_FILESYSTEM
242 IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS = _IMP_container.IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS
244 IMP_CGAL_HAS_BOOST_RANDOM = _IMP_container.IMP_CGAL_HAS_BOOST_RANDOM
246 IMP_CGAL_HAS_BOOST_SYSTEM = _IMP_container.IMP_CGAL_HAS_BOOST_SYSTEM
248 IMP_CGAL_HAS_NUMPY = _IMP_container.IMP_CGAL_HAS_NUMPY
250 IMPCGAL_SHOW_WARNINGS = _IMP_container.IMPCGAL_SHOW_WARNINGS
253 IMP_ALGEBRA_HAS_IMP_CGAL = _IMP_container.IMP_ALGEBRA_HAS_IMP_CGAL
255 IMP_ALGEBRA_HAS_BOOST_FILESYSTEM = _IMP_container.IMP_ALGEBRA_HAS_BOOST_FILESYSTEM
257 IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS = _IMP_container.IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS
259 IMP_ALGEBRA_HAS_BOOST_RANDOM = _IMP_container.IMP_ALGEBRA_HAS_BOOST_RANDOM
261 IMP_ALGEBRA_HAS_BOOST_SYSTEM = _IMP_container.IMP_ALGEBRA_HAS_BOOST_SYSTEM
263 IMP_ALGEBRA_HAS_CGAL = _IMP_container.IMP_ALGEBRA_HAS_CGAL
265 IMP_ALGEBRA_HAS_NUMPY = _IMP_container.IMP_ALGEBRA_HAS_NUMPY
267 IMP_ALGEBRA_HAS_ANN = _IMP_container.IMP_ALGEBRA_HAS_ANN
269 IMPALGEBRA_SHOW_WARNINGS = _IMP_container.IMPALGEBRA_SHOW_WARNINGS
272 IMP_DISPLAY_HAS_IMP_CGAL = _IMP_container.IMP_DISPLAY_HAS_IMP_CGAL
274 IMP_DISPLAY_HAS_BOOST_FILESYSTEM = _IMP_container.IMP_DISPLAY_HAS_BOOST_FILESYSTEM
276 IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS = _IMP_container.IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS
278 IMP_DISPLAY_HAS_BOOST_RANDOM = _IMP_container.IMP_DISPLAY_HAS_BOOST_RANDOM
280 IMP_DISPLAY_HAS_BOOST_SYSTEM = _IMP_container.IMP_DISPLAY_HAS_BOOST_SYSTEM
282 IMP_DISPLAY_HAS_CGAL = _IMP_container.IMP_DISPLAY_HAS_CGAL
284 IMP_DISPLAY_HAS_NUMPY = _IMP_container.IMP_DISPLAY_HAS_NUMPY
286 IMPDISPLAY_SHOW_WARNINGS = _IMP_container.IMPDISPLAY_SHOW_WARNINGS
289 IMP_SCORE_FUNCTOR_HAS_IMP_CGAL = _IMP_container.IMP_SCORE_FUNCTOR_HAS_IMP_CGAL
291 IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM = _IMP_container.IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM
293 IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS = _IMP_container.IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS
295 IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM = _IMP_container.IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM
297 IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM = _IMP_container.IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM
299 IMP_SCORE_FUNCTOR_HAS_CGAL = _IMP_container.IMP_SCORE_FUNCTOR_HAS_CGAL
301 IMP_SCORE_FUNCTOR_HAS_HDF5 = _IMP_container.IMP_SCORE_FUNCTOR_HAS_HDF5
303 IMP_SCORE_FUNCTOR_HAS_NUMPY = _IMP_container.IMP_SCORE_FUNCTOR_HAS_NUMPY
305 IMPSCOREFUNCTOR_SHOW_WARNINGS = _IMP_container.IMPSCOREFUNCTOR_SHOW_WARNINGS
308 IMP_CORE_HAS_IMP_CGAL = _IMP_container.IMP_CORE_HAS_IMP_CGAL
310 IMP_CORE_HAS_IMP_KERNEL = _IMP_container.IMP_CORE_HAS_IMP_KERNEL
312 IMP_CORE_HAS_BOOST_FILESYSTEM = _IMP_container.IMP_CORE_HAS_BOOST_FILESYSTEM
314 IMP_CORE_HAS_BOOST_PROGRAMOPTIONS = _IMP_container.IMP_CORE_HAS_BOOST_PROGRAMOPTIONS
316 IMP_CORE_HAS_BOOST_RANDOM = _IMP_container.IMP_CORE_HAS_BOOST_RANDOM
318 IMP_CORE_HAS_BOOST_SYSTEM = _IMP_container.IMP_CORE_HAS_BOOST_SYSTEM
320 IMP_CORE_HAS_CGAL = _IMP_container.IMP_CORE_HAS_CGAL
322 IMP_CORE_HAS_HDF5 = _IMP_container.IMP_CORE_HAS_HDF5
324 IMP_CORE_HAS_NUMPY = _IMP_container.IMP_CORE_HAS_NUMPY
326 IMPCORE_SHOW_WARNINGS = _IMP_container.IMPCORE_SHOW_WARNINGS
329 IMP_CONTAINER_HAS_IMP_ALGEBRA = _IMP_container.IMP_CONTAINER_HAS_IMP_ALGEBRA
331 IMP_CONTAINER_HAS_IMP_CGAL = _IMP_container.IMP_CONTAINER_HAS_IMP_CGAL
333 IMP_CONTAINER_HAS_IMP_DISPLAY = _IMP_container.IMP_CONTAINER_HAS_IMP_DISPLAY
335 IMP_CONTAINER_HAS_IMP_KERNEL = _IMP_container.IMP_CONTAINER_HAS_IMP_KERNEL
337 IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR = _IMP_container.IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR
339 IMP_CONTAINER_HAS_BOOST_FILESYSTEM = _IMP_container.IMP_CONTAINER_HAS_BOOST_FILESYSTEM
341 IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS = _IMP_container.IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS
343 IMP_CONTAINER_HAS_BOOST_RANDOM = _IMP_container.IMP_CONTAINER_HAS_BOOST_RANDOM
345 IMP_CONTAINER_HAS_BOOST_SYSTEM = _IMP_container.IMP_CONTAINER_HAS_BOOST_SYSTEM
347 IMP_CONTAINER_HAS_CGAL = _IMP_container.IMP_CONTAINER_HAS_CGAL
349 IMP_CONTAINER_HAS_HDF5 = _IMP_container.IMP_CONTAINER_HAS_HDF5
351 IMP_CONTAINER_HAS_NUMPY = _IMP_container.IMP_CONTAINER_HAS_NUMPY
353 IMP_CONTAINER_HAS_PYTHON_IHM = _IMP_container.IMP_CONTAINER_HAS_PYTHON_IHM
355 IMP_CONTAINER_HAS_GOOGLE_DENSE_HASH_MAP = _IMP_container.IMP_CONTAINER_HAS_GOOGLE_DENSE_HASH_MAP
357 IMP_CONTAINER_HAS_ROBIN_MAP = _IMP_container.IMP_CONTAINER_HAS_ROBIN_MAP
359 IMPCONTAINER_SHOW_WARNINGS = _IMP_container.IMPCONTAINER_SHOW_WARNINGS
362 _object_types.append(
"AllBipartitePairContainer")
365 def _object_cast_to_AllBipartitePairContainer(o):
366 r"""_object_cast_to_AllBipartitePairContainer(Object o) -> AllBipartitePairContainer"""
367 return _IMP_container._object_cast_to_AllBipartitePairContainer(o)
369 _object_types.append(
"AllPairContainer")
372 def _object_cast_to_AllPairContainer(o):
373 r"""_object_cast_to_AllPairContainer(Object o) -> AllPairContainer"""
374 return _IMP_container._object_cast_to_AllPairContainer(o)
376 _object_types.append(
"CloseBipartitePairContainer")
379 def _object_cast_to_CloseBipartitePairContainer(o):
380 r"""_object_cast_to_CloseBipartitePairContainer(Object o) -> CloseBipartitePairContainer"""
381 return _IMP_container._object_cast_to_CloseBipartitePairContainer(o)
383 _object_types.append(
"ClosePairContainer")
386 def _object_cast_to_ClosePairContainer(o):
387 r"""_object_cast_to_ClosePairContainer(Object o) -> ClosePairContainer"""
388 return _IMP_container._object_cast_to_ClosePairContainer(o)
390 _object_types.append(
"ConnectingPairContainer")
393 def _object_cast_to_ConnectingPairContainer(o):
394 r"""_object_cast_to_ConnectingPairContainer(Object o) -> ConnectingPairContainer"""
395 return _IMP_container._object_cast_to_ConnectingPairContainer(o)
397 _object_types.append(
"ConsecutivePairContainer")
400 def _object_cast_to_ConsecutivePairContainer(o):
401 r"""_object_cast_to_ConsecutivePairContainer(Object o) -> ConsecutivePairContainer"""
402 return _IMP_container._object_cast_to_ConsecutivePairContainer(o)
404 _object_types.append(
"ExclusiveConsecutivePairContainer")
407 def _object_cast_to_ExclusiveConsecutivePairContainer(o):
408 r"""_object_cast_to_ExclusiveConsecutivePairContainer(Object o) -> ExclusiveConsecutivePairContainer"""
409 return _IMP_container._object_cast_to_ExclusiveConsecutivePairContainer(o)
411 _object_types.append(
"ExclusiveConsecutivePairFilter")
414 def _object_cast_to_ExclusiveConsecutivePairFilter(o):
415 r"""_object_cast_to_ExclusiveConsecutivePairFilter(Object o) -> ExclusiveConsecutivePairFilter"""
416 return _IMP_container._object_cast_to_ExclusiveConsecutivePairFilter(o)
418 _object_types.append(
"ConsecutivePairFilter")
421 def _object_cast_to_ConsecutivePairFilter(o):
422 r"""_object_cast_to_ConsecutivePairFilter(Object o) -> ConsecutivePairFilter"""
423 return _IMP_container._object_cast_to_ConsecutivePairFilter(o)
425 _object_types.append(
"ListPairContainer")
428 def _object_cast_to_ListPairContainer(o):
429 r"""_object_cast_to_ListPairContainer(Object o) -> ListPairContainer"""
430 return _IMP_container._object_cast_to_ListPairContainer(o)
432 _object_types.append(
"ListQuadContainer")
435 def _object_cast_to_ListQuadContainer(o):
436 r"""_object_cast_to_ListQuadContainer(Object o) -> ListQuadContainer"""
437 return _IMP_container._object_cast_to_ListQuadContainer(o)
439 _object_types.append(
"ListSingletonContainer")
442 def _object_cast_to_ListSingletonContainer(o):
443 r"""_object_cast_to_ListSingletonContainer(Object o) -> ListSingletonContainer"""
444 return _IMP_container._object_cast_to_ListSingletonContainer(o)
446 _object_types.append(
"ListTripletContainer")
449 def _object_cast_to_ListTripletContainer(o):
450 r"""_object_cast_to_ListTripletContainer(Object o) -> ListTripletContainer"""
451 return _IMP_container._object_cast_to_ListTripletContainer(o)
453 _object_types.append(
"DynamicListPairContainer")
456 def _object_cast_to_DynamicListPairContainer(o):
457 r"""_object_cast_to_DynamicListPairContainer(Object o) -> DynamicListPairContainer"""
458 return _IMP_container._object_cast_to_DynamicListPairContainer(o)
460 _object_types.append(
"DynamicListQuadContainer")
463 def _object_cast_to_DynamicListQuadContainer(o):
464 r"""_object_cast_to_DynamicListQuadContainer(Object o) -> DynamicListQuadContainer"""
465 return _IMP_container._object_cast_to_DynamicListQuadContainer(o)
467 _object_types.append(
"DynamicListSingletonContainer")
470 def _object_cast_to_DynamicListSingletonContainer(o):
471 r"""_object_cast_to_DynamicListSingletonContainer(Object o) -> DynamicListSingletonContainer"""
472 return _IMP_container._object_cast_to_DynamicListSingletonContainer(o)
474 _object_types.append(
"DynamicListTripletContainer")
477 def _object_cast_to_DynamicListTripletContainer(o):
478 r"""_object_cast_to_DynamicListTripletContainer(Object o) -> DynamicListTripletContainer"""
479 return _IMP_container._object_cast_to_DynamicListTripletContainer(o)
481 _object_types.append(
"MinimumPairRestraint")
484 def _object_cast_to_MinimumPairRestraint(o):
485 r"""_object_cast_to_MinimumPairRestraint(Object o) -> MinimumPairRestraint"""
486 return _IMP_container._object_cast_to_MinimumPairRestraint(o)
488 _object_types.append(
"MinimumPairScore")
491 def _object_cast_to_MinimumPairScore(o):
492 r"""_object_cast_to_MinimumPairScore(Object o) -> MinimumPairScore"""
493 return _IMP_container._object_cast_to_MinimumPairScore(o)
495 _object_types.append(
"MinimumQuadRestraint")
498 def _object_cast_to_MinimumQuadRestraint(o):
499 r"""_object_cast_to_MinimumQuadRestraint(Object o) -> MinimumQuadRestraint"""
500 return _IMP_container._object_cast_to_MinimumQuadRestraint(o)
502 _object_types.append(
"MinimumQuadScore")
505 def _object_cast_to_MinimumQuadScore(o):
506 r"""_object_cast_to_MinimumQuadScore(Object o) -> MinimumQuadScore"""
507 return _IMP_container._object_cast_to_MinimumQuadScore(o)
509 _object_types.append(
"MinimumSingletonRestraint")
512 def _object_cast_to_MinimumSingletonRestraint(o):
513 r"""_object_cast_to_MinimumSingletonRestraint(Object o) -> MinimumSingletonRestraint"""
514 return _IMP_container._object_cast_to_MinimumSingletonRestraint(o)
516 _object_types.append(
"MinimumSingletonScore")
519 def _object_cast_to_MinimumSingletonScore(o):
520 r"""_object_cast_to_MinimumSingletonScore(Object o) -> MinimumSingletonScore"""
521 return _IMP_container._object_cast_to_MinimumSingletonScore(o)
523 _object_types.append(
"MinimumTripletRestraint")
526 def _object_cast_to_MinimumTripletRestraint(o):
527 r"""_object_cast_to_MinimumTripletRestraint(Object o) -> MinimumTripletRestraint"""
528 return _IMP_container._object_cast_to_MinimumTripletRestraint(o)
530 _object_types.append(
"MinimumTripletScore")
533 def _object_cast_to_MinimumTripletScore(o):
534 r"""_object_cast_to_MinimumTripletScore(Object o) -> MinimumTripletScore"""
535 return _IMP_container._object_cast_to_MinimumTripletScore(o)
537 _object_types.append(
"PairContainerSet")
540 def _object_cast_to_PairContainerSet(o):
541 r"""_object_cast_to_PairContainerSet(Object o) -> PairContainerSet"""
542 return _IMP_container._object_cast_to_PairContainerSet(o)
544 _object_types.append(
"PairsConstraint")
547 def _object_cast_to_PairsConstraint(o):
548 r"""_object_cast_to_PairsConstraint(Object o) -> PairsConstraint"""
549 return _IMP_container._object_cast_to_PairsConstraint(o)
551 _object_types.append(
"PairsOptimizerState")
554 def _object_cast_to_PairsOptimizerState(o):
555 r"""_object_cast_to_PairsOptimizerState(Object o) -> PairsOptimizerState"""
556 return _IMP_container._object_cast_to_PairsOptimizerState(o)
558 _object_types.append(
"PairsRestraint")
561 def _object_cast_to_PairsRestraint(o):
562 r"""_object_cast_to_PairsRestraint(Object o) -> PairsRestraint"""
563 return _IMP_container._object_cast_to_PairsRestraint(o)
565 _object_types.append(
"QuadContainerSet")
568 def _object_cast_to_QuadContainerSet(o):
569 r"""_object_cast_to_QuadContainerSet(Object o) -> QuadContainerSet"""
570 return _IMP_container._object_cast_to_QuadContainerSet(o)
572 _object_types.append(
"QuadsConstraint")
575 def _object_cast_to_QuadsConstraint(o):
576 r"""_object_cast_to_QuadsConstraint(Object o) -> QuadsConstraint"""
577 return _IMP_container._object_cast_to_QuadsConstraint(o)
579 _object_types.append(
"QuadsOptimizerState")
582 def _object_cast_to_QuadsOptimizerState(o):
583 r"""_object_cast_to_QuadsOptimizerState(Object o) -> QuadsOptimizerState"""
584 return _IMP_container._object_cast_to_QuadsOptimizerState(o)
586 _object_types.append(
"QuadsRestraint")
589 def _object_cast_to_QuadsRestraint(o):
590 r"""_object_cast_to_QuadsRestraint(Object o) -> QuadsRestraint"""
591 return _IMP_container._object_cast_to_QuadsRestraint(o)
593 _object_types.append(
"SingletonContainerSet")
596 def _object_cast_to_SingletonContainerSet(o):
597 r"""_object_cast_to_SingletonContainerSet(Object o) -> SingletonContainerSet"""
598 return _IMP_container._object_cast_to_SingletonContainerSet(o)
600 _object_types.append(
"SingletonsConstraint")
603 def _object_cast_to_SingletonsConstraint(o):
604 r"""_object_cast_to_SingletonsConstraint(Object o) -> SingletonsConstraint"""
605 return _IMP_container._object_cast_to_SingletonsConstraint(o)
607 _object_types.append(
"SingletonsOptimizerState")
610 def _object_cast_to_SingletonsOptimizerState(o):
611 r"""_object_cast_to_SingletonsOptimizerState(Object o) -> SingletonsOptimizerState"""
612 return _IMP_container._object_cast_to_SingletonsOptimizerState(o)
614 _object_types.append(
"SingletonsRestraint")
617 def _object_cast_to_SingletonsRestraint(o):
618 r"""_object_cast_to_SingletonsRestraint(Object o) -> SingletonsRestraint"""
619 return _IMP_container._object_cast_to_SingletonsRestraint(o)
621 _object_types.append(
"TripletContainerSet")
624 def _object_cast_to_TripletContainerSet(o):
625 r"""_object_cast_to_TripletContainerSet(Object o) -> TripletContainerSet"""
626 return _IMP_container._object_cast_to_TripletContainerSet(o)
628 _object_types.append(
"TripletsConstraint")
631 def _object_cast_to_TripletsConstraint(o):
632 r"""_object_cast_to_TripletsConstraint(Object o) -> TripletsConstraint"""
633 return _IMP_container._object_cast_to_TripletsConstraint(o)
635 _object_types.append(
"TripletsOptimizerState")
638 def _object_cast_to_TripletsOptimizerState(o):
639 r"""_object_cast_to_TripletsOptimizerState(Object o) -> TripletsOptimizerState"""
640 return _IMP_container._object_cast_to_TripletsOptimizerState(o)
642 _object_types.append(
"TripletsRestraint")
645 def _object_cast_to_TripletsRestraint(o):
646 r"""_object_cast_to_TripletsRestraint(Object o) -> TripletsRestraint"""
647 return _IMP_container._object_cast_to_TripletsRestraint(o)
649 _object_types.append(
"InContainerSingletonFilter")
652 def _object_cast_to_InContainerSingletonFilter(o):
653 r"""_object_cast_to_InContainerSingletonFilter(Object o) -> InContainerSingletonFilter"""
654 return _IMP_container._object_cast_to_InContainerSingletonFilter(o)
656 _object_types.append(
"InContainerPairFilter")
659 def _object_cast_to_InContainerPairFilter(o):
660 r"""_object_cast_to_InContainerPairFilter(Object o) -> InContainerPairFilter"""
661 return _IMP_container._object_cast_to_InContainerPairFilter(o)
663 _object_types.append(
"InContainerTripletFilter")
666 def _object_cast_to_InContainerTripletFilter(o):
667 r"""_object_cast_to_InContainerTripletFilter(Object o) -> InContainerTripletFilter"""
668 return _IMP_container._object_cast_to_InContainerTripletFilter(o)
670 _object_types.append(
"InContainerQuadFilter")
673 def _object_cast_to_InContainerQuadFilter(o):
674 r"""_object_cast_to_InContainerQuadFilter(Object o) -> InContainerQuadFilter"""
675 return _IMP_container._object_cast_to_InContainerQuadFilter(o)
677 _object_types.append(
"SingletonContainerStatistics")
680 def _object_cast_to_SingletonContainerStatistics(o):
681 r"""_object_cast_to_SingletonContainerStatistics(Object o) -> SingletonContainerStatistics"""
682 return _IMP_container._object_cast_to_SingletonContainerStatistics(o)
684 _object_types.append(
"PairContainerStatistics")
687 def _object_cast_to_PairContainerStatistics(o):
688 r"""_object_cast_to_PairContainerStatistics(Object o) -> PairContainerStatistics"""
689 return _IMP_container._object_cast_to_PairContainerStatistics(o)
691 _object_types.append(
"TripletContainerStatistics")
694 def _object_cast_to_TripletContainerStatistics(o):
695 r"""_object_cast_to_TripletContainerStatistics(Object o) -> TripletContainerStatistics"""
696 return _IMP_container._object_cast_to_TripletContainerStatistics(o)
698 _object_types.append(
"QuadContainerStatistics")
701 def _object_cast_to_QuadContainerStatistics(o):
702 r"""_object_cast_to_QuadContainerStatistics(Object o) -> QuadContainerStatistics"""
703 return _IMP_container._object_cast_to_QuadContainerStatistics(o)
705 _object_types.append(
"EventSingletonsOptimizerState")
708 def _object_cast_to_EventSingletonsOptimizerState(o):
709 r"""_object_cast_to_EventSingletonsOptimizerState(Object o) -> EventSingletonsOptimizerState"""
710 return _IMP_container._object_cast_to_EventSingletonsOptimizerState(o)
712 _object_types.append(
"EventPairsOptimizerState")
715 def _object_cast_to_EventPairsOptimizerState(o):
716 r"""_object_cast_to_EventPairsOptimizerState(Object o) -> EventPairsOptimizerState"""
717 return _IMP_container._object_cast_to_EventPairsOptimizerState(o)
719 _object_types.append(
"EventTripletsOptimizerState")
722 def _object_cast_to_EventTripletsOptimizerState(o):
723 r"""_object_cast_to_EventTripletsOptimizerState(Object o) -> EventTripletsOptimizerState"""
724 return _IMP_container._object_cast_to_EventTripletsOptimizerState(o)
726 _object_types.append(
"EventQuadsOptimizerState")
729 def _object_cast_to_EventQuadsOptimizerState(o):
730 r"""_object_cast_to_EventQuadsOptimizerState(Object o) -> EventQuadsOptimizerState"""
731 return _IMP_container._object_cast_to_EventQuadsOptimizerState(o)
733 _object_types.append(
"PredicateSingletonsRestraint")
736 def _object_cast_to_PredicateSingletonsRestraint(o):
737 r"""_object_cast_to_PredicateSingletonsRestraint(Object o) -> PredicateSingletonsRestraint"""
738 return _IMP_container._object_cast_to_PredicateSingletonsRestraint(o)
740 _object_types.append(
"PredicatePairsRestraint")
743 def _object_cast_to_PredicatePairsRestraint(o):
744 r"""_object_cast_to_PredicatePairsRestraint(Object o) -> PredicatePairsRestraint"""
745 return _IMP_container._object_cast_to_PredicatePairsRestraint(o)
747 _object_types.append(
"PredicateTripletsRestraint")
750 def _object_cast_to_PredicateTripletsRestraint(o):
751 r"""_object_cast_to_PredicateTripletsRestraint(Object o) -> PredicateTripletsRestraint"""
752 return _IMP_container._object_cast_to_PredicateTripletsRestraint(o)
754 _object_types.append(
"PredicateQuadsRestraint")
757 def _object_cast_to_PredicateQuadsRestraint(o):
758 r"""_object_cast_to_PredicateQuadsRestraint(Object o) -> PredicateQuadsRestraint"""
759 return _IMP_container._object_cast_to_PredicateQuadsRestraint(o)
761 _object_types.append(
"DistributeSingletonsScoreState")
764 def _object_cast_to_DistributeSingletonsScoreState(o):
765 r"""_object_cast_to_DistributeSingletonsScoreState(Object o) -> DistributeSingletonsScoreState"""
766 return _IMP_container._object_cast_to_DistributeSingletonsScoreState(o)
768 _object_types.append(
"DistributePairsScoreState")
771 def _object_cast_to_DistributePairsScoreState(o):
772 r"""_object_cast_to_DistributePairsScoreState(Object o) -> DistributePairsScoreState"""
773 return _IMP_container._object_cast_to_DistributePairsScoreState(o)
775 _object_types.append(
"DistributeTripletsScoreState")
778 def _object_cast_to_DistributeTripletsScoreState(o):
779 r"""_object_cast_to_DistributeTripletsScoreState(Object o) -> DistributeTripletsScoreState"""
780 return _IMP_container._object_cast_to_DistributeTripletsScoreState(o)
782 _object_types.append(
"DistributeQuadsScoreState")
785 def _object_cast_to_DistributeQuadsScoreState(o):
786 r"""_object_cast_to_DistributeQuadsScoreState(Object o) -> DistributeQuadsScoreState"""
787 return _IMP_container._object_cast_to_DistributeQuadsScoreState(o)
789 r"""Proxy of C++ IMP::container::AllBipartitePairContainer class."""
791 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
793 def __init__(self, *args):
794 r"""__init__(AllBipartitePairContainer self, _SingletonContainerAdaptor a, _SingletonContainerAdaptor b, std::string name="AllBipartitePairContainer%1%") -> AllBipartitePairContainer"""
795 _IMP_container.AllBipartitePairContainer_swiginit(self, _IMP_container.new_AllBipartitePairContainer(*args))
797 def do_get_inputs(self):
798 r"""do_get_inputs(AllBipartitePairContainer self) -> IMP::ModelObjectsTemp"""
799 return _IMP_container.AllBipartitePairContainer_do_get_inputs(self)
801 def do_apply(self, sm):
802 r"""do_apply(AllBipartitePairContainer self, PairModifier sm)"""
803 return _IMP_container.AllBipartitePairContainer_do_apply(self, sm)
805 def do_apply_moved(self, sm, moved_pis, reset_pis):
806 r"""do_apply_moved(AllBipartitePairContainer self, PairModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
807 return _IMP_container.AllBipartitePairContainer_do_apply_moved(self, sm, moved_pis, reset_pis)
809 def get_version_info(self):
810 r"""get_version_info(AllBipartitePairContainer self) -> VersionInfo"""
811 return _IMP_container.AllBipartitePairContainer_get_version_info(self)
812 __swig_destroy__ = _IMP_container.delete_AllBipartitePairContainer
815 r"""__str__(AllBipartitePairContainer self) -> std::string"""
816 return _IMP_container.AllBipartitePairContainer___str__(self)
819 r"""__repr__(AllBipartitePairContainer self) -> std::string"""
820 return _IMP_container.AllBipartitePairContainer___repr__(self)
824 return _object_cast_to_AllBipartitePairContainer(o)
828 _IMP_container.AllBipartitePairContainer_swigregister(AllBipartitePairContainer)
830 r"""Proxy of C++ IMP::container::AllPairContainer class."""
832 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
834 def __init__(self, *args):
835 r"""__init__(AllPairContainer self, _SingletonContainerAdaptor c, std::string name="AllPairContainer%1%") -> AllPairContainer"""
836 _IMP_container.AllPairContainer_swiginit(self, _IMP_container.new_AllPairContainer(*args))
838 def do_get_inputs(self):
839 r"""do_get_inputs(AllPairContainer self) -> IMP::ModelObjectsTemp"""
840 return _IMP_container.AllPairContainer_do_get_inputs(self)
842 def do_apply(self, sm):
843 r"""do_apply(AllPairContainer self, PairModifier sm)"""
844 return _IMP_container.AllPairContainer_do_apply(self, sm)
846 def do_apply_moved(self, sm, moved_pis, reset_pis):
847 r"""do_apply_moved(AllPairContainer self, PairModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
848 return _IMP_container.AllPairContainer_do_apply_moved(self, sm, moved_pis, reset_pis)
850 def get_version_info(self):
851 r"""get_version_info(AllPairContainer self) -> VersionInfo"""
852 return _IMP_container.AllPairContainer_get_version_info(self)
853 __swig_destroy__ = _IMP_container.delete_AllPairContainer
856 r"""__str__(AllPairContainer self) -> std::string"""
857 return _IMP_container.AllPairContainer___str__(self)
860 r"""__repr__(AllPairContainer self) -> std::string"""
861 return _IMP_container.AllPairContainer___repr__(self)
865 return _object_cast_to_AllPairContainer(o)
869 _IMP_container.AllPairContainer_swigregister(AllPairContainer)
871 r"""Proxy of C++ IMP::container::CloseBipartitePairContainer class."""
873 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
875 def __init__(self, *args):
877 __init__(CloseBipartitePairContainer self, _SingletonContainerAdaptor a, _SingletonContainerAdaptor b, double distance, double slack=1, std::string name="CloseBipartitePairContainer%1%") -> CloseBipartitePairContainer
878 __init__(CloseBipartitePairContainer self, _SingletonContainerAdaptor a, _SingletonContainerAdaptor b, double distance, ClosePairsFinder cpf, double slack=1, std::string name="CloseBipartitePairContainer%1%") -> CloseBipartitePairContainer
879 __init__(CloseBipartitePairContainer self) -> CloseBipartitePairContainer
881 _IMP_container.CloseBipartitePairContainer_swiginit(self, _IMP_container.new_CloseBipartitePairContainer(*args))
882 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)
883 def __set_pair_filters(self, obj): IMP._list_util.set_varlist(self.pair_filters, obj)
884 def __del_pair_filters(self): IMP._list_util.del_varlist(self.pair_filters)
885 pair_filters = property(__get_pair_filters, __set_pair_filters, __del_pair_filters, doc=
"List of ##ucnames")
887 def remove_pair_filter(self, d):
888 r"""remove_pair_filter(CloseBipartitePairContainer self, PairPredicate d)"""
889 return _IMP_container.CloseBipartitePairContainer_remove_pair_filter(self, d)
891 def _python_index_pair_filter(self, d, start, stop):
892 r"""_python_index_pair_filter(CloseBipartitePairContainer self, PairPredicate d, unsigned int start, unsigned int stop) -> unsigned int"""
893 return _IMP_container.CloseBipartitePairContainer__python_index_pair_filter(self, d, start, stop)
895 def remove_pair_filters(self, d):
896 r"""remove_pair_filters(CloseBipartitePairContainer self, IMP::PairPredicates const & d)"""
897 return _IMP_container.CloseBipartitePairContainer_remove_pair_filters(self, d)
899 def set_pair_filters(self, ps):
900 r"""set_pair_filters(CloseBipartitePairContainer self, IMP::PairPredicates const & ps)"""
901 return _IMP_container.CloseBipartitePairContainer_set_pair_filters(self, ps)
903 def set_pair_filters_order(self, objs):
904 r"""set_pair_filters_order(CloseBipartitePairContainer self, IMP::PairPredicates const & objs)"""
905 return _IMP_container.CloseBipartitePairContainer_set_pair_filters_order(self, objs)
907 def add_pair_filter(self, obj):
908 r"""add_pair_filter(CloseBipartitePairContainer self, PairPredicate obj) -> unsigned int"""
909 return _IMP_container.CloseBipartitePairContainer_add_pair_filter(self, obj)
911 def add_pair_filters(self, objs):
912 r"""add_pair_filters(CloseBipartitePairContainer self, IMP::PairPredicates const & objs)"""
913 return _IMP_container.CloseBipartitePairContainer_add_pair_filters(self, objs)
915 def clear_pair_filters(self):
916 r"""clear_pair_filters(CloseBipartitePairContainer self)"""
917 return _IMP_container.CloseBipartitePairContainer_clear_pair_filters(self)
919 def get_number_of_pair_filters(self):
920 r"""get_number_of_pair_filters(CloseBipartitePairContainer self) -> unsigned int"""
921 return _IMP_container.CloseBipartitePairContainer_get_number_of_pair_filters(self)
923 def get_has_pair_filters(self):
924 r"""get_has_pair_filters(CloseBipartitePairContainer self) -> bool"""
925 return _IMP_container.CloseBipartitePairContainer_get_has_pair_filters(self)
927 def get_pair_filter(self, i):
928 r"""get_pair_filter(CloseBipartitePairContainer self, unsigned int i) -> PairPredicate"""
929 return _IMP_container.CloseBipartitePairContainer_get_pair_filter(self, i)
931 def get_pair_filters(self):
932 r"""get_pair_filters(CloseBipartitePairContainer self) -> IMP::PairPredicates"""
933 return _IMP_container.CloseBipartitePairContainer_get_pair_filters(self)
935 def erase_pair_filter(self, i):
936 r"""erase_pair_filter(CloseBipartitePairContainer self, unsigned int i)"""
937 return _IMP_container.CloseBipartitePairContainer_erase_pair_filter(self, i)
939 def reserve_pair_filters(self, sz):
940 r"""reserve_pair_filters(CloseBipartitePairContainer self, unsigned int sz)"""
941 return _IMP_container.CloseBipartitePairContainer_reserve_pair_filters(self, sz)
943 def do_get_inputs(self):
944 r"""do_get_inputs(CloseBipartitePairContainer self) -> IMP::ModelObjectsTemp"""
945 return _IMP_container.CloseBipartitePairContainer_do_get_inputs(self)
947 def do_apply(self, sm):
948 r"""do_apply(CloseBipartitePairContainer self, PairModifier sm)"""
949 return _IMP_container.CloseBipartitePairContainer_do_apply(self, sm)
951 def get_version_info(self):
952 r"""get_version_info(CloseBipartitePairContainer self) -> VersionInfo"""
953 return _IMP_container.CloseBipartitePairContainer_get_version_info(self)
954 __swig_destroy__ = _IMP_container.delete_CloseBipartitePairContainer
957 r"""__str__(CloseBipartitePairContainer self) -> std::string"""
958 return _IMP_container.CloseBipartitePairContainer___str__(self)
961 r"""__repr__(CloseBipartitePairContainer self) -> std::string"""
962 return _IMP_container.CloseBipartitePairContainer___repr__(self)
966 return _object_cast_to_CloseBipartitePairContainer(o)
969 def _get_as_binary(self):
970 r"""_get_as_binary(CloseBipartitePairContainer self) -> PyObject *"""
971 return _IMP_container.CloseBipartitePairContainer__get_as_binary(self)
973 def _set_from_binary(self, p):
974 r"""_set_from_binary(CloseBipartitePairContainer self, PyObject * p)"""
975 return _IMP_container.CloseBipartitePairContainer__set_from_binary(self, p)
977 def __getstate__(self):
978 p = self._get_as_binary()
979 if len(self.__dict__) > 1:
980 d = self.__dict__.copy()
985 def __setstate__(self, p):
986 if not hasattr(self,
'this'):
988 if isinstance(p, tuple):
990 self.__dict__.update(d)
991 return self._set_from_binary(p)
995 _IMP_container.CloseBipartitePairContainer_swigregister(CloseBipartitePairContainer)
997 r"""Proxy of C++ IMP::container::ClosePairContainer class."""
999 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1001 def __init__(self, *args):
1003 __init__(ClosePairContainer self, _SingletonContainerAdaptor c, double distance_cutoff, double slack=1, std::string name="ClosePairContainer%1%") -> ClosePairContainer
1004 __init__(ClosePairContainer self, _SingletonContainerAdaptor c, double distance_cutoff, ClosePairsFinder cpf, double slack=1, std::string name="ClosePairContainer%1%") -> ClosePairContainer
1005 __init__(ClosePairContainer self) -> ClosePairContainer
1007 _IMP_container.ClosePairContainer_swiginit(self, _IMP_container.new_ClosePairContainer(*args))
1008 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)
1009 def __set_pair_filters(self, obj): IMP._list_util.set_varlist(self.pair_filters, obj)
1010 def __del_pair_filters(self): IMP._list_util.del_varlist(self.pair_filters)
1011 pair_filters = property(__get_pair_filters, __set_pair_filters, __del_pair_filters, doc=
"List of ##ucnames")
1013 def remove_pair_filter(self, d):
1014 r"""remove_pair_filter(ClosePairContainer self, PairPredicate d)"""
1015 return _IMP_container.ClosePairContainer_remove_pair_filter(self, d)
1017 def _python_index_pair_filter(self, d, start, stop):
1018 r"""_python_index_pair_filter(ClosePairContainer self, PairPredicate d, unsigned int start, unsigned int stop) -> unsigned int"""
1019 return _IMP_container.ClosePairContainer__python_index_pair_filter(self, d, start, stop)
1021 def remove_pair_filters(self, d):
1022 r"""remove_pair_filters(ClosePairContainer self, IMP::PairPredicates const & d)"""
1023 return _IMP_container.ClosePairContainer_remove_pair_filters(self, d)
1025 def set_pair_filters(self, ps):
1026 r"""set_pair_filters(ClosePairContainer self, IMP::PairPredicates const & ps)"""
1027 return _IMP_container.ClosePairContainer_set_pair_filters(self, ps)
1029 def set_pair_filters_order(self, objs):
1030 r"""set_pair_filters_order(ClosePairContainer self, IMP::PairPredicates const & objs)"""
1031 return _IMP_container.ClosePairContainer_set_pair_filters_order(self, objs)
1033 def add_pair_filter(self, obj):
1034 r"""add_pair_filter(ClosePairContainer self, PairPredicate obj) -> unsigned int"""
1035 return _IMP_container.ClosePairContainer_add_pair_filter(self, obj)
1037 def add_pair_filters(self, objs):
1038 r"""add_pair_filters(ClosePairContainer self, IMP::PairPredicates const & objs)"""
1039 return _IMP_container.ClosePairContainer_add_pair_filters(self, objs)
1041 def clear_pair_filters(self):
1042 r"""clear_pair_filters(ClosePairContainer self)"""
1043 return _IMP_container.ClosePairContainer_clear_pair_filters(self)
1045 def get_number_of_pair_filters(self):
1046 r"""get_number_of_pair_filters(ClosePairContainer self) -> unsigned int"""
1047 return _IMP_container.ClosePairContainer_get_number_of_pair_filters(self)
1049 def get_has_pair_filters(self):
1050 r"""get_has_pair_filters(ClosePairContainer self) -> bool"""
1051 return _IMP_container.ClosePairContainer_get_has_pair_filters(self)
1053 def get_pair_filter(self, i):
1054 r"""get_pair_filter(ClosePairContainer self, unsigned int i) -> PairPredicate"""
1055 return _IMP_container.ClosePairContainer_get_pair_filter(self, i)
1057 def get_pair_filters(self):
1058 r"""get_pair_filters(ClosePairContainer self) -> IMP::PairPredicates"""
1059 return _IMP_container.ClosePairContainer_get_pair_filters(self)
1061 def erase_pair_filter(self, i):
1062 r"""erase_pair_filter(ClosePairContainer self, unsigned int i)"""
1063 return _IMP_container.ClosePairContainer_erase_pair_filter(self, i)
1065 def reserve_pair_filters(self, sz):
1066 r"""reserve_pair_filters(ClosePairContainer self, unsigned int sz)"""
1067 return _IMP_container.ClosePairContainer_reserve_pair_filters(self, sz)
1069 def set_slack(self, s):
1070 r"""set_slack(ClosePairContainer self, double s)"""
1071 return _IMP_container.ClosePairContainer_set_slack(self, s)
1073 def get_slack(self):
1074 r"""get_slack(ClosePairContainer self) -> double"""
1075 return _IMP_container.ClosePairContainer_get_slack(self)
1077 def do_get_inputs(self):
1078 r"""do_get_inputs(ClosePairContainer self) -> IMP::ModelObjectsTemp"""
1079 return _IMP_container.ClosePairContainer_do_get_inputs(self)
1081 def do_apply(self, sm):
1082 r"""do_apply(ClosePairContainer self, PairModifier sm)"""
1083 return _IMP_container.ClosePairContainer_do_apply(self, sm)
1085 def get_number_of_update_calls(self):
1086 r"""get_number_of_update_calls(ClosePairContainer self) -> unsigned int"""
1087 return _IMP_container.ClosePairContainer_get_number_of_update_calls(self)
1089 def get_number_of_full_rebuilds(self):
1090 r"""get_number_of_full_rebuilds(ClosePairContainer self) -> unsigned int"""
1091 return _IMP_container.ClosePairContainer_get_number_of_full_rebuilds(self)
1093 def get_number_of_partial_rebuilds(self):
1094 r"""get_number_of_partial_rebuilds(ClosePairContainer self) -> unsigned int"""
1095 return _IMP_container.ClosePairContainer_get_number_of_partial_rebuilds(self)
1097 def get_version_info(self):
1098 r"""get_version_info(ClosePairContainer self) -> VersionInfo"""
1099 return _IMP_container.ClosePairContainer_get_version_info(self)
1100 __swig_destroy__ = _IMP_container.delete_ClosePairContainer
1103 r"""__str__(ClosePairContainer self) -> std::string"""
1104 return _IMP_container.ClosePairContainer___str__(self)
1107 r"""__repr__(ClosePairContainer self) -> std::string"""
1108 return _IMP_container.ClosePairContainer___repr__(self)
1112 return _object_cast_to_ClosePairContainer(o)
1115 def _get_as_binary(self):
1116 r"""_get_as_binary(ClosePairContainer self) -> PyObject *"""
1117 return _IMP_container.ClosePairContainer__get_as_binary(self)
1119 def _set_from_binary(self, p):
1120 r"""_set_from_binary(ClosePairContainer self, PyObject * p)"""
1121 return _IMP_container.ClosePairContainer__set_from_binary(self, p)
1123 def __getstate__(self):
1124 p = self._get_as_binary()
1125 if len(self.__dict__) > 1:
1126 d = self.__dict__.copy()
1131 def __setstate__(self, p):
1132 if not hasattr(self,
'this'):
1134 if isinstance(p, tuple):
1136 self.__dict__.update(d)
1137 return self._set_from_binary(p)
1141 _IMP_container.ClosePairContainer_swigregister(ClosePairContainer)
1144 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"""
1145 return _IMP_container.get_slack_estimate(m, ps, upper_bound, step, restraints, derivatives, opt, cpc)
1147 r"""Proxy of C++ IMP::container::ConnectingPairContainer class."""
1149 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1151 def __init__(self, sc, error):
1152 r"""__init__(ConnectingPairContainer self, SingletonContainer sc, double error) -> ConnectingPairContainer"""
1153 _IMP_container.ConnectingPairContainer_swiginit(self, _IMP_container.new_ConnectingPairContainer(sc, error))
1155 def do_get_inputs(self):
1156 r"""do_get_inputs(ConnectingPairContainer self) -> IMP::ModelObjectsTemp"""
1157 return _IMP_container.ConnectingPairContainer_do_get_inputs(self)
1159 def do_apply(self, sm):
1160 r"""do_apply(ConnectingPairContainer self, PairModifier sm)"""
1161 return _IMP_container.ConnectingPairContainer_do_apply(self, sm)
1163 def get_version_info(self):
1164 r"""get_version_info(ConnectingPairContainer self) -> VersionInfo"""
1165 return _IMP_container.ConnectingPairContainer_get_version_info(self)
1166 __swig_destroy__ = _IMP_container.delete_ConnectingPairContainer
1169 r"""__str__(ConnectingPairContainer self) -> std::string"""
1170 return _IMP_container.ConnectingPairContainer___str__(self)
1173 r"""__repr__(ConnectingPairContainer self) -> std::string"""
1174 return _IMP_container.ConnectingPairContainer___repr__(self)
1178 return _object_cast_to_ConnectingPairContainer(o)
1182 _IMP_container.ConnectingPairContainer_swigregister(ConnectingPairContainer)
1184 r"""Proxy of C++ IMP::container::ConsecutivePairContainer class."""
1186 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1188 def __init__(self, *args):
1189 r"""__init__(ConsecutivePairContainer self, Model m, IMP::ParticleIndexes const & ps, std::string name="ConsecutivePairContainer%1%") -> ConsecutivePairContainer"""
1190 _IMP_container.ConsecutivePairContainer_swiginit(self, _IMP_container.new_ConsecutivePairContainer(*args))
1192 def do_get_inputs(self):
1193 r"""do_get_inputs(ConsecutivePairContainer self) -> IMP::ModelObjectsTemp"""
1194 return _IMP_container.ConsecutivePairContainer_do_get_inputs(self)
1196 def do_apply(self, sm):
1197 r"""do_apply(ConsecutivePairContainer self, PairModifier sm)"""
1198 return _IMP_container.ConsecutivePairContainer_do_apply(self, sm)
1200 def do_apply_moved(self, sm, moved_pis, reset_pis):
1201 r"""do_apply_moved(ConsecutivePairContainer self, PairModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
1202 return _IMP_container.ConsecutivePairContainer_do_apply_moved(self, sm, moved_pis, reset_pis)
1204 def get_version_info(self):
1205 r"""get_version_info(ConsecutivePairContainer self) -> VersionInfo"""
1206 return _IMP_container.ConsecutivePairContainer_get_version_info(self)
1207 __swig_destroy__ = _IMP_container.delete_ConsecutivePairContainer
1210 r"""__str__(ConsecutivePairContainer self) -> std::string"""
1211 return _IMP_container.ConsecutivePairContainer___str__(self)
1214 r"""__repr__(ConsecutivePairContainer self) -> std::string"""
1215 return _IMP_container.ConsecutivePairContainer___repr__(self)
1219 return _object_cast_to_ConsecutivePairContainer(o)
1223 _IMP_container.ConsecutivePairContainer_swigregister(ConsecutivePairContainer)
1225 r"""Proxy of C++ IMP::container::ConsecutivePairFilter class."""
1227 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1229 def __init__(self, cpc):
1230 r"""__init__(ConsecutivePairFilter self, ConsecutivePairContainer cpc) -> ConsecutivePairFilter"""
1231 _IMP_container.ConsecutivePairFilter_swiginit(self, _IMP_container.new_ConsecutivePairFilter(cpc))
1233 def do_get_inputs(self, m, pi):
1234 r"""do_get_inputs(ConsecutivePairFilter self, Model m, IMP::ParticleIndexes const & pi) -> IMP::ModelObjectsTemp"""
1235 return _IMP_container.ConsecutivePairFilter_do_get_inputs(self, m, pi)
1237 def get_value(self, *args):
1239 get_value(ConsecutivePairFilter self, IMP::ParticlePair const & a) -> int
1240 get_value(ConsecutivePairFilter self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
1242 return _IMP_container.ConsecutivePairFilter_get_value(self, *args)
1244 def get_value_index(self, *args):
1246 get_value_index(ConsecutivePairFilter self, Model arg2, IMP::ParticleIndexPair const & pip) -> int
1247 get_value_index(ConsecutivePairFilter self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
1249 return _IMP_container.ConsecutivePairFilter_get_value_index(self, *args)
1251 def get_version_info(self):
1252 r"""get_version_info(ConsecutivePairFilter self) -> VersionInfo"""
1253 return _IMP_container.ConsecutivePairFilter_get_version_info(self)
1254 __swig_destroy__ = _IMP_container.delete_ConsecutivePairFilter
1257 r"""__str__(ConsecutivePairFilter self) -> std::string"""
1258 return _IMP_container.ConsecutivePairFilter___str__(self)
1261 r"""__repr__(ConsecutivePairFilter self) -> std::string"""
1262 return _IMP_container.ConsecutivePairFilter___repr__(self)
1266 return _object_cast_to_ConsecutivePairFilter(o)
1270 _IMP_container.ConsecutivePairFilter_swigregister(ConsecutivePairFilter)
1272 r"""Proxy of C++ IMP::container::ExclusiveConsecutivePairContainer class."""
1274 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1276 def __init__(self, *args):
1277 r"""__init__(ExclusiveConsecutivePairContainer self, Model m, IMP::ParticleIndexes const & ps, std::string name="ExclusiveConsecutivePairContainer%1%") -> ExclusiveConsecutivePairContainer"""
1278 _IMP_container.ExclusiveConsecutivePairContainer_swiginit(self, _IMP_container.new_ExclusiveConsecutivePairContainer(*args))
1280 def do_get_inputs(self):
1281 r"""do_get_inputs(ExclusiveConsecutivePairContainer self) -> IMP::ModelObjectsTemp"""
1282 return _IMP_container.ExclusiveConsecutivePairContainer_do_get_inputs(self)
1284 def do_apply(self, sm):
1285 r"""do_apply(ExclusiveConsecutivePairContainer self, PairModifier sm)"""
1286 return _IMP_container.ExclusiveConsecutivePairContainer_do_apply(self, sm)
1288 def do_apply_moved(self, sm, moved_pis, reset_pis):
1289 r"""do_apply_moved(ExclusiveConsecutivePairContainer self, PairModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
1290 return _IMP_container.ExclusiveConsecutivePairContainer_do_apply_moved(self, sm, moved_pis, reset_pis)
1292 def get_version_info(self):
1293 r"""get_version_info(ExclusiveConsecutivePairContainer self) -> VersionInfo"""
1294 return _IMP_container.ExclusiveConsecutivePairContainer_get_version_info(self)
1295 __swig_destroy__ = _IMP_container.delete_ExclusiveConsecutivePairContainer
1298 r"""__str__(ExclusiveConsecutivePairContainer self) -> std::string"""
1299 return _IMP_container.ExclusiveConsecutivePairContainer___str__(self)
1302 r"""__repr__(ExclusiveConsecutivePairContainer self) -> std::string"""
1303 return _IMP_container.ExclusiveConsecutivePairContainer___repr__(self)
1307 return _object_cast_to_ExclusiveConsecutivePairContainer(o)
1311 _IMP_container.ExclusiveConsecutivePairContainer_swigregister(ExclusiveConsecutivePairContainer)
1313 r"""Proxy of C++ IMP::container::ExclusiveConsecutivePairFilter class."""
1315 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1318 r"""__init__(ExclusiveConsecutivePairFilter self) -> ExclusiveConsecutivePairFilter"""
1319 _IMP_container.ExclusiveConsecutivePairFilter_swiginit(self, _IMP_container.new_ExclusiveConsecutivePairFilter())
1321 def do_get_inputs(self, m, pi):
1322 r"""do_get_inputs(ExclusiveConsecutivePairFilter self, Model m, IMP::ParticleIndexes const & pi) -> IMP::ModelObjectsTemp"""
1323 return _IMP_container.ExclusiveConsecutivePairFilter_do_get_inputs(self, m, pi)
1325 def get_value(self, *args):
1327 get_value(ExclusiveConsecutivePairFilter self, IMP::ParticlePair const & a) -> int
1328 get_value(ExclusiveConsecutivePairFilter self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
1330 return _IMP_container.ExclusiveConsecutivePairFilter_get_value(self, *args)
1332 def get_value_index(self, *args):
1334 get_value_index(ExclusiveConsecutivePairFilter self, Model m, IMP::ParticleIndexPair const & pip) -> int
1335 get_value_index(ExclusiveConsecutivePairFilter self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
1337 return _IMP_container.ExclusiveConsecutivePairFilter_get_value_index(self, *args)
1339 def get_version_info(self):
1340 r"""get_version_info(ExclusiveConsecutivePairFilter self) -> VersionInfo"""
1341 return _IMP_container.ExclusiveConsecutivePairFilter_get_version_info(self)
1342 __swig_destroy__ = _IMP_container.delete_ExclusiveConsecutivePairFilter
1345 r"""__str__(ExclusiveConsecutivePairFilter self) -> std::string"""
1346 return _IMP_container.ExclusiveConsecutivePairFilter___str__(self)
1349 r"""__repr__(ExclusiveConsecutivePairFilter self) -> std::string"""
1350 return _IMP_container.ExclusiveConsecutivePairFilter___repr__(self)
1354 return _object_cast_to_ExclusiveConsecutivePairFilter(o)
1358 _IMP_container.ExclusiveConsecutivePairFilter_swigregister(ExclusiveConsecutivePairFilter)
1360 r"""Proxy of C++ IMP::container::ListPairContainer class."""
1362 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1364 def __init__(self, *args):
1366 __init__(ListPairContainer self, Model m, IMP::ParticleIndexPairs const & contents, std::string name="ListPairContainer%1%") -> ListPairContainer
1367 __init__(ListPairContainer self, Model m, std::string name="ListPairContainer %1%") -> ListPairContainer
1368 __init__(ListPairContainer self, Model m, char const * name) -> ListPairContainer
1369 __init__(ListPairContainer self) -> ListPairContainer
1371 _IMP_container.ListPairContainer_swiginit(self, _IMP_container.new_ListPairContainer(*args))
1373 def add(self, *args):
1375 add(ListPairContainer self, IMP::ParticleIndexPair const & vt)
1376 add(ListPairContainer self, IMP::ParticleIndexPairs const & c)
1378 return _IMP_container.ListPairContainer_add(self, *args)
1381 r"""set(ListPairContainer self, IMP::ParticleIndexPairs cp)"""
1382 return _IMP_container.ListPairContainer_set(self, cp)
1385 r"""clear(ListPairContainer self)"""
1386 return _IMP_container.ListPairContainer_clear(self)
1388 def do_get_inputs(self):
1389 r"""do_get_inputs(ListPairContainer self) -> IMP::ModelObjectsTemp"""
1390 return _IMP_container.ListPairContainer_do_get_inputs(self)
1392 def do_apply(self, sm):
1393 r"""do_apply(ListPairContainer self, PairModifier sm)"""
1394 return _IMP_container.ListPairContainer_do_apply(self, sm)
1396 def do_apply_moved(self, sm, moved_pis, reset_pis):
1397 r"""do_apply_moved(ListPairContainer self, PairModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
1398 return _IMP_container.ListPairContainer_do_apply_moved(self, sm, moved_pis, reset_pis)
1400 def get_version_info(self):
1401 r"""get_version_info(ListPairContainer self) -> VersionInfo"""
1402 return _IMP_container.ListPairContainer_get_version_info(self)
1403 __swig_destroy__ = _IMP_container.delete_ListPairContainer
1406 r"""__str__(ListPairContainer self) -> std::string"""
1407 return _IMP_container.ListPairContainer___str__(self)
1410 r"""__repr__(ListPairContainer self) -> std::string"""
1411 return _IMP_container.ListPairContainer___repr__(self)
1415 return _object_cast_to_ListPairContainer(o)
1418 def _get_as_binary(self):
1419 r"""_get_as_binary(ListPairContainer self) -> PyObject *"""
1420 return _IMP_container.ListPairContainer__get_as_binary(self)
1422 def _set_from_binary(self, p):
1423 r"""_set_from_binary(ListPairContainer self, PyObject * p)"""
1424 return _IMP_container.ListPairContainer__set_from_binary(self, p)
1426 def __getstate__(self):
1427 p = self._get_as_binary()
1428 if len(self.__dict__) > 1:
1429 d = self.__dict__.copy()
1434 def __setstate__(self, p):
1435 if not hasattr(self,
'this'):
1437 if isinstance(p, tuple):
1439 self.__dict__.update(d)
1440 return self._set_from_binary(p)
1444 _IMP_container.ListPairContainer_swigregister(ListPairContainer)
1446 r"""Proxy of C++ IMP::container::ListQuadContainer class."""
1448 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1450 def __init__(self, *args):
1452 __init__(ListQuadContainer self, Model m, IMP::ParticleIndexQuads const & contents, std::string name="ListQuadContainer%1%") -> ListQuadContainer
1453 __init__(ListQuadContainer self, Model m, std::string name="ListQuadContainer %1%") -> ListQuadContainer
1454 __init__(ListQuadContainer self, Model m, char const * name) -> ListQuadContainer
1455 __init__(ListQuadContainer self) -> ListQuadContainer
1457 _IMP_container.ListQuadContainer_swiginit(self, _IMP_container.new_ListQuadContainer(*args))
1459 def add(self, *args):
1461 add(ListQuadContainer self, IMP::ParticleIndexQuad const & vt)
1462 add(ListQuadContainer self, IMP::ParticleIndexQuads const & c)
1464 return _IMP_container.ListQuadContainer_add(self, *args)
1467 r"""set(ListQuadContainer self, IMP::ParticleIndexQuads cp)"""
1468 return _IMP_container.ListQuadContainer_set(self, cp)
1471 r"""clear(ListQuadContainer self)"""
1472 return _IMP_container.ListQuadContainer_clear(self)
1474 def do_get_inputs(self):
1475 r"""do_get_inputs(ListQuadContainer self) -> IMP::ModelObjectsTemp"""
1476 return _IMP_container.ListQuadContainer_do_get_inputs(self)
1478 def do_apply(self, sm):
1479 r"""do_apply(ListQuadContainer self, QuadModifier sm)"""
1480 return _IMP_container.ListQuadContainer_do_apply(self, sm)
1482 def do_apply_moved(self, sm, moved_pis, reset_pis):
1483 r"""do_apply_moved(ListQuadContainer self, QuadModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
1484 return _IMP_container.ListQuadContainer_do_apply_moved(self, sm, moved_pis, reset_pis)
1486 def get_version_info(self):
1487 r"""get_version_info(ListQuadContainer self) -> VersionInfo"""
1488 return _IMP_container.ListQuadContainer_get_version_info(self)
1489 __swig_destroy__ = _IMP_container.delete_ListQuadContainer
1492 r"""__str__(ListQuadContainer self) -> std::string"""
1493 return _IMP_container.ListQuadContainer___str__(self)
1496 r"""__repr__(ListQuadContainer self) -> std::string"""
1497 return _IMP_container.ListQuadContainer___repr__(self)
1501 return _object_cast_to_ListQuadContainer(o)
1504 def _get_as_binary(self):
1505 r"""_get_as_binary(ListQuadContainer self) -> PyObject *"""
1506 return _IMP_container.ListQuadContainer__get_as_binary(self)
1508 def _set_from_binary(self, p):
1509 r"""_set_from_binary(ListQuadContainer self, PyObject * p)"""
1510 return _IMP_container.ListQuadContainer__set_from_binary(self, p)
1512 def __getstate__(self):
1513 p = self._get_as_binary()
1514 if len(self.__dict__) > 1:
1515 d = self.__dict__.copy()
1520 def __setstate__(self, p):
1521 if not hasattr(self,
'this'):
1523 if isinstance(p, tuple):
1525 self.__dict__.update(d)
1526 return self._set_from_binary(p)
1530 _IMP_container.ListQuadContainer_swigregister(ListQuadContainer)
1532 r"""Proxy of C++ IMP::container::ListSingletonContainer class."""
1534 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1536 def __init__(self, *args):
1538 __init__(ListSingletonContainer self, Model m, IMP::ParticleIndexes const & contents, std::string name="ListSingletonContainer%1%") -> ListSingletonContainer
1539 __init__(ListSingletonContainer self, Model m, std::string name="ListSingletonContainer %1%") -> ListSingletonContainer
1540 __init__(ListSingletonContainer self, Model m, char const * name) -> ListSingletonContainer
1541 __init__(ListSingletonContainer self) -> ListSingletonContainer
1543 _IMP_container.ListSingletonContainer_swiginit(self, _IMP_container.new_ListSingletonContainer(*args))
1545 def add(self, *args):
1547 add(ListSingletonContainer self, ParticleIndex vt)
1548 add(ListSingletonContainer self, IMP::ParticleIndexes const & c)
1550 return _IMP_container.ListSingletonContainer_add(self, *args)
1553 r"""set(ListSingletonContainer self, IMP::ParticleIndexes cp)"""
1554 return _IMP_container.ListSingletonContainer_set(self, cp)
1557 r"""clear(ListSingletonContainer self)"""
1558 return _IMP_container.ListSingletonContainer_clear(self)
1560 def do_get_inputs(self):
1561 r"""do_get_inputs(ListSingletonContainer self) -> IMP::ModelObjectsTemp"""
1562 return _IMP_container.ListSingletonContainer_do_get_inputs(self)
1564 def do_apply(self, sm):
1565 r"""do_apply(ListSingletonContainer self, SingletonModifier sm)"""
1566 return _IMP_container.ListSingletonContainer_do_apply(self, sm)
1568 def do_apply_moved(self, sm, moved_pis, reset_pis):
1569 r"""do_apply_moved(ListSingletonContainer self, SingletonModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
1570 return _IMP_container.ListSingletonContainer_do_apply_moved(self, sm, moved_pis, reset_pis)
1572 def get_version_info(self):
1573 r"""get_version_info(ListSingletonContainer self) -> VersionInfo"""
1574 return _IMP_container.ListSingletonContainer_get_version_info(self)
1575 __swig_destroy__ = _IMP_container.delete_ListSingletonContainer
1578 r"""__str__(ListSingletonContainer self) -> std::string"""
1579 return _IMP_container.ListSingletonContainer___str__(self)
1582 r"""__repr__(ListSingletonContainer self) -> std::string"""
1583 return _IMP_container.ListSingletonContainer___repr__(self)
1587 return _object_cast_to_ListSingletonContainer(o)
1590 def _get_as_binary(self):
1591 r"""_get_as_binary(ListSingletonContainer self) -> PyObject *"""
1592 return _IMP_container.ListSingletonContainer__get_as_binary(self)
1594 def _set_from_binary(self, p):
1595 r"""_set_from_binary(ListSingletonContainer self, PyObject * p)"""
1596 return _IMP_container.ListSingletonContainer__set_from_binary(self, p)
1598 def __getstate__(self):
1599 p = self._get_as_binary()
1600 if len(self.__dict__) > 1:
1601 d = self.__dict__.copy()
1606 def __setstate__(self, p):
1607 if not hasattr(self,
'this'):
1609 if isinstance(p, tuple):
1611 self.__dict__.update(d)
1612 return self._set_from_binary(p)
1616 _IMP_container.ListSingletonContainer_swigregister(ListSingletonContainer)
1618 r"""Proxy of C++ IMP::container::ListTripletContainer class."""
1620 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1622 def __init__(self, *args):
1624 __init__(ListTripletContainer self, Model m, IMP::ParticleIndexTriplets const & contents, std::string name="ListTripletContainer%1%") -> ListTripletContainer
1625 __init__(ListTripletContainer self, Model m, std::string name="ListTripletContainer %1%") -> ListTripletContainer
1626 __init__(ListTripletContainer self, Model m, char const * name) -> ListTripletContainer
1627 __init__(ListTripletContainer self) -> ListTripletContainer
1629 _IMP_container.ListTripletContainer_swiginit(self, _IMP_container.new_ListTripletContainer(*args))
1631 def add(self, *args):
1633 add(ListTripletContainer self, IMP::ParticleIndexTriplet const & vt)
1634 add(ListTripletContainer self, IMP::ParticleIndexTriplets const & c)
1636 return _IMP_container.ListTripletContainer_add(self, *args)
1639 r"""set(ListTripletContainer self, IMP::ParticleIndexTriplets cp)"""
1640 return _IMP_container.ListTripletContainer_set(self, cp)
1643 r"""clear(ListTripletContainer self)"""
1644 return _IMP_container.ListTripletContainer_clear(self)
1646 def do_get_inputs(self):
1647 r"""do_get_inputs(ListTripletContainer self) -> IMP::ModelObjectsTemp"""
1648 return _IMP_container.ListTripletContainer_do_get_inputs(self)
1650 def do_apply(self, sm):
1651 r"""do_apply(ListTripletContainer self, TripletModifier sm)"""
1652 return _IMP_container.ListTripletContainer_do_apply(self, sm)
1654 def do_apply_moved(self, sm, moved_pis, reset_pis):
1655 r"""do_apply_moved(ListTripletContainer self, TripletModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
1656 return _IMP_container.ListTripletContainer_do_apply_moved(self, sm, moved_pis, reset_pis)
1658 def get_version_info(self):
1659 r"""get_version_info(ListTripletContainer self) -> VersionInfo"""
1660 return _IMP_container.ListTripletContainer_get_version_info(self)
1661 __swig_destroy__ = _IMP_container.delete_ListTripletContainer
1664 r"""__str__(ListTripletContainer self) -> std::string"""
1665 return _IMP_container.ListTripletContainer___str__(self)
1668 r"""__repr__(ListTripletContainer self) -> std::string"""
1669 return _IMP_container.ListTripletContainer___repr__(self)
1673 return _object_cast_to_ListTripletContainer(o)
1676 def _get_as_binary(self):
1677 r"""_get_as_binary(ListTripletContainer self) -> PyObject *"""
1678 return _IMP_container.ListTripletContainer__get_as_binary(self)
1680 def _set_from_binary(self, p):
1681 r"""_set_from_binary(ListTripletContainer self, PyObject * p)"""
1682 return _IMP_container.ListTripletContainer__set_from_binary(self, p)
1684 def __getstate__(self):
1685 p = self._get_as_binary()
1686 if len(self.__dict__) > 1:
1687 d = self.__dict__.copy()
1692 def __setstate__(self, p):
1693 if not hasattr(self,
'this'):
1695 if isinstance(p, tuple):
1697 self.__dict__.update(d)
1698 return self._set_from_binary(p)
1702 _IMP_container.ListTripletContainer_swigregister(ListTripletContainer)
1704 r"""Proxy of C++ IMP::container::DynamicListPairContainer class."""
1706 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1708 def __init__(self, *args, **kwargs):
1709 raise AttributeError(
"No constructor defined - class is abstract")
1711 def add(self, *args):
1713 add(DynamicListPairContainer self, IMP::ParticleIndexPair const & vt)
1714 add(DynamicListPairContainer self, IMP::ParticleIndexPairs const & c)
1716 return _IMP_container.DynamicListPairContainer_add(self, *args)
1719 r"""set(DynamicListPairContainer self, IMP::ParticleIndexPairs cp)"""
1720 return _IMP_container.DynamicListPairContainer_set(self, cp)
1723 r"""clear(DynamicListPairContainer self)"""
1724 return _IMP_container.DynamicListPairContainer_clear(self)
1726 def do_get_inputs(self):
1727 r"""do_get_inputs(DynamicListPairContainer self) -> IMP::ModelObjectsTemp"""
1728 return _IMP_container.DynamicListPairContainer_do_get_inputs(self)
1730 def do_apply(self, sm):
1731 r"""do_apply(DynamicListPairContainer self, PairModifier sm)"""
1732 return _IMP_container.DynamicListPairContainer_do_apply(self, sm)
1734 def do_apply_moved(self, sm, moved_pis, reset_pis):
1735 r"""do_apply_moved(DynamicListPairContainer self, PairModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
1736 return _IMP_container.DynamicListPairContainer_do_apply_moved(self, sm, moved_pis, reset_pis)
1738 def get_version_info(self):
1739 r"""get_version_info(DynamicListPairContainer self) -> VersionInfo"""
1740 return _IMP_container.DynamicListPairContainer_get_version_info(self)
1741 __swig_destroy__ = _IMP_container.delete_DynamicListPairContainer
1744 r"""__str__(DynamicListPairContainer self) -> std::string"""
1745 return _IMP_container.DynamicListPairContainer___str__(self)
1748 r"""__repr__(DynamicListPairContainer self) -> std::string"""
1749 return _IMP_container.DynamicListPairContainer___repr__(self)
1753 return _object_cast_to_DynamicListPairContainer(o)
1757 _IMP_container.DynamicListPairContainer_swigregister(DynamicListPairContainer)
1759 r"""Proxy of C++ IMP::container::DynamicListQuadContainer class."""
1761 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1763 def __init__(self, *args, **kwargs):
1764 raise AttributeError(
"No constructor defined - class is abstract")
1766 def add(self, *args):
1768 add(DynamicListQuadContainer self, IMP::ParticleIndexQuad const & vt)
1769 add(DynamicListQuadContainer self, IMP::ParticleIndexQuads const & c)
1771 return _IMP_container.DynamicListQuadContainer_add(self, *args)
1774 r"""set(DynamicListQuadContainer self, IMP::ParticleIndexQuads cp)"""
1775 return _IMP_container.DynamicListQuadContainer_set(self, cp)
1778 r"""clear(DynamicListQuadContainer self)"""
1779 return _IMP_container.DynamicListQuadContainer_clear(self)
1781 def do_get_inputs(self):
1782 r"""do_get_inputs(DynamicListQuadContainer self) -> IMP::ModelObjectsTemp"""
1783 return _IMP_container.DynamicListQuadContainer_do_get_inputs(self)
1785 def do_apply(self, sm):
1786 r"""do_apply(DynamicListQuadContainer self, QuadModifier sm)"""
1787 return _IMP_container.DynamicListQuadContainer_do_apply(self, sm)
1789 def do_apply_moved(self, sm, moved_pis, reset_pis):
1790 r"""do_apply_moved(DynamicListQuadContainer self, QuadModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
1791 return _IMP_container.DynamicListQuadContainer_do_apply_moved(self, sm, moved_pis, reset_pis)
1793 def get_version_info(self):
1794 r"""get_version_info(DynamicListQuadContainer self) -> VersionInfo"""
1795 return _IMP_container.DynamicListQuadContainer_get_version_info(self)
1796 __swig_destroy__ = _IMP_container.delete_DynamicListQuadContainer
1799 r"""__str__(DynamicListQuadContainer self) -> std::string"""
1800 return _IMP_container.DynamicListQuadContainer___str__(self)
1803 r"""__repr__(DynamicListQuadContainer self) -> std::string"""
1804 return _IMP_container.DynamicListQuadContainer___repr__(self)
1808 return _object_cast_to_DynamicListQuadContainer(o)
1812 _IMP_container.DynamicListQuadContainer_swigregister(DynamicListQuadContainer)
1814 r"""Proxy of C++ IMP::container::DynamicListSingletonContainer class."""
1816 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1818 def __init__(self, *args, **kwargs):
1819 raise AttributeError(
"No constructor defined - class is abstract")
1821 def add(self, *args):
1823 add(DynamicListSingletonContainer self, ParticleIndex vt)
1824 add(DynamicListSingletonContainer self, IMP::ParticleIndexes const & c)
1826 return _IMP_container.DynamicListSingletonContainer_add(self, *args)
1829 r"""set(DynamicListSingletonContainer self, IMP::ParticleIndexes cp)"""
1830 return _IMP_container.DynamicListSingletonContainer_set(self, cp)
1833 r"""clear(DynamicListSingletonContainer self)"""
1834 return _IMP_container.DynamicListSingletonContainer_clear(self)
1836 def do_get_inputs(self):
1837 r"""do_get_inputs(DynamicListSingletonContainer self) -> IMP::ModelObjectsTemp"""
1838 return _IMP_container.DynamicListSingletonContainer_do_get_inputs(self)
1840 def do_apply(self, sm):
1841 r"""do_apply(DynamicListSingletonContainer self, SingletonModifier sm)"""
1842 return _IMP_container.DynamicListSingletonContainer_do_apply(self, sm)
1844 def do_apply_moved(self, sm, moved_pis, reset_pis):
1845 r"""do_apply_moved(DynamicListSingletonContainer self, SingletonModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
1846 return _IMP_container.DynamicListSingletonContainer_do_apply_moved(self, sm, moved_pis, reset_pis)
1848 def get_version_info(self):
1849 r"""get_version_info(DynamicListSingletonContainer self) -> VersionInfo"""
1850 return _IMP_container.DynamicListSingletonContainer_get_version_info(self)
1851 __swig_destroy__ = _IMP_container.delete_DynamicListSingletonContainer
1854 r"""__str__(DynamicListSingletonContainer self) -> std::string"""
1855 return _IMP_container.DynamicListSingletonContainer___str__(self)
1858 r"""__repr__(DynamicListSingletonContainer self) -> std::string"""
1859 return _IMP_container.DynamicListSingletonContainer___repr__(self)
1863 return _object_cast_to_DynamicListSingletonContainer(o)
1867 _IMP_container.DynamicListSingletonContainer_swigregister(DynamicListSingletonContainer)
1869 r"""Proxy of C++ IMP::container::DynamicListTripletContainer class."""
1871 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1873 def __init__(self, *args, **kwargs):
1874 raise AttributeError(
"No constructor defined - class is abstract")
1876 def add(self, *args):
1878 add(DynamicListTripletContainer self, IMP::ParticleIndexTriplet const & vt)
1879 add(DynamicListTripletContainer self, IMP::ParticleIndexTriplets const & c)
1881 return _IMP_container.DynamicListTripletContainer_add(self, *args)
1884 r"""set(DynamicListTripletContainer self, IMP::ParticleIndexTriplets cp)"""
1885 return _IMP_container.DynamicListTripletContainer_set(self, cp)
1888 r"""clear(DynamicListTripletContainer self)"""
1889 return _IMP_container.DynamicListTripletContainer_clear(self)
1891 def do_get_inputs(self):
1892 r"""do_get_inputs(DynamicListTripletContainer self) -> IMP::ModelObjectsTemp"""
1893 return _IMP_container.DynamicListTripletContainer_do_get_inputs(self)
1895 def do_apply(self, sm):
1896 r"""do_apply(DynamicListTripletContainer self, TripletModifier sm)"""
1897 return _IMP_container.DynamicListTripletContainer_do_apply(self, sm)
1899 def do_apply_moved(self, sm, moved_pis, reset_pis):
1900 r"""do_apply_moved(DynamicListTripletContainer self, TripletModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
1901 return _IMP_container.DynamicListTripletContainer_do_apply_moved(self, sm, moved_pis, reset_pis)
1903 def get_version_info(self):
1904 r"""get_version_info(DynamicListTripletContainer self) -> VersionInfo"""
1905 return _IMP_container.DynamicListTripletContainer_get_version_info(self)
1906 __swig_destroy__ = _IMP_container.delete_DynamicListTripletContainer
1909 r"""__str__(DynamicListTripletContainer self) -> std::string"""
1910 return _IMP_container.DynamicListTripletContainer___str__(self)
1913 r"""__repr__(DynamicListTripletContainer self) -> std::string"""
1914 return _IMP_container.DynamicListTripletContainer___repr__(self)
1918 return _object_cast_to_DynamicListTripletContainer(o)
1922 _IMP_container.DynamicListTripletContainer_swigregister(DynamicListTripletContainer)
1924 r"""Proxy of C++ IMP::container::MinimumPairRestraint class."""
1926 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1928 def __init__(self, *args):
1929 r"""__init__(MinimumPairRestraint self, PairScore f, _PairContainerAdaptor c, unsigned int n=1, std::string name="MinimumPairRestraint %1%") -> MinimumPairRestraint"""
1930 _IMP_container.MinimumPairRestraint_swiginit(self, _IMP_container.new_MinimumPairRestraint(*args))
1932 def do_get_inputs(self):
1933 r"""do_get_inputs(MinimumPairRestraint self) -> IMP::ModelObjectsTemp"""
1934 return _IMP_container.MinimumPairRestraint_do_get_inputs(self)
1936 def get_version_info(self):
1937 r"""get_version_info(MinimumPairRestraint self) -> VersionInfo"""
1938 return _IMP_container.MinimumPairRestraint_get_version_info(self)
1939 __swig_destroy__ = _IMP_container.delete_MinimumPairRestraint
1942 r"""set_n(MinimumPairRestraint self, unsigned int n)"""
1943 return _IMP_container.MinimumPairRestraint_set_n(self, n)
1945 def do_create_current_decomposition(self):
1946 r"""do_create_current_decomposition(MinimumPairRestraint self) -> IMP::Restraints"""
1947 return _IMP_container.MinimumPairRestraint_do_create_current_decomposition(self)
1950 r"""__str__(MinimumPairRestraint self) -> std::string"""
1951 return _IMP_container.MinimumPairRestraint___str__(self)
1954 r"""__repr__(MinimumPairRestraint self) -> std::string"""
1955 return _IMP_container.MinimumPairRestraint___repr__(self)
1959 return _object_cast_to_MinimumPairRestraint(o)
1963 _IMP_container.MinimumPairRestraint_swigregister(MinimumPairRestraint)
1965 r"""Proxy of C++ IMP::container::MinimumPairScore class."""
1967 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
1969 def __init__(self, *args):
1970 r"""__init__(MinimumPairScore self, IMP::PairScoresTemp const & scores, unsigned int n=1, std::string name="PairScore %1%") -> MinimumPairScore"""
1971 _IMP_container.MinimumPairScore_swiginit(self, _IMP_container.new_MinimumPairScore(*args))
1973 def do_get_inputs(self, m, pis):
1974 r"""do_get_inputs(MinimumPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
1975 return _IMP_container.MinimumPairScore_do_get_inputs(self, m, pis)
1977 def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
1978 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"""
1979 return _IMP_container.MinimumPairScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
1981 def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
1982 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"""
1983 return _IMP_container.MinimumPairScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
1985 def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
1986 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"""
1987 return _IMP_container.MinimumPairScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
1989 def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
1990 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"""
1991 return _IMP_container.MinimumPairScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
1993 def get_version_info(self):
1994 r"""get_version_info(MinimumPairScore self) -> VersionInfo"""
1995 return _IMP_container.MinimumPairScore_get_version_info(self)
1996 __swig_destroy__ = _IMP_container.delete_MinimumPairScore
1998 def do_create_current_decomposition(self, m, vt):
1999 r"""do_create_current_decomposition(MinimumPairScore self, Model m, IMP::ParticleIndexPair const & vt) -> IMP::Restraints"""
2000 return _IMP_container.MinimumPairScore_do_create_current_decomposition(self, m, vt)
2003 r"""__str__(MinimumPairScore self) -> std::string"""
2004 return _IMP_container.MinimumPairScore___str__(self)
2007 r"""__repr__(MinimumPairScore self) -> std::string"""
2008 return _IMP_container.MinimumPairScore___repr__(self)
2012 return _object_cast_to_MinimumPairScore(o)
2016 _IMP_container.MinimumPairScore_swigregister(MinimumPairScore)
2018 r"""Proxy of C++ IMP::container::MinimumQuadRestraint class."""
2020 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2022 def __init__(self, *args):
2023 r"""__init__(MinimumQuadRestraint self, QuadScore f, _QuadContainerAdaptor c, unsigned int n=1, std::string name="MinimumQuadRestraint %1%") -> MinimumQuadRestraint"""
2024 _IMP_container.MinimumQuadRestraint_swiginit(self, _IMP_container.new_MinimumQuadRestraint(*args))
2026 def do_get_inputs(self):
2027 r"""do_get_inputs(MinimumQuadRestraint self) -> IMP::ModelObjectsTemp"""
2028 return _IMP_container.MinimumQuadRestraint_do_get_inputs(self)
2030 def get_version_info(self):
2031 r"""get_version_info(MinimumQuadRestraint self) -> VersionInfo"""
2032 return _IMP_container.MinimumQuadRestraint_get_version_info(self)
2033 __swig_destroy__ = _IMP_container.delete_MinimumQuadRestraint
2036 r"""set_n(MinimumQuadRestraint self, unsigned int n)"""
2037 return _IMP_container.MinimumQuadRestraint_set_n(self, n)
2039 def do_create_current_decomposition(self):
2040 r"""do_create_current_decomposition(MinimumQuadRestraint self) -> IMP::Restraints"""
2041 return _IMP_container.MinimumQuadRestraint_do_create_current_decomposition(self)
2044 r"""__str__(MinimumQuadRestraint self) -> std::string"""
2045 return _IMP_container.MinimumQuadRestraint___str__(self)
2048 r"""__repr__(MinimumQuadRestraint self) -> std::string"""
2049 return _IMP_container.MinimumQuadRestraint___repr__(self)
2053 return _object_cast_to_MinimumQuadRestraint(o)
2057 _IMP_container.MinimumQuadRestraint_swigregister(MinimumQuadRestraint)
2059 r"""Proxy of C++ IMP::container::MinimumQuadScore class."""
2061 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2063 def __init__(self, *args):
2064 r"""__init__(MinimumQuadScore self, IMP::QuadScoresTemp const & scores, unsigned int n=1, std::string name="QuadScore %1%") -> MinimumQuadScore"""
2065 _IMP_container.MinimumQuadScore_swiginit(self, _IMP_container.new_MinimumQuadScore(*args))
2067 def do_get_inputs(self, m, pis):
2068 r"""do_get_inputs(MinimumQuadScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
2069 return _IMP_container.MinimumQuadScore_do_get_inputs(self, m, pis)
2071 def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
2072 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"""
2073 return _IMP_container.MinimumQuadScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
2075 def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
2076 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"""
2077 return _IMP_container.MinimumQuadScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
2079 def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
2080 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"""
2081 return _IMP_container.MinimumQuadScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
2083 def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
2084 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"""
2085 return _IMP_container.MinimumQuadScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
2087 def get_version_info(self):
2088 r"""get_version_info(MinimumQuadScore self) -> VersionInfo"""
2089 return _IMP_container.MinimumQuadScore_get_version_info(self)
2090 __swig_destroy__ = _IMP_container.delete_MinimumQuadScore
2092 def do_create_current_decomposition(self, m, vt):
2093 r"""do_create_current_decomposition(MinimumQuadScore self, Model m, IMP::ParticleIndexQuad const & vt) -> IMP::Restraints"""
2094 return _IMP_container.MinimumQuadScore_do_create_current_decomposition(self, m, vt)
2097 r"""__str__(MinimumQuadScore self) -> std::string"""
2098 return _IMP_container.MinimumQuadScore___str__(self)
2101 r"""__repr__(MinimumQuadScore self) -> std::string"""
2102 return _IMP_container.MinimumQuadScore___repr__(self)
2106 return _object_cast_to_MinimumQuadScore(o)
2110 _IMP_container.MinimumQuadScore_swigregister(MinimumQuadScore)
2112 r"""Proxy of C++ IMP::container::MinimumSingletonRestraint class."""
2114 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2116 def __init__(self, *args):
2117 r"""__init__(MinimumSingletonRestraint self, SingletonScore f, _SingletonContainerAdaptor c, unsigned int n=1, std::string name="MinimumSingletonRestraint %1%") -> MinimumSingletonRestraint"""
2118 _IMP_container.MinimumSingletonRestraint_swiginit(self, _IMP_container.new_MinimumSingletonRestraint(*args))
2120 def do_get_inputs(self):
2121 r"""do_get_inputs(MinimumSingletonRestraint self) -> IMP::ModelObjectsTemp"""
2122 return _IMP_container.MinimumSingletonRestraint_do_get_inputs(self)
2124 def get_version_info(self):
2125 r"""get_version_info(MinimumSingletonRestraint self) -> VersionInfo"""
2126 return _IMP_container.MinimumSingletonRestraint_get_version_info(self)
2127 __swig_destroy__ = _IMP_container.delete_MinimumSingletonRestraint
2130 r"""set_n(MinimumSingletonRestraint self, unsigned int n)"""
2131 return _IMP_container.MinimumSingletonRestraint_set_n(self, n)
2133 def do_create_current_decomposition(self):
2134 r"""do_create_current_decomposition(MinimumSingletonRestraint self) -> IMP::Restraints"""
2135 return _IMP_container.MinimumSingletonRestraint_do_create_current_decomposition(self)
2138 r"""__str__(MinimumSingletonRestraint self) -> std::string"""
2139 return _IMP_container.MinimumSingletonRestraint___str__(self)
2142 r"""__repr__(MinimumSingletonRestraint self) -> std::string"""
2143 return _IMP_container.MinimumSingletonRestraint___repr__(self)
2147 return _object_cast_to_MinimumSingletonRestraint(o)
2151 _IMP_container.MinimumSingletonRestraint_swigregister(MinimumSingletonRestraint)
2153 r"""Proxy of C++ IMP::container::MinimumSingletonScore class."""
2155 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2157 def __init__(self, *args):
2158 r"""__init__(MinimumSingletonScore self, IMP::SingletonScoresTemp const & scores, unsigned int n=1, std::string name="SingletonScore %1%") -> MinimumSingletonScore"""
2159 _IMP_container.MinimumSingletonScore_swiginit(self, _IMP_container.new_MinimumSingletonScore(*args))
2161 def do_get_inputs(self, m, pis):
2162 r"""do_get_inputs(MinimumSingletonScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
2163 return _IMP_container.MinimumSingletonScore_do_get_inputs(self, m, pis)
2165 def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
2166 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"""
2167 return _IMP_container.MinimumSingletonScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
2169 def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
2170 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"""
2171 return _IMP_container.MinimumSingletonScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
2173 def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
2174 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"""
2175 return _IMP_container.MinimumSingletonScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
2177 def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
2178 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"""
2179 return _IMP_container.MinimumSingletonScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
2181 def get_version_info(self):
2182 r"""get_version_info(MinimumSingletonScore self) -> VersionInfo"""
2183 return _IMP_container.MinimumSingletonScore_get_version_info(self)
2184 __swig_destroy__ = _IMP_container.delete_MinimumSingletonScore
2186 def do_create_current_decomposition(self, m, vt):
2187 r"""do_create_current_decomposition(MinimumSingletonScore self, Model m, ParticleIndex vt) -> IMP::Restraints"""
2188 return _IMP_container.MinimumSingletonScore_do_create_current_decomposition(self, m, vt)
2191 r"""__str__(MinimumSingletonScore self) -> std::string"""
2192 return _IMP_container.MinimumSingletonScore___str__(self)
2195 r"""__repr__(MinimumSingletonScore self) -> std::string"""
2196 return _IMP_container.MinimumSingletonScore___repr__(self)
2200 return _object_cast_to_MinimumSingletonScore(o)
2204 _IMP_container.MinimumSingletonScore_swigregister(MinimumSingletonScore)
2206 r"""Proxy of C++ IMP::container::MinimumTripletRestraint class."""
2208 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2210 def __init__(self, *args):
2211 r"""__init__(MinimumTripletRestraint self, TripletScore f, _TripletContainerAdaptor c, unsigned int n=1, std::string name="MinimumTripletRestraint %1%") -> MinimumTripletRestraint"""
2212 _IMP_container.MinimumTripletRestraint_swiginit(self, _IMP_container.new_MinimumTripletRestraint(*args))
2214 def do_get_inputs(self):
2215 r"""do_get_inputs(MinimumTripletRestraint self) -> IMP::ModelObjectsTemp"""
2216 return _IMP_container.MinimumTripletRestraint_do_get_inputs(self)
2218 def get_version_info(self):
2219 r"""get_version_info(MinimumTripletRestraint self) -> VersionInfo"""
2220 return _IMP_container.MinimumTripletRestraint_get_version_info(self)
2221 __swig_destroy__ = _IMP_container.delete_MinimumTripletRestraint
2224 r"""set_n(MinimumTripletRestraint self, unsigned int n)"""
2225 return _IMP_container.MinimumTripletRestraint_set_n(self, n)
2227 def do_create_current_decomposition(self):
2228 r"""do_create_current_decomposition(MinimumTripletRestraint self) -> IMP::Restraints"""
2229 return _IMP_container.MinimumTripletRestraint_do_create_current_decomposition(self)
2232 r"""__str__(MinimumTripletRestraint self) -> std::string"""
2233 return _IMP_container.MinimumTripletRestraint___str__(self)
2236 r"""__repr__(MinimumTripletRestraint self) -> std::string"""
2237 return _IMP_container.MinimumTripletRestraint___repr__(self)
2241 return _object_cast_to_MinimumTripletRestraint(o)
2245 _IMP_container.MinimumTripletRestraint_swigregister(MinimumTripletRestraint)
2247 r"""Proxy of C++ IMP::container::MinimumTripletScore class."""
2249 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2251 def __init__(self, *args):
2252 r"""__init__(MinimumTripletScore self, IMP::TripletScoresTemp const & scores, unsigned int n=1, std::string name="TripletScore %1%") -> MinimumTripletScore"""
2253 _IMP_container.MinimumTripletScore_swiginit(self, _IMP_container.new_MinimumTripletScore(*args))
2255 def do_get_inputs(self, m, pis):
2256 r"""do_get_inputs(MinimumTripletScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
2257 return _IMP_container.MinimumTripletScore_do_get_inputs(self, m, pis)
2259 def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
2260 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"""
2261 return _IMP_container.MinimumTripletScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
2263 def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
2264 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"""
2265 return _IMP_container.MinimumTripletScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
2267 def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
2268 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"""
2269 return _IMP_container.MinimumTripletScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
2271 def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
2272 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"""
2273 return _IMP_container.MinimumTripletScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
2275 def get_version_info(self):
2276 r"""get_version_info(MinimumTripletScore self) -> VersionInfo"""
2277 return _IMP_container.MinimumTripletScore_get_version_info(self)
2278 __swig_destroy__ = _IMP_container.delete_MinimumTripletScore
2280 def do_create_current_decomposition(self, m, vt):
2281 r"""do_create_current_decomposition(MinimumTripletScore self, Model m, IMP::ParticleIndexTriplet const & vt) -> IMP::Restraints"""
2282 return _IMP_container.MinimumTripletScore_do_create_current_decomposition(self, m, vt)
2285 r"""__str__(MinimumTripletScore self) -> std::string"""
2286 return _IMP_container.MinimumTripletScore___str__(self)
2289 r"""__repr__(MinimumTripletScore self) -> std::string"""
2290 return _IMP_container.MinimumTripletScore___repr__(self)
2294 return _object_cast_to_MinimumTripletScore(o)
2298 _IMP_container.MinimumTripletScore_swigregister(MinimumTripletScore)
2300 r"""Proxy of C++ IMP::container::PairContainerSet class."""
2302 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2304 def __init__(self, *args):
2306 __init__(PairContainerSet self, Model m, std::string name="PairContainerSet %1%") -> PairContainerSet
2307 __init__(PairContainerSet self, IMP::PairContainersTemp const & pc, std::string name="PairContainerSet %1%") -> PairContainerSet
2309 _IMP_container.PairContainerSet_swiginit(self, _IMP_container.new_PairContainerSet(*args))
2311 def do_apply(self, sm):
2312 r"""do_apply(PairContainerSet self, PairModifier sm)"""
2313 return _IMP_container.PairContainerSet_do_apply(self, sm)
2315 def do_apply_moved(self, sm, moved_pis, reset_pis):
2316 r"""do_apply_moved(PairContainerSet self, PairModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
2317 return _IMP_container.PairContainerSet_do_apply_moved(self, sm, moved_pis, reset_pis)
2319 def get_version_info(self):
2320 r"""get_version_info(PairContainerSet self) -> VersionInfo"""
2321 return _IMP_container.PairContainerSet_get_version_info(self)
2322 __swig_destroy__ = _IMP_container.delete_PairContainerSet
2323 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)
2324 def __set_pair_containers(self, obj): IMP._list_util.set_varlist(self.pair_containers, obj)
2325 def __del_pair_containers(self): IMP._list_util.del_varlist(self.pair_containers)
2326 pair_containers = property(__get_pair_containers, __set_pair_containers, __del_pair_containers, doc=
"List of ##ucnames")
2328 def remove_pair_container(self, d):
2329 r"""remove_pair_container(PairContainerSet self, PairContainer d)"""
2330 return _IMP_container.PairContainerSet_remove_pair_container(self, d)
2332 def _python_index_pair_container(self, d, start, stop):
2333 r"""_python_index_pair_container(PairContainerSet self, PairContainer d, unsigned int start, unsigned int stop) -> unsigned int"""
2334 return _IMP_container.PairContainerSet__python_index_pair_container(self, d, start, stop)
2336 def remove_pair_containers(self, d):
2337 r"""remove_pair_containers(PairContainerSet self, IMP::PairContainers const & d)"""
2338 return _IMP_container.PairContainerSet_remove_pair_containers(self, d)
2340 def set_pair_containers(self, ps):
2341 r"""set_pair_containers(PairContainerSet self, IMP::PairContainers const & ps)"""
2342 return _IMP_container.PairContainerSet_set_pair_containers(self, ps)
2344 def set_pair_containers_order(self, objs):
2345 r"""set_pair_containers_order(PairContainerSet self, IMP::PairContainers const & objs)"""
2346 return _IMP_container.PairContainerSet_set_pair_containers_order(self, objs)
2348 def add_pair_container(self, obj):
2349 r"""add_pair_container(PairContainerSet self, PairContainer obj) -> unsigned int"""
2350 return _IMP_container.PairContainerSet_add_pair_container(self, obj)
2352 def add_pair_containers(self, objs):
2353 r"""add_pair_containers(PairContainerSet self, IMP::PairContainers const & objs)"""
2354 return _IMP_container.PairContainerSet_add_pair_containers(self, objs)
2356 def clear_pair_containers(self):
2357 r"""clear_pair_containers(PairContainerSet self)"""
2358 return _IMP_container.PairContainerSet_clear_pair_containers(self)
2360 def get_number_of_pair_containers(self):
2361 r"""get_number_of_pair_containers(PairContainerSet self) -> unsigned int"""
2362 return _IMP_container.PairContainerSet_get_number_of_pair_containers(self)
2364 def get_has_pair_containers(self):
2365 r"""get_has_pair_containers(PairContainerSet self) -> bool"""
2366 return _IMP_container.PairContainerSet_get_has_pair_containers(self)
2368 def get_pair_container(self, i):
2369 r"""get_pair_container(PairContainerSet self, unsigned int i) -> PairContainer"""
2370 return _IMP_container.PairContainerSet_get_pair_container(self, i)
2372 def get_pair_containers(self):
2373 r"""get_pair_containers(PairContainerSet self) -> IMP::PairContainers"""
2374 return _IMP_container.PairContainerSet_get_pair_containers(self)
2376 def erase_pair_container(self, i):
2377 r"""erase_pair_container(PairContainerSet self, unsigned int i)"""
2378 return _IMP_container.PairContainerSet_erase_pair_container(self, i)
2380 def reserve_pair_containers(self, sz):
2381 r"""reserve_pair_containers(PairContainerSet self, unsigned int sz)"""
2382 return _IMP_container.PairContainerSet_reserve_pair_containers(self, sz)
2384 def do_get_inputs(self):
2385 r"""do_get_inputs(PairContainerSet self) -> IMP::ModelObjectsTemp"""
2386 return _IMP_container.PairContainerSet_do_get_inputs(self)
2389 r"""__str__(PairContainerSet self) -> std::string"""
2390 return _IMP_container.PairContainerSet___str__(self)
2393 r"""__repr__(PairContainerSet self) -> std::string"""
2394 return _IMP_container.PairContainerSet___repr__(self)
2398 return _object_cast_to_PairContainerSet(o)
2402 _IMP_container.PairContainerSet_swigregister(PairContainerSet)
2404 r"""Proxy of C++ IMP::container::PairsConstraint class."""
2406 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2408 def __init__(self, *args):
2410 __init__(PairsConstraint self, PairModifier before, PairModifier after, _PairContainerAdaptor c, std::string name="PairsConstraint %1%") -> PairsConstraint
2411 __init__(PairsConstraint self) -> PairsConstraint
2413 _IMP_container.PairsConstraint_swiginit(self, _IMP_container.new_PairsConstraint(*args))
2415 def get_version_info(self):
2416 r"""get_version_info(PairsConstraint self) -> VersionInfo"""
2417 return _IMP_container.PairsConstraint_get_version_info(self)
2418 __swig_destroy__ = _IMP_container.delete_PairsConstraint
2421 r"""__str__(PairsConstraint self) -> std::string"""
2422 return _IMP_container.PairsConstraint___str__(self)
2425 r"""__repr__(PairsConstraint self) -> std::string"""
2426 return _IMP_container.PairsConstraint___repr__(self)
2430 return _object_cast_to_PairsConstraint(o)
2433 def _get_as_binary(self):
2434 r"""_get_as_binary(PairsConstraint self) -> PyObject *"""
2435 return _IMP_container.PairsConstraint__get_as_binary(self)
2437 def _set_from_binary(self, p):
2438 r"""_set_from_binary(PairsConstraint self, PyObject * p)"""
2439 return _IMP_container.PairsConstraint__set_from_binary(self, p)
2441 def __getstate__(self):
2442 p = self._get_as_binary()
2443 if len(self.__dict__) > 1:
2444 d = self.__dict__.copy()
2449 def __setstate__(self, p):
2450 if not hasattr(self,
'this'):
2452 if isinstance(p, tuple):
2454 self.__dict__.update(d)
2455 return self._set_from_binary(p)
2459 _IMP_container.PairsConstraint_swigregister(PairsConstraint)
2461 r"""Proxy of C++ IMP::container::PairsOptimizerState class."""
2463 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2465 def __init__(self, *args):
2466 r"""__init__(PairsOptimizerState self, _PairContainerAdaptor c, PairModifier gf, std::string name="PairsOptimizerState %1%") -> PairsOptimizerState"""
2467 _IMP_container.PairsOptimizerState_swiginit(self, _IMP_container.new_PairsOptimizerState(*args))
2469 def do_update(self, call):
2470 r"""do_update(PairsOptimizerState self, unsigned int call)"""
2471 return _IMP_container.PairsOptimizerState_do_update(self, call)
2473 def get_version_info(self):
2474 r"""get_version_info(PairsOptimizerState self) -> VersionInfo"""
2475 return _IMP_container.PairsOptimizerState_get_version_info(self)
2476 __swig_destroy__ = _IMP_container.delete_PairsOptimizerState
2479 r"""__str__(PairsOptimizerState self) -> std::string"""
2480 return _IMP_container.PairsOptimizerState___str__(self)
2483 r"""__repr__(PairsOptimizerState self) -> std::string"""
2484 return _IMP_container.PairsOptimizerState___repr__(self)
2488 return _object_cast_to_PairsOptimizerState(o)
2492 _IMP_container.PairsOptimizerState_swigregister(PairsOptimizerState)
2494 r"""Proxy of C++ IMP::container::PairsRestraint class."""
2496 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2498 def __init__(self, *args):
2500 __init__(PairsRestraint self, PairScore ss, _PairContainerAdaptor pc, std::string name="PairsRestraint %1%") -> PairsRestraint
2501 __init__(PairsRestraint self) -> PairsRestraint
2503 _IMP_container.PairsRestraint_swiginit(self, _IMP_container.new_PairsRestraint(*args))
2505 def do_get_inputs(self):
2506 r"""do_get_inputs(PairsRestraint self) -> IMP::ModelObjectsTemp"""
2507 return _IMP_container.PairsRestraint_do_get_inputs(self)
2509 def get_version_info(self):
2510 r"""get_version_info(PairsRestraint self) -> VersionInfo"""
2511 return _IMP_container.PairsRestraint_get_version_info(self)
2512 __swig_destroy__ = _IMP_container.delete_PairsRestraint
2515 r"""__str__(PairsRestraint self) -> std::string"""
2516 return _IMP_container.PairsRestraint___str__(self)
2519 r"""__repr__(PairsRestraint self) -> std::string"""
2520 return _IMP_container.PairsRestraint___repr__(self)
2524 return _object_cast_to_PairsRestraint(o)
2527 def _get_as_binary(self):
2528 r"""_get_as_binary(PairsRestraint self) -> PyObject *"""
2529 return _IMP_container.PairsRestraint__get_as_binary(self)
2531 def _set_from_binary(self, p):
2532 r"""_set_from_binary(PairsRestraint self, PyObject * p)"""
2533 return _IMP_container.PairsRestraint__set_from_binary(self, p)
2535 def __getstate__(self):
2536 p = self._get_as_binary()
2537 if len(self.__dict__) > 1:
2538 d = self.__dict__.copy()
2543 def __setstate__(self, p):
2544 if not hasattr(self,
'this'):
2546 if isinstance(p, tuple):
2548 self.__dict__.update(d)
2549 return self._set_from_binary(p)
2553 _IMP_container.PairsRestraint_swigregister(PairsRestraint)
2555 r"""Proxy of C++ IMP::container::QuadContainerSet class."""
2557 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2559 def __init__(self, *args):
2561 __init__(QuadContainerSet self, Model m, std::string name="QuadContainerSet %1%") -> QuadContainerSet
2562 __init__(QuadContainerSet self, IMP::QuadContainersTemp const & pc, std::string name="QuadContainerSet %1%") -> QuadContainerSet
2564 _IMP_container.QuadContainerSet_swiginit(self, _IMP_container.new_QuadContainerSet(*args))
2566 def do_apply(self, sm):
2567 r"""do_apply(QuadContainerSet self, QuadModifier sm)"""
2568 return _IMP_container.QuadContainerSet_do_apply(self, sm)
2570 def do_apply_moved(self, sm, moved_pis, reset_pis):
2571 r"""do_apply_moved(QuadContainerSet self, QuadModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
2572 return _IMP_container.QuadContainerSet_do_apply_moved(self, sm, moved_pis, reset_pis)
2574 def get_version_info(self):
2575 r"""get_version_info(QuadContainerSet self) -> VersionInfo"""
2576 return _IMP_container.QuadContainerSet_get_version_info(self)
2577 __swig_destroy__ = _IMP_container.delete_QuadContainerSet
2578 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)
2579 def __set_quad_containers(self, obj): IMP._list_util.set_varlist(self.quad_containers, obj)
2580 def __del_quad_containers(self): IMP._list_util.del_varlist(self.quad_containers)
2581 quad_containers = property(__get_quad_containers, __set_quad_containers, __del_quad_containers, doc=
"List of ##ucnames")
2583 def remove_quad_container(self, d):
2584 r"""remove_quad_container(QuadContainerSet self, QuadContainer d)"""
2585 return _IMP_container.QuadContainerSet_remove_quad_container(self, d)
2587 def _python_index_quad_container(self, d, start, stop):
2588 r"""_python_index_quad_container(QuadContainerSet self, QuadContainer d, unsigned int start, unsigned int stop) -> unsigned int"""
2589 return _IMP_container.QuadContainerSet__python_index_quad_container(self, d, start, stop)
2591 def remove_quad_containers(self, d):
2592 r"""remove_quad_containers(QuadContainerSet self, IMP::QuadContainers const & d)"""
2593 return _IMP_container.QuadContainerSet_remove_quad_containers(self, d)
2595 def set_quad_containers(self, ps):
2596 r"""set_quad_containers(QuadContainerSet self, IMP::QuadContainers const & ps)"""
2597 return _IMP_container.QuadContainerSet_set_quad_containers(self, ps)
2599 def set_quad_containers_order(self, objs):
2600 r"""set_quad_containers_order(QuadContainerSet self, IMP::QuadContainers const & objs)"""
2601 return _IMP_container.QuadContainerSet_set_quad_containers_order(self, objs)
2603 def add_quad_container(self, obj):
2604 r"""add_quad_container(QuadContainerSet self, QuadContainer obj) -> unsigned int"""
2605 return _IMP_container.QuadContainerSet_add_quad_container(self, obj)
2607 def add_quad_containers(self, objs):
2608 r"""add_quad_containers(QuadContainerSet self, IMP::QuadContainers const & objs)"""
2609 return _IMP_container.QuadContainerSet_add_quad_containers(self, objs)
2611 def clear_quad_containers(self):
2612 r"""clear_quad_containers(QuadContainerSet self)"""
2613 return _IMP_container.QuadContainerSet_clear_quad_containers(self)
2615 def get_number_of_quad_containers(self):
2616 r"""get_number_of_quad_containers(QuadContainerSet self) -> unsigned int"""
2617 return _IMP_container.QuadContainerSet_get_number_of_quad_containers(self)
2619 def get_has_quad_containers(self):
2620 r"""get_has_quad_containers(QuadContainerSet self) -> bool"""
2621 return _IMP_container.QuadContainerSet_get_has_quad_containers(self)
2623 def get_quad_container(self, i):
2624 r"""get_quad_container(QuadContainerSet self, unsigned int i) -> QuadContainer"""
2625 return _IMP_container.QuadContainerSet_get_quad_container(self, i)
2627 def get_quad_containers(self):
2628 r"""get_quad_containers(QuadContainerSet self) -> IMP::QuadContainers"""
2629 return _IMP_container.QuadContainerSet_get_quad_containers(self)
2631 def erase_quad_container(self, i):
2632 r"""erase_quad_container(QuadContainerSet self, unsigned int i)"""
2633 return _IMP_container.QuadContainerSet_erase_quad_container(self, i)
2635 def reserve_quad_containers(self, sz):
2636 r"""reserve_quad_containers(QuadContainerSet self, unsigned int sz)"""
2637 return _IMP_container.QuadContainerSet_reserve_quad_containers(self, sz)
2639 def do_get_inputs(self):
2640 r"""do_get_inputs(QuadContainerSet self) -> IMP::ModelObjectsTemp"""
2641 return _IMP_container.QuadContainerSet_do_get_inputs(self)
2644 r"""__str__(QuadContainerSet self) -> std::string"""
2645 return _IMP_container.QuadContainerSet___str__(self)
2648 r"""__repr__(QuadContainerSet self) -> std::string"""
2649 return _IMP_container.QuadContainerSet___repr__(self)
2653 return _object_cast_to_QuadContainerSet(o)
2657 _IMP_container.QuadContainerSet_swigregister(QuadContainerSet)
2659 r"""Proxy of C++ IMP::container::QuadsConstraint class."""
2661 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2663 def __init__(self, *args):
2665 __init__(QuadsConstraint self, QuadModifier before, QuadModifier after, _QuadContainerAdaptor c, std::string name="QuadsConstraint %1%") -> QuadsConstraint
2666 __init__(QuadsConstraint self) -> QuadsConstraint
2668 _IMP_container.QuadsConstraint_swiginit(self, _IMP_container.new_QuadsConstraint(*args))
2670 def get_version_info(self):
2671 r"""get_version_info(QuadsConstraint self) -> VersionInfo"""
2672 return _IMP_container.QuadsConstraint_get_version_info(self)
2673 __swig_destroy__ = _IMP_container.delete_QuadsConstraint
2676 r"""__str__(QuadsConstraint self) -> std::string"""
2677 return _IMP_container.QuadsConstraint___str__(self)
2680 r"""__repr__(QuadsConstraint self) -> std::string"""
2681 return _IMP_container.QuadsConstraint___repr__(self)
2685 return _object_cast_to_QuadsConstraint(o)
2688 def _get_as_binary(self):
2689 r"""_get_as_binary(QuadsConstraint self) -> PyObject *"""
2690 return _IMP_container.QuadsConstraint__get_as_binary(self)
2692 def _set_from_binary(self, p):
2693 r"""_set_from_binary(QuadsConstraint self, PyObject * p)"""
2694 return _IMP_container.QuadsConstraint__set_from_binary(self, p)
2696 def __getstate__(self):
2697 p = self._get_as_binary()
2698 if len(self.__dict__) > 1:
2699 d = self.__dict__.copy()
2704 def __setstate__(self, p):
2705 if not hasattr(self,
'this'):
2707 if isinstance(p, tuple):
2709 self.__dict__.update(d)
2710 return self._set_from_binary(p)
2714 _IMP_container.QuadsConstraint_swigregister(QuadsConstraint)
2716 r"""Proxy of C++ IMP::container::QuadsOptimizerState class."""
2718 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2720 def __init__(self, *args):
2721 r"""__init__(QuadsOptimizerState self, _QuadContainerAdaptor c, QuadModifier gf, std::string name="QuadsOptimizerState %1%") -> QuadsOptimizerState"""
2722 _IMP_container.QuadsOptimizerState_swiginit(self, _IMP_container.new_QuadsOptimizerState(*args))
2724 def do_update(self, call):
2725 r"""do_update(QuadsOptimizerState self, unsigned int call)"""
2726 return _IMP_container.QuadsOptimizerState_do_update(self, call)
2728 def get_version_info(self):
2729 r"""get_version_info(QuadsOptimizerState self) -> VersionInfo"""
2730 return _IMP_container.QuadsOptimizerState_get_version_info(self)
2731 __swig_destroy__ = _IMP_container.delete_QuadsOptimizerState
2734 r"""__str__(QuadsOptimizerState self) -> std::string"""
2735 return _IMP_container.QuadsOptimizerState___str__(self)
2738 r"""__repr__(QuadsOptimizerState self) -> std::string"""
2739 return _IMP_container.QuadsOptimizerState___repr__(self)
2743 return _object_cast_to_QuadsOptimizerState(o)
2747 _IMP_container.QuadsOptimizerState_swigregister(QuadsOptimizerState)
2749 r"""Proxy of C++ IMP::container::QuadsRestraint class."""
2751 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2753 def __init__(self, *args):
2755 __init__(QuadsRestraint self, QuadScore ss, _QuadContainerAdaptor pc, std::string name="QuadsRestraint %1%") -> QuadsRestraint
2756 __init__(QuadsRestraint self) -> QuadsRestraint
2758 _IMP_container.QuadsRestraint_swiginit(self, _IMP_container.new_QuadsRestraint(*args))
2760 def do_get_inputs(self):
2761 r"""do_get_inputs(QuadsRestraint self) -> IMP::ModelObjectsTemp"""
2762 return _IMP_container.QuadsRestraint_do_get_inputs(self)
2764 def get_version_info(self):
2765 r"""get_version_info(QuadsRestraint self) -> VersionInfo"""
2766 return _IMP_container.QuadsRestraint_get_version_info(self)
2767 __swig_destroy__ = _IMP_container.delete_QuadsRestraint
2770 r"""__str__(QuadsRestraint self) -> std::string"""
2771 return _IMP_container.QuadsRestraint___str__(self)
2774 r"""__repr__(QuadsRestraint self) -> std::string"""
2775 return _IMP_container.QuadsRestraint___repr__(self)
2779 return _object_cast_to_QuadsRestraint(o)
2782 def _get_as_binary(self):
2783 r"""_get_as_binary(QuadsRestraint self) -> PyObject *"""
2784 return _IMP_container.QuadsRestraint__get_as_binary(self)
2786 def _set_from_binary(self, p):
2787 r"""_set_from_binary(QuadsRestraint self, PyObject * p)"""
2788 return _IMP_container.QuadsRestraint__set_from_binary(self, p)
2790 def __getstate__(self):
2791 p = self._get_as_binary()
2792 if len(self.__dict__) > 1:
2793 d = self.__dict__.copy()
2798 def __setstate__(self, p):
2799 if not hasattr(self,
'this'):
2801 if isinstance(p, tuple):
2803 self.__dict__.update(d)
2804 return self._set_from_binary(p)
2808 _IMP_container.QuadsRestraint_swigregister(QuadsRestraint)
2810 r"""Proxy of C++ IMP::container::SingletonContainerSet class."""
2812 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2814 def __init__(self, *args):
2816 __init__(SingletonContainerSet self, Model m, std::string name="SingletonContainerSet %1%") -> SingletonContainerSet
2817 __init__(SingletonContainerSet self, IMP::SingletonContainersTemp const & pc, std::string name="SingletonContainerSet %1%") -> SingletonContainerSet
2819 _IMP_container.SingletonContainerSet_swiginit(self, _IMP_container.new_SingletonContainerSet(*args))
2821 def do_apply(self, sm):
2822 r"""do_apply(SingletonContainerSet self, SingletonModifier sm)"""
2823 return _IMP_container.SingletonContainerSet_do_apply(self, sm)
2825 def do_apply_moved(self, sm, moved_pis, reset_pis):
2826 r"""do_apply_moved(SingletonContainerSet self, SingletonModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
2827 return _IMP_container.SingletonContainerSet_do_apply_moved(self, sm, moved_pis, reset_pis)
2829 def get_version_info(self):
2830 r"""get_version_info(SingletonContainerSet self) -> VersionInfo"""
2831 return _IMP_container.SingletonContainerSet_get_version_info(self)
2832 __swig_destroy__ = _IMP_container.delete_SingletonContainerSet
2833 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)
2834 def __set_singleton_containers(self, obj): IMP._list_util.set_varlist(self.singleton_containers, obj)
2835 def __del_singleton_containers(self): IMP._list_util.del_varlist(self.singleton_containers)
2836 singleton_containers = property(__get_singleton_containers, __set_singleton_containers, __del_singleton_containers, doc=
"List of ##ucnames")
2838 def remove_singleton_container(self, d):
2839 r"""remove_singleton_container(SingletonContainerSet self, SingletonContainer d)"""
2840 return _IMP_container.SingletonContainerSet_remove_singleton_container(self, d)
2842 def _python_index_singleton_container(self, d, start, stop):
2843 r"""_python_index_singleton_container(SingletonContainerSet self, SingletonContainer d, unsigned int start, unsigned int stop) -> unsigned int"""
2844 return _IMP_container.SingletonContainerSet__python_index_singleton_container(self, d, start, stop)
2846 def remove_singleton_containers(self, d):
2847 r"""remove_singleton_containers(SingletonContainerSet self, IMP::SingletonContainers const & d)"""
2848 return _IMP_container.SingletonContainerSet_remove_singleton_containers(self, d)
2850 def set_singleton_containers(self, ps):
2851 r"""set_singleton_containers(SingletonContainerSet self, IMP::SingletonContainers const & ps)"""
2852 return _IMP_container.SingletonContainerSet_set_singleton_containers(self, ps)
2854 def set_singleton_containers_order(self, objs):
2855 r"""set_singleton_containers_order(SingletonContainerSet self, IMP::SingletonContainers const & objs)"""
2856 return _IMP_container.SingletonContainerSet_set_singleton_containers_order(self, objs)
2858 def add_singleton_container(self, obj):
2859 r"""add_singleton_container(SingletonContainerSet self, SingletonContainer obj) -> unsigned int"""
2860 return _IMP_container.SingletonContainerSet_add_singleton_container(self, obj)
2862 def add_singleton_containers(self, objs):
2863 r"""add_singleton_containers(SingletonContainerSet self, IMP::SingletonContainers const & objs)"""
2864 return _IMP_container.SingletonContainerSet_add_singleton_containers(self, objs)
2866 def clear_singleton_containers(self):
2867 r"""clear_singleton_containers(SingletonContainerSet self)"""
2868 return _IMP_container.SingletonContainerSet_clear_singleton_containers(self)
2870 def get_number_of_singleton_containers(self):
2871 r"""get_number_of_singleton_containers(SingletonContainerSet self) -> unsigned int"""
2872 return _IMP_container.SingletonContainerSet_get_number_of_singleton_containers(self)
2874 def get_has_singleton_containers(self):
2875 r"""get_has_singleton_containers(SingletonContainerSet self) -> bool"""
2876 return _IMP_container.SingletonContainerSet_get_has_singleton_containers(self)
2878 def get_singleton_container(self, i):
2879 r"""get_singleton_container(SingletonContainerSet self, unsigned int i) -> SingletonContainer"""
2880 return _IMP_container.SingletonContainerSet_get_singleton_container(self, i)
2882 def get_singleton_containers(self):
2883 r"""get_singleton_containers(SingletonContainerSet self) -> IMP::SingletonContainers"""
2884 return _IMP_container.SingletonContainerSet_get_singleton_containers(self)
2886 def erase_singleton_container(self, i):
2887 r"""erase_singleton_container(SingletonContainerSet self, unsigned int i)"""
2888 return _IMP_container.SingletonContainerSet_erase_singleton_container(self, i)
2890 def reserve_singleton_containers(self, sz):
2891 r"""reserve_singleton_containers(SingletonContainerSet self, unsigned int sz)"""
2892 return _IMP_container.SingletonContainerSet_reserve_singleton_containers(self, sz)
2894 def do_get_inputs(self):
2895 r"""do_get_inputs(SingletonContainerSet self) -> IMP::ModelObjectsTemp"""
2896 return _IMP_container.SingletonContainerSet_do_get_inputs(self)
2899 r"""__str__(SingletonContainerSet self) -> std::string"""
2900 return _IMP_container.SingletonContainerSet___str__(self)
2903 r"""__repr__(SingletonContainerSet self) -> std::string"""
2904 return _IMP_container.SingletonContainerSet___repr__(self)
2908 return _object_cast_to_SingletonContainerSet(o)
2912 _IMP_container.SingletonContainerSet_swigregister(SingletonContainerSet)
2914 r"""Proxy of C++ IMP::container::SingletonsConstraint class."""
2916 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2918 def __init__(self, *args):
2920 __init__(SingletonsConstraint self, SingletonModifier before, SingletonModifier after, _SingletonContainerAdaptor c, std::string name="SingletonsConstraint %1%") -> SingletonsConstraint
2921 __init__(SingletonsConstraint self) -> SingletonsConstraint
2923 _IMP_container.SingletonsConstraint_swiginit(self, _IMP_container.new_SingletonsConstraint(*args))
2925 def get_version_info(self):
2926 r"""get_version_info(SingletonsConstraint self) -> VersionInfo"""
2927 return _IMP_container.SingletonsConstraint_get_version_info(self)
2928 __swig_destroy__ = _IMP_container.delete_SingletonsConstraint
2931 r"""__str__(SingletonsConstraint self) -> std::string"""
2932 return _IMP_container.SingletonsConstraint___str__(self)
2935 r"""__repr__(SingletonsConstraint self) -> std::string"""
2936 return _IMP_container.SingletonsConstraint___repr__(self)
2940 return _object_cast_to_SingletonsConstraint(o)
2943 def _get_as_binary(self):
2944 r"""_get_as_binary(SingletonsConstraint self) -> PyObject *"""
2945 return _IMP_container.SingletonsConstraint__get_as_binary(self)
2947 def _set_from_binary(self, p):
2948 r"""_set_from_binary(SingletonsConstraint self, PyObject * p)"""
2949 return _IMP_container.SingletonsConstraint__set_from_binary(self, p)
2951 def __getstate__(self):
2952 p = self._get_as_binary()
2953 if len(self.__dict__) > 1:
2954 d = self.__dict__.copy()
2959 def __setstate__(self, p):
2960 if not hasattr(self,
'this'):
2962 if isinstance(p, tuple):
2964 self.__dict__.update(d)
2965 return self._set_from_binary(p)
2969 _IMP_container.SingletonsConstraint_swigregister(SingletonsConstraint)
2971 r"""Proxy of C++ IMP::container::SingletonsOptimizerState class."""
2973 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
2975 def __init__(self, *args):
2976 r"""__init__(SingletonsOptimizerState self, _SingletonContainerAdaptor c, SingletonModifier gf, std::string name="SingletonsOptimizerState %1%") -> SingletonsOptimizerState"""
2977 _IMP_container.SingletonsOptimizerState_swiginit(self, _IMP_container.new_SingletonsOptimizerState(*args))
2979 def do_update(self, call):
2980 r"""do_update(SingletonsOptimizerState self, unsigned int call)"""
2981 return _IMP_container.SingletonsOptimizerState_do_update(self, call)
2983 def get_version_info(self):
2984 r"""get_version_info(SingletonsOptimizerState self) -> VersionInfo"""
2985 return _IMP_container.SingletonsOptimizerState_get_version_info(self)
2986 __swig_destroy__ = _IMP_container.delete_SingletonsOptimizerState
2989 r"""__str__(SingletonsOptimizerState self) -> std::string"""
2990 return _IMP_container.SingletonsOptimizerState___str__(self)
2993 r"""__repr__(SingletonsOptimizerState self) -> std::string"""
2994 return _IMP_container.SingletonsOptimizerState___repr__(self)
2998 return _object_cast_to_SingletonsOptimizerState(o)
3002 _IMP_container.SingletonsOptimizerState_swigregister(SingletonsOptimizerState)
3004 r"""Proxy of C++ IMP::container::SingletonsRestraint class."""
3006 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3008 def __init__(self, *args):
3010 __init__(SingletonsRestraint self, SingletonScore ss, _SingletonContainerAdaptor pc, std::string name="SingletonsRestraint %1%") -> SingletonsRestraint
3011 __init__(SingletonsRestraint self) -> SingletonsRestraint
3013 _IMP_container.SingletonsRestraint_swiginit(self, _IMP_container.new_SingletonsRestraint(*args))
3015 def do_get_inputs(self):
3016 r"""do_get_inputs(SingletonsRestraint self) -> IMP::ModelObjectsTemp"""
3017 return _IMP_container.SingletonsRestraint_do_get_inputs(self)
3019 def get_version_info(self):
3020 r"""get_version_info(SingletonsRestraint self) -> VersionInfo"""
3021 return _IMP_container.SingletonsRestraint_get_version_info(self)
3022 __swig_destroy__ = _IMP_container.delete_SingletonsRestraint
3025 r"""__str__(SingletonsRestraint self) -> std::string"""
3026 return _IMP_container.SingletonsRestraint___str__(self)
3029 r"""__repr__(SingletonsRestraint self) -> std::string"""
3030 return _IMP_container.SingletonsRestraint___repr__(self)
3034 return _object_cast_to_SingletonsRestraint(o)
3037 def _get_as_binary(self):
3038 r"""_get_as_binary(SingletonsRestraint self) -> PyObject *"""
3039 return _IMP_container.SingletonsRestraint__get_as_binary(self)
3041 def _set_from_binary(self, p):
3042 r"""_set_from_binary(SingletonsRestraint self, PyObject * p)"""
3043 return _IMP_container.SingletonsRestraint__set_from_binary(self, p)
3045 def __getstate__(self):
3046 p = self._get_as_binary()
3047 if len(self.__dict__) > 1:
3048 d = self.__dict__.copy()
3053 def __setstate__(self, p):
3054 if not hasattr(self,
'this'):
3056 if isinstance(p, tuple):
3058 self.__dict__.update(d)
3059 return self._set_from_binary(p)
3063 _IMP_container.SingletonsRestraint_swigregister(SingletonsRestraint)
3065 r"""Proxy of C++ IMP::container::TripletContainerSet class."""
3067 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3069 def __init__(self, *args):
3071 __init__(TripletContainerSet self, Model m, std::string name="TripletContainerSet %1%") -> TripletContainerSet
3072 __init__(TripletContainerSet self, IMP::TripletContainersTemp const & pc, std::string name="TripletContainerSet %1%") -> TripletContainerSet
3074 _IMP_container.TripletContainerSet_swiginit(self, _IMP_container.new_TripletContainerSet(*args))
3076 def do_apply(self, sm):
3077 r"""do_apply(TripletContainerSet self, TripletModifier sm)"""
3078 return _IMP_container.TripletContainerSet_do_apply(self, sm)
3080 def do_apply_moved(self, sm, moved_pis, reset_pis):
3081 r"""do_apply_moved(TripletContainerSet self, TripletModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
3082 return _IMP_container.TripletContainerSet_do_apply_moved(self, sm, moved_pis, reset_pis)
3084 def get_version_info(self):
3085 r"""get_version_info(TripletContainerSet self) -> VersionInfo"""
3086 return _IMP_container.TripletContainerSet_get_version_info(self)
3087 __swig_destroy__ = _IMP_container.delete_TripletContainerSet
3088 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)
3089 def __set_triplet_containers(self, obj): IMP._list_util.set_varlist(self.triplet_containers, obj)
3090 def __del_triplet_containers(self): IMP._list_util.del_varlist(self.triplet_containers)
3091 triplet_containers = property(__get_triplet_containers, __set_triplet_containers, __del_triplet_containers, doc=
"List of ##ucnames")
3093 def remove_triplet_container(self, d):
3094 r"""remove_triplet_container(TripletContainerSet self, TripletContainer d)"""
3095 return _IMP_container.TripletContainerSet_remove_triplet_container(self, d)
3097 def _python_index_triplet_container(self, d, start, stop):
3098 r"""_python_index_triplet_container(TripletContainerSet self, TripletContainer d, unsigned int start, unsigned int stop) -> unsigned int"""
3099 return _IMP_container.TripletContainerSet__python_index_triplet_container(self, d, start, stop)
3101 def remove_triplet_containers(self, d):
3102 r"""remove_triplet_containers(TripletContainerSet self, IMP::TripletContainers const & d)"""
3103 return _IMP_container.TripletContainerSet_remove_triplet_containers(self, d)
3105 def set_triplet_containers(self, ps):
3106 r"""set_triplet_containers(TripletContainerSet self, IMP::TripletContainers const & ps)"""
3107 return _IMP_container.TripletContainerSet_set_triplet_containers(self, ps)
3109 def set_triplet_containers_order(self, objs):
3110 r"""set_triplet_containers_order(TripletContainerSet self, IMP::TripletContainers const & objs)"""
3111 return _IMP_container.TripletContainerSet_set_triplet_containers_order(self, objs)
3113 def add_triplet_container(self, obj):
3114 r"""add_triplet_container(TripletContainerSet self, TripletContainer obj) -> unsigned int"""
3115 return _IMP_container.TripletContainerSet_add_triplet_container(self, obj)
3117 def add_triplet_containers(self, objs):
3118 r"""add_triplet_containers(TripletContainerSet self, IMP::TripletContainers const & objs)"""
3119 return _IMP_container.TripletContainerSet_add_triplet_containers(self, objs)
3121 def clear_triplet_containers(self):
3122 r"""clear_triplet_containers(TripletContainerSet self)"""
3123 return _IMP_container.TripletContainerSet_clear_triplet_containers(self)
3125 def get_number_of_triplet_containers(self):
3126 r"""get_number_of_triplet_containers(TripletContainerSet self) -> unsigned int"""
3127 return _IMP_container.TripletContainerSet_get_number_of_triplet_containers(self)
3129 def get_has_triplet_containers(self):
3130 r"""get_has_triplet_containers(TripletContainerSet self) -> bool"""
3131 return _IMP_container.TripletContainerSet_get_has_triplet_containers(self)
3133 def get_triplet_container(self, i):
3134 r"""get_triplet_container(TripletContainerSet self, unsigned int i) -> TripletContainer"""
3135 return _IMP_container.TripletContainerSet_get_triplet_container(self, i)
3137 def get_triplet_containers(self):
3138 r"""get_triplet_containers(TripletContainerSet self) -> IMP::TripletContainers"""
3139 return _IMP_container.TripletContainerSet_get_triplet_containers(self)
3141 def erase_triplet_container(self, i):
3142 r"""erase_triplet_container(TripletContainerSet self, unsigned int i)"""
3143 return _IMP_container.TripletContainerSet_erase_triplet_container(self, i)
3145 def reserve_triplet_containers(self, sz):
3146 r"""reserve_triplet_containers(TripletContainerSet self, unsigned int sz)"""
3147 return _IMP_container.TripletContainerSet_reserve_triplet_containers(self, sz)
3149 def do_get_inputs(self):
3150 r"""do_get_inputs(TripletContainerSet self) -> IMP::ModelObjectsTemp"""
3151 return _IMP_container.TripletContainerSet_do_get_inputs(self)
3154 r"""__str__(TripletContainerSet self) -> std::string"""
3155 return _IMP_container.TripletContainerSet___str__(self)
3158 r"""__repr__(TripletContainerSet self) -> std::string"""
3159 return _IMP_container.TripletContainerSet___repr__(self)
3163 return _object_cast_to_TripletContainerSet(o)
3167 _IMP_container.TripletContainerSet_swigregister(TripletContainerSet)
3169 r"""Proxy of C++ IMP::container::TripletsConstraint class."""
3171 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3173 def __init__(self, *args):
3175 __init__(TripletsConstraint self, TripletModifier before, TripletModifier after, _TripletContainerAdaptor c, std::string name="TripletsConstraint %1%") -> TripletsConstraint
3176 __init__(TripletsConstraint self) -> TripletsConstraint
3178 _IMP_container.TripletsConstraint_swiginit(self, _IMP_container.new_TripletsConstraint(*args))
3180 def get_version_info(self):
3181 r"""get_version_info(TripletsConstraint self) -> VersionInfo"""
3182 return _IMP_container.TripletsConstraint_get_version_info(self)
3183 __swig_destroy__ = _IMP_container.delete_TripletsConstraint
3186 r"""__str__(TripletsConstraint self) -> std::string"""
3187 return _IMP_container.TripletsConstraint___str__(self)
3190 r"""__repr__(TripletsConstraint self) -> std::string"""
3191 return _IMP_container.TripletsConstraint___repr__(self)
3195 return _object_cast_to_TripletsConstraint(o)
3198 def _get_as_binary(self):
3199 r"""_get_as_binary(TripletsConstraint self) -> PyObject *"""
3200 return _IMP_container.TripletsConstraint__get_as_binary(self)
3202 def _set_from_binary(self, p):
3203 r"""_set_from_binary(TripletsConstraint self, PyObject * p)"""
3204 return _IMP_container.TripletsConstraint__set_from_binary(self, p)
3206 def __getstate__(self):
3207 p = self._get_as_binary()
3208 if len(self.__dict__) > 1:
3209 d = self.__dict__.copy()
3214 def __setstate__(self, p):
3215 if not hasattr(self,
'this'):
3217 if isinstance(p, tuple):
3219 self.__dict__.update(d)
3220 return self._set_from_binary(p)
3224 _IMP_container.TripletsConstraint_swigregister(TripletsConstraint)
3226 r"""Proxy of C++ IMP::container::TripletsOptimizerState class."""
3228 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3230 def __init__(self, *args):
3231 r"""__init__(TripletsOptimizerState self, _TripletContainerAdaptor c, TripletModifier gf, std::string name="TripletsOptimizerState %1%") -> TripletsOptimizerState"""
3232 _IMP_container.TripletsOptimizerState_swiginit(self, _IMP_container.new_TripletsOptimizerState(*args))
3234 def do_update(self, call):
3235 r"""do_update(TripletsOptimizerState self, unsigned int call)"""
3236 return _IMP_container.TripletsOptimizerState_do_update(self, call)
3238 def get_version_info(self):
3239 r"""get_version_info(TripletsOptimizerState self) -> VersionInfo"""
3240 return _IMP_container.TripletsOptimizerState_get_version_info(self)
3241 __swig_destroy__ = _IMP_container.delete_TripletsOptimizerState
3244 r"""__str__(TripletsOptimizerState self) -> std::string"""
3245 return _IMP_container.TripletsOptimizerState___str__(self)
3248 r"""__repr__(TripletsOptimizerState self) -> std::string"""
3249 return _IMP_container.TripletsOptimizerState___repr__(self)
3253 return _object_cast_to_TripletsOptimizerState(o)
3257 _IMP_container.TripletsOptimizerState_swigregister(TripletsOptimizerState)
3259 r"""Proxy of C++ IMP::container::TripletsRestraint class."""
3261 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3263 def __init__(self, *args):
3265 __init__(TripletsRestraint self, TripletScore ss, _TripletContainerAdaptor pc, std::string name="TripletsRestraint %1%") -> TripletsRestraint
3266 __init__(TripletsRestraint self) -> TripletsRestraint
3268 _IMP_container.TripletsRestraint_swiginit(self, _IMP_container.new_TripletsRestraint(*args))
3270 def do_get_inputs(self):
3271 r"""do_get_inputs(TripletsRestraint self) -> IMP::ModelObjectsTemp"""
3272 return _IMP_container.TripletsRestraint_do_get_inputs(self)
3274 def get_version_info(self):
3275 r"""get_version_info(TripletsRestraint self) -> VersionInfo"""
3276 return _IMP_container.TripletsRestraint_get_version_info(self)
3277 __swig_destroy__ = _IMP_container.delete_TripletsRestraint
3280 r"""__str__(TripletsRestraint self) -> std::string"""
3281 return _IMP_container.TripletsRestraint___str__(self)
3284 r"""__repr__(TripletsRestraint self) -> std::string"""
3285 return _IMP_container.TripletsRestraint___repr__(self)
3289 return _object_cast_to_TripletsRestraint(o)
3292 def _get_as_binary(self):
3293 r"""_get_as_binary(TripletsRestraint self) -> PyObject *"""
3294 return _IMP_container.TripletsRestraint__get_as_binary(self)
3296 def _set_from_binary(self, p):
3297 r"""_set_from_binary(TripletsRestraint self, PyObject * p)"""
3298 return _IMP_container.TripletsRestraint__set_from_binary(self, p)
3300 def __getstate__(self):
3301 p = self._get_as_binary()
3302 if len(self.__dict__) > 1:
3303 d = self.__dict__.copy()
3308 def __setstate__(self, p):
3309 if not hasattr(self,
'this'):
3311 if isinstance(p, tuple):
3313 self.__dict__.update(d)
3314 return self._set_from_binary(p)
3318 _IMP_container.TripletsRestraint_swigregister(TripletsRestraint)
3320 r"""Proxy of C++ IMP::container::InContainerSingletonFilter class."""
3322 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3324 def __init__(self, *args):
3326 __init__(InContainerSingletonFilter self, SingletonContainer c, std::string name="SingletonFilter %1%") -> InContainerSingletonFilter
3327 __init__(InContainerSingletonFilter self, SingletonContainer c, bool handle_permutations, std::string name="SingletonFilter %1%") -> InContainerSingletonFilter
3329 _IMP_container.InContainerSingletonFilter_swiginit(self, _IMP_container.new_InContainerSingletonFilter(*args))
3331 def do_get_inputs(self, m, pi):
3332 r"""do_get_inputs(InContainerSingletonFilter self, Model m, IMP::ParticleIndexes const & pi) -> IMP::ModelObjectsTemp"""
3333 return _IMP_container.InContainerSingletonFilter_do_get_inputs(self, m, pi)
3335 def get_value(self, *args):
3337 get_value(InContainerSingletonFilter self, Particle a) -> int
3338 get_value(InContainerSingletonFilter self, IMP::ParticlesTemp const & o) -> IMP::Ints
3340 return _IMP_container.InContainerSingletonFilter_get_value(self, *args)
3342 def get_value_index(self, *args):
3344 get_value_index(InContainerSingletonFilter self, Model arg2, ParticleIndex vt) -> int
3345 get_value_index(InContainerSingletonFilter self, Model m, IMP::ParticleIndexes const & o) -> IMP::Ints
3347 return _IMP_container.InContainerSingletonFilter_get_value_index(self, *args)
3349 def get_version_info(self):
3350 r"""get_version_info(InContainerSingletonFilter self) -> VersionInfo"""
3351 return _IMP_container.InContainerSingletonFilter_get_version_info(self)
3352 __swig_destroy__ = _IMP_container.delete_InContainerSingletonFilter
3355 r"""__str__(InContainerSingletonFilter self) -> std::string"""
3356 return _IMP_container.InContainerSingletonFilter___str__(self)
3359 r"""__repr__(InContainerSingletonFilter self) -> std::string"""
3360 return _IMP_container.InContainerSingletonFilter___repr__(self)
3364 return _object_cast_to_InContainerSingletonFilter(o)
3368 _IMP_container.InContainerSingletonFilter_swigregister(InContainerSingletonFilter)
3370 r"""Proxy of C++ IMP::container::InContainerPairFilter class."""
3372 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3374 def __init__(self, *args):
3376 __init__(InContainerPairFilter self, PairContainer c, std::string name="PairFilter %1%") -> InContainerPairFilter
3377 __init__(InContainerPairFilter self, PairContainer c, bool handle_permutations, std::string name="PairFilter %1%") -> InContainerPairFilter
3379 _IMP_container.InContainerPairFilter_swiginit(self, _IMP_container.new_InContainerPairFilter(*args))
3381 def do_get_inputs(self, m, pi):
3382 r"""do_get_inputs(InContainerPairFilter self, Model m, IMP::ParticleIndexes const & pi) -> IMP::ModelObjectsTemp"""
3383 return _IMP_container.InContainerPairFilter_do_get_inputs(self, m, pi)
3385 def get_value(self, *args):
3387 get_value(InContainerPairFilter self, IMP::ParticlePair const & a) -> int
3388 get_value(InContainerPairFilter self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
3390 return _IMP_container.InContainerPairFilter_get_value(self, *args)
3392 def get_value_index(self, *args):
3394 get_value_index(InContainerPairFilter self, Model arg2, IMP::ParticleIndexPair const & vt) -> int
3395 get_value_index(InContainerPairFilter self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
3397 return _IMP_container.InContainerPairFilter_get_value_index(self, *args)
3399 def get_version_info(self):
3400 r"""get_version_info(InContainerPairFilter self) -> VersionInfo"""
3401 return _IMP_container.InContainerPairFilter_get_version_info(self)
3402 __swig_destroy__ = _IMP_container.delete_InContainerPairFilter
3405 r"""__str__(InContainerPairFilter self) -> std::string"""
3406 return _IMP_container.InContainerPairFilter___str__(self)
3409 r"""__repr__(InContainerPairFilter self) -> std::string"""
3410 return _IMP_container.InContainerPairFilter___repr__(self)
3414 return _object_cast_to_InContainerPairFilter(o)
3418 _IMP_container.InContainerPairFilter_swigregister(InContainerPairFilter)
3420 r"""Proxy of C++ IMP::container::InContainerTripletFilter class."""
3422 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3424 def __init__(self, *args):
3426 __init__(InContainerTripletFilter self, TripletContainer c, std::string name="TripletFilter %1%") -> InContainerTripletFilter
3427 __init__(InContainerTripletFilter self, TripletContainer c, bool handle_permutations, std::string name="TripletFilter %1%") -> InContainerTripletFilter
3429 _IMP_container.InContainerTripletFilter_swiginit(self, _IMP_container.new_InContainerTripletFilter(*args))
3431 def do_get_inputs(self, m, pi):
3432 r"""do_get_inputs(InContainerTripletFilter self, Model m, IMP::ParticleIndexes const & pi) -> IMP::ModelObjectsTemp"""
3433 return _IMP_container.InContainerTripletFilter_do_get_inputs(self, m, pi)
3435 def get_value(self, *args):
3437 get_value(InContainerTripletFilter self, IMP::ParticleTriplet const & a) -> int
3438 get_value(InContainerTripletFilter self, IMP::ParticleTripletsTemp const & o) -> IMP::Ints
3440 return _IMP_container.InContainerTripletFilter_get_value(self, *args)
3442 def get_value_index(self, *args):
3444 get_value_index(InContainerTripletFilter self, Model arg2, IMP::ParticleIndexTriplet const & vt) -> int
3445 get_value_index(InContainerTripletFilter self, Model m, IMP::ParticleIndexTriplets const & o) -> IMP::Ints
3447 return _IMP_container.InContainerTripletFilter_get_value_index(self, *args)
3449 def get_version_info(self):
3450 r"""get_version_info(InContainerTripletFilter self) -> VersionInfo"""
3451 return _IMP_container.InContainerTripletFilter_get_version_info(self)
3452 __swig_destroy__ = _IMP_container.delete_InContainerTripletFilter
3455 r"""__str__(InContainerTripletFilter self) -> std::string"""
3456 return _IMP_container.InContainerTripletFilter___str__(self)
3459 r"""__repr__(InContainerTripletFilter self) -> std::string"""
3460 return _IMP_container.InContainerTripletFilter___repr__(self)
3464 return _object_cast_to_InContainerTripletFilter(o)
3468 _IMP_container.InContainerTripletFilter_swigregister(InContainerTripletFilter)
3470 r"""Proxy of C++ IMP::container::InContainerQuadFilter class."""
3472 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3474 def __init__(self, *args):
3476 __init__(InContainerQuadFilter self, QuadContainer c, std::string name="QuadFilter %1%") -> InContainerQuadFilter
3477 __init__(InContainerQuadFilter self, QuadContainer c, bool handle_permutations, std::string name="QuadFilter %1%") -> InContainerQuadFilter
3479 _IMP_container.InContainerQuadFilter_swiginit(self, _IMP_container.new_InContainerQuadFilter(*args))
3481 def do_get_inputs(self, m, pi):
3482 r"""do_get_inputs(InContainerQuadFilter self, Model m, IMP::ParticleIndexes const & pi) -> IMP::ModelObjectsTemp"""
3483 return _IMP_container.InContainerQuadFilter_do_get_inputs(self, m, pi)
3485 def get_value(self, *args):
3487 get_value(InContainerQuadFilter self, IMP::ParticleQuad const & a) -> int
3488 get_value(InContainerQuadFilter self, IMP::ParticleQuadsTemp const & o) -> IMP::Ints
3490 return _IMP_container.InContainerQuadFilter_get_value(self, *args)
3492 def get_value_index(self, *args):
3494 get_value_index(InContainerQuadFilter self, Model arg2, IMP::ParticleIndexQuad const & vt) -> int
3495 get_value_index(InContainerQuadFilter self, Model m, IMP::ParticleIndexQuads const & o) -> IMP::Ints
3497 return _IMP_container.InContainerQuadFilter_get_value_index(self, *args)
3499 def get_version_info(self):
3500 r"""get_version_info(InContainerQuadFilter self) -> VersionInfo"""
3501 return _IMP_container.InContainerQuadFilter_get_version_info(self)
3502 __swig_destroy__ = _IMP_container.delete_InContainerQuadFilter
3505 r"""__str__(InContainerQuadFilter self) -> std::string"""
3506 return _IMP_container.InContainerQuadFilter___str__(self)
3509 r"""__repr__(InContainerQuadFilter self) -> std::string"""
3510 return _IMP_container.InContainerQuadFilter___repr__(self)
3514 return _object_cast_to_InContainerQuadFilter(o)
3518 _IMP_container.InContainerQuadFilter_swigregister(InContainerQuadFilter)
3520 r"""Proxy of C++ IMP::container::SingletonContainerStatistics class."""
3522 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3524 def __init__(self, c):
3525 r"""__init__(SingletonContainerStatistics self, _SingletonContainerAdaptor c) -> SingletonContainerStatistics"""
3526 _IMP_container.SingletonContainerStatistics_swiginit(self, _IMP_container.new_SingletonContainerStatistics(c))
3528 def show_statistics(self, out):
3529 r"""show_statistics(SingletonContainerStatistics self, _ostream out)"""
3530 return _IMP_container.SingletonContainerStatistics_show_statistics(self, out)
3532 def set_track_unique(self, tf):
3533 r"""set_track_unique(SingletonContainerStatistics self, bool tf)"""
3534 return _IMP_container.SingletonContainerStatistics_set_track_unique(self, tf)
3536 def do_before_evaluate(self):
3537 r"""do_before_evaluate(SingletonContainerStatistics self)"""
3538 return _IMP_container.SingletonContainerStatistics_do_before_evaluate(self)
3540 def do_after_evaluate(self, da):
3541 r"""do_after_evaluate(SingletonContainerStatistics self, DerivativeAccumulator da)"""
3542 return _IMP_container.SingletonContainerStatistics_do_after_evaluate(self, da)
3544 def do_get_inputs(self):
3545 r"""do_get_inputs(SingletonContainerStatistics self) -> IMP::ModelObjectsTemp"""
3546 return _IMP_container.SingletonContainerStatistics_do_get_inputs(self)
3548 def do_get_outputs(self):
3549 r"""do_get_outputs(SingletonContainerStatistics self) -> IMP::ModelObjectsTemp"""
3550 return _IMP_container.SingletonContainerStatistics_do_get_outputs(self)
3552 def get_version_info(self):
3553 r"""get_version_info(SingletonContainerStatistics self) -> VersionInfo"""
3554 return _IMP_container.SingletonContainerStatistics_get_version_info(self)
3555 __swig_destroy__ = _IMP_container.delete_SingletonContainerStatistics
3558 r"""__str__(SingletonContainerStatistics self) -> std::string"""
3559 return _IMP_container.SingletonContainerStatistics___str__(self)
3562 r"""__repr__(SingletonContainerStatistics self) -> std::string"""
3563 return _IMP_container.SingletonContainerStatistics___repr__(self)
3567 return _object_cast_to_SingletonContainerStatistics(o)
3571 _IMP_container.SingletonContainerStatistics_swigregister(SingletonContainerStatistics)
3573 r"""Proxy of C++ IMP::container::PairContainerStatistics class."""
3575 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3577 def __init__(self, c):
3578 r"""__init__(PairContainerStatistics self, _PairContainerAdaptor c) -> PairContainerStatistics"""
3579 _IMP_container.PairContainerStatistics_swiginit(self, _IMP_container.new_PairContainerStatistics(c))
3581 def show_statistics(self, out):
3582 r"""show_statistics(PairContainerStatistics self, _ostream out)"""
3583 return _IMP_container.PairContainerStatistics_show_statistics(self, out)
3585 def set_track_unique(self, tf):
3586 r"""set_track_unique(PairContainerStatistics self, bool tf)"""
3587 return _IMP_container.PairContainerStatistics_set_track_unique(self, tf)
3589 def do_before_evaluate(self):
3590 r"""do_before_evaluate(PairContainerStatistics self)"""
3591 return _IMP_container.PairContainerStatistics_do_before_evaluate(self)
3593 def do_after_evaluate(self, da):
3594 r"""do_after_evaluate(PairContainerStatistics self, DerivativeAccumulator da)"""
3595 return _IMP_container.PairContainerStatistics_do_after_evaluate(self, da)
3597 def do_get_inputs(self):
3598 r"""do_get_inputs(PairContainerStatistics self) -> IMP::ModelObjectsTemp"""
3599 return _IMP_container.PairContainerStatistics_do_get_inputs(self)
3601 def do_get_outputs(self):
3602 r"""do_get_outputs(PairContainerStatistics self) -> IMP::ModelObjectsTemp"""
3603 return _IMP_container.PairContainerStatistics_do_get_outputs(self)
3605 def get_version_info(self):
3606 r"""get_version_info(PairContainerStatistics self) -> VersionInfo"""
3607 return _IMP_container.PairContainerStatistics_get_version_info(self)
3608 __swig_destroy__ = _IMP_container.delete_PairContainerStatistics
3611 r"""__str__(PairContainerStatistics self) -> std::string"""
3612 return _IMP_container.PairContainerStatistics___str__(self)
3615 r"""__repr__(PairContainerStatistics self) -> std::string"""
3616 return _IMP_container.PairContainerStatistics___repr__(self)
3620 return _object_cast_to_PairContainerStatistics(o)
3624 _IMP_container.PairContainerStatistics_swigregister(PairContainerStatistics)
3626 r"""Proxy of C++ IMP::container::TripletContainerStatistics class."""
3628 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3630 def __init__(self, c):
3631 r"""__init__(TripletContainerStatistics self, _TripletContainerAdaptor c) -> TripletContainerStatistics"""
3632 _IMP_container.TripletContainerStatistics_swiginit(self, _IMP_container.new_TripletContainerStatistics(c))
3634 def show_statistics(self, out):
3635 r"""show_statistics(TripletContainerStatistics self, _ostream out)"""
3636 return _IMP_container.TripletContainerStatistics_show_statistics(self, out)
3638 def set_track_unique(self, tf):
3639 r"""set_track_unique(TripletContainerStatistics self, bool tf)"""
3640 return _IMP_container.TripletContainerStatistics_set_track_unique(self, tf)
3642 def do_before_evaluate(self):
3643 r"""do_before_evaluate(TripletContainerStatistics self)"""
3644 return _IMP_container.TripletContainerStatistics_do_before_evaluate(self)
3646 def do_after_evaluate(self, da):
3647 r"""do_after_evaluate(TripletContainerStatistics self, DerivativeAccumulator da)"""
3648 return _IMP_container.TripletContainerStatistics_do_after_evaluate(self, da)
3650 def do_get_inputs(self):
3651 r"""do_get_inputs(TripletContainerStatistics self) -> IMP::ModelObjectsTemp"""
3652 return _IMP_container.TripletContainerStatistics_do_get_inputs(self)
3654 def do_get_outputs(self):
3655 r"""do_get_outputs(TripletContainerStatistics self) -> IMP::ModelObjectsTemp"""
3656 return _IMP_container.TripletContainerStatistics_do_get_outputs(self)
3658 def get_version_info(self):
3659 r"""get_version_info(TripletContainerStatistics self) -> VersionInfo"""
3660 return _IMP_container.TripletContainerStatistics_get_version_info(self)
3661 __swig_destroy__ = _IMP_container.delete_TripletContainerStatistics
3664 r"""__str__(TripletContainerStatistics self) -> std::string"""
3665 return _IMP_container.TripletContainerStatistics___str__(self)
3668 r"""__repr__(TripletContainerStatistics self) -> std::string"""
3669 return _IMP_container.TripletContainerStatistics___repr__(self)
3673 return _object_cast_to_TripletContainerStatistics(o)
3677 _IMP_container.TripletContainerStatistics_swigregister(TripletContainerStatistics)
3679 r"""Proxy of C++ IMP::container::QuadContainerStatistics class."""
3681 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3683 def __init__(self, c):
3684 r"""__init__(QuadContainerStatistics self, _QuadContainerAdaptor c) -> QuadContainerStatistics"""
3685 _IMP_container.QuadContainerStatistics_swiginit(self, _IMP_container.new_QuadContainerStatistics(c))
3687 def show_statistics(self, out):
3688 r"""show_statistics(QuadContainerStatistics self, _ostream out)"""
3689 return _IMP_container.QuadContainerStatistics_show_statistics(self, out)
3691 def set_track_unique(self, tf):
3692 r"""set_track_unique(QuadContainerStatistics self, bool tf)"""
3693 return _IMP_container.QuadContainerStatistics_set_track_unique(self, tf)
3695 def do_before_evaluate(self):
3696 r"""do_before_evaluate(QuadContainerStatistics self)"""
3697 return _IMP_container.QuadContainerStatistics_do_before_evaluate(self)
3699 def do_after_evaluate(self, da):
3700 r"""do_after_evaluate(QuadContainerStatistics self, DerivativeAccumulator da)"""
3701 return _IMP_container.QuadContainerStatistics_do_after_evaluate(self, da)
3703 def do_get_inputs(self):
3704 r"""do_get_inputs(QuadContainerStatistics self) -> IMP::ModelObjectsTemp"""
3705 return _IMP_container.QuadContainerStatistics_do_get_inputs(self)
3707 def do_get_outputs(self):
3708 r"""do_get_outputs(QuadContainerStatistics self) -> IMP::ModelObjectsTemp"""
3709 return _IMP_container.QuadContainerStatistics_do_get_outputs(self)
3711 def get_version_info(self):
3712 r"""get_version_info(QuadContainerStatistics self) -> VersionInfo"""
3713 return _IMP_container.QuadContainerStatistics_get_version_info(self)
3714 __swig_destroy__ = _IMP_container.delete_QuadContainerStatistics
3717 r"""__str__(QuadContainerStatistics self) -> std::string"""
3718 return _IMP_container.QuadContainerStatistics___str__(self)
3721 r"""__repr__(QuadContainerStatistics self) -> std::string"""
3722 return _IMP_container.QuadContainerStatistics___repr__(self)
3726 return _object_cast_to_QuadContainerStatistics(o)
3730 _IMP_container.QuadContainerStatistics_swigregister(QuadContainerStatistics)
3732 r"""Proxy of C++ IMP::container::EventSingletonsOptimizerState class."""
3734 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3736 def __init__(self, *args):
3737 r"""__init__(EventSingletonsOptimizerState self, SingletonPredicate pred, _SingletonContainerAdaptor container, int value, int min_count, int max_count, std::string name="ConstSingletonPredicate%1%") -> EventSingletonsOptimizerState"""
3738 _IMP_container.EventSingletonsOptimizerState_swiginit(self, _IMP_container.new_EventSingletonsOptimizerState(*args))
3740 def do_update(self, call):
3741 r"""do_update(EventSingletonsOptimizerState self, unsigned int call)"""
3742 return _IMP_container.EventSingletonsOptimizerState_do_update(self, call)
3744 def get_version_info(self):
3745 r"""get_version_info(EventSingletonsOptimizerState self) -> VersionInfo"""
3746 return _IMP_container.EventSingletonsOptimizerState_get_version_info(self)
3747 __swig_destroy__ = _IMP_container.delete_EventSingletonsOptimizerState
3750 r"""__str__(EventSingletonsOptimizerState self) -> std::string"""
3751 return _IMP_container.EventSingletonsOptimizerState___str__(self)
3754 r"""__repr__(EventSingletonsOptimizerState self) -> std::string"""
3755 return _IMP_container.EventSingletonsOptimizerState___repr__(self)
3759 return _object_cast_to_EventSingletonsOptimizerState(o)
3763 _IMP_container.EventSingletonsOptimizerState_swigregister(EventSingletonsOptimizerState)
3765 r"""Proxy of C++ IMP::container::EventPairsOptimizerState class."""
3767 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3769 def __init__(self, *args):
3770 r"""__init__(EventPairsOptimizerState self, PairPredicate pred, _PairContainerAdaptor container, int value, int min_count, int max_count, std::string name="ConstPairPredicate%1%") -> EventPairsOptimizerState"""
3771 _IMP_container.EventPairsOptimizerState_swiginit(self, _IMP_container.new_EventPairsOptimizerState(*args))
3773 def do_update(self, call):
3774 r"""do_update(EventPairsOptimizerState self, unsigned int call)"""
3775 return _IMP_container.EventPairsOptimizerState_do_update(self, call)
3777 def get_version_info(self):
3778 r"""get_version_info(EventPairsOptimizerState self) -> VersionInfo"""
3779 return _IMP_container.EventPairsOptimizerState_get_version_info(self)
3780 __swig_destroy__ = _IMP_container.delete_EventPairsOptimizerState
3783 r"""__str__(EventPairsOptimizerState self) -> std::string"""
3784 return _IMP_container.EventPairsOptimizerState___str__(self)
3787 r"""__repr__(EventPairsOptimizerState self) -> std::string"""
3788 return _IMP_container.EventPairsOptimizerState___repr__(self)
3792 return _object_cast_to_EventPairsOptimizerState(o)
3796 _IMP_container.EventPairsOptimizerState_swigregister(EventPairsOptimizerState)
3798 r"""Proxy of C++ IMP::container::EventTripletsOptimizerState class."""
3800 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3802 def __init__(self, *args):
3803 r"""__init__(EventTripletsOptimizerState self, TripletPredicate pred, _TripletContainerAdaptor container, int value, int min_count, int max_count, std::string name="ConstTripletPredicate%1%") -> EventTripletsOptimizerState"""
3804 _IMP_container.EventTripletsOptimizerState_swiginit(self, _IMP_container.new_EventTripletsOptimizerState(*args))
3806 def do_update(self, call):
3807 r"""do_update(EventTripletsOptimizerState self, unsigned int call)"""
3808 return _IMP_container.EventTripletsOptimizerState_do_update(self, call)
3810 def get_version_info(self):
3811 r"""get_version_info(EventTripletsOptimizerState self) -> VersionInfo"""
3812 return _IMP_container.EventTripletsOptimizerState_get_version_info(self)
3813 __swig_destroy__ = _IMP_container.delete_EventTripletsOptimizerState
3816 r"""__str__(EventTripletsOptimizerState self) -> std::string"""
3817 return _IMP_container.EventTripletsOptimizerState___str__(self)
3820 r"""__repr__(EventTripletsOptimizerState self) -> std::string"""
3821 return _IMP_container.EventTripletsOptimizerState___repr__(self)
3825 return _object_cast_to_EventTripletsOptimizerState(o)
3829 _IMP_container.EventTripletsOptimizerState_swigregister(EventTripletsOptimizerState)
3831 r"""Proxy of C++ IMP::container::EventQuadsOptimizerState class."""
3833 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3835 def __init__(self, *args):
3836 r"""__init__(EventQuadsOptimizerState self, QuadPredicate pred, _QuadContainerAdaptor container, int value, int min_count, int max_count, std::string name="ConstQuadPredicate%1%") -> EventQuadsOptimizerState"""
3837 _IMP_container.EventQuadsOptimizerState_swiginit(self, _IMP_container.new_EventQuadsOptimizerState(*args))
3839 def do_update(self, call):
3840 r"""do_update(EventQuadsOptimizerState self, unsigned int call)"""
3841 return _IMP_container.EventQuadsOptimizerState_do_update(self, call)
3843 def get_version_info(self):
3844 r"""get_version_info(EventQuadsOptimizerState self) -> VersionInfo"""
3845 return _IMP_container.EventQuadsOptimizerState_get_version_info(self)
3846 __swig_destroy__ = _IMP_container.delete_EventQuadsOptimizerState
3849 r"""__str__(EventQuadsOptimizerState self) -> std::string"""
3850 return _IMP_container.EventQuadsOptimizerState___str__(self)
3853 r"""__repr__(EventQuadsOptimizerState self) -> std::string"""
3854 return _IMP_container.EventQuadsOptimizerState___repr__(self)
3858 return _object_cast_to_EventQuadsOptimizerState(o)
3862 _IMP_container.EventQuadsOptimizerState_swigregister(EventQuadsOptimizerState)
3864 r"""Proxy of C++ IMP::container::PredicateSingletonsRestraint class."""
3866 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3868 def __init__(self, *args):
3870 __init__(PredicateSingletonsRestraint self, SingletonPredicate pred, _SingletonContainerAdaptor input, std::string name="PredicateSingletonsRestraint %1%") -> PredicateSingletonsRestraint
3871 __init__(PredicateSingletonsRestraint self) -> PredicateSingletonsRestraint
3873 _IMP_container.PredicateSingletonsRestraint_swiginit(self, _IMP_container.new_PredicateSingletonsRestraint(*args))
3875 def set_score(self, predicate_value, score):
3876 r"""set_score(PredicateSingletonsRestraint self, int predicate_value, SingletonScore score)"""
3877 return _IMP_container.PredicateSingletonsRestraint_set_score(self, predicate_value, score)
3879 def set_unknown_score(self, score):
3880 r"""set_unknown_score(PredicateSingletonsRestraint self, SingletonScore score)"""
3881 return _IMP_container.PredicateSingletonsRestraint_set_unknown_score(self, score)
3883 def set_is_complete(self, tf):
3884 r"""set_is_complete(PredicateSingletonsRestraint self, bool tf)"""
3885 return _IMP_container.PredicateSingletonsRestraint_set_is_complete(self, tf)
3888 r"""get_indexes(PredicateSingletonsRestraint self, int predicate_value) -> IMP::ParticleIndexes"""
3889 return _IMP_container.PredicateSingletonsRestraint_get_indexes(self, predicate_value)
3891 def do_add_score_and_derivatives(self, sa):
3892 r"""do_add_score_and_derivatives(PredicateSingletonsRestraint self, ScoreAccumulator sa)"""
3893 return _IMP_container.PredicateSingletonsRestraint_do_add_score_and_derivatives(self, sa)
3895 def do_get_inputs(self):
3896 r"""do_get_inputs(PredicateSingletonsRestraint self) -> IMP::ModelObjectsTemp"""
3897 return _IMP_container.PredicateSingletonsRestraint_do_get_inputs(self)
3899 def get_version_info(self):
3900 r"""get_version_info(PredicateSingletonsRestraint self) -> VersionInfo"""
3901 return _IMP_container.PredicateSingletonsRestraint_get_version_info(self)
3902 __swig_destroy__ = _IMP_container.delete_PredicateSingletonsRestraint
3905 r"""__str__(PredicateSingletonsRestraint self) -> std::string"""
3906 return _IMP_container.PredicateSingletonsRestraint___str__(self)
3909 r"""__repr__(PredicateSingletonsRestraint self) -> std::string"""
3910 return _IMP_container.PredicateSingletonsRestraint___repr__(self)
3914 return _object_cast_to_PredicateSingletonsRestraint(o)
3917 def _get_as_binary(self):
3918 r"""_get_as_binary(PredicateSingletonsRestraint self) -> PyObject *"""
3919 return _IMP_container.PredicateSingletonsRestraint__get_as_binary(self)
3921 def _set_from_binary(self, p):
3922 r"""_set_from_binary(PredicateSingletonsRestraint self, PyObject * p)"""
3923 return _IMP_container.PredicateSingletonsRestraint__set_from_binary(self, p)
3925 def __getstate__(self):
3926 p = self._get_as_binary()
3927 if len(self.__dict__) > 1:
3928 d = self.__dict__.copy()
3933 def __setstate__(self, p):
3934 if not hasattr(self,
'this'):
3936 if isinstance(p, tuple):
3938 self.__dict__.update(d)
3939 return self._set_from_binary(p)
3943 _IMP_container.PredicateSingletonsRestraint_swigregister(PredicateSingletonsRestraint)
3945 r"""Proxy of C++ IMP::container::PredicatePairsRestraint class."""
3947 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
3949 def __init__(self, *args):
3951 __init__(PredicatePairsRestraint self, PairPredicate pred, _PairContainerAdaptor input, std::string name="PredicatePairsRestraint %1%") -> PredicatePairsRestraint
3952 __init__(PredicatePairsRestraint self) -> PredicatePairsRestraint
3954 _IMP_container.PredicatePairsRestraint_swiginit(self, _IMP_container.new_PredicatePairsRestraint(*args))
3956 def set_score(self, predicate_value, score):
3957 r"""set_score(PredicatePairsRestraint self, int predicate_value, PairScore score)"""
3958 return _IMP_container.PredicatePairsRestraint_set_score(self, predicate_value, score)
3960 def set_unknown_score(self, score):
3961 r"""set_unknown_score(PredicatePairsRestraint self, PairScore score)"""
3962 return _IMP_container.PredicatePairsRestraint_set_unknown_score(self, score)
3964 def set_is_complete(self, tf):
3965 r"""set_is_complete(PredicatePairsRestraint self, bool tf)"""
3966 return _IMP_container.PredicatePairsRestraint_set_is_complete(self, tf)
3969 r"""get_indexes(PredicatePairsRestraint self, int predicate_value) -> IMP::ParticleIndexPairs"""
3970 return _IMP_container.PredicatePairsRestraint_get_indexes(self, predicate_value)
3972 def do_add_score_and_derivatives(self, sa):
3973 r"""do_add_score_and_derivatives(PredicatePairsRestraint self, ScoreAccumulator sa)"""
3974 return _IMP_container.PredicatePairsRestraint_do_add_score_and_derivatives(self, sa)
3976 def do_get_inputs(self):
3977 r"""do_get_inputs(PredicatePairsRestraint self) -> IMP::ModelObjectsTemp"""
3978 return _IMP_container.PredicatePairsRestraint_do_get_inputs(self)
3980 def get_version_info(self):
3981 r"""get_version_info(PredicatePairsRestraint self) -> VersionInfo"""
3982 return _IMP_container.PredicatePairsRestraint_get_version_info(self)
3983 __swig_destroy__ = _IMP_container.delete_PredicatePairsRestraint
3986 r"""__str__(PredicatePairsRestraint self) -> std::string"""
3987 return _IMP_container.PredicatePairsRestraint___str__(self)
3990 r"""__repr__(PredicatePairsRestraint self) -> std::string"""
3991 return _IMP_container.PredicatePairsRestraint___repr__(self)
3995 return _object_cast_to_PredicatePairsRestraint(o)
3998 def _get_as_binary(self):
3999 r"""_get_as_binary(PredicatePairsRestraint self) -> PyObject *"""
4000 return _IMP_container.PredicatePairsRestraint__get_as_binary(self)
4002 def _set_from_binary(self, p):
4003 r"""_set_from_binary(PredicatePairsRestraint self, PyObject * p)"""
4004 return _IMP_container.PredicatePairsRestraint__set_from_binary(self, p)
4006 def __getstate__(self):
4007 p = self._get_as_binary()
4008 if len(self.__dict__) > 1:
4009 d = self.__dict__.copy()
4014 def __setstate__(self, p):
4015 if not hasattr(self,
'this'):
4017 if isinstance(p, tuple):
4019 self.__dict__.update(d)
4020 return self._set_from_binary(p)
4024 _IMP_container.PredicatePairsRestraint_swigregister(PredicatePairsRestraint)
4026 r"""Proxy of C++ IMP::container::PredicateTripletsRestraint class."""
4028 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4030 def __init__(self, *args):
4032 __init__(PredicateTripletsRestraint self, TripletPredicate pred, _TripletContainerAdaptor input, std::string name="PredicateTripletsRestraint %1%") -> PredicateTripletsRestraint
4033 __init__(PredicateTripletsRestraint self) -> PredicateTripletsRestraint
4035 _IMP_container.PredicateTripletsRestraint_swiginit(self, _IMP_container.new_PredicateTripletsRestraint(*args))
4037 def set_score(self, predicate_value, score):
4038 r"""set_score(PredicateTripletsRestraint self, int predicate_value, TripletScore score)"""
4039 return _IMP_container.PredicateTripletsRestraint_set_score(self, predicate_value, score)
4041 def set_unknown_score(self, score):
4042 r"""set_unknown_score(PredicateTripletsRestraint self, TripletScore score)"""
4043 return _IMP_container.PredicateTripletsRestraint_set_unknown_score(self, score)
4045 def set_is_complete(self, tf):
4046 r"""set_is_complete(PredicateTripletsRestraint self, bool tf)"""
4047 return _IMP_container.PredicateTripletsRestraint_set_is_complete(self, tf)
4050 r"""get_indexes(PredicateTripletsRestraint self, int predicate_value) -> IMP::ParticleIndexTriplets"""
4051 return _IMP_container.PredicateTripletsRestraint_get_indexes(self, predicate_value)
4053 def do_add_score_and_derivatives(self, sa):
4054 r"""do_add_score_and_derivatives(PredicateTripletsRestraint self, ScoreAccumulator sa)"""
4055 return _IMP_container.PredicateTripletsRestraint_do_add_score_and_derivatives(self, sa)
4057 def do_get_inputs(self):
4058 r"""do_get_inputs(PredicateTripletsRestraint self) -> IMP::ModelObjectsTemp"""
4059 return _IMP_container.PredicateTripletsRestraint_do_get_inputs(self)
4061 def get_version_info(self):
4062 r"""get_version_info(PredicateTripletsRestraint self) -> VersionInfo"""
4063 return _IMP_container.PredicateTripletsRestraint_get_version_info(self)
4064 __swig_destroy__ = _IMP_container.delete_PredicateTripletsRestraint
4067 r"""__str__(PredicateTripletsRestraint self) -> std::string"""
4068 return _IMP_container.PredicateTripletsRestraint___str__(self)
4071 r"""__repr__(PredicateTripletsRestraint self) -> std::string"""
4072 return _IMP_container.PredicateTripletsRestraint___repr__(self)
4076 return _object_cast_to_PredicateTripletsRestraint(o)
4079 def _get_as_binary(self):
4080 r"""_get_as_binary(PredicateTripletsRestraint self) -> PyObject *"""
4081 return _IMP_container.PredicateTripletsRestraint__get_as_binary(self)
4083 def _set_from_binary(self, p):
4084 r"""_set_from_binary(PredicateTripletsRestraint self, PyObject * p)"""
4085 return _IMP_container.PredicateTripletsRestraint__set_from_binary(self, p)
4087 def __getstate__(self):
4088 p = self._get_as_binary()
4089 if len(self.__dict__) > 1:
4090 d = self.__dict__.copy()
4095 def __setstate__(self, p):
4096 if not hasattr(self,
'this'):
4098 if isinstance(p, tuple):
4100 self.__dict__.update(d)
4101 return self._set_from_binary(p)
4105 _IMP_container.PredicateTripletsRestraint_swigregister(PredicateTripletsRestraint)
4107 r"""Proxy of C++ IMP::container::PredicateQuadsRestraint class."""
4109 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4111 def __init__(self, *args):
4113 __init__(PredicateQuadsRestraint self, QuadPredicate pred, _QuadContainerAdaptor input, std::string name="PredicateQuadsRestraint %1%") -> PredicateQuadsRestraint
4114 __init__(PredicateQuadsRestraint self) -> PredicateQuadsRestraint
4116 _IMP_container.PredicateQuadsRestraint_swiginit(self, _IMP_container.new_PredicateQuadsRestraint(*args))
4118 def set_score(self, predicate_value, score):
4119 r"""set_score(PredicateQuadsRestraint self, int predicate_value, QuadScore score)"""
4120 return _IMP_container.PredicateQuadsRestraint_set_score(self, predicate_value, score)
4122 def set_unknown_score(self, score):
4123 r"""set_unknown_score(PredicateQuadsRestraint self, QuadScore score)"""
4124 return _IMP_container.PredicateQuadsRestraint_set_unknown_score(self, score)
4126 def set_is_complete(self, tf):
4127 r"""set_is_complete(PredicateQuadsRestraint self, bool tf)"""
4128 return _IMP_container.PredicateQuadsRestraint_set_is_complete(self, tf)
4131 r"""get_indexes(PredicateQuadsRestraint self, int predicate_value) -> IMP::ParticleIndexQuads"""
4132 return _IMP_container.PredicateQuadsRestraint_get_indexes(self, predicate_value)
4134 def do_add_score_and_derivatives(self, sa):
4135 r"""do_add_score_and_derivatives(PredicateQuadsRestraint self, ScoreAccumulator sa)"""
4136 return _IMP_container.PredicateQuadsRestraint_do_add_score_and_derivatives(self, sa)
4138 def do_get_inputs(self):
4139 r"""do_get_inputs(PredicateQuadsRestraint self) -> IMP::ModelObjectsTemp"""
4140 return _IMP_container.PredicateQuadsRestraint_do_get_inputs(self)
4142 def get_version_info(self):
4143 r"""get_version_info(PredicateQuadsRestraint self) -> VersionInfo"""
4144 return _IMP_container.PredicateQuadsRestraint_get_version_info(self)
4145 __swig_destroy__ = _IMP_container.delete_PredicateQuadsRestraint
4148 r"""__str__(PredicateQuadsRestraint self) -> std::string"""
4149 return _IMP_container.PredicateQuadsRestraint___str__(self)
4152 r"""__repr__(PredicateQuadsRestraint self) -> std::string"""
4153 return _IMP_container.PredicateQuadsRestraint___repr__(self)
4157 return _object_cast_to_PredicateQuadsRestraint(o)
4160 def _get_as_binary(self):
4161 r"""_get_as_binary(PredicateQuadsRestraint self) -> PyObject *"""
4162 return _IMP_container.PredicateQuadsRestraint__get_as_binary(self)
4164 def _set_from_binary(self, p):
4165 r"""_set_from_binary(PredicateQuadsRestraint self, PyObject * p)"""
4166 return _IMP_container.PredicateQuadsRestraint__set_from_binary(self, p)
4168 def __getstate__(self):
4169 p = self._get_as_binary()
4170 if len(self.__dict__) > 1:
4171 d = self.__dict__.copy()
4176 def __setstate__(self, p):
4177 if not hasattr(self,
'this'):
4179 if isinstance(p, tuple):
4181 self.__dict__.update(d)
4182 return self._set_from_binary(p)
4186 _IMP_container.PredicateQuadsRestraint_swigregister(PredicateQuadsRestraint)
4188 r"""Proxy of C++ IMP::container::DistributeSingletonsScoreState class."""
4190 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4192 def __init__(self, *args):
4193 r"""__init__(DistributeSingletonsScoreState self, _SingletonContainerAdaptor input, std::string name="DistributeSingletonsScoreState %1%") -> DistributeSingletonsScoreState"""
4194 _IMP_container.DistributeSingletonsScoreState_swiginit(self, _IMP_container.new_DistributeSingletonsScoreState(*args))
4196 def add_predicate(self, predicate, value):
4197 r"""add_predicate(DistributeSingletonsScoreState self, SingletonPredicate predicate, int value) -> DynamicListSingletonContainer"""
4198 return _IMP_container.DistributeSingletonsScoreState_add_predicate(self, predicate, value)
4200 def do_before_evaluate(self):
4201 r"""do_before_evaluate(DistributeSingletonsScoreState self)"""
4202 return _IMP_container.DistributeSingletonsScoreState_do_before_evaluate(self)
4204 def do_after_evaluate(self, da):
4205 r"""do_after_evaluate(DistributeSingletonsScoreState self, DerivativeAccumulator da)"""
4206 return _IMP_container.DistributeSingletonsScoreState_do_after_evaluate(self, da)
4208 def do_get_inputs(self):
4209 r"""do_get_inputs(DistributeSingletonsScoreState self) -> IMP::ModelObjectsTemp"""
4210 return _IMP_container.DistributeSingletonsScoreState_do_get_inputs(self)
4212 def do_get_outputs(self):
4213 r"""do_get_outputs(DistributeSingletonsScoreState self) -> IMP::ModelObjectsTemp"""
4214 return _IMP_container.DistributeSingletonsScoreState_do_get_outputs(self)
4216 def get_version_info(self):
4217 r"""get_version_info(DistributeSingletonsScoreState self) -> VersionInfo"""
4218 return _IMP_container.DistributeSingletonsScoreState_get_version_info(self)
4219 __swig_destroy__ = _IMP_container.delete_DistributeSingletonsScoreState
4222 r"""__str__(DistributeSingletonsScoreState self) -> std::string"""
4223 return _IMP_container.DistributeSingletonsScoreState___str__(self)
4226 r"""__repr__(DistributeSingletonsScoreState self) -> std::string"""
4227 return _IMP_container.DistributeSingletonsScoreState___repr__(self)
4231 return _object_cast_to_DistributeSingletonsScoreState(o)
4235 _IMP_container.DistributeSingletonsScoreState_swigregister(DistributeSingletonsScoreState)
4237 r"""Proxy of C++ IMP::container::DistributePairsScoreState class."""
4239 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4241 def __init__(self, *args):
4242 r"""__init__(DistributePairsScoreState self, _PairContainerAdaptor input, std::string name="DistributePairsScoreState %1%") -> DistributePairsScoreState"""
4243 _IMP_container.DistributePairsScoreState_swiginit(self, _IMP_container.new_DistributePairsScoreState(*args))
4245 def add_predicate(self, predicate, value):
4246 r"""add_predicate(DistributePairsScoreState self, PairPredicate predicate, int value) -> DynamicListPairContainer"""
4247 return _IMP_container.DistributePairsScoreState_add_predicate(self, predicate, value)
4249 def do_before_evaluate(self):
4250 r"""do_before_evaluate(DistributePairsScoreState self)"""
4251 return _IMP_container.DistributePairsScoreState_do_before_evaluate(self)
4253 def do_after_evaluate(self, da):
4254 r"""do_after_evaluate(DistributePairsScoreState self, DerivativeAccumulator da)"""
4255 return _IMP_container.DistributePairsScoreState_do_after_evaluate(self, da)
4257 def do_get_inputs(self):
4258 r"""do_get_inputs(DistributePairsScoreState self) -> IMP::ModelObjectsTemp"""
4259 return _IMP_container.DistributePairsScoreState_do_get_inputs(self)
4261 def do_get_outputs(self):
4262 r"""do_get_outputs(DistributePairsScoreState self) -> IMP::ModelObjectsTemp"""
4263 return _IMP_container.DistributePairsScoreState_do_get_outputs(self)
4265 def get_version_info(self):
4266 r"""get_version_info(DistributePairsScoreState self) -> VersionInfo"""
4267 return _IMP_container.DistributePairsScoreState_get_version_info(self)
4268 __swig_destroy__ = _IMP_container.delete_DistributePairsScoreState
4271 r"""__str__(DistributePairsScoreState self) -> std::string"""
4272 return _IMP_container.DistributePairsScoreState___str__(self)
4275 r"""__repr__(DistributePairsScoreState self) -> std::string"""
4276 return _IMP_container.DistributePairsScoreState___repr__(self)
4280 return _object_cast_to_DistributePairsScoreState(o)
4284 _IMP_container.DistributePairsScoreState_swigregister(DistributePairsScoreState)
4286 r"""Proxy of C++ IMP::container::DistributeTripletsScoreState class."""
4288 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4290 def __init__(self, *args):
4291 r"""__init__(DistributeTripletsScoreState self, _TripletContainerAdaptor input, std::string name="DistributeTripletsScoreState %1%") -> DistributeTripletsScoreState"""
4292 _IMP_container.DistributeTripletsScoreState_swiginit(self, _IMP_container.new_DistributeTripletsScoreState(*args))
4294 def add_predicate(self, predicate, value):
4295 r"""add_predicate(DistributeTripletsScoreState self, TripletPredicate predicate, int value) -> DynamicListTripletContainer"""
4296 return _IMP_container.DistributeTripletsScoreState_add_predicate(self, predicate, value)
4298 def do_before_evaluate(self):
4299 r"""do_before_evaluate(DistributeTripletsScoreState self)"""
4300 return _IMP_container.DistributeTripletsScoreState_do_before_evaluate(self)
4302 def do_after_evaluate(self, da):
4303 r"""do_after_evaluate(DistributeTripletsScoreState self, DerivativeAccumulator da)"""
4304 return _IMP_container.DistributeTripletsScoreState_do_after_evaluate(self, da)
4306 def do_get_inputs(self):
4307 r"""do_get_inputs(DistributeTripletsScoreState self) -> IMP::ModelObjectsTemp"""
4308 return _IMP_container.DistributeTripletsScoreState_do_get_inputs(self)
4310 def do_get_outputs(self):
4311 r"""do_get_outputs(DistributeTripletsScoreState self) -> IMP::ModelObjectsTemp"""
4312 return _IMP_container.DistributeTripletsScoreState_do_get_outputs(self)
4314 def get_version_info(self):
4315 r"""get_version_info(DistributeTripletsScoreState self) -> VersionInfo"""
4316 return _IMP_container.DistributeTripletsScoreState_get_version_info(self)
4317 __swig_destroy__ = _IMP_container.delete_DistributeTripletsScoreState
4320 r"""__str__(DistributeTripletsScoreState self) -> std::string"""
4321 return _IMP_container.DistributeTripletsScoreState___str__(self)
4324 r"""__repr__(DistributeTripletsScoreState self) -> std::string"""
4325 return _IMP_container.DistributeTripletsScoreState___repr__(self)
4329 return _object_cast_to_DistributeTripletsScoreState(o)
4333 _IMP_container.DistributeTripletsScoreState_swigregister(DistributeTripletsScoreState)
4335 r"""Proxy of C++ IMP::container::DistributeQuadsScoreState class."""
4337 thisown = property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
"The membership flag")
4339 def __init__(self, *args):
4340 r"""__init__(DistributeQuadsScoreState self, _QuadContainerAdaptor input, std::string name="DistributeQuadsScoreState %1%") -> DistributeQuadsScoreState"""
4341 _IMP_container.DistributeQuadsScoreState_swiginit(self, _IMP_container.new_DistributeQuadsScoreState(*args))
4343 def add_predicate(self, predicate, value):
4344 r"""add_predicate(DistributeQuadsScoreState self, QuadPredicate predicate, int value) -> DynamicListQuadContainer"""
4345 return _IMP_container.DistributeQuadsScoreState_add_predicate(self, predicate, value)
4347 def do_before_evaluate(self):
4348 r"""do_before_evaluate(DistributeQuadsScoreState self)"""
4349 return _IMP_container.DistributeQuadsScoreState_do_before_evaluate(self)
4351 def do_after_evaluate(self, da):
4352 r"""do_after_evaluate(DistributeQuadsScoreState self, DerivativeAccumulator da)"""
4353 return _IMP_container.DistributeQuadsScoreState_do_after_evaluate(self, da)
4355 def do_get_inputs(self):
4356 r"""do_get_inputs(DistributeQuadsScoreState self) -> IMP::ModelObjectsTemp"""
4357 return _IMP_container.DistributeQuadsScoreState_do_get_inputs(self)
4359 def do_get_outputs(self):
4360 r"""do_get_outputs(DistributeQuadsScoreState self) -> IMP::ModelObjectsTemp"""
4361 return _IMP_container.DistributeQuadsScoreState_do_get_outputs(self)
4363 def get_version_info(self):
4364 r"""get_version_info(DistributeQuadsScoreState self) -> VersionInfo"""
4365 return _IMP_container.DistributeQuadsScoreState_get_version_info(self)
4366 __swig_destroy__ = _IMP_container.delete_DistributeQuadsScoreState
4369 r"""__str__(DistributeQuadsScoreState self) -> std::string"""
4370 return _IMP_container.DistributeQuadsScoreState___str__(self)
4373 r"""__repr__(DistributeQuadsScoreState self) -> std::string"""
4374 return _IMP_container.DistributeQuadsScoreState___repr__(self)
4378 return _object_cast_to_DistributeQuadsScoreState(o)
4382 _IMP_container.DistributeQuadsScoreState_swigregister(DistributeQuadsScoreState)
4386 create_restraint(PairScore ps, IMP::ParticlePair pp) -> Restraint
4387 create_restraint(PairScore ps, PairContainer pp) -> Restraint
4389 return _IMP_container.create_restraint(*args)
4392 r"""get_module_version() -> std::string const"""
4393 return _IMP_container.get_module_version()
4396 r"""get_example_path(std::string fname) -> std::string"""
4397 return _IMP_container.get_example_path(fname)
4400 r"""get_data_path(std::string fname) -> std::string"""
4401 return _IMP_container.get_data_path(fname)
4403 from .
import _version_check
std::string get_data_path(std::string file_name)
Return the full path to one of this module's data files.
Abstract class for scoring object(s) of type ParticleIndexPair.
A shared container for Pairs.
double get_slack_estimate(Model *m, ParticleIndexes ps, double upper_bound, double step, const RestraintsTemp &restraints, bool derivatives, Optimizer *opt, ClosePairContainer *cpc)
Abstract predicate function.
Restraint * create_restraint(Score *s, const typename Score::Argument &t, std::string name=std::string())
Make CGAL functionality available to IMP.
Composable functors to implement scores via compile-time composition.
std::string get_module_version()
Return the version of this module, as a string.
Implement a constraint on the Model.
Abstract class for scoring object(s) of type ParticleIndexQuad.
Abstract predicate function.
Abstract class for scoring object(s) of type ParticleIndex.
ScoreStates maintain invariants in the Model.
A shared container for Quads.
A shared container for Singletons.
std::string get_example_path(std::string file_name)
Return the full path to one of this module's example files.
Basic functionality that is expected to be used by a wide variety of IMP users.
Abstract predicate function.
General purpose algebraic and geometric methods that are expected to be used by a wide variety of IMP...
Shared optimizer state that is invoked upon commitment of new coordinates.
Abstract predicate function.
A shared container for Triplets.
Output IMP model data in various file formats.
Abstract class for scoring object(s) of type ParticleIndexTriplet.
ParticleIndexes get_indexes(const ParticlesTemp &ps)
Get the indexes from a list of particles.
A restraint is a term in an IMP ScoringFunction.