11 from __future__
import print_function, division, absolute_import
17 from sys
import version_info
18 if version_info >= (2, 6, 0):
19 def swig_import_helper():
20 from os.path
import dirname
24 fp, pathname, description = imp.find_module(
'_IMP_misc', [dirname(__file__)])
30 _mod = imp.load_module(
'_IMP_misc', fp, pathname, description)
34 _IMP_misc = swig_import_helper()
35 del swig_import_helper
40 _swig_property = property
45 def _swig_setattr_nondynamic(self, class_type, name, value, static=1):
46 if (name ==
"thisown"):
47 return self.this.own(value)
49 if type(value).__name__ ==
'SwigPyObject':
50 self.__dict__[name] = value
52 method = class_type.__swig_setmethods__.get(name,
None)
54 return method(self, value)
56 object.__setattr__(self, name, value)
58 raise AttributeError(
"You cannot add attributes to %s" % self)
61 def _swig_setattr(self, class_type, name, value):
62 return _swig_setattr_nondynamic(self, class_type, name, value, 0)
65 def _swig_getattr_nondynamic(self, class_type, name, static=1):
66 if (name ==
"thisown"):
67 return self.this.own()
68 method = class_type.__swig_getmethods__.get(name,
None)
72 return object.__getattr__(self, name)
74 raise AttributeError(name)
76 def _swig_getattr(self, class_type, name):
77 return _swig_getattr_nondynamic(self, class_type, name, 0)
82 strthis =
"proxy of " + self.this.__repr__()
85 return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
90 except AttributeError:
97 def _swig_setattr_nondynamic_method(set):
98 def set_attr(self, name, value):
99 if (name ==
"thisown"):
100 return self.this.own(value)
101 if hasattr(self, name)
or (name ==
"this"):
102 set(self, name, value)
104 raise AttributeError(
"You cannot add attributes to %s" % self)
110 weakref_proxy = weakref.proxy
112 weakref_proxy =
lambda x: x
115 class IMP_MISC_SwigPyIterator(object):
116 """Proxy of C++ swig::IMP_MISC_SwigPyIterator class"""
117 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
119 def __init__(self, *args, **kwargs):
120 raise AttributeError(
"No constructor defined - class is abstract")
121 __repr__ = _swig_repr
122 __swig_destroy__ = _IMP_misc.delete_IMP_MISC_SwigPyIterator
123 __del__ =
lambda self:
None
126 """value(IMP_MISC_SwigPyIterator self) -> PyObject *"""
127 return _IMP_misc.IMP_MISC_SwigPyIterator_value(self)
132 incr(IMP_MISC_SwigPyIterator self, size_t n=1) -> IMP_MISC_SwigPyIterator
133 incr(IMP_MISC_SwigPyIterator self) -> IMP_MISC_SwigPyIterator
135 return _IMP_misc.IMP_MISC_SwigPyIterator_incr(self, n)
140 decr(IMP_MISC_SwigPyIterator self, size_t n=1) -> IMP_MISC_SwigPyIterator
141 decr(IMP_MISC_SwigPyIterator self) -> IMP_MISC_SwigPyIterator
143 return _IMP_misc.IMP_MISC_SwigPyIterator_decr(self, n)
146 def distance(self, x):
147 """distance(IMP_MISC_SwigPyIterator self, IMP_MISC_SwigPyIterator x) -> ptrdiff_t"""
148 return _IMP_misc.IMP_MISC_SwigPyIterator_distance(self, x)
152 """equal(IMP_MISC_SwigPyIterator self, IMP_MISC_SwigPyIterator x) -> bool"""
153 return _IMP_misc.IMP_MISC_SwigPyIterator_equal(self, x)
157 """copy(IMP_MISC_SwigPyIterator self) -> IMP_MISC_SwigPyIterator"""
158 return _IMP_misc.IMP_MISC_SwigPyIterator_copy(self)
162 """next(IMP_MISC_SwigPyIterator self) -> PyObject *"""
163 return _IMP_misc.IMP_MISC_SwigPyIterator_next(self)
167 """__next__(IMP_MISC_SwigPyIterator self) -> PyObject *"""
168 return _IMP_misc.IMP_MISC_SwigPyIterator___next__(self)
172 """previous(IMP_MISC_SwigPyIterator self) -> PyObject *"""
173 return _IMP_misc.IMP_MISC_SwigPyIterator_previous(self)
176 def advance(self, n):
177 """advance(IMP_MISC_SwigPyIterator self, ptrdiff_t n) -> IMP_MISC_SwigPyIterator"""
178 return _IMP_misc.IMP_MISC_SwigPyIterator_advance(self, n)
182 """__eq__(IMP_MISC_SwigPyIterator self, IMP_MISC_SwigPyIterator x) -> bool"""
183 return _IMP_misc.IMP_MISC_SwigPyIterator___eq__(self, x)
187 """__ne__(IMP_MISC_SwigPyIterator self, IMP_MISC_SwigPyIterator x) -> bool"""
188 return _IMP_misc.IMP_MISC_SwigPyIterator___ne__(self, x)
191 def __iadd__(self, n):
192 """__iadd__(IMP_MISC_SwigPyIterator self, ptrdiff_t n) -> IMP_MISC_SwigPyIterator"""
193 return _IMP_misc.IMP_MISC_SwigPyIterator___iadd__(self, n)
196 def __isub__(self, n):
197 """__isub__(IMP_MISC_SwigPyIterator self, ptrdiff_t n) -> IMP_MISC_SwigPyIterator"""
198 return _IMP_misc.IMP_MISC_SwigPyIterator___isub__(self, n)
201 def __add__(self, n):
202 """__add__(IMP_MISC_SwigPyIterator self, ptrdiff_t n) -> IMP_MISC_SwigPyIterator"""
203 return _IMP_misc.IMP_MISC_SwigPyIterator___add__(self, n)
206 def __sub__(self, *args):
208 __sub__(IMP_MISC_SwigPyIterator self, ptrdiff_t n) -> IMP_MISC_SwigPyIterator
209 __sub__(IMP_MISC_SwigPyIterator self, IMP_MISC_SwigPyIterator x) -> ptrdiff_t
211 return _IMP_misc.IMP_MISC_SwigPyIterator___sub__(self, *args)
215 IMP_MISC_SwigPyIterator_swigregister = _IMP_misc.IMP_MISC_SwigPyIterator_swigregister
216 IMP_MISC_SwigPyIterator_swigregister(IMP_MISC_SwigPyIterator)
225 _IMP_misc.IMP_DEBUG_swigconstant(_IMP_misc)
226 IMP_DEBUG = _IMP_misc.IMP_DEBUG
228 _IMP_misc.IMP_RELEASE_swigconstant(_IMP_misc)
229 IMP_RELEASE = _IMP_misc.IMP_RELEASE
231 _IMP_misc.IMP_SILENT_swigconstant(_IMP_misc)
232 IMP_SILENT = _IMP_misc.IMP_SILENT
234 _IMP_misc.IMP_PROGRESS_swigconstant(_IMP_misc)
235 IMP_PROGRESS = _IMP_misc.IMP_PROGRESS
237 _IMP_misc.IMP_TERSE_swigconstant(_IMP_misc)
238 IMP_TERSE = _IMP_misc.IMP_TERSE
240 _IMP_misc.IMP_VERBOSE_swigconstant(_IMP_misc)
241 IMP_VERBOSE = _IMP_misc.IMP_VERBOSE
243 _IMP_misc.IMP_MEMORY_swigconstant(_IMP_misc)
244 IMP_MEMORY = _IMP_misc.IMP_MEMORY
246 _IMP_misc.IMP_NONE_swigconstant(_IMP_misc)
247 IMP_NONE = _IMP_misc.IMP_NONE
249 _IMP_misc.IMP_USAGE_swigconstant(_IMP_misc)
250 IMP_USAGE = _IMP_misc.IMP_USAGE
252 _IMP_misc.IMP_INTERNAL_swigconstant(_IMP_misc)
253 IMP_INTERNAL = _IMP_misc.IMP_INTERNAL
255 _IMP_misc.IMP_KERNEL_HAS_LOG4CXX_swigconstant(_IMP_misc)
256 IMP_KERNEL_HAS_LOG4CXX = _IMP_misc.IMP_KERNEL_HAS_LOG4CXX
258 _IMP_misc.IMP_COMPILER_HAS_DEBUG_VECTOR_swigconstant(_IMP_misc)
259 IMP_COMPILER_HAS_DEBUG_VECTOR = _IMP_misc.IMP_COMPILER_HAS_DEBUG_VECTOR
261 _IMP_misc.IMP_COMPILER_HAS_RANDOM_SHUFFLE_swigconstant(_IMP_misc)
262 IMP_COMPILER_HAS_RANDOM_SHUFFLE = _IMP_misc.IMP_COMPILER_HAS_RANDOM_SHUFFLE
264 _IMP_misc.IMP_COMPILER_HAS_THREE_WAY_swigconstant(_IMP_misc)
265 IMP_COMPILER_HAS_THREE_WAY = _IMP_misc.IMP_COMPILER_HAS_THREE_WAY
267 _IMP_misc.IMP_KERNEL_HAS_BOOST_RANDOM_swigconstant(_IMP_misc)
268 IMP_KERNEL_HAS_BOOST_RANDOM = _IMP_misc.IMP_KERNEL_HAS_BOOST_RANDOM
270 _IMP_misc.IMP_KERNEL_HAS_NUMPY_swigconstant(_IMP_misc)
271 IMP_KERNEL_HAS_NUMPY = _IMP_misc.IMP_KERNEL_HAS_NUMPY
273 _IMP_misc.IMP_KERNEL_HAS_GPERFTOOLS_swigconstant(_IMP_misc)
274 IMP_KERNEL_HAS_GPERFTOOLS = _IMP_misc.IMP_KERNEL_HAS_GPERFTOOLS
276 _IMP_misc.IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER_swigconstant(_IMP_misc)
277 IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER = _IMP_misc.IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER
279 _IMP_misc.IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER_swigconstant(_IMP_misc)
280 IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER = _IMP_misc.IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER
282 _IMP_misc.IMPKERNEL_SHOW_WARNINGS_swigconstant(_IMP_misc)
283 IMPKERNEL_SHOW_WARNINGS = _IMP_misc.IMPKERNEL_SHOW_WARNINGS
286 class _DirectorObjects(object):
287 """@internal Simple class to keep references to director objects
288 to prevent premature deletion."""
291 def register(self, obj):
292 """Take a reference to a director object; will only work for
293 refcounted C++ classes"""
294 if hasattr(obj,
'get_ref_count'):
295 self._objects.append(obj)
297 """Only drop our reference and allow cleanup by Python if no other
298 Python references exist (we hold 3 references: one in self._objects,
299 one in x, and one in the argument list for getrefcount) *and* no
300 other C++ references exist (the Python object always holds one)"""
301 objs = [x
for x
in self._objects
if sys.getrefcount(x) > 3 \
302 or x.get_ref_count() > 1]
306 def get_object_count(self):
307 """Get number of director objects (useful for testing only)"""
308 return len(self._objects)
309 _director_objects = _DirectorObjects()
311 class _ostream(object):
312 """Proxy of C++ std::ostream class"""
313 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
315 def __init__(self, *args, **kwargs):
316 raise AttributeError(
"No constructor defined")
317 __repr__ = _swig_repr
319 def write(self, osa_buf):
320 """write(_ostream self, char const * osa_buf)"""
321 return _IMP_misc._ostream_write(self, osa_buf)
323 _ostream_swigregister = _IMP_misc._ostream_swigregister
324 _ostream_swigregister(_ostream)
327 _IMP_misc.IMP_HAS_NOEXCEPT_swigconstant(_IMP_misc)
328 IMP_HAS_NOEXCEPT = _IMP_misc.IMP_HAS_NOEXCEPT
330 _IMP_misc.IMP_C_OPEN_BINARY_swigconstant(_IMP_misc)
331 IMP_C_OPEN_BINARY = _IMP_misc.IMP_C_OPEN_BINARY
334 _IMP_misc.IMP_CGAL_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_misc)
335 IMP_CGAL_HAS_BOOST_FILESYSTEM = _IMP_misc.IMP_CGAL_HAS_BOOST_FILESYSTEM
337 _IMP_misc.IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_misc)
338 IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS = _IMP_misc.IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS
340 _IMP_misc.IMP_CGAL_HAS_BOOST_RANDOM_swigconstant(_IMP_misc)
341 IMP_CGAL_HAS_BOOST_RANDOM = _IMP_misc.IMP_CGAL_HAS_BOOST_RANDOM
343 _IMP_misc.IMP_CGAL_HAS_BOOST_SYSTEM_swigconstant(_IMP_misc)
344 IMP_CGAL_HAS_BOOST_SYSTEM = _IMP_misc.IMP_CGAL_HAS_BOOST_SYSTEM
346 _IMP_misc.IMP_CGAL_HAS_NUMPY_swigconstant(_IMP_misc)
347 IMP_CGAL_HAS_NUMPY = _IMP_misc.IMP_CGAL_HAS_NUMPY
349 _IMP_misc.IMPCGAL_SHOW_WARNINGS_swigconstant(_IMP_misc)
350 IMPCGAL_SHOW_WARNINGS = _IMP_misc.IMPCGAL_SHOW_WARNINGS
353 _IMP_misc.IMP_ALGEBRA_HAS_IMP_CGAL_swigconstant(_IMP_misc)
354 IMP_ALGEBRA_HAS_IMP_CGAL = _IMP_misc.IMP_ALGEBRA_HAS_IMP_CGAL
356 _IMP_misc.IMP_ALGEBRA_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_misc)
357 IMP_ALGEBRA_HAS_BOOST_FILESYSTEM = _IMP_misc.IMP_ALGEBRA_HAS_BOOST_FILESYSTEM
359 _IMP_misc.IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_misc)
360 IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS = _IMP_misc.IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS
362 _IMP_misc.IMP_ALGEBRA_HAS_BOOST_RANDOM_swigconstant(_IMP_misc)
363 IMP_ALGEBRA_HAS_BOOST_RANDOM = _IMP_misc.IMP_ALGEBRA_HAS_BOOST_RANDOM
365 _IMP_misc.IMP_ALGEBRA_HAS_BOOST_SYSTEM_swigconstant(_IMP_misc)
366 IMP_ALGEBRA_HAS_BOOST_SYSTEM = _IMP_misc.IMP_ALGEBRA_HAS_BOOST_SYSTEM
368 _IMP_misc.IMP_ALGEBRA_HAS_CGAL_swigconstant(_IMP_misc)
369 IMP_ALGEBRA_HAS_CGAL = _IMP_misc.IMP_ALGEBRA_HAS_CGAL
371 _IMP_misc.IMP_ALGEBRA_HAS_NUMPY_swigconstant(_IMP_misc)
372 IMP_ALGEBRA_HAS_NUMPY = _IMP_misc.IMP_ALGEBRA_HAS_NUMPY
374 _IMP_misc.IMP_ALGEBRA_HAS_ANN_swigconstant(_IMP_misc)
375 IMP_ALGEBRA_HAS_ANN = _IMP_misc.IMP_ALGEBRA_HAS_ANN
377 _IMP_misc.IMPALGEBRA_SHOW_WARNINGS_swigconstant(_IMP_misc)
378 IMPALGEBRA_SHOW_WARNINGS = _IMP_misc.IMPALGEBRA_SHOW_WARNINGS
381 _IMP_misc.IMP_DISPLAY_HAS_IMP_CGAL_swigconstant(_IMP_misc)
382 IMP_DISPLAY_HAS_IMP_CGAL = _IMP_misc.IMP_DISPLAY_HAS_IMP_CGAL
384 _IMP_misc.IMP_DISPLAY_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_misc)
385 IMP_DISPLAY_HAS_BOOST_FILESYSTEM = _IMP_misc.IMP_DISPLAY_HAS_BOOST_FILESYSTEM
387 _IMP_misc.IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_misc)
388 IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS = _IMP_misc.IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS
390 _IMP_misc.IMP_DISPLAY_HAS_BOOST_RANDOM_swigconstant(_IMP_misc)
391 IMP_DISPLAY_HAS_BOOST_RANDOM = _IMP_misc.IMP_DISPLAY_HAS_BOOST_RANDOM
393 _IMP_misc.IMP_DISPLAY_HAS_BOOST_SYSTEM_swigconstant(_IMP_misc)
394 IMP_DISPLAY_HAS_BOOST_SYSTEM = _IMP_misc.IMP_DISPLAY_HAS_BOOST_SYSTEM
396 _IMP_misc.IMP_DISPLAY_HAS_CGAL_swigconstant(_IMP_misc)
397 IMP_DISPLAY_HAS_CGAL = _IMP_misc.IMP_DISPLAY_HAS_CGAL
399 _IMP_misc.IMP_DISPLAY_HAS_NUMPY_swigconstant(_IMP_misc)
400 IMP_DISPLAY_HAS_NUMPY = _IMP_misc.IMP_DISPLAY_HAS_NUMPY
402 _IMP_misc.IMPDISPLAY_SHOW_WARNINGS_swigconstant(_IMP_misc)
403 IMPDISPLAY_SHOW_WARNINGS = _IMP_misc.IMPDISPLAY_SHOW_WARNINGS
406 _IMP_misc.IMP_SCORE_FUNCTOR_HAS_IMP_CGAL_swigconstant(_IMP_misc)
407 IMP_SCORE_FUNCTOR_HAS_IMP_CGAL = _IMP_misc.IMP_SCORE_FUNCTOR_HAS_IMP_CGAL
409 _IMP_misc.IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_misc)
410 IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM = _IMP_misc.IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM
412 _IMP_misc.IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_misc)
413 IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS = _IMP_misc.IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS
415 _IMP_misc.IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM_swigconstant(_IMP_misc)
416 IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM = _IMP_misc.IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM
418 _IMP_misc.IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM_swigconstant(_IMP_misc)
419 IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM = _IMP_misc.IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM
421 _IMP_misc.IMP_SCORE_FUNCTOR_HAS_CGAL_swigconstant(_IMP_misc)
422 IMP_SCORE_FUNCTOR_HAS_CGAL = _IMP_misc.IMP_SCORE_FUNCTOR_HAS_CGAL
424 _IMP_misc.IMP_SCORE_FUNCTOR_HAS_HDF5_swigconstant(_IMP_misc)
425 IMP_SCORE_FUNCTOR_HAS_HDF5 = _IMP_misc.IMP_SCORE_FUNCTOR_HAS_HDF5
427 _IMP_misc.IMP_SCORE_FUNCTOR_HAS_NUMPY_swigconstant(_IMP_misc)
428 IMP_SCORE_FUNCTOR_HAS_NUMPY = _IMP_misc.IMP_SCORE_FUNCTOR_HAS_NUMPY
430 _IMP_misc.IMPSCOREFUNCTOR_SHOW_WARNINGS_swigconstant(_IMP_misc)
431 IMPSCOREFUNCTOR_SHOW_WARNINGS = _IMP_misc.IMPSCOREFUNCTOR_SHOW_WARNINGS
434 _IMP_misc.IMP_CORE_HAS_IMP_CGAL_swigconstant(_IMP_misc)
435 IMP_CORE_HAS_IMP_CGAL = _IMP_misc.IMP_CORE_HAS_IMP_CGAL
437 _IMP_misc.IMP_CORE_HAS_IMP_KERNEL_swigconstant(_IMP_misc)
438 IMP_CORE_HAS_IMP_KERNEL = _IMP_misc.IMP_CORE_HAS_IMP_KERNEL
440 _IMP_misc.IMP_CORE_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_misc)
441 IMP_CORE_HAS_BOOST_FILESYSTEM = _IMP_misc.IMP_CORE_HAS_BOOST_FILESYSTEM
443 _IMP_misc.IMP_CORE_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_misc)
444 IMP_CORE_HAS_BOOST_PROGRAMOPTIONS = _IMP_misc.IMP_CORE_HAS_BOOST_PROGRAMOPTIONS
446 _IMP_misc.IMP_CORE_HAS_BOOST_RANDOM_swigconstant(_IMP_misc)
447 IMP_CORE_HAS_BOOST_RANDOM = _IMP_misc.IMP_CORE_HAS_BOOST_RANDOM
449 _IMP_misc.IMP_CORE_HAS_BOOST_SYSTEM_swigconstant(_IMP_misc)
450 IMP_CORE_HAS_BOOST_SYSTEM = _IMP_misc.IMP_CORE_HAS_BOOST_SYSTEM
452 _IMP_misc.IMP_CORE_HAS_CGAL_swigconstant(_IMP_misc)
453 IMP_CORE_HAS_CGAL = _IMP_misc.IMP_CORE_HAS_CGAL
455 _IMP_misc.IMP_CORE_HAS_HDF5_swigconstant(_IMP_misc)
456 IMP_CORE_HAS_HDF5 = _IMP_misc.IMP_CORE_HAS_HDF5
458 _IMP_misc.IMP_CORE_HAS_NUMPY_swigconstant(_IMP_misc)
459 IMP_CORE_HAS_NUMPY = _IMP_misc.IMP_CORE_HAS_NUMPY
461 _IMP_misc.IMPCORE_SHOW_WARNINGS_swigconstant(_IMP_misc)
462 IMPCORE_SHOW_WARNINGS = _IMP_misc.IMPCORE_SHOW_WARNINGS
465 _IMP_misc.IMP_CONTAINER_HAS_IMP_ALGEBRA_swigconstant(_IMP_misc)
466 IMP_CONTAINER_HAS_IMP_ALGEBRA = _IMP_misc.IMP_CONTAINER_HAS_IMP_ALGEBRA
468 _IMP_misc.IMP_CONTAINER_HAS_IMP_CGAL_swigconstant(_IMP_misc)
469 IMP_CONTAINER_HAS_IMP_CGAL = _IMP_misc.IMP_CONTAINER_HAS_IMP_CGAL
471 _IMP_misc.IMP_CONTAINER_HAS_IMP_DISPLAY_swigconstant(_IMP_misc)
472 IMP_CONTAINER_HAS_IMP_DISPLAY = _IMP_misc.IMP_CONTAINER_HAS_IMP_DISPLAY
474 _IMP_misc.IMP_CONTAINER_HAS_IMP_KERNEL_swigconstant(_IMP_misc)
475 IMP_CONTAINER_HAS_IMP_KERNEL = _IMP_misc.IMP_CONTAINER_HAS_IMP_KERNEL
477 _IMP_misc.IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR_swigconstant(_IMP_misc)
478 IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR = _IMP_misc.IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR
480 _IMP_misc.IMP_CONTAINER_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_misc)
481 IMP_CONTAINER_HAS_BOOST_FILESYSTEM = _IMP_misc.IMP_CONTAINER_HAS_BOOST_FILESYSTEM
483 _IMP_misc.IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_misc)
484 IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS = _IMP_misc.IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS
486 _IMP_misc.IMP_CONTAINER_HAS_BOOST_RANDOM_swigconstant(_IMP_misc)
487 IMP_CONTAINER_HAS_BOOST_RANDOM = _IMP_misc.IMP_CONTAINER_HAS_BOOST_RANDOM
489 _IMP_misc.IMP_CONTAINER_HAS_BOOST_SYSTEM_swigconstant(_IMP_misc)
490 IMP_CONTAINER_HAS_BOOST_SYSTEM = _IMP_misc.IMP_CONTAINER_HAS_BOOST_SYSTEM
492 _IMP_misc.IMP_CONTAINER_HAS_CGAL_swigconstant(_IMP_misc)
493 IMP_CONTAINER_HAS_CGAL = _IMP_misc.IMP_CONTAINER_HAS_CGAL
495 _IMP_misc.IMP_CONTAINER_HAS_HDF5_swigconstant(_IMP_misc)
496 IMP_CONTAINER_HAS_HDF5 = _IMP_misc.IMP_CONTAINER_HAS_HDF5
498 _IMP_misc.IMP_CONTAINER_HAS_NUMPY_swigconstant(_IMP_misc)
499 IMP_CONTAINER_HAS_NUMPY = _IMP_misc.IMP_CONTAINER_HAS_NUMPY
501 _IMP_misc.IMP_CONTAINER_HAS_PYTHON_IHM_swigconstant(_IMP_misc)
502 IMP_CONTAINER_HAS_PYTHON_IHM = _IMP_misc.IMP_CONTAINER_HAS_PYTHON_IHM
504 _IMP_misc.IMP_CONTAINER_HAS_GOOGLE_DENSE_HASH_MAP_swigconstant(_IMP_misc)
505 IMP_CONTAINER_HAS_GOOGLE_DENSE_HASH_MAP = _IMP_misc.IMP_CONTAINER_HAS_GOOGLE_DENSE_HASH_MAP
507 _IMP_misc.IMP_CONTAINER_HAS_ROBIN_MAP_swigconstant(_IMP_misc)
508 IMP_CONTAINER_HAS_ROBIN_MAP = _IMP_misc.IMP_CONTAINER_HAS_ROBIN_MAP
510 _IMP_misc.IMPCONTAINER_SHOW_WARNINGS_swigconstant(_IMP_misc)
511 IMPCONTAINER_SHOW_WARNINGS = _IMP_misc.IMPCONTAINER_SHOW_WARNINGS
514 _IMP_misc.IMP_ATOM_HAS_IMP_CGAL_swigconstant(_IMP_misc)
515 IMP_ATOM_HAS_IMP_CGAL = _IMP_misc.IMP_ATOM_HAS_IMP_CGAL
517 _IMP_misc.IMP_ATOM_HAS_IMP_KERNEL_swigconstant(_IMP_misc)
518 IMP_ATOM_HAS_IMP_KERNEL = _IMP_misc.IMP_ATOM_HAS_IMP_KERNEL
520 _IMP_misc.IMP_ATOM_HAS_IMP_SCORE_FUNCTOR_swigconstant(_IMP_misc)
521 IMP_ATOM_HAS_IMP_SCORE_FUNCTOR = _IMP_misc.IMP_ATOM_HAS_IMP_SCORE_FUNCTOR
523 _IMP_misc.IMP_ATOM_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_misc)
524 IMP_ATOM_HAS_BOOST_PROGRAMOPTIONS = _IMP_misc.IMP_ATOM_HAS_BOOST_PROGRAMOPTIONS
526 _IMP_misc.IMP_ATOM_HAS_BOOST_RANDOM_swigconstant(_IMP_misc)
527 IMP_ATOM_HAS_BOOST_RANDOM = _IMP_misc.IMP_ATOM_HAS_BOOST_RANDOM
529 _IMP_misc.IMP_ATOM_HAS_BOOST_REGEX_swigconstant(_IMP_misc)
530 IMP_ATOM_HAS_BOOST_REGEX = _IMP_misc.IMP_ATOM_HAS_BOOST_REGEX
532 _IMP_misc.IMP_ATOM_HAS_BOOST_SYSTEM_swigconstant(_IMP_misc)
533 IMP_ATOM_HAS_BOOST_SYSTEM = _IMP_misc.IMP_ATOM_HAS_BOOST_SYSTEM
535 _IMP_misc.IMP_ATOM_HAS_CGAL_swigconstant(_IMP_misc)
536 IMP_ATOM_HAS_CGAL = _IMP_misc.IMP_ATOM_HAS_CGAL
538 _IMP_misc.IMP_ATOM_HAS_HDF5_swigconstant(_IMP_misc)
539 IMP_ATOM_HAS_HDF5 = _IMP_misc.IMP_ATOM_HAS_HDF5
541 _IMP_misc.IMP_ATOM_HAS_NUMPY_swigconstant(_IMP_misc)
542 IMP_ATOM_HAS_NUMPY = _IMP_misc.IMP_ATOM_HAS_NUMPY
544 _IMP_misc.IMP_ATOM_HAS_PYTHON_IHM_swigconstant(_IMP_misc)
545 IMP_ATOM_HAS_PYTHON_IHM = _IMP_misc.IMP_ATOM_HAS_PYTHON_IHM
547 _IMP_misc.IMPATOM_SHOW_WARNINGS_swigconstant(_IMP_misc)
548 IMPATOM_SHOW_WARNINGS = _IMP_misc.IMPATOM_SHOW_WARNINGS
550 _IMP_misc.IMP_ATOM_TYPE_INDEX_swigconstant(_IMP_misc)
551 IMP_ATOM_TYPE_INDEX = _IMP_misc.IMP_ATOM_TYPE_INDEX
553 _IMP_misc.IMP_RESIDUE_TYPE_INDEX_swigconstant(_IMP_misc)
554 IMP_RESIDUE_TYPE_INDEX = _IMP_misc.IMP_RESIDUE_TYPE_INDEX
556 _IMP_misc.IMP_HIERARCHY_TYPE_INDEX_swigconstant(_IMP_misc)
557 IMP_HIERARCHY_TYPE_INDEX = _IMP_misc.IMP_HIERARCHY_TYPE_INDEX
559 _IMP_misc.IMP_CHAIN_TYPE_INDEX_swigconstant(_IMP_misc)
560 IMP_CHAIN_TYPE_INDEX = _IMP_misc.IMP_CHAIN_TYPE_INDEX
563 _IMP_misc.IMP_MISC_HAS_IMP_ALGEBRA_swigconstant(_IMP_misc)
564 IMP_MISC_HAS_IMP_ALGEBRA = _IMP_misc.IMP_MISC_HAS_IMP_ALGEBRA
566 _IMP_misc.IMP_MISC_HAS_IMP_CGAL_swigconstant(_IMP_misc)
567 IMP_MISC_HAS_IMP_CGAL = _IMP_misc.IMP_MISC_HAS_IMP_CGAL
569 _IMP_misc.IMP_MISC_HAS_IMP_CONTAINER_swigconstant(_IMP_misc)
570 IMP_MISC_HAS_IMP_CONTAINER = _IMP_misc.IMP_MISC_HAS_IMP_CONTAINER
572 _IMP_misc.IMP_MISC_HAS_IMP_DISPLAY_swigconstant(_IMP_misc)
573 IMP_MISC_HAS_IMP_DISPLAY = _IMP_misc.IMP_MISC_HAS_IMP_DISPLAY
575 _IMP_misc.IMP_MISC_HAS_IMP_KERNEL_swigconstant(_IMP_misc)
576 IMP_MISC_HAS_IMP_KERNEL = _IMP_misc.IMP_MISC_HAS_IMP_KERNEL
578 _IMP_misc.IMP_MISC_HAS_IMP_SCORE_FUNCTOR_swigconstant(_IMP_misc)
579 IMP_MISC_HAS_IMP_SCORE_FUNCTOR = _IMP_misc.IMP_MISC_HAS_IMP_SCORE_FUNCTOR
581 _IMP_misc.IMP_MISC_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_misc)
582 IMP_MISC_HAS_BOOST_FILESYSTEM = _IMP_misc.IMP_MISC_HAS_BOOST_FILESYSTEM
584 _IMP_misc.IMP_MISC_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_misc)
585 IMP_MISC_HAS_BOOST_PROGRAMOPTIONS = _IMP_misc.IMP_MISC_HAS_BOOST_PROGRAMOPTIONS
587 _IMP_misc.IMP_MISC_HAS_BOOST_RANDOM_swigconstant(_IMP_misc)
588 IMP_MISC_HAS_BOOST_RANDOM = _IMP_misc.IMP_MISC_HAS_BOOST_RANDOM
590 _IMP_misc.IMP_MISC_HAS_BOOST_REGEX_swigconstant(_IMP_misc)
591 IMP_MISC_HAS_BOOST_REGEX = _IMP_misc.IMP_MISC_HAS_BOOST_REGEX
593 _IMP_misc.IMP_MISC_HAS_BOOST_SYSTEM_swigconstant(_IMP_misc)
594 IMP_MISC_HAS_BOOST_SYSTEM = _IMP_misc.IMP_MISC_HAS_BOOST_SYSTEM
596 _IMP_misc.IMP_MISC_HAS_CGAL_swigconstant(_IMP_misc)
597 IMP_MISC_HAS_CGAL = _IMP_misc.IMP_MISC_HAS_CGAL
599 _IMP_misc.IMP_MISC_HAS_HDF5_swigconstant(_IMP_misc)
600 IMP_MISC_HAS_HDF5 = _IMP_misc.IMP_MISC_HAS_HDF5
602 _IMP_misc.IMP_MISC_HAS_NUMPY_swigconstant(_IMP_misc)
603 IMP_MISC_HAS_NUMPY = _IMP_misc.IMP_MISC_HAS_NUMPY
605 _IMP_misc.IMP_MISC_HAS_PYTHON_IHM_swigconstant(_IMP_misc)
606 IMP_MISC_HAS_PYTHON_IHM = _IMP_misc.IMP_MISC_HAS_PYTHON_IHM
608 _IMP_misc.IMPMISC_SHOW_WARNINGS_swigconstant(_IMP_misc)
609 IMPMISC_SHOW_WARNINGS = _IMP_misc.IMPMISC_SHOW_WARNINGS
611 _object_types.append(
"WormLikeChain")
614 def _object_cast_to_WormLikeChain(o):
615 """_object_cast_to_WormLikeChain(Object o) -> WormLikeChain"""
616 return _IMP_misc._object_cast_to_WormLikeChain(o)
618 _object_types.append(
"FreelyJointedChain")
621 def _object_cast_to_FreelyJointedChain(o):
622 """_object_cast_to_FreelyJointedChain(Object o) -> FreelyJointedChain"""
623 return _IMP_misc._object_cast_to_FreelyJointedChain(o)
625 _object_types.append(
"StateAdaptor")
628 def _object_cast_to_StateAdaptor(o):
629 """_object_cast_to_StateAdaptor(Object o) -> StateAdaptor"""
630 return _IMP_misc._object_cast_to_StateAdaptor(o)
632 _object_types.append(
"CommonEndpointPairFilter")
635 def _object_cast_to_CommonEndpointPairFilter(o):
636 """_object_cast_to_CommonEndpointPairFilter(Object o) -> CommonEndpointPairFilter"""
637 return _IMP_misc._object_cast_to_CommonEndpointPairFilter(o)
639 _object_types.append(
"LogPairScore")
642 def _object_cast_to_LogPairScore(o):
643 """_object_cast_to_LogPairScore(Object o) -> LogPairScore"""
644 return _IMP_misc._object_cast_to_LogPairScore(o)
646 _object_types.append(
"LowestRefinedPairScore")
649 def _object_cast_to_LowestRefinedPairScore(o):
650 """_object_cast_to_LowestRefinedPairScore(Object o) -> LowestRefinedPairScore"""
651 return _IMP_misc._object_cast_to_LowestRefinedPairScore(o)
653 _object_types.append(
"SoftCylinderPairScore")
656 def _object_cast_to_SoftCylinderPairScore(o):
657 """_object_cast_to_SoftCylinderPairScore(Object o) -> SoftCylinderPairScore"""
658 return _IMP_misc._object_cast_to_SoftCylinderPairScore(o)
660 _object_types.append(
"DecayPairContainerOptimizerState")
663 def _object_cast_to_DecayPairContainerOptimizerState(o):
664 """_object_cast_to_DecayPairContainerOptimizerState(Object o) -> DecayPairContainerOptimizerState"""
665 return _IMP_misc._object_cast_to_DecayPairContainerOptimizerState(o)
667 def CustomXYZRs(l=[]):
668 return [CustomXYZR(x)
for x
in l]
669 _plural_types.append(
"CustomXYZRs")
672 _value_types.append(
"CustomXYZR")
675 """Proxy of C++ IMP::misc::WormLikeChain class"""
676 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
678 def __init__(self, l_max, lp):
679 """__init__(IMP::misc::WormLikeChain self, IMP::Float l_max, IMP::Float lp) -> WormLikeChain"""
680 this = _IMP_misc.new_WormLikeChain(l_max, lp)
682 self.this.append(this)
687 """get_version_info(WormLikeChain self) -> VersionInfo"""
688 return _IMP_misc.WormLikeChain_get_version_info(self)
691 def do_show(self, out):
692 """do_show(WormLikeChain self, _ostream out)"""
693 return _IMP_misc.WormLikeChain_do_show(self, out)
697 """__str__(WormLikeChain self) -> std::string"""
698 return _IMP_misc.WormLikeChain___str__(self)
702 """__repr__(WormLikeChain self) -> std::string"""
703 return _IMP_misc.WormLikeChain___repr__(self)
708 return _object_cast_to_WormLikeChain(o)
710 WormLikeChain_swigregister = _IMP_misc.WormLikeChain_swigregister
711 WormLikeChain_swigregister(WormLikeChain)
714 """Proxy of C++ IMP::misc::FreelyJointedChain class"""
715 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
717 def __init__(self, link_num, link_length):
718 """__init__(IMP::misc::FreelyJointedChain self, int link_num, double link_length) -> FreelyJointedChain"""
719 this = _IMP_misc.new_FreelyJointedChain(link_num, link_length)
721 self.this.append(this)
726 """get_version_info(FreelyJointedChain self) -> VersionInfo"""
727 return _IMP_misc.FreelyJointedChain_get_version_info(self)
730 def get_link_number(self):
731 """get_link_number(FreelyJointedChain self) -> int"""
732 return _IMP_misc.FreelyJointedChain_get_link_number(self)
735 def get_link_length(self):
736 """get_link_length(FreelyJointedChain self) -> double"""
737 return _IMP_misc.FreelyJointedChain_get_link_length(self)
740 def set_link_number(self, N):
741 """set_link_number(FreelyJointedChain self, int N)"""
742 return _IMP_misc.FreelyJointedChain_set_link_number(self, N)
745 def set_link_length(self, b):
746 """set_link_length(FreelyJointedChain self, double b)"""
747 return _IMP_misc.FreelyJointedChain_set_link_length(self, b)
750 def get_distance_at_minimum(self):
751 """get_distance_at_minimum(FreelyJointedChain self) -> double"""
752 return _IMP_misc.FreelyJointedChain_get_distance_at_minimum(self)
755 def get_average_distance(self):
756 """get_average_distance(FreelyJointedChain self) -> double"""
757 return _IMP_misc.FreelyJointedChain_get_average_distance(self)
761 """__str__(FreelyJointedChain self) -> std::string"""
762 return _IMP_misc.FreelyJointedChain___str__(self)
766 """__repr__(FreelyJointedChain self) -> std::string"""
767 return _IMP_misc.FreelyJointedChain___repr__(self)
772 return _object_cast_to_FreelyJointedChain(o)
774 FreelyJointedChain_swigregister = _IMP_misc.FreelyJointedChain_swigregister
775 FreelyJointedChain_swigregister(FreelyJointedChain)
778 """Proxy of C++ IMP::misc::LowestRefinedPairScore class"""
779 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
781 def __init__(self, r, f):
782 """__init__(IMP::misc::LowestRefinedPairScore self, Refiner r, PairScore f) -> LowestRefinedPairScore"""
783 this = _IMP_misc.new_LowestRefinedPairScore(r, f)
785 self.this.append(this)
790 """do_get_inputs(LowestRefinedPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
791 return _IMP_misc.LowestRefinedPairScore_do_get_inputs(self, m, pis)
795 """get_version_info(LowestRefinedPairScore self) -> VersionInfo"""
796 return _IMP_misc.LowestRefinedPairScore_get_version_info(self)
800 """__str__(LowestRefinedPairScore self) -> std::string"""
801 return _IMP_misc.LowestRefinedPairScore___str__(self)
805 """__repr__(LowestRefinedPairScore self) -> std::string"""
806 return _IMP_misc.LowestRefinedPairScore___repr__(self)
811 return _object_cast_to_LowestRefinedPairScore(o)
813 LowestRefinedPairScore_swigregister = _IMP_misc.LowestRefinedPairScore_swigregister
814 LowestRefinedPairScore_swigregister(LowestRefinedPairScore)
817 """Proxy of C++ IMP::misc::LogPairScore class"""
818 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
821 """__init__(IMP::misc::LogPairScore self) -> LogPairScore"""
822 this = _IMP_misc.new_LogPairScore()
824 self.this.append(this)
829 """do_get_inputs(LogPairScore self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
830 return _IMP_misc.LogPairScore_do_get_inputs(self, arg2, arg3)
834 """get_version_info(LogPairScore self) -> VersionInfo"""
835 return _IMP_misc.LogPairScore_get_version_info(self)
838 def get_particle_pairs(self):
839 """get_particle_pairs(LogPairScore self) -> IMP::ParticlePairsTemp"""
840 return _IMP_misc.LogPairScore_get_particle_pairs(self)
844 """clear(LogPairScore self)"""
845 return _IMP_misc.LogPairScore_clear(self)
848 def get_contains(self, pp):
849 """get_contains(LogPairScore self, IMP::ParticlePair const & pp) -> bool"""
850 return _IMP_misc.LogPairScore_get_contains(self, pp)
854 """__str__(LogPairScore self) -> std::string"""
855 return _IMP_misc.LogPairScore___str__(self)
859 """__repr__(LogPairScore self) -> std::string"""
860 return _IMP_misc.LogPairScore___repr__(self)
865 return _object_cast_to_LogPairScore(o)
867 LogPairScore_swigregister = _IMP_misc.LogPairScore_swigregister
868 LogPairScore_swigregister(LogPairScore)
871 """Proxy of C++ IMP::misc::StateAdaptor class"""
872 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
874 def __init__(self, m, before, after):
875 """__init__(IMP::misc::StateAdaptor self, Model m, OptimizerState before, OptimizerState after) -> StateAdaptor"""
876 this = _IMP_misc.new_StateAdaptor(m, before, after)
878 self.this.append(this)
882 def do_before_evaluate(self):
883 """do_before_evaluate(StateAdaptor self)"""
884 return _IMP_misc.StateAdaptor_do_before_evaluate(self)
887 def do_after_evaluate(self, da):
888 """do_after_evaluate(StateAdaptor self, DerivativeAccumulator da)"""
889 return _IMP_misc.StateAdaptor_do_after_evaluate(self, da)
893 """do_get_inputs(StateAdaptor self) -> IMP::ModelObjectsTemp"""
894 return _IMP_misc.StateAdaptor_do_get_inputs(self)
898 """do_get_outputs(StateAdaptor self) -> IMP::ModelObjectsTemp"""
899 return _IMP_misc.StateAdaptor_do_get_outputs(self)
903 """get_version_info(StateAdaptor self) -> VersionInfo"""
904 return _IMP_misc.StateAdaptor_get_version_info(self)
908 """__str__(StateAdaptor self) -> std::string"""
909 return _IMP_misc.StateAdaptor___str__(self)
913 """__repr__(StateAdaptor self) -> std::string"""
914 return _IMP_misc.StateAdaptor___repr__(self)
919 return _object_cast_to_StateAdaptor(o)
921 StateAdaptor_swigregister = _IMP_misc.StateAdaptor_swigregister
922 StateAdaptor_swigregister(StateAdaptor)
925 """Proxy of C++ IMP::misc::CommonEndpointPairFilter class"""
926 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
929 """__init__(IMP::misc::CommonEndpointPairFilter self) -> CommonEndpointPairFilter"""
930 this = _IMP_misc.new_CommonEndpointPairFilter()
932 self.this.append(this)
937 """do_get_inputs(CommonEndpointPairFilter self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
938 return _IMP_misc.CommonEndpointPairFilter_do_get_inputs(self, m, pis)
941 def get_value(self, *args):
943 get_value(CommonEndpointPairFilter self, IMP::ParticlePair const & a) -> int
944 get_value(CommonEndpointPairFilter self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
946 return _IMP_misc.CommonEndpointPairFilter_get_value(self, *args)
949 def get_value_index(self, *args):
951 get_value_index(CommonEndpointPairFilter self, Model m, IMP::ParticleIndexPair const & p) -> int
952 get_value_index(CommonEndpointPairFilter self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
954 return _IMP_misc.CommonEndpointPairFilter_get_value_index(self, *args)
958 """get_version_info(CommonEndpointPairFilter self) -> VersionInfo"""
959 return _IMP_misc.CommonEndpointPairFilter_get_version_info(self)
963 """__str__(CommonEndpointPairFilter self) -> std::string"""
964 return _IMP_misc.CommonEndpointPairFilter___str__(self)
968 """__repr__(CommonEndpointPairFilter self) -> std::string"""
969 return _IMP_misc.CommonEndpointPairFilter___repr__(self)
974 return _object_cast_to_CommonEndpointPairFilter(o)
976 CommonEndpointPairFilter_swigregister = _IMP_misc.CommonEndpointPairFilter_swigregister
977 CommonEndpointPairFilter_swigregister(CommonEndpointPairFilter)
980 """Proxy of C++ IMP::misc::CustomXYZR class"""
981 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
983 def get_decorator_traits(self):
984 """get_decorator_traits(CustomXYZR self) -> FloatKey"""
985 return _IMP_misc.CustomXYZR_get_decorator_traits(self)
988 def get_default_decorator_traits():
989 """get_default_decorator_traits() -> FloatKey"""
990 return _IMP_misc.CustomXYZR_get_default_decorator_traits()
992 get_default_decorator_traits = staticmethod(get_default_decorator_traits)
994 def __init__(self, *args):
996 __init__(IMP::misc::CustomXYZR self) -> CustomXYZR
997 __init__(IMP::misc::CustomXYZR self, Model m, ParticleIndex id, FloatKey tr) -> CustomXYZR
998 __init__(IMP::misc::CustomXYZR self, Model m, ParticleIndex id) -> CustomXYZR
999 __init__(IMP::misc::CustomXYZR self, _ParticleAdaptor d, FloatKey tr) -> CustomXYZR
1000 __init__(IMP::misc::CustomXYZR self, _ParticleAdaptor d) -> CustomXYZR
1002 this = _IMP_misc.new_CustomXYZR(*args)
1004 self.this.append(this)
1008 def show(self, *args):
1010 show(CustomXYZR self, _ostream out)
1011 show(CustomXYZR self)
1013 return _IMP_misc.CustomXYZR_show(self, *args)
1016 def setup_particle(*args):
1018 setup_particle(Model m, ParticleIndex pi, FloatKey tr) -> CustomXYZR
1019 setup_particle(Model m, ParticleIndex pi) -> CustomXYZR
1020 setup_particle(_ParticleAdaptor d, FloatKey tr) -> CustomXYZR
1021 setup_particle(_ParticleAdaptor d) -> CustomXYZR
1022 setup_particle(Model m, ParticleIndex pi, double radius, FloatKey tr) -> CustomXYZR
1023 setup_particle(Model m, ParticleIndex pi, double radius) -> CustomXYZR
1024 setup_particle(_ParticleAdaptor d, double radius, FloatKey tr) -> CustomXYZR
1025 setup_particle(_ParticleAdaptor d, double radius) -> CustomXYZR
1026 setup_particle(Model m, ParticleIndex pi, Sphere3D ball, FloatKey tr) -> CustomXYZR
1027 setup_particle(Model m, ParticleIndex pi, Sphere3D ball) -> CustomXYZR
1028 setup_particle(_ParticleAdaptor d, Sphere3D ball, FloatKey tr) -> CustomXYZR
1029 setup_particle(_ParticleAdaptor d, Sphere3D ball) -> CustomXYZR
1031 return _IMP_misc.CustomXYZR_setup_particle(*args)
1033 setup_particle = staticmethod(setup_particle)
1035 def get_is_setup(*args):
1037 get_is_setup(_ParticleAdaptor p, FloatKey tr) -> bool
1038 get_is_setup(_ParticleAdaptor p) -> bool
1039 get_is_setup(Model m, ParticleIndex pi, FloatKey radius_key) -> bool
1040 get_is_setup(Model m, ParticleIndex pi) -> bool
1042 return _IMP_misc.CustomXYZR_get_is_setup(*args)
1044 get_is_setup = staticmethod(get_is_setup)
1046 def get_radius(self):
1047 """get_radius(CustomXYZR self) -> IMP::Float"""
1048 return _IMP_misc.CustomXYZR_get_radius(self)
1051 def set_radius(self, t):
1052 """set_radius(CustomXYZR self, IMP::Float t)"""
1053 return _IMP_misc.CustomXYZR_set_radius(self, t)
1056 def get_sphere(self):
1057 """get_sphere(CustomXYZR self) -> Sphere3D"""
1058 return _IMP_misc.CustomXYZR_get_sphere(self)
1061 def set_sphere(self, s):
1062 """set_sphere(CustomXYZR self, Sphere3D s)"""
1063 return _IMP_misc.CustomXYZR_set_sphere(self, s)
1066 def get_default_radius_key():
1067 """get_default_radius_key() -> FloatKey"""
1068 return _IMP_misc.CustomXYZR_get_default_radius_key()
1070 get_default_radius_key = staticmethod(get_default_radius_key)
1072 def add_to_radius_derivative(self, v, d):
1073 """add_to_radius_derivative(CustomXYZR self, double v, DerivativeAccumulator d)"""
1074 return _IMP_misc.CustomXYZR_add_to_radius_derivative(self, v, d)
1077 def get_traits(self):
1078 """get_traits(CustomXYZR self) -> FloatKey"""
1079 return _IMP_misc.CustomXYZR_get_traits(self)
1082 def add_attribute(self, *args):
1084 add_attribute(CustomXYZR self, FloatKey k, IMP::Float v, bool opt)
1085 add_attribute(CustomXYZR self, FloatKey a0, IMP::Float a1)
1086 add_attribute(CustomXYZR self, IntKey a0, IMP::Int a1)
1087 add_attribute(CustomXYZR self, FloatsKey a0, IMP::Floats a1)
1088 add_attribute(CustomXYZR self, IntsKey a0, IMP::Ints a1)
1089 add_attribute(CustomXYZR self, StringKey a0, IMP::String a1)
1090 add_attribute(CustomXYZR self, ParticleIndexKey a0, Particle a1)
1091 add_attribute(CustomXYZR self, ObjectKey a0, Object a1)
1093 return _IMP_misc.CustomXYZR_add_attribute(self, *args)
1096 def get_value(self, *args):
1098 get_value(CustomXYZR self, FloatKey a0) -> IMP::Float
1099 get_value(CustomXYZR self, IntKey a0) -> IMP::Int
1100 get_value(CustomXYZR self, FloatsKey a0) -> IMP::Floats
1101 get_value(CustomXYZR self, IntsKey a0) -> IMP::Ints
1102 get_value(CustomXYZR self, StringKey a0) -> IMP::String
1103 get_value(CustomXYZR self, ParticleIndexKey a0) -> Particle
1104 get_value(CustomXYZR self, ObjectKey a0) -> Object
1106 return _IMP_misc.CustomXYZR_get_value(self, *args)
1109 def set_value(self, *args):
1111 set_value(CustomXYZR self, FloatKey a0, IMP::Float a1)
1112 set_value(CustomXYZR self, IntKey a0, IMP::Int a1)
1113 set_value(CustomXYZR self, FloatsKey a0, IMP::Floats a1)
1114 set_value(CustomXYZR self, IntsKey a0, IMP::Ints a1)
1115 set_value(CustomXYZR self, StringKey a0, IMP::String a1)
1116 set_value(CustomXYZR self, ParticleIndexKey a0, Particle a1)
1117 set_value(CustomXYZR self, ObjectKey a0, Object a1)
1119 return _IMP_misc.CustomXYZR_set_value(self, *args)
1122 def remove_attribute(self, *args):
1124 remove_attribute(CustomXYZR self, FloatKey a0)
1125 remove_attribute(CustomXYZR self, IntKey a0)
1126 remove_attribute(CustomXYZR self, FloatsKey a0)
1127 remove_attribute(CustomXYZR self, IntsKey a0)
1128 remove_attribute(CustomXYZR self, StringKey a0)
1129 remove_attribute(CustomXYZR self, ParticleIndexKey a0)
1130 remove_attribute(CustomXYZR self, ObjectKey a0)
1132 return _IMP_misc.CustomXYZR_remove_attribute(self, *args)
1135 def has_attribute(self, *args):
1137 has_attribute(CustomXYZR self, FloatKey a0) -> bool
1138 has_attribute(CustomXYZR self, IntKey a0) -> bool
1139 has_attribute(CustomXYZR self, FloatsKey a0) -> bool
1140 has_attribute(CustomXYZR self, IntsKey a0) -> bool
1141 has_attribute(CustomXYZR self, StringKey a0) -> bool
1142 has_attribute(CustomXYZR self, ParticleIndexKey a0) -> bool
1143 has_attribute(CustomXYZR self, ObjectKey a0) -> bool
1145 return _IMP_misc.CustomXYZR_has_attribute(self, *args)
1148 def get_derivative(self, a0):
1149 """get_derivative(CustomXYZR self, FloatKey a0) -> double"""
1150 return _IMP_misc.CustomXYZR_get_derivative(self, a0)
1154 """get_name(CustomXYZR self) -> std::string"""
1155 return _IMP_misc.CustomXYZR_get_name(self)
1159 """clear_caches(CustomXYZR self)"""
1160 return _IMP_misc.CustomXYZR_clear_caches(self)
1163 def set_name(self, a0):
1164 """set_name(CustomXYZR self, std::string a0)"""
1165 return _IMP_misc.CustomXYZR_set_name(self, a0)
1169 """set_check_level(CustomXYZR self, IMP::CheckLevel a0)"""
1170 return _IMP_misc.CustomXYZR_set_check_level(self, a0)
1173 def add_to_derivative(self, a0, a1, a2):
1174 """add_to_derivative(CustomXYZR self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
1175 return _IMP_misc.CustomXYZR_add_to_derivative(self, a0, a1, a2)
1178 def set_is_optimized(self, a0, a1):
1179 """set_is_optimized(CustomXYZR self, FloatKey a0, bool a1)"""
1180 return _IMP_misc.CustomXYZR_set_is_optimized(self, a0, a1)
1183 def get_is_optimized(self, a0):
1184 """get_is_optimized(CustomXYZR self, FloatKey a0) -> bool"""
1185 return _IMP_misc.CustomXYZR_get_is_optimized(self, a0)
1188 def get_check_level(self):
1189 """get_check_level(CustomXYZR self) -> IMP::CheckLevel"""
1190 return _IMP_misc.CustomXYZR_get_check_level(self)
1193 def __eq__(self, *args):
1195 __eq__(CustomXYZR self, CustomXYZR o) -> bool
1196 __eq__(CustomXYZR self, Particle d) -> bool
1198 return _IMP_misc.CustomXYZR___eq__(self, *args)
1201 def __ne__(self, *args):
1203 __ne__(CustomXYZR self, CustomXYZR o) -> bool
1204 __ne__(CustomXYZR self, Particle d) -> bool
1206 return _IMP_misc.CustomXYZR___ne__(self, *args)
1209 def __le__(self, *args):
1211 __le__(CustomXYZR self, CustomXYZR o) -> bool
1212 __le__(CustomXYZR self, Particle d) -> bool
1214 return _IMP_misc.CustomXYZR___le__(self, *args)
1217 def __lt__(self, *args):
1219 __lt__(CustomXYZR self, CustomXYZR o) -> bool
1220 __lt__(CustomXYZR self, Particle d) -> bool
1222 return _IMP_misc.CustomXYZR___lt__(self, *args)
1225 def __ge__(self, *args):
1227 __ge__(CustomXYZR self, CustomXYZR o) -> bool
1228 __ge__(CustomXYZR self, Particle d) -> bool
1230 return _IMP_misc.CustomXYZR___ge__(self, *args)
1233 def __gt__(self, *args):
1235 __gt__(CustomXYZR self, CustomXYZR o) -> bool
1236 __gt__(CustomXYZR self, Particle d) -> bool
1238 return _IMP_misc.CustomXYZR___gt__(self, *args)
1242 """__hash__(CustomXYZR self) -> std::size_t"""
1243 return _IMP_misc.CustomXYZR___hash__(self)
1247 """__str__(CustomXYZR self) -> std::string"""
1248 return _IMP_misc.CustomXYZR___str__(self)
1252 """__repr__(CustomXYZR self) -> std::string"""
1253 return _IMP_misc.CustomXYZR___repr__(self)
1255 __swig_destroy__ = _IMP_misc.delete_CustomXYZR
1256 __del__ =
lambda self:
None
1257 CustomXYZR_swigregister = _IMP_misc.CustomXYZR_swigregister
1258 CustomXYZR_swigregister(CustomXYZR)
1260 def CustomXYZR_get_default_decorator_traits():
1261 """CustomXYZR_get_default_decorator_traits() -> FloatKey"""
1262 return _IMP_misc.CustomXYZR_get_default_decorator_traits()
1264 def CustomXYZR_setup_particle(*args):
1266 setup_particle(Model m, ParticleIndex pi, FloatKey tr) -> CustomXYZR
1267 setup_particle(Model m, ParticleIndex pi) -> CustomXYZR
1268 setup_particle(_ParticleAdaptor d, FloatKey tr) -> CustomXYZR
1269 setup_particle(_ParticleAdaptor d) -> CustomXYZR
1270 setup_particle(Model m, ParticleIndex pi, double radius, FloatKey tr) -> CustomXYZR
1271 setup_particle(Model m, ParticleIndex pi, double radius) -> CustomXYZR
1272 setup_particle(_ParticleAdaptor d, double radius, FloatKey tr) -> CustomXYZR
1273 setup_particle(_ParticleAdaptor d, double radius) -> CustomXYZR
1274 setup_particle(Model m, ParticleIndex pi, Sphere3D ball, FloatKey tr) -> CustomXYZR
1275 setup_particle(Model m, ParticleIndex pi, Sphere3D ball) -> CustomXYZR
1276 setup_particle(_ParticleAdaptor d, Sphere3D ball, FloatKey tr) -> CustomXYZR
1277 CustomXYZR_setup_particle(_ParticleAdaptor d, Sphere3D ball) -> CustomXYZR
1279 return _IMP_misc.CustomXYZR_setup_particle(*args)
1281 def CustomXYZR_get_is_setup(*args):
1283 get_is_setup(_ParticleAdaptor p, FloatKey tr) -> bool
1284 get_is_setup(_ParticleAdaptor p) -> bool
1285 get_is_setup(Model m, ParticleIndex pi, FloatKey radius_key) -> bool
1286 CustomXYZR_get_is_setup(Model m, ParticleIndex pi) -> bool
1288 return _IMP_misc.CustomXYZR_get_is_setup(*args)
1290 def CustomXYZR_get_default_radius_key():
1291 """CustomXYZR_get_default_radius_key() -> FloatKey"""
1292 return _IMP_misc.CustomXYZR_get_default_radius_key()
1295 def __lshift__(out, n):
1296 """__lshift__(_ostream out, CustomXYZR n) -> _ostream"""
1297 return _IMP_misc.__lshift__(out, n)
1300 """get_distance(CustomXYZR a, CustomXYZR b) -> double"""
1301 return _IMP_misc.get_distance(a, b)
1304 """get_sphere_d_geometry(CustomXYZR d) -> Sphere3D"""
1305 return _IMP_misc.get_sphere_d_geometry(d)
1308 """set_sphere_d_geometry(CustomXYZR d, Sphere3D v)"""
1309 return _IMP_misc.set_sphere_d_geometry(d, v)
1311 """Proxy of C++ IMP::misc::SoftCylinderPairScore class"""
1312 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1314 def __init__(self, k):
1315 """__init__(IMP::misc::SoftCylinderPairScore self, double k) -> SoftCylinderPairScore"""
1316 this = _IMP_misc.new_SoftCylinderPairScore(k)
1318 self.this.append(this)
1323 """do_get_inputs(SoftCylinderPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
1324 return _IMP_misc.SoftCylinderPairScore_do_get_inputs(self, m, pis)
1328 """get_version_info(SoftCylinderPairScore self) -> VersionInfo"""
1329 return _IMP_misc.SoftCylinderPairScore_get_version_info(self)
1333 """__str__(SoftCylinderPairScore self) -> std::string"""
1334 return _IMP_misc.SoftCylinderPairScore___str__(self)
1338 """__repr__(SoftCylinderPairScore self) -> std::string"""
1339 return _IMP_misc.SoftCylinderPairScore___repr__(self)
1344 return _object_cast_to_SoftCylinderPairScore(o)
1346 SoftCylinderPairScore_swigregister = _IMP_misc.SoftCylinderPairScore_swigregister
1347 SoftCylinderPairScore_swigregister(SoftCylinderPairScore)
1350 """Proxy of C++ IMP::misc::DecayPairContainerOptimizerState class"""
1351 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1353 def __init__(self, *args):
1355 __init__(IMP::misc::DecayPairContainerOptimizerState self, Model m, PairPredicate pred, IMP::ParticleIndexPairs const & initial_list, std::string name) -> DecayPairContainerOptimizerState
1356 __init__(IMP::misc::DecayPairContainerOptimizerState self, Model m, PairPredicate pred, IMP::ParticleIndexPairs const & initial_list) -> DecayPairContainerOptimizerState
1358 this = _IMP_misc.new_DecayPairContainerOptimizerState(*args)
1360 self.this.append(this)
1364 def get_output_container(self):
1365 """get_output_container(DecayPairContainerOptimizerState self) -> PairContainer"""
1366 return _IMP_misc.DecayPairContainerOptimizerState_get_output_container(self)
1369 def do_update(self, call_num):
1370 """do_update(DecayPairContainerOptimizerState self, unsigned int call_num)"""
1371 return _IMP_misc.DecayPairContainerOptimizerState_do_update(self, call_num)
1375 """get_version_info(DecayPairContainerOptimizerState self) -> VersionInfo"""
1376 return _IMP_misc.DecayPairContainerOptimizerState_get_version_info(self)
1380 """__str__(DecayPairContainerOptimizerState self) -> std::string"""
1381 return _IMP_misc.DecayPairContainerOptimizerState___str__(self)
1385 """__repr__(DecayPairContainerOptimizerState self) -> std::string"""
1386 return _IMP_misc.DecayPairContainerOptimizerState___repr__(self)
1391 return _object_cast_to_DecayPairContainerOptimizerState(o)
1393 DecayPairContainerOptimizerState_swigregister = _IMP_misc.DecayPairContainerOptimizerState_swigregister
1394 DecayPairContainerOptimizerState_swigregister(DecayPairContainerOptimizerState)
1398 """get_module_version() -> std::string const"""
1399 return _IMP_misc.get_module_version()
1402 """get_example_path(std::string fname) -> std::string"""
1403 return _IMP_misc.get_example_path(fname)
1406 """get_data_path(std::string fname) -> std::string"""
1407 return _IMP_misc.get_data_path(fname)
1409 from .
import _version_check
Abstract class for scoring object(s) of type ParticleIndexPair.
Various classes to hold sets of particles.
const algebra::Sphere3D get_sphere_d_geometry(CustomXYZR d)
Make CGAL functionality available to IMP.
virtual void clear_caches()
virtual ModelObjectsTemp do_get_outputs(Model *m, const ParticleIndexes &pis) const =0
Overload this method to specify the outputs.
Composable functors to implement scores via compile-time composition.
ScoreStates maintain invariants in the Model.
virtual ModelObjectsTemp do_get_inputs(Model *m, const ParticleIndexes &pis) const =0
Overload this method to specify the inputs.
A decorator for a particle with x,y,z coordinates.
void set_sphere_d_geometry(CustomXYZR d, const algebra::Sphere3D &v)
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...
std::string get_module_version()
Return the version of this module, as a string.
virtual VersionInfo get_version_info() const
Get information about the module and version of the object.
Shared optimizer state that is invoked upon commitment of new coordinates.
void set_check_level(CheckLevel l)
std::string get_example_path(std::string file_name)
Return the full path to one of this module's example files.
Output IMP model data in various file formats.
Functionality for loading, creating, manipulating and scoring atomic structures.
std::string get_data_path(std::string file_name)
Return the full path to one of this module's data files.
Abstract single variable functor class for score functions.
double get_distance(const Line3D &s, const Vector3D &p)
Get closest distance between a line and a point.