10 from __future__
import print_function, division, absolute_import
15 from sys
import version_info
16 if version_info >= (2, 6, 0):
17 def swig_import_helper():
18 from os.path
import dirname
22 fp, pathname, description = imp.find_module(
'_IMP_misc', [dirname(__file__)])
28 _mod = imp.load_module(
'_IMP_misc', fp, pathname, description)
32 _IMP_misc = swig_import_helper()
33 del swig_import_helper
38 _swig_property = property
43 def _swig_setattr_nondynamic(self, class_type, name, value, static=1):
44 if (name ==
"thisown"):
45 return self.this.own(value)
47 if type(value).__name__ ==
'SwigPyObject':
48 self.__dict__[name] = value
50 method = class_type.__swig_setmethods__.get(name,
None)
52 return method(self, value)
54 object.__setattr__(self, name, value)
56 raise AttributeError(
"You cannot add attributes to %s" % self)
59 def _swig_setattr(self, class_type, name, value):
60 return _swig_setattr_nondynamic(self, class_type, name, value, 0)
63 def _swig_getattr_nondynamic(self, class_type, name, static=1):
64 if (name ==
"thisown"):
65 return self.this.own()
66 method = class_type.__swig_getmethods__.get(name,
None)
70 return object.__getattr__(self, name)
72 raise AttributeError(name)
74 def _swig_getattr(self, class_type, name):
75 return _swig_getattr_nondynamic(self, class_type, name, 0)
80 strthis =
"proxy of " + self.this.__repr__()
83 return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
88 except AttributeError:
95 def _swig_setattr_nondynamic_method(set):
96 def set_attr(self, name, value):
97 if (name ==
"thisown"):
98 return self.this.own(value)
99 if hasattr(self, name)
or (name ==
"this"):
100 set(self, name, value)
102 raise AttributeError(
"You cannot add attributes to %s" % self)
108 weakref_proxy = weakref.proxy
110 weakref_proxy =
lambda x: x
113 class IMP_MISC_SwigPyIterator(object):
114 """Proxy of C++ swig::IMP_MISC_SwigPyIterator class."""
116 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
118 def __init__(self, *args, **kwargs):
119 raise AttributeError(
"No constructor defined - class is abstract")
120 __repr__ = _swig_repr
121 __swig_destroy__ = _IMP_misc.delete_IMP_MISC_SwigPyIterator
122 __del__ =
lambda self:
None
125 """value(IMP_MISC_SwigPyIterator self) -> PyObject *"""
126 return _IMP_misc.IMP_MISC_SwigPyIterator_value(self)
131 incr(IMP_MISC_SwigPyIterator self, size_t n=1) -> IMP_MISC_SwigPyIterator
132 incr(IMP_MISC_SwigPyIterator self) -> IMP_MISC_SwigPyIterator
134 return _IMP_misc.IMP_MISC_SwigPyIterator_incr(self, n)
139 decr(IMP_MISC_SwigPyIterator self, size_t n=1) -> IMP_MISC_SwigPyIterator
140 decr(IMP_MISC_SwigPyIterator self) -> IMP_MISC_SwigPyIterator
142 return _IMP_misc.IMP_MISC_SwigPyIterator_decr(self, n)
145 def distance(self, x):
146 """distance(IMP_MISC_SwigPyIterator self, IMP_MISC_SwigPyIterator x) -> ptrdiff_t"""
147 return _IMP_misc.IMP_MISC_SwigPyIterator_distance(self, x)
151 """equal(IMP_MISC_SwigPyIterator self, IMP_MISC_SwigPyIterator x) -> bool"""
152 return _IMP_misc.IMP_MISC_SwigPyIterator_equal(self, x)
156 """copy(IMP_MISC_SwigPyIterator self) -> IMP_MISC_SwigPyIterator"""
157 return _IMP_misc.IMP_MISC_SwigPyIterator_copy(self)
161 """next(IMP_MISC_SwigPyIterator self) -> PyObject *"""
162 return _IMP_misc.IMP_MISC_SwigPyIterator_next(self)
166 """__next__(IMP_MISC_SwigPyIterator self) -> PyObject *"""
167 return _IMP_misc.IMP_MISC_SwigPyIterator___next__(self)
171 """previous(IMP_MISC_SwigPyIterator self) -> PyObject *"""
172 return _IMP_misc.IMP_MISC_SwigPyIterator_previous(self)
175 def advance(self, n):
176 """advance(IMP_MISC_SwigPyIterator self, ptrdiff_t n) -> IMP_MISC_SwigPyIterator"""
177 return _IMP_misc.IMP_MISC_SwigPyIterator_advance(self, n)
181 """__eq__(IMP_MISC_SwigPyIterator self, IMP_MISC_SwigPyIterator x) -> bool"""
182 return _IMP_misc.IMP_MISC_SwigPyIterator___eq__(self, x)
186 """__ne__(IMP_MISC_SwigPyIterator self, IMP_MISC_SwigPyIterator x) -> bool"""
187 return _IMP_misc.IMP_MISC_SwigPyIterator___ne__(self, x)
190 def __iadd__(self, n):
191 """__iadd__(IMP_MISC_SwigPyIterator self, ptrdiff_t n) -> IMP_MISC_SwigPyIterator"""
192 return _IMP_misc.IMP_MISC_SwigPyIterator___iadd__(self, n)
195 def __isub__(self, n):
196 """__isub__(IMP_MISC_SwigPyIterator self, ptrdiff_t n) -> IMP_MISC_SwigPyIterator"""
197 return _IMP_misc.IMP_MISC_SwigPyIterator___isub__(self, n)
200 def __add__(self, n):
201 """__add__(IMP_MISC_SwigPyIterator self, ptrdiff_t n) -> IMP_MISC_SwigPyIterator"""
202 return _IMP_misc.IMP_MISC_SwigPyIterator___add__(self, n)
205 def __sub__(self, *args):
207 __sub__(IMP_MISC_SwigPyIterator self, ptrdiff_t n) -> IMP_MISC_SwigPyIterator
208 __sub__(IMP_MISC_SwigPyIterator self, IMP_MISC_SwigPyIterator x) -> ptrdiff_t
210 return _IMP_misc.IMP_MISC_SwigPyIterator___sub__(self, *args)
214 IMP_MISC_SwigPyIterator_swigregister = _IMP_misc.IMP_MISC_SwigPyIterator_swigregister
215 IMP_MISC_SwigPyIterator_swigregister(IMP_MISC_SwigPyIterator)
224 _IMP_misc.IMP_DEBUG_swigconstant(_IMP_misc)
225 IMP_DEBUG = _IMP_misc.IMP_DEBUG
227 _IMP_misc.IMP_RELEASE_swigconstant(_IMP_misc)
228 IMP_RELEASE = _IMP_misc.IMP_RELEASE
230 _IMP_misc.IMP_SILENT_swigconstant(_IMP_misc)
231 IMP_SILENT = _IMP_misc.IMP_SILENT
233 _IMP_misc.IMP_PROGRESS_swigconstant(_IMP_misc)
234 IMP_PROGRESS = _IMP_misc.IMP_PROGRESS
236 _IMP_misc.IMP_TERSE_swigconstant(_IMP_misc)
237 IMP_TERSE = _IMP_misc.IMP_TERSE
239 _IMP_misc.IMP_VERBOSE_swigconstant(_IMP_misc)
240 IMP_VERBOSE = _IMP_misc.IMP_VERBOSE
242 _IMP_misc.IMP_MEMORY_swigconstant(_IMP_misc)
243 IMP_MEMORY = _IMP_misc.IMP_MEMORY
245 _IMP_misc.IMP_NONE_swigconstant(_IMP_misc)
246 IMP_NONE = _IMP_misc.IMP_NONE
248 _IMP_misc.IMP_USAGE_swigconstant(_IMP_misc)
249 IMP_USAGE = _IMP_misc.IMP_USAGE
251 _IMP_misc.IMP_INTERNAL_swigconstant(_IMP_misc)
252 IMP_INTERNAL = _IMP_misc.IMP_INTERNAL
254 _IMP_misc.IMP_KERNEL_HAS_LOG4CXX_swigconstant(_IMP_misc)
255 IMP_KERNEL_HAS_LOG4CXX = _IMP_misc.IMP_KERNEL_HAS_LOG4CXX
257 _IMP_misc.IMP_COMPILER_HAS_AUTO_swigconstant(_IMP_misc)
258 IMP_COMPILER_HAS_AUTO = _IMP_misc.IMP_COMPILER_HAS_AUTO
260 _IMP_misc.IMP_COMPILER_HAS_DEBUG_VECTOR_swigconstant(_IMP_misc)
261 IMP_COMPILER_HAS_DEBUG_VECTOR = _IMP_misc.IMP_COMPILER_HAS_DEBUG_VECTOR
263 _IMP_misc.IMP_COMPILER_HAS_UNIQUE_PTR_swigconstant(_IMP_misc)
264 IMP_COMPILER_HAS_UNIQUE_PTR = _IMP_misc.IMP_COMPILER_HAS_UNIQUE_PTR
266 _IMP_misc.IMP_KERNEL_HAS_BOOST_RANDOM_swigconstant(_IMP_misc)
267 IMP_KERNEL_HAS_BOOST_RANDOM = _IMP_misc.IMP_KERNEL_HAS_BOOST_RANDOM
269 _IMP_misc.IMP_KERNEL_HAS_GPERFTOOLS_swigconstant(_IMP_misc)
270 IMP_KERNEL_HAS_GPERFTOOLS = _IMP_misc.IMP_KERNEL_HAS_GPERFTOOLS
272 _IMP_misc.IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER_swigconstant(_IMP_misc)
273 IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER = _IMP_misc.IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER
275 _IMP_misc.IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER_swigconstant(_IMP_misc)
276 IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER = _IMP_misc.IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER
278 _IMP_misc.IMPKERNEL_SHOW_WARNINGS_swigconstant(_IMP_misc)
279 IMPKERNEL_SHOW_WARNINGS = _IMP_misc.IMPKERNEL_SHOW_WARNINGS
282 class _DirectorObjects(object):
283 """@internal Simple class to keep references to director objects
284 to prevent premature deletion."""
287 def register(self, obj):
288 """Take a reference to a director object; will only work for
289 refcounted C++ classes"""
290 if hasattr(obj,
'get_ref_count'):
291 self._objects.append(obj)
293 """Only drop our reference and allow cleanup by Python if no other
294 Python references exist (we hold 3 references: one in self._objects,
295 one in x, and one in the argument list for getrefcount) *and* no
296 other C++ references exist (the Python object always holds one)"""
297 objs = [x
for x
in self._objects
if sys.getrefcount(x) > 3 \
298 or x.get_ref_count() > 1]
302 def get_object_count(self):
303 """Get number of director objects (useful for testing only)"""
304 return len(self._objects)
305 _director_objects = _DirectorObjects()
307 class _ostream(object):
308 """Proxy of C++ std::ostream class."""
310 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
312 def __init__(self, *args, **kwargs):
313 raise AttributeError(
"No constructor defined")
314 __repr__ = _swig_repr
316 def write(self, osa_buf):
317 """write(_ostream self, char const * osa_buf)"""
318 return _IMP_misc._ostream_write(self, osa_buf)
320 _ostream_swigregister = _IMP_misc._ostream_swigregister
321 _ostream_swigregister(_ostream)
324 _IMP_misc.IMP_COMPILER_HAS_OVERRIDE_swigconstant(_IMP_misc)
325 IMP_COMPILER_HAS_OVERRIDE = _IMP_misc.IMP_COMPILER_HAS_OVERRIDE
327 _IMP_misc.IMP_COMPILER_HAS_FINAL_swigconstant(_IMP_misc)
328 IMP_COMPILER_HAS_FINAL = _IMP_misc.IMP_COMPILER_HAS_FINAL
330 _IMP_misc.IMP_HAS_NOEXCEPT_swigconstant(_IMP_misc)
331 IMP_HAS_NOEXCEPT = _IMP_misc.IMP_HAS_NOEXCEPT
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.IMPCGAL_SHOW_WARNINGS_swigconstant(_IMP_misc)
347 IMPCGAL_SHOW_WARNINGS = _IMP_misc.IMPCGAL_SHOW_WARNINGS
350 _IMP_misc.IMP_ALGEBRA_HAS_IMP_CGAL_swigconstant(_IMP_misc)
351 IMP_ALGEBRA_HAS_IMP_CGAL = _IMP_misc.IMP_ALGEBRA_HAS_IMP_CGAL
353 _IMP_misc.IMP_ALGEBRA_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_misc)
354 IMP_ALGEBRA_HAS_BOOST_FILESYSTEM = _IMP_misc.IMP_ALGEBRA_HAS_BOOST_FILESYSTEM
356 _IMP_misc.IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_misc)
357 IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS = _IMP_misc.IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS
359 _IMP_misc.IMP_ALGEBRA_HAS_BOOST_RANDOM_swigconstant(_IMP_misc)
360 IMP_ALGEBRA_HAS_BOOST_RANDOM = _IMP_misc.IMP_ALGEBRA_HAS_BOOST_RANDOM
362 _IMP_misc.IMP_ALGEBRA_HAS_BOOST_SYSTEM_swigconstant(_IMP_misc)
363 IMP_ALGEBRA_HAS_BOOST_SYSTEM = _IMP_misc.IMP_ALGEBRA_HAS_BOOST_SYSTEM
365 _IMP_misc.IMP_ALGEBRA_HAS_CGAL_swigconstant(_IMP_misc)
366 IMP_ALGEBRA_HAS_CGAL = _IMP_misc.IMP_ALGEBRA_HAS_CGAL
368 _IMP_misc.IMP_ALGEBRA_HAS_ANN_swigconstant(_IMP_misc)
369 IMP_ALGEBRA_HAS_ANN = _IMP_misc.IMP_ALGEBRA_HAS_ANN
371 _IMP_misc.IMPALGEBRA_SHOW_WARNINGS_swigconstant(_IMP_misc)
372 IMPALGEBRA_SHOW_WARNINGS = _IMP_misc.IMPALGEBRA_SHOW_WARNINGS
375 _IMP_misc.IMP_DISPLAY_HAS_IMP_CGAL_swigconstant(_IMP_misc)
376 IMP_DISPLAY_HAS_IMP_CGAL = _IMP_misc.IMP_DISPLAY_HAS_IMP_CGAL
378 _IMP_misc.IMP_DISPLAY_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_misc)
379 IMP_DISPLAY_HAS_BOOST_FILESYSTEM = _IMP_misc.IMP_DISPLAY_HAS_BOOST_FILESYSTEM
381 _IMP_misc.IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_misc)
382 IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS = _IMP_misc.IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS
384 _IMP_misc.IMP_DISPLAY_HAS_BOOST_RANDOM_swigconstant(_IMP_misc)
385 IMP_DISPLAY_HAS_BOOST_RANDOM = _IMP_misc.IMP_DISPLAY_HAS_BOOST_RANDOM
387 _IMP_misc.IMP_DISPLAY_HAS_BOOST_SYSTEM_swigconstant(_IMP_misc)
388 IMP_DISPLAY_HAS_BOOST_SYSTEM = _IMP_misc.IMP_DISPLAY_HAS_BOOST_SYSTEM
390 _IMP_misc.IMP_DISPLAY_HAS_CGAL_swigconstant(_IMP_misc)
391 IMP_DISPLAY_HAS_CGAL = _IMP_misc.IMP_DISPLAY_HAS_CGAL
393 _IMP_misc.IMPDISPLAY_SHOW_WARNINGS_swigconstant(_IMP_misc)
394 IMPDISPLAY_SHOW_WARNINGS = _IMP_misc.IMPDISPLAY_SHOW_WARNINGS
397 _IMP_misc.IMP_SCORE_FUNCTOR_HAS_IMP_CGAL_swigconstant(_IMP_misc)
398 IMP_SCORE_FUNCTOR_HAS_IMP_CGAL = _IMP_misc.IMP_SCORE_FUNCTOR_HAS_IMP_CGAL
400 _IMP_misc.IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_misc)
401 IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM = _IMP_misc.IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM
403 _IMP_misc.IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_misc)
404 IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS = _IMP_misc.IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS
406 _IMP_misc.IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM_swigconstant(_IMP_misc)
407 IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM = _IMP_misc.IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM
409 _IMP_misc.IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM_swigconstant(_IMP_misc)
410 IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM = _IMP_misc.IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM
412 _IMP_misc.IMP_SCORE_FUNCTOR_HAS_CGAL_swigconstant(_IMP_misc)
413 IMP_SCORE_FUNCTOR_HAS_CGAL = _IMP_misc.IMP_SCORE_FUNCTOR_HAS_CGAL
415 _IMP_misc.IMP_SCORE_FUNCTOR_HAS_HDF5_swigconstant(_IMP_misc)
416 IMP_SCORE_FUNCTOR_HAS_HDF5 = _IMP_misc.IMP_SCORE_FUNCTOR_HAS_HDF5
418 _IMP_misc.IMPSCOREFUNCTOR_SHOW_WARNINGS_swigconstant(_IMP_misc)
419 IMPSCOREFUNCTOR_SHOW_WARNINGS = _IMP_misc.IMPSCOREFUNCTOR_SHOW_WARNINGS
422 _IMP_misc.IMP_CORE_HAS_IMP_CGAL_swigconstant(_IMP_misc)
423 IMP_CORE_HAS_IMP_CGAL = _IMP_misc.IMP_CORE_HAS_IMP_CGAL
425 _IMP_misc.IMP_CORE_HAS_IMP_KERNEL_swigconstant(_IMP_misc)
426 IMP_CORE_HAS_IMP_KERNEL = _IMP_misc.IMP_CORE_HAS_IMP_KERNEL
428 _IMP_misc.IMP_CORE_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_misc)
429 IMP_CORE_HAS_BOOST_FILESYSTEM = _IMP_misc.IMP_CORE_HAS_BOOST_FILESYSTEM
431 _IMP_misc.IMP_CORE_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_misc)
432 IMP_CORE_HAS_BOOST_PROGRAMOPTIONS = _IMP_misc.IMP_CORE_HAS_BOOST_PROGRAMOPTIONS
434 _IMP_misc.IMP_CORE_HAS_BOOST_RANDOM_swigconstant(_IMP_misc)
435 IMP_CORE_HAS_BOOST_RANDOM = _IMP_misc.IMP_CORE_HAS_BOOST_RANDOM
437 _IMP_misc.IMP_CORE_HAS_BOOST_SYSTEM_swigconstant(_IMP_misc)
438 IMP_CORE_HAS_BOOST_SYSTEM = _IMP_misc.IMP_CORE_HAS_BOOST_SYSTEM
440 _IMP_misc.IMP_CORE_HAS_CGAL_swigconstant(_IMP_misc)
441 IMP_CORE_HAS_CGAL = _IMP_misc.IMP_CORE_HAS_CGAL
443 _IMP_misc.IMP_CORE_HAS_HDF5_swigconstant(_IMP_misc)
444 IMP_CORE_HAS_HDF5 = _IMP_misc.IMP_CORE_HAS_HDF5
446 _IMP_misc.IMPCORE_SHOW_WARNINGS_swigconstant(_IMP_misc)
447 IMPCORE_SHOW_WARNINGS = _IMP_misc.IMPCORE_SHOW_WARNINGS
450 _IMP_misc.IMP_CONTAINER_HAS_IMP_ALGEBRA_swigconstant(_IMP_misc)
451 IMP_CONTAINER_HAS_IMP_ALGEBRA = _IMP_misc.IMP_CONTAINER_HAS_IMP_ALGEBRA
453 _IMP_misc.IMP_CONTAINER_HAS_IMP_CGAL_swigconstant(_IMP_misc)
454 IMP_CONTAINER_HAS_IMP_CGAL = _IMP_misc.IMP_CONTAINER_HAS_IMP_CGAL
456 _IMP_misc.IMP_CONTAINER_HAS_IMP_DISPLAY_swigconstant(_IMP_misc)
457 IMP_CONTAINER_HAS_IMP_DISPLAY = _IMP_misc.IMP_CONTAINER_HAS_IMP_DISPLAY
459 _IMP_misc.IMP_CONTAINER_HAS_IMP_KERNEL_swigconstant(_IMP_misc)
460 IMP_CONTAINER_HAS_IMP_KERNEL = _IMP_misc.IMP_CONTAINER_HAS_IMP_KERNEL
462 _IMP_misc.IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR_swigconstant(_IMP_misc)
463 IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR = _IMP_misc.IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR
465 _IMP_misc.IMP_CONTAINER_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_misc)
466 IMP_CONTAINER_HAS_BOOST_FILESYSTEM = _IMP_misc.IMP_CONTAINER_HAS_BOOST_FILESYSTEM
468 _IMP_misc.IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_misc)
469 IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS = _IMP_misc.IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS
471 _IMP_misc.IMP_CONTAINER_HAS_BOOST_RANDOM_swigconstant(_IMP_misc)
472 IMP_CONTAINER_HAS_BOOST_RANDOM = _IMP_misc.IMP_CONTAINER_HAS_BOOST_RANDOM
474 _IMP_misc.IMP_CONTAINER_HAS_BOOST_SYSTEM_swigconstant(_IMP_misc)
475 IMP_CONTAINER_HAS_BOOST_SYSTEM = _IMP_misc.IMP_CONTAINER_HAS_BOOST_SYSTEM
477 _IMP_misc.IMP_CONTAINER_HAS_CGAL_swigconstant(_IMP_misc)
478 IMP_CONTAINER_HAS_CGAL = _IMP_misc.IMP_CONTAINER_HAS_CGAL
480 _IMP_misc.IMP_CONTAINER_HAS_HDF5_swigconstant(_IMP_misc)
481 IMP_CONTAINER_HAS_HDF5 = _IMP_misc.IMP_CONTAINER_HAS_HDF5
483 _IMP_misc.IMPCONTAINER_SHOW_WARNINGS_swigconstant(_IMP_misc)
484 IMPCONTAINER_SHOW_WARNINGS = _IMP_misc.IMPCONTAINER_SHOW_WARNINGS
487 _IMP_misc.IMP_ATOM_HAS_IMP_CGAL_swigconstant(_IMP_misc)
488 IMP_ATOM_HAS_IMP_CGAL = _IMP_misc.IMP_ATOM_HAS_IMP_CGAL
490 _IMP_misc.IMP_ATOM_HAS_IMP_KERNEL_swigconstant(_IMP_misc)
491 IMP_ATOM_HAS_IMP_KERNEL = _IMP_misc.IMP_ATOM_HAS_IMP_KERNEL
493 _IMP_misc.IMP_ATOM_HAS_IMP_SCORE_FUNCTOR_swigconstant(_IMP_misc)
494 IMP_ATOM_HAS_IMP_SCORE_FUNCTOR = _IMP_misc.IMP_ATOM_HAS_IMP_SCORE_FUNCTOR
496 _IMP_misc.IMP_ATOM_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_misc)
497 IMP_ATOM_HAS_BOOST_PROGRAMOPTIONS = _IMP_misc.IMP_ATOM_HAS_BOOST_PROGRAMOPTIONS
499 _IMP_misc.IMP_ATOM_HAS_BOOST_RANDOM_swigconstant(_IMP_misc)
500 IMP_ATOM_HAS_BOOST_RANDOM = _IMP_misc.IMP_ATOM_HAS_BOOST_RANDOM
502 _IMP_misc.IMP_ATOM_HAS_BOOST_REGEX_swigconstant(_IMP_misc)
503 IMP_ATOM_HAS_BOOST_REGEX = _IMP_misc.IMP_ATOM_HAS_BOOST_REGEX
505 _IMP_misc.IMP_ATOM_HAS_BOOST_SYSTEM_swigconstant(_IMP_misc)
506 IMP_ATOM_HAS_BOOST_SYSTEM = _IMP_misc.IMP_ATOM_HAS_BOOST_SYSTEM
508 _IMP_misc.IMP_ATOM_HAS_CGAL_swigconstant(_IMP_misc)
509 IMP_ATOM_HAS_CGAL = _IMP_misc.IMP_ATOM_HAS_CGAL
511 _IMP_misc.IMP_ATOM_HAS_HDF5_swigconstant(_IMP_misc)
512 IMP_ATOM_HAS_HDF5 = _IMP_misc.IMP_ATOM_HAS_HDF5
514 _IMP_misc.IMPATOM_SHOW_WARNINGS_swigconstant(_IMP_misc)
515 IMPATOM_SHOW_WARNINGS = _IMP_misc.IMPATOM_SHOW_WARNINGS
517 _IMP_misc.IMP_ATOM_TYPE_INDEX_swigconstant(_IMP_misc)
518 IMP_ATOM_TYPE_INDEX = _IMP_misc.IMP_ATOM_TYPE_INDEX
520 _IMP_misc.IMP_RESIDUE_TYPE_INDEX_swigconstant(_IMP_misc)
521 IMP_RESIDUE_TYPE_INDEX = _IMP_misc.IMP_RESIDUE_TYPE_INDEX
523 _IMP_misc.IMP_HIERARCHY_TYPE_INDEX_swigconstant(_IMP_misc)
524 IMP_HIERARCHY_TYPE_INDEX = _IMP_misc.IMP_HIERARCHY_TYPE_INDEX
527 _IMP_misc.IMP_MISC_HAS_IMP_ALGEBRA_swigconstant(_IMP_misc)
528 IMP_MISC_HAS_IMP_ALGEBRA = _IMP_misc.IMP_MISC_HAS_IMP_ALGEBRA
530 _IMP_misc.IMP_MISC_HAS_IMP_CGAL_swigconstant(_IMP_misc)
531 IMP_MISC_HAS_IMP_CGAL = _IMP_misc.IMP_MISC_HAS_IMP_CGAL
533 _IMP_misc.IMP_MISC_HAS_IMP_CONTAINER_swigconstant(_IMP_misc)
534 IMP_MISC_HAS_IMP_CONTAINER = _IMP_misc.IMP_MISC_HAS_IMP_CONTAINER
536 _IMP_misc.IMP_MISC_HAS_IMP_DISPLAY_swigconstant(_IMP_misc)
537 IMP_MISC_HAS_IMP_DISPLAY = _IMP_misc.IMP_MISC_HAS_IMP_DISPLAY
539 _IMP_misc.IMP_MISC_HAS_IMP_KERNEL_swigconstant(_IMP_misc)
540 IMP_MISC_HAS_IMP_KERNEL = _IMP_misc.IMP_MISC_HAS_IMP_KERNEL
542 _IMP_misc.IMP_MISC_HAS_IMP_SCORE_FUNCTOR_swigconstant(_IMP_misc)
543 IMP_MISC_HAS_IMP_SCORE_FUNCTOR = _IMP_misc.IMP_MISC_HAS_IMP_SCORE_FUNCTOR
545 _IMP_misc.IMP_MISC_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_misc)
546 IMP_MISC_HAS_BOOST_FILESYSTEM = _IMP_misc.IMP_MISC_HAS_BOOST_FILESYSTEM
548 _IMP_misc.IMP_MISC_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_misc)
549 IMP_MISC_HAS_BOOST_PROGRAMOPTIONS = _IMP_misc.IMP_MISC_HAS_BOOST_PROGRAMOPTIONS
551 _IMP_misc.IMP_MISC_HAS_BOOST_RANDOM_swigconstant(_IMP_misc)
552 IMP_MISC_HAS_BOOST_RANDOM = _IMP_misc.IMP_MISC_HAS_BOOST_RANDOM
554 _IMP_misc.IMP_MISC_HAS_BOOST_REGEX_swigconstant(_IMP_misc)
555 IMP_MISC_HAS_BOOST_REGEX = _IMP_misc.IMP_MISC_HAS_BOOST_REGEX
557 _IMP_misc.IMP_MISC_HAS_BOOST_SYSTEM_swigconstant(_IMP_misc)
558 IMP_MISC_HAS_BOOST_SYSTEM = _IMP_misc.IMP_MISC_HAS_BOOST_SYSTEM
560 _IMP_misc.IMP_MISC_HAS_CGAL_swigconstant(_IMP_misc)
561 IMP_MISC_HAS_CGAL = _IMP_misc.IMP_MISC_HAS_CGAL
563 _IMP_misc.IMP_MISC_HAS_HDF5_swigconstant(_IMP_misc)
564 IMP_MISC_HAS_HDF5 = _IMP_misc.IMP_MISC_HAS_HDF5
566 _IMP_misc.IMPMISC_SHOW_WARNINGS_swigconstant(_IMP_misc)
567 IMPMISC_SHOW_WARNINGS = _IMP_misc.IMPMISC_SHOW_WARNINGS
569 _object_types.append(
"WormLikeChain")
572 def _object_cast_to_WormLikeChain(o):
573 """_object_cast_to_WormLikeChain(Object o) -> WormLikeChain"""
574 return _IMP_misc._object_cast_to_WormLikeChain(o)
576 _object_types.append(
"StateAdaptor")
579 def _object_cast_to_StateAdaptor(o):
580 """_object_cast_to_StateAdaptor(Object o) -> StateAdaptor"""
581 return _IMP_misc._object_cast_to_StateAdaptor(o)
583 _object_types.append(
"CommonEndpointPairFilter")
586 def _object_cast_to_CommonEndpointPairFilter(o):
587 """_object_cast_to_CommonEndpointPairFilter(Object o) -> CommonEndpointPairFilter"""
588 return _IMP_misc._object_cast_to_CommonEndpointPairFilter(o)
590 _object_types.append(
"LogPairScore")
593 def _object_cast_to_LogPairScore(o):
594 """_object_cast_to_LogPairScore(Object o) -> LogPairScore"""
595 return _IMP_misc._object_cast_to_LogPairScore(o)
597 _object_types.append(
"LowestRefinedPairScore")
600 def _object_cast_to_LowestRefinedPairScore(o):
601 """_object_cast_to_LowestRefinedPairScore(Object o) -> LowestRefinedPairScore"""
602 return _IMP_misc._object_cast_to_LowestRefinedPairScore(o)
604 _object_types.append(
"SoftCylinderPairScore")
607 def _object_cast_to_SoftCylinderPairScore(o):
608 """_object_cast_to_SoftCylinderPairScore(Object o) -> SoftCylinderPairScore"""
609 return _IMP_misc._object_cast_to_SoftCylinderPairScore(o)
611 _object_types.append(
"DecayPairContainerOptimizerState")
614 def _object_cast_to_DecayPairContainerOptimizerState(o):
615 """_object_cast_to_DecayPairContainerOptimizerState(Object o) -> DecayPairContainerOptimizerState"""
616 return _IMP_misc._object_cast_to_DecayPairContainerOptimizerState(o)
618 def CustomXYZRs(l=[]):
619 return [CustomXYZR(x)
for x
in l]
620 _plural_types.append(
"CustomXYZRs")
623 _value_types.append(
"CustomXYZR")
626 """Proxy of C++ IMP::misc::WormLikeChain class."""
628 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
630 def __init__(self, l_max, lp):
631 """__init__(IMP::misc::WormLikeChain self, IMP::Float l_max, IMP::Float lp) -> WormLikeChain"""
632 this = _IMP_misc.new_WormLikeChain(l_max, lp)
634 self.this.append(this)
639 """get_version_info(WormLikeChain self) -> VersionInfo"""
640 return _IMP_misc.WormLikeChain_get_version_info(self)
643 def do_show(self, out):
644 """do_show(WormLikeChain self, _ostream out)"""
645 return _IMP_misc.WormLikeChain_do_show(self, out)
649 """__str__(WormLikeChain self) -> std::string"""
650 return _IMP_misc.WormLikeChain___str__(self)
654 """__repr__(WormLikeChain self) -> std::string"""
655 return _IMP_misc.WormLikeChain___repr__(self)
660 return _object_cast_to_WormLikeChain(o)
662 WormLikeChain_swigregister = _IMP_misc.WormLikeChain_swigregister
663 WormLikeChain_swigregister(WormLikeChain)
666 """Proxy of C++ IMP::misc::LowestRefinedPairScore class."""
668 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
670 def __init__(self, r, f):
671 """__init__(IMP::misc::LowestRefinedPairScore self, Refiner r, PairScore f) -> LowestRefinedPairScore"""
672 this = _IMP_misc.new_LowestRefinedPairScore(r, f)
674 self.this.append(this)
679 """do_get_inputs(LowestRefinedPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
680 return _IMP_misc.LowestRefinedPairScore_do_get_inputs(self, m, pis)
684 """get_version_info(LowestRefinedPairScore self) -> VersionInfo"""
685 return _IMP_misc.LowestRefinedPairScore_get_version_info(self)
689 """__str__(LowestRefinedPairScore self) -> std::string"""
690 return _IMP_misc.LowestRefinedPairScore___str__(self)
694 """__repr__(LowestRefinedPairScore self) -> std::string"""
695 return _IMP_misc.LowestRefinedPairScore___repr__(self)
700 return _object_cast_to_LowestRefinedPairScore(o)
702 LowestRefinedPairScore_swigregister = _IMP_misc.LowestRefinedPairScore_swigregister
703 LowestRefinedPairScore_swigregister(LowestRefinedPairScore)
706 """Proxy of C++ IMP::misc::LogPairScore class."""
708 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
711 """__init__(IMP::misc::LogPairScore self) -> LogPairScore"""
712 this = _IMP_misc.new_LogPairScore()
714 self.this.append(this)
719 """do_get_inputs(LogPairScore self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
720 return _IMP_misc.LogPairScore_do_get_inputs(self, arg2, arg3)
724 """get_version_info(LogPairScore self) -> VersionInfo"""
725 return _IMP_misc.LogPairScore_get_version_info(self)
728 def get_particle_pairs(self):
729 """get_particle_pairs(LogPairScore self) -> IMP::ParticlePairsTemp"""
730 return _IMP_misc.LogPairScore_get_particle_pairs(self)
734 """clear(LogPairScore self)"""
735 return _IMP_misc.LogPairScore_clear(self)
738 def get_contains(self, pp):
739 """get_contains(LogPairScore self, IMP::ParticlePair const & pp) -> bool"""
740 return _IMP_misc.LogPairScore_get_contains(self, pp)
744 """__str__(LogPairScore self) -> std::string"""
745 return _IMP_misc.LogPairScore___str__(self)
749 """__repr__(LogPairScore self) -> std::string"""
750 return _IMP_misc.LogPairScore___repr__(self)
755 return _object_cast_to_LogPairScore(o)
757 LogPairScore_swigregister = _IMP_misc.LogPairScore_swigregister
758 LogPairScore_swigregister(LogPairScore)
761 """Proxy of C++ IMP::misc::StateAdaptor class."""
763 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
765 def __init__(self, m, before, after):
766 """__init__(IMP::misc::StateAdaptor self, Model m, OptimizerState before, OptimizerState after) -> StateAdaptor"""
767 this = _IMP_misc.new_StateAdaptor(m, before, after)
769 self.this.append(this)
773 def do_before_evaluate(self):
774 """do_before_evaluate(StateAdaptor self)"""
775 return _IMP_misc.StateAdaptor_do_before_evaluate(self)
778 def do_after_evaluate(self, da):
779 """do_after_evaluate(StateAdaptor self, DerivativeAccumulator da)"""
780 return _IMP_misc.StateAdaptor_do_after_evaluate(self, da)
784 """do_get_inputs(StateAdaptor self) -> IMP::ModelObjectsTemp"""
785 return _IMP_misc.StateAdaptor_do_get_inputs(self)
789 """do_get_outputs(StateAdaptor self) -> IMP::ModelObjectsTemp"""
790 return _IMP_misc.StateAdaptor_do_get_outputs(self)
794 """get_version_info(StateAdaptor self) -> VersionInfo"""
795 return _IMP_misc.StateAdaptor_get_version_info(self)
799 """__str__(StateAdaptor self) -> std::string"""
800 return _IMP_misc.StateAdaptor___str__(self)
804 """__repr__(StateAdaptor self) -> std::string"""
805 return _IMP_misc.StateAdaptor___repr__(self)
810 return _object_cast_to_StateAdaptor(o)
812 StateAdaptor_swigregister = _IMP_misc.StateAdaptor_swigregister
813 StateAdaptor_swigregister(StateAdaptor)
816 """Proxy of C++ IMP::misc::CommonEndpointPairFilter 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::CommonEndpointPairFilter self) -> CommonEndpointPairFilter"""
822 this = _IMP_misc.new_CommonEndpointPairFilter()
824 self.this.append(this)
829 """do_get_inputs(CommonEndpointPairFilter self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
830 return _IMP_misc.CommonEndpointPairFilter_do_get_inputs(self, m, pis)
833 def get_value(self, *args):
835 get_value(CommonEndpointPairFilter self, IMP::ParticlePair const & a) -> int
836 get_value(CommonEndpointPairFilter self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
838 return _IMP_misc.CommonEndpointPairFilter_get_value(self, *args)
841 def get_value_index(self, *args):
843 get_value_index(CommonEndpointPairFilter self, Model m, IMP::ParticleIndexPair const & p) -> int
844 get_value_index(CommonEndpointPairFilter self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
846 return _IMP_misc.CommonEndpointPairFilter_get_value_index(self, *args)
850 """get_version_info(CommonEndpointPairFilter self) -> VersionInfo"""
851 return _IMP_misc.CommonEndpointPairFilter_get_version_info(self)
855 """__str__(CommonEndpointPairFilter self) -> std::string"""
856 return _IMP_misc.CommonEndpointPairFilter___str__(self)
860 """__repr__(CommonEndpointPairFilter self) -> std::string"""
861 return _IMP_misc.CommonEndpointPairFilter___repr__(self)
866 return _object_cast_to_CommonEndpointPairFilter(o)
868 CommonEndpointPairFilter_swigregister = _IMP_misc.CommonEndpointPairFilter_swigregister
869 CommonEndpointPairFilter_swigregister(CommonEndpointPairFilter)
872 """Proxy of C++ IMP::misc::CustomXYZR class."""
874 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
876 def get_decorator_traits(self):
877 """get_decorator_traits(CustomXYZR self) -> FloatKey"""
878 return _IMP_misc.CustomXYZR_get_decorator_traits(self)
881 def get_default_decorator_traits():
882 """get_default_decorator_traits() -> FloatKey"""
883 return _IMP_misc.CustomXYZR_get_default_decorator_traits()
885 get_default_decorator_traits = staticmethod(get_default_decorator_traits)
887 def __init__(self, *args):
889 __init__(IMP::misc::CustomXYZR self) -> CustomXYZR
890 __init__(IMP::misc::CustomXYZR self, Model m, ParticleIndex id, FloatKey tr) -> CustomXYZR
891 __init__(IMP::misc::CustomXYZR self, Model m, ParticleIndex id) -> CustomXYZR
892 __init__(IMP::misc::CustomXYZR self, _ParticleAdaptor d, FloatKey tr) -> CustomXYZR
893 __init__(IMP::misc::CustomXYZR self, _ParticleAdaptor d) -> CustomXYZR
895 this = _IMP_misc.new_CustomXYZR(*args)
897 self.this.append(this)
901 def show(self, *args):
903 show(CustomXYZR self, _ostream out)
904 show(CustomXYZR self)
906 return _IMP_misc.CustomXYZR_show(self, *args)
909 def setup_particle(*args):
911 setup_particle(Model m, ParticleIndex pi, FloatKey tr) -> CustomXYZR
912 setup_particle(Model m, ParticleIndex pi) -> CustomXYZR
913 setup_particle(_ParticleAdaptor d, FloatKey tr) -> CustomXYZR
914 setup_particle(_ParticleAdaptor d) -> CustomXYZR
915 setup_particle(Model m, ParticleIndex pi, double radius, FloatKey tr) -> CustomXYZR
916 setup_particle(Model m, ParticleIndex pi, double radius) -> CustomXYZR
917 setup_particle(_ParticleAdaptor d, double radius, FloatKey tr) -> CustomXYZR
918 setup_particle(_ParticleAdaptor d, double radius) -> CustomXYZR
919 setup_particle(Model m, ParticleIndex pi, Sphere3D ball, FloatKey tr) -> CustomXYZR
920 setup_particle(Model m, ParticleIndex pi, Sphere3D ball) -> CustomXYZR
921 setup_particle(_ParticleAdaptor d, Sphere3D ball, FloatKey tr) -> CustomXYZR
922 setup_particle(_ParticleAdaptor d, Sphere3D ball) -> CustomXYZR
924 return _IMP_misc.CustomXYZR_setup_particle(*args)
926 setup_particle = staticmethod(setup_particle)
928 def get_is_setup(*args):
930 get_is_setup(_ParticleAdaptor p, FloatKey tr) -> bool
931 get_is_setup(_ParticleAdaptor p) -> bool
932 get_is_setup(Model m, ParticleIndex pi, FloatKey radius_key) -> bool
933 get_is_setup(Model m, ParticleIndex pi) -> bool
935 return _IMP_misc.CustomXYZR_get_is_setup(*args)
937 get_is_setup = staticmethod(get_is_setup)
939 def get_radius(self):
940 """get_radius(CustomXYZR self) -> IMP::Float"""
941 return _IMP_misc.CustomXYZR_get_radius(self)
944 def set_radius(self, t):
945 """set_radius(CustomXYZR self, IMP::Float t)"""
946 return _IMP_misc.CustomXYZR_set_radius(self, t)
949 def get_sphere(self):
950 """get_sphere(CustomXYZR self) -> Sphere3D"""
951 return _IMP_misc.CustomXYZR_get_sphere(self)
954 def set_sphere(self, s):
955 """set_sphere(CustomXYZR self, Sphere3D s)"""
956 return _IMP_misc.CustomXYZR_set_sphere(self, s)
959 def get_default_radius_key():
960 """get_default_radius_key() -> FloatKey"""
961 return _IMP_misc.CustomXYZR_get_default_radius_key()
963 get_default_radius_key = staticmethod(get_default_radius_key)
965 def add_to_radius_derivative(self, v, d):
966 """add_to_radius_derivative(CustomXYZR self, double v, DerivativeAccumulator d)"""
967 return _IMP_misc.CustomXYZR_add_to_radius_derivative(self, v, d)
970 def get_traits(self):
971 """get_traits(CustomXYZR self) -> FloatKey"""
972 return _IMP_misc.CustomXYZR_get_traits(self)
975 def add_attribute(self, *args):
977 add_attribute(CustomXYZR self, FloatKey k, IMP::Float v, bool opt)
978 add_attribute(CustomXYZR self, FloatKey a0, IMP::Float a1)
979 add_attribute(CustomXYZR self, IntKey a0, IMP::Int a1)
980 add_attribute(CustomXYZR self, StringKey a0, IMP::String a1)
981 add_attribute(CustomXYZR self, ParticleIndexKey a0, Particle a1)
982 add_attribute(CustomXYZR self, ObjectKey a0, Object a1)
984 return _IMP_misc.CustomXYZR_add_attribute(self, *args)
987 def get_value(self, *args):
989 get_value(CustomXYZR self, FloatKey a0) -> IMP::Float
990 get_value(CustomXYZR self, IntKey a0) -> IMP::Int
991 get_value(CustomXYZR self, StringKey a0) -> IMP::String
992 get_value(CustomXYZR self, ParticleIndexKey a0) -> Particle
993 get_value(CustomXYZR self, ObjectKey a0) -> Object
995 return _IMP_misc.CustomXYZR_get_value(self, *args)
998 def set_value(self, *args):
1000 set_value(CustomXYZR self, FloatKey a0, IMP::Float a1)
1001 set_value(CustomXYZR self, IntKey a0, IMP::Int a1)
1002 set_value(CustomXYZR self, StringKey a0, IMP::String a1)
1003 set_value(CustomXYZR self, ParticleIndexKey a0, Particle a1)
1004 set_value(CustomXYZR self, ObjectKey a0, Object a1)
1006 return _IMP_misc.CustomXYZR_set_value(self, *args)
1009 def remove_attribute(self, *args):
1011 remove_attribute(CustomXYZR self, FloatKey a0)
1012 remove_attribute(CustomXYZR self, IntKey a0)
1013 remove_attribute(CustomXYZR self, StringKey a0)
1014 remove_attribute(CustomXYZR self, ParticleIndexKey a0)
1015 remove_attribute(CustomXYZR self, ObjectKey a0)
1017 return _IMP_misc.CustomXYZR_remove_attribute(self, *args)
1020 def has_attribute(self, *args):
1022 has_attribute(CustomXYZR self, FloatKey a0) -> bool
1023 has_attribute(CustomXYZR self, IntKey a0) -> bool
1024 has_attribute(CustomXYZR self, StringKey a0) -> bool
1025 has_attribute(CustomXYZR self, ParticleIndexKey a0) -> bool
1026 has_attribute(CustomXYZR self, ObjectKey a0) -> bool
1028 return _IMP_misc.CustomXYZR_has_attribute(self, *args)
1031 def get_derivative(self, a0):
1032 """get_derivative(CustomXYZR self, FloatKey a0) -> double"""
1033 return _IMP_misc.CustomXYZR_get_derivative(self, a0)
1037 """get_name(CustomXYZR self) -> std::string"""
1038 return _IMP_misc.CustomXYZR_get_name(self)
1042 """clear_caches(CustomXYZR self)"""
1043 return _IMP_misc.CustomXYZR_clear_caches(self)
1046 def set_name(self, a0):
1047 """set_name(CustomXYZR self, std::string a0)"""
1048 return _IMP_misc.CustomXYZR_set_name(self, a0)
1052 """set_check_level(CustomXYZR self, IMP::CheckLevel a0)"""
1053 return _IMP_misc.CustomXYZR_set_check_level(self, a0)
1056 def add_to_derivative(self, a0, a1, a2):
1057 """add_to_derivative(CustomXYZR self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
1058 return _IMP_misc.CustomXYZR_add_to_derivative(self, a0, a1, a2)
1061 def set_is_optimized(self, a0, a1):
1062 """set_is_optimized(CustomXYZR self, FloatKey a0, bool a1)"""
1063 return _IMP_misc.CustomXYZR_set_is_optimized(self, a0, a1)
1066 def get_is_optimized(self, a0):
1067 """get_is_optimized(CustomXYZR self, FloatKey a0) -> bool"""
1068 return _IMP_misc.CustomXYZR_get_is_optimized(self, a0)
1071 def get_check_level(self):
1072 """get_check_level(CustomXYZR self) -> IMP::CheckLevel"""
1073 return _IMP_misc.CustomXYZR_get_check_level(self)
1076 def __eq__(self, *args):
1078 __eq__(CustomXYZR self, CustomXYZR o) -> bool
1079 __eq__(CustomXYZR self, Particle d) -> bool
1081 return _IMP_misc.CustomXYZR___eq__(self, *args)
1084 def __ne__(self, *args):
1086 __ne__(CustomXYZR self, CustomXYZR o) -> bool
1087 __ne__(CustomXYZR self, Particle d) -> bool
1089 return _IMP_misc.CustomXYZR___ne__(self, *args)
1092 def __le__(self, *args):
1094 __le__(CustomXYZR self, CustomXYZR o) -> bool
1095 __le__(CustomXYZR self, Particle d) -> bool
1097 return _IMP_misc.CustomXYZR___le__(self, *args)
1100 def __lt__(self, *args):
1102 __lt__(CustomXYZR self, CustomXYZR o) -> bool
1103 __lt__(CustomXYZR self, Particle d) -> bool
1105 return _IMP_misc.CustomXYZR___lt__(self, *args)
1108 def __ge__(self, *args):
1110 __ge__(CustomXYZR self, CustomXYZR o) -> bool
1111 __ge__(CustomXYZR self, Particle d) -> bool
1113 return _IMP_misc.CustomXYZR___ge__(self, *args)
1116 def __gt__(self, *args):
1118 __gt__(CustomXYZR self, CustomXYZR o) -> bool
1119 __gt__(CustomXYZR self, Particle d) -> bool
1121 return _IMP_misc.CustomXYZR___gt__(self, *args)
1125 """__hash__(CustomXYZR self) -> std::size_t"""
1126 return _IMP_misc.CustomXYZR___hash__(self)
1130 """__str__(CustomXYZR self) -> std::string"""
1131 return _IMP_misc.CustomXYZR___str__(self)
1135 """__repr__(CustomXYZR self) -> std::string"""
1136 return _IMP_misc.CustomXYZR___repr__(self)
1138 __swig_destroy__ = _IMP_misc.delete_CustomXYZR
1139 __del__ =
lambda self:
None
1140 CustomXYZR_swigregister = _IMP_misc.CustomXYZR_swigregister
1141 CustomXYZR_swigregister(CustomXYZR)
1143 def CustomXYZR_get_default_decorator_traits():
1144 """CustomXYZR_get_default_decorator_traits() -> FloatKey"""
1145 return _IMP_misc.CustomXYZR_get_default_decorator_traits()
1147 def CustomXYZR_setup_particle(*args):
1149 setup_particle(Model m, ParticleIndex pi, FloatKey tr) -> CustomXYZR
1150 setup_particle(Model m, ParticleIndex pi) -> CustomXYZR
1151 setup_particle(_ParticleAdaptor d, FloatKey tr) -> CustomXYZR
1152 setup_particle(_ParticleAdaptor d) -> CustomXYZR
1153 setup_particle(Model m, ParticleIndex pi, double radius, FloatKey tr) -> CustomXYZR
1154 setup_particle(Model m, ParticleIndex pi, double radius) -> CustomXYZR
1155 setup_particle(_ParticleAdaptor d, double radius, FloatKey tr) -> CustomXYZR
1156 setup_particle(_ParticleAdaptor d, double radius) -> CustomXYZR
1157 setup_particle(Model m, ParticleIndex pi, Sphere3D ball, FloatKey tr) -> CustomXYZR
1158 setup_particle(Model m, ParticleIndex pi, Sphere3D ball) -> CustomXYZR
1159 setup_particle(_ParticleAdaptor d, Sphere3D ball, FloatKey tr) -> CustomXYZR
1160 CustomXYZR_setup_particle(_ParticleAdaptor d, Sphere3D ball) -> CustomXYZR
1162 return _IMP_misc.CustomXYZR_setup_particle(*args)
1164 def CustomXYZR_get_is_setup(*args):
1166 get_is_setup(_ParticleAdaptor p, FloatKey tr) -> bool
1167 get_is_setup(_ParticleAdaptor p) -> bool
1168 get_is_setup(Model m, ParticleIndex pi, FloatKey radius_key) -> bool
1169 CustomXYZR_get_is_setup(Model m, ParticleIndex pi) -> bool
1171 return _IMP_misc.CustomXYZR_get_is_setup(*args)
1173 def CustomXYZR_get_default_radius_key():
1174 """CustomXYZR_get_default_radius_key() -> FloatKey"""
1175 return _IMP_misc.CustomXYZR_get_default_radius_key()
1178 def __lshift__(out, n):
1179 """__lshift__(_ostream out, CustomXYZR n) -> _ostream"""
1180 return _IMP_misc.__lshift__(out, n)
1183 """get_distance(CustomXYZR a, CustomXYZR b) -> double"""
1184 return _IMP_misc.get_distance(a, b)
1187 """get_sphere_d_geometry(CustomXYZR d) -> Sphere3D"""
1188 return _IMP_misc.get_sphere_d_geometry(d)
1191 """set_sphere_d_geometry(CustomXYZR d, Sphere3D v)"""
1192 return _IMP_misc.set_sphere_d_geometry(d, v)
1194 """Proxy of C++ IMP::misc::SoftCylinderPairScore class."""
1196 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1198 def __init__(self, k):
1199 """__init__(IMP::misc::SoftCylinderPairScore self, double k) -> SoftCylinderPairScore"""
1200 this = _IMP_misc.new_SoftCylinderPairScore(k)
1202 self.this.append(this)
1207 """do_get_inputs(SoftCylinderPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
1208 return _IMP_misc.SoftCylinderPairScore_do_get_inputs(self, m, pis)
1212 """get_version_info(SoftCylinderPairScore self) -> VersionInfo"""
1213 return _IMP_misc.SoftCylinderPairScore_get_version_info(self)
1217 """__str__(SoftCylinderPairScore self) -> std::string"""
1218 return _IMP_misc.SoftCylinderPairScore___str__(self)
1222 """__repr__(SoftCylinderPairScore self) -> std::string"""
1223 return _IMP_misc.SoftCylinderPairScore___repr__(self)
1228 return _object_cast_to_SoftCylinderPairScore(o)
1230 SoftCylinderPairScore_swigregister = _IMP_misc.SoftCylinderPairScore_swigregister
1231 SoftCylinderPairScore_swigregister(SoftCylinderPairScore)
1234 """Proxy of C++ IMP::misc::DecayPairContainerOptimizerState class."""
1236 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1238 def __init__(self, *args):
1240 __init__(IMP::misc::DecayPairContainerOptimizerState self, Model m, PairPredicate pred, IMP::ParticleIndexPairs const & initial_list, std::string name) -> DecayPairContainerOptimizerState
1241 __init__(IMP::misc::DecayPairContainerOptimizerState self, Model m, PairPredicate pred, IMP::ParticleIndexPairs const & initial_list) -> DecayPairContainerOptimizerState
1243 this = _IMP_misc.new_DecayPairContainerOptimizerState(*args)
1245 self.this.append(this)
1249 def get_output_container(self):
1250 """get_output_container(DecayPairContainerOptimizerState self) -> PairContainer"""
1251 return _IMP_misc.DecayPairContainerOptimizerState_get_output_container(self)
1254 def do_update(self, call_num):
1255 """do_update(DecayPairContainerOptimizerState self, unsigned int call_num)"""
1256 return _IMP_misc.DecayPairContainerOptimizerState_do_update(self, call_num)
1260 """get_version_info(DecayPairContainerOptimizerState self) -> VersionInfo"""
1261 return _IMP_misc.DecayPairContainerOptimizerState_get_version_info(self)
1265 """__str__(DecayPairContainerOptimizerState self) -> std::string"""
1266 return _IMP_misc.DecayPairContainerOptimizerState___str__(self)
1270 """__repr__(DecayPairContainerOptimizerState self) -> std::string"""
1271 return _IMP_misc.DecayPairContainerOptimizerState___repr__(self)
1276 return _object_cast_to_DecayPairContainerOptimizerState(o)
1278 DecayPairContainerOptimizerState_swigregister = _IMP_misc.DecayPairContainerOptimizerState_swigregister
1279 DecayPairContainerOptimizerState_swigregister(DecayPairContainerOptimizerState)
1282 def get_module_version():
1283 """get_module_version() -> std::string const"""
1284 return _IMP_misc.get_module_version()
1287 """get_example_path(std::string fname) -> std::string"""
1288 return _IMP_misc.get_example_path(fname)
1291 """get_data_path(std::string fname) -> std::string"""
1292 return _IMP_misc.get_data_path(fname)
1294 from .
import _version_check
1295 _version_check.check_version(get_module_version())
1296 __version__ = get_module_version()
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
Composable functors to implement scores via compile-time composition.
double get_distance(const Plane3D &pln, const Vector3D &p)
Return the distance between a plane and a point in 3D.
ScoreStates maintain invariants in the Model.
virtual ModelObjectsTemp do_get_inputs(Model *m, const ParticleIndexes &pis) const =0
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...
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.