IMP logo
IMP Reference Guide  2.6.2
The Integrative Modeling Platform
misc/__init__.py
1 # This file was automatically generated by SWIG (http://www.swig.org).
2 # Version 3.0.8
3 #
4 # Do not make changes to this file unless you know what you are doing--modify
5 # the SWIG interface file instead.
6 
7 # This wrapper is part of IMP,
8 # Copyright 2007-2016 IMP Inventors. All rights reserved.
9 
10 from __future__ import print_function, division, absolute_import
11 
12 
13 
14 
15 from sys import version_info
16 if version_info >= (2, 6, 0):
17  def swig_import_helper():
18  from os.path import dirname
19  import imp
20  fp = None
21  try:
22  fp, pathname, description = imp.find_module('_IMP_misc', [dirname(__file__)])
23  except ImportError:
24  import _IMP_misc
25  return _IMP_misc
26  if fp is not None:
27  try:
28  _mod = imp.load_module('_IMP_misc', fp, pathname, description)
29  finally:
30  fp.close()
31  return _mod
32  _IMP_misc = swig_import_helper()
33  del swig_import_helper
34 else:
35  import _IMP_misc
36 del version_info
37 try:
38  _swig_property = property
39 except NameError:
40  pass # Python < 2.2 doesn't have 'property'.
41 
42 
43 def _swig_setattr_nondynamic(self, class_type, name, value, static=1):
44  if (name == "thisown"):
45  return self.this.own(value)
46  if (name == "this"):
47  if type(value).__name__ == 'SwigPyObject':
48  self.__dict__[name] = value
49  return
50  method = class_type.__swig_setmethods__.get(name, None)
51  if method:
52  return method(self, value)
53  if (not static):
54  object.__setattr__(self, name, value)
55  else:
56  raise AttributeError("You cannot add attributes to %s" % self)
57 
58 
59 def _swig_setattr(self, class_type, name, value):
60  return _swig_setattr_nondynamic(self, class_type, name, value, 0)
61 
62 
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)
67  if method:
68  return method(self)
69  if (not static):
70  return object.__getattr__(self, name)
71  else:
72  raise AttributeError(name)
73 
74 def _swig_getattr(self, class_type, name):
75  return _swig_getattr_nondynamic(self, class_type, name, 0)
76 
77 
78 def _swig_repr(self):
79  try:
80  strthis = "proxy of " + self.this.__repr__()
81  except Exception:
82  strthis = ""
83  return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
84 
85 try:
86  _object = object
87  _newclass = 1
88 except AttributeError:
89  class _object:
90  pass
91  _newclass = 0
92 
93 
94 
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)
101  else:
102  raise AttributeError("You cannot add attributes to %s" % self)
103  return set_attr
104 
105 
106 try:
107  import weakref
108  weakref_proxy = weakref.proxy
109 except Exception:
110  weakref_proxy = lambda x: x
111 
112 
113 class IMP_MISC_SwigPyIterator(object):
114  """Proxy of C++ swig::IMP_MISC_SwigPyIterator class."""
115 
116  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
117 
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
123 
124  def value(self):
125  """value(IMP_MISC_SwigPyIterator self) -> PyObject *"""
126  return _IMP_misc.IMP_MISC_SwigPyIterator_value(self)
127 
128 
129  def incr(self, n=1):
130  """
131  incr(IMP_MISC_SwigPyIterator self, size_t n=1) -> IMP_MISC_SwigPyIterator
132  incr(IMP_MISC_SwigPyIterator self) -> IMP_MISC_SwigPyIterator
133  """
134  return _IMP_misc.IMP_MISC_SwigPyIterator_incr(self, n)
135 
136 
137  def decr(self, n=1):
138  """
139  decr(IMP_MISC_SwigPyIterator self, size_t n=1) -> IMP_MISC_SwigPyIterator
140  decr(IMP_MISC_SwigPyIterator self) -> IMP_MISC_SwigPyIterator
141  """
142  return _IMP_misc.IMP_MISC_SwigPyIterator_decr(self, n)
143 
144 
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)
148 
149 
150  def equal(self, x):
151  """equal(IMP_MISC_SwigPyIterator self, IMP_MISC_SwigPyIterator x) -> bool"""
152  return _IMP_misc.IMP_MISC_SwigPyIterator_equal(self, x)
153 
154 
155  def copy(self):
156  """copy(IMP_MISC_SwigPyIterator self) -> IMP_MISC_SwigPyIterator"""
157  return _IMP_misc.IMP_MISC_SwigPyIterator_copy(self)
158 
159 
160  def next(self):
161  """next(IMP_MISC_SwigPyIterator self) -> PyObject *"""
162  return _IMP_misc.IMP_MISC_SwigPyIterator_next(self)
163 
164 
165  def __next__(self):
166  """__next__(IMP_MISC_SwigPyIterator self) -> PyObject *"""
167  return _IMP_misc.IMP_MISC_SwigPyIterator___next__(self)
168 
169 
170  def previous(self):
171  """previous(IMP_MISC_SwigPyIterator self) -> PyObject *"""
172  return _IMP_misc.IMP_MISC_SwigPyIterator_previous(self)
173 
174 
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)
178 
179 
180  def __eq__(self, x):
181  """__eq__(IMP_MISC_SwigPyIterator self, IMP_MISC_SwigPyIterator x) -> bool"""
182  return _IMP_misc.IMP_MISC_SwigPyIterator___eq__(self, x)
183 
184 
185  def __ne__(self, x):
186  """__ne__(IMP_MISC_SwigPyIterator self, IMP_MISC_SwigPyIterator x) -> bool"""
187  return _IMP_misc.IMP_MISC_SwigPyIterator___ne__(self, x)
188 
189 
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)
193 
194 
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)
198 
199 
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)
203 
204 
205  def __sub__(self, *args):
206  """
207  __sub__(IMP_MISC_SwigPyIterator self, ptrdiff_t n) -> IMP_MISC_SwigPyIterator
208  __sub__(IMP_MISC_SwigPyIterator self, IMP_MISC_SwigPyIterator x) -> ptrdiff_t
209  """
210  return _IMP_misc.IMP_MISC_SwigPyIterator___sub__(self, *args)
211 
212  def __iter__(self):
213  return self
214 IMP_MISC_SwigPyIterator_swigregister = _IMP_misc.IMP_MISC_SwigPyIterator_swigregister
215 IMP_MISC_SwigPyIterator_swigregister(IMP_MISC_SwigPyIterator)
216 
217 
218 _value_types=[]
219 _object_types=[]
220 _raii_types=[]
221 _plural_types=[]
222 
223 
224 _IMP_misc.IMP_DEBUG_swigconstant(_IMP_misc)
225 IMP_DEBUG = _IMP_misc.IMP_DEBUG
226 
227 _IMP_misc.IMP_RELEASE_swigconstant(_IMP_misc)
228 IMP_RELEASE = _IMP_misc.IMP_RELEASE
229 
230 _IMP_misc.IMP_SILENT_swigconstant(_IMP_misc)
231 IMP_SILENT = _IMP_misc.IMP_SILENT
232 
233 _IMP_misc.IMP_PROGRESS_swigconstant(_IMP_misc)
234 IMP_PROGRESS = _IMP_misc.IMP_PROGRESS
235 
236 _IMP_misc.IMP_TERSE_swigconstant(_IMP_misc)
237 IMP_TERSE = _IMP_misc.IMP_TERSE
238 
239 _IMP_misc.IMP_VERBOSE_swigconstant(_IMP_misc)
240 IMP_VERBOSE = _IMP_misc.IMP_VERBOSE
241 
242 _IMP_misc.IMP_MEMORY_swigconstant(_IMP_misc)
243 IMP_MEMORY = _IMP_misc.IMP_MEMORY
244 
245 _IMP_misc.IMP_NONE_swigconstant(_IMP_misc)
246 IMP_NONE = _IMP_misc.IMP_NONE
247 
248 _IMP_misc.IMP_USAGE_swigconstant(_IMP_misc)
249 IMP_USAGE = _IMP_misc.IMP_USAGE
250 
251 _IMP_misc.IMP_INTERNAL_swigconstant(_IMP_misc)
252 IMP_INTERNAL = _IMP_misc.IMP_INTERNAL
253 
254 _IMP_misc.IMP_KERNEL_HAS_LOG4CXX_swigconstant(_IMP_misc)
255 IMP_KERNEL_HAS_LOG4CXX = _IMP_misc.IMP_KERNEL_HAS_LOG4CXX
256 
257 _IMP_misc.IMP_COMPILER_HAS_AUTO_swigconstant(_IMP_misc)
258 IMP_COMPILER_HAS_AUTO = _IMP_misc.IMP_COMPILER_HAS_AUTO
259 
260 _IMP_misc.IMP_COMPILER_HAS_DEBUG_VECTOR_swigconstant(_IMP_misc)
261 IMP_COMPILER_HAS_DEBUG_VECTOR = _IMP_misc.IMP_COMPILER_HAS_DEBUG_VECTOR
262 
263 _IMP_misc.IMP_COMPILER_HAS_UNIQUE_PTR_swigconstant(_IMP_misc)
264 IMP_COMPILER_HAS_UNIQUE_PTR = _IMP_misc.IMP_COMPILER_HAS_UNIQUE_PTR
265 
266 _IMP_misc.IMP_KERNEL_HAS_BOOST_RANDOM_swigconstant(_IMP_misc)
267 IMP_KERNEL_HAS_BOOST_RANDOM = _IMP_misc.IMP_KERNEL_HAS_BOOST_RANDOM
268 
269 _IMP_misc.IMP_KERNEL_HAS_GPERFTOOLS_swigconstant(_IMP_misc)
270 IMP_KERNEL_HAS_GPERFTOOLS = _IMP_misc.IMP_KERNEL_HAS_GPERFTOOLS
271 
272 _IMP_misc.IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER_swigconstant(_IMP_misc)
273 IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER = _IMP_misc.IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER
274 
275 _IMP_misc.IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER_swigconstant(_IMP_misc)
276 IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER = _IMP_misc.IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER
277 
278 _IMP_misc.IMPKERNEL_SHOW_WARNINGS_swigconstant(_IMP_misc)
279 IMPKERNEL_SHOW_WARNINGS = _IMP_misc.IMPKERNEL_SHOW_WARNINGS
280 
281 import sys
282 class _DirectorObjects(object):
283  """@internal Simple class to keep references to director objects
284  to prevent premature deletion."""
285  def __init__(self):
286  self._objects = []
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)
292  def cleanup(self):
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]
299 # Do in two steps so the references are kept until the end of the
300 # function (deleting references may trigger a fresh call to this method)
301  self._objects = objs
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()
306 
307 class _ostream(object):
308  """Proxy of C++ std::ostream class."""
309 
310  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
311 
312  def __init__(self, *args, **kwargs):
313  raise AttributeError("No constructor defined")
314  __repr__ = _swig_repr
315 
316  def write(self, osa_buf):
317  """write(_ostream self, char const * osa_buf)"""
318  return _IMP_misc._ostream_write(self, osa_buf)
319 
320 _ostream_swigregister = _IMP_misc._ostream_swigregister
321 _ostream_swigregister(_ostream)
322 
323 
324 _IMP_misc.IMP_COMPILER_HAS_OVERRIDE_swigconstant(_IMP_misc)
325 IMP_COMPILER_HAS_OVERRIDE = _IMP_misc.IMP_COMPILER_HAS_OVERRIDE
326 
327 _IMP_misc.IMP_COMPILER_HAS_FINAL_swigconstant(_IMP_misc)
328 IMP_COMPILER_HAS_FINAL = _IMP_misc.IMP_COMPILER_HAS_FINAL
329 
330 _IMP_misc.IMP_HAS_NOEXCEPT_swigconstant(_IMP_misc)
331 IMP_HAS_NOEXCEPT = _IMP_misc.IMP_HAS_NOEXCEPT
332 import IMP
333 
334 _IMP_misc.IMP_CGAL_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_misc)
335 IMP_CGAL_HAS_BOOST_FILESYSTEM = _IMP_misc.IMP_CGAL_HAS_BOOST_FILESYSTEM
336 
337 _IMP_misc.IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_misc)
338 IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS = _IMP_misc.IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS
339 
340 _IMP_misc.IMP_CGAL_HAS_BOOST_RANDOM_swigconstant(_IMP_misc)
341 IMP_CGAL_HAS_BOOST_RANDOM = _IMP_misc.IMP_CGAL_HAS_BOOST_RANDOM
342 
343 _IMP_misc.IMP_CGAL_HAS_BOOST_SYSTEM_swigconstant(_IMP_misc)
344 IMP_CGAL_HAS_BOOST_SYSTEM = _IMP_misc.IMP_CGAL_HAS_BOOST_SYSTEM
345 
346 _IMP_misc.IMPCGAL_SHOW_WARNINGS_swigconstant(_IMP_misc)
347 IMPCGAL_SHOW_WARNINGS = _IMP_misc.IMPCGAL_SHOW_WARNINGS
348 import IMP.cgal
349 
350 _IMP_misc.IMP_ALGEBRA_HAS_IMP_CGAL_swigconstant(_IMP_misc)
351 IMP_ALGEBRA_HAS_IMP_CGAL = _IMP_misc.IMP_ALGEBRA_HAS_IMP_CGAL
352 
353 _IMP_misc.IMP_ALGEBRA_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_misc)
354 IMP_ALGEBRA_HAS_BOOST_FILESYSTEM = _IMP_misc.IMP_ALGEBRA_HAS_BOOST_FILESYSTEM
355 
356 _IMP_misc.IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_misc)
357 IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS = _IMP_misc.IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS
358 
359 _IMP_misc.IMP_ALGEBRA_HAS_BOOST_RANDOM_swigconstant(_IMP_misc)
360 IMP_ALGEBRA_HAS_BOOST_RANDOM = _IMP_misc.IMP_ALGEBRA_HAS_BOOST_RANDOM
361 
362 _IMP_misc.IMP_ALGEBRA_HAS_BOOST_SYSTEM_swigconstant(_IMP_misc)
363 IMP_ALGEBRA_HAS_BOOST_SYSTEM = _IMP_misc.IMP_ALGEBRA_HAS_BOOST_SYSTEM
364 
365 _IMP_misc.IMP_ALGEBRA_HAS_CGAL_swigconstant(_IMP_misc)
366 IMP_ALGEBRA_HAS_CGAL = _IMP_misc.IMP_ALGEBRA_HAS_CGAL
367 
368 _IMP_misc.IMP_ALGEBRA_HAS_ANN_swigconstant(_IMP_misc)
369 IMP_ALGEBRA_HAS_ANN = _IMP_misc.IMP_ALGEBRA_HAS_ANN
370 
371 _IMP_misc.IMPALGEBRA_SHOW_WARNINGS_swigconstant(_IMP_misc)
372 IMPALGEBRA_SHOW_WARNINGS = _IMP_misc.IMPALGEBRA_SHOW_WARNINGS
373 import IMP.algebra
374 
375 _IMP_misc.IMP_DISPLAY_HAS_IMP_CGAL_swigconstant(_IMP_misc)
376 IMP_DISPLAY_HAS_IMP_CGAL = _IMP_misc.IMP_DISPLAY_HAS_IMP_CGAL
377 
378 _IMP_misc.IMP_DISPLAY_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_misc)
379 IMP_DISPLAY_HAS_BOOST_FILESYSTEM = _IMP_misc.IMP_DISPLAY_HAS_BOOST_FILESYSTEM
380 
381 _IMP_misc.IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_misc)
382 IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS = _IMP_misc.IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS
383 
384 _IMP_misc.IMP_DISPLAY_HAS_BOOST_RANDOM_swigconstant(_IMP_misc)
385 IMP_DISPLAY_HAS_BOOST_RANDOM = _IMP_misc.IMP_DISPLAY_HAS_BOOST_RANDOM
386 
387 _IMP_misc.IMP_DISPLAY_HAS_BOOST_SYSTEM_swigconstant(_IMP_misc)
388 IMP_DISPLAY_HAS_BOOST_SYSTEM = _IMP_misc.IMP_DISPLAY_HAS_BOOST_SYSTEM
389 
390 _IMP_misc.IMP_DISPLAY_HAS_CGAL_swigconstant(_IMP_misc)
391 IMP_DISPLAY_HAS_CGAL = _IMP_misc.IMP_DISPLAY_HAS_CGAL
392 
393 _IMP_misc.IMPDISPLAY_SHOW_WARNINGS_swigconstant(_IMP_misc)
394 IMPDISPLAY_SHOW_WARNINGS = _IMP_misc.IMPDISPLAY_SHOW_WARNINGS
395 import IMP.display
396 
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
399 
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
402 
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
405 
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
408 
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
411 
412 _IMP_misc.IMP_SCORE_FUNCTOR_HAS_CGAL_swigconstant(_IMP_misc)
413 IMP_SCORE_FUNCTOR_HAS_CGAL = _IMP_misc.IMP_SCORE_FUNCTOR_HAS_CGAL
414 
415 _IMP_misc.IMP_SCORE_FUNCTOR_HAS_HDF5_swigconstant(_IMP_misc)
416 IMP_SCORE_FUNCTOR_HAS_HDF5 = _IMP_misc.IMP_SCORE_FUNCTOR_HAS_HDF5
417 
418 _IMP_misc.IMPSCOREFUNCTOR_SHOW_WARNINGS_swigconstant(_IMP_misc)
419 IMPSCOREFUNCTOR_SHOW_WARNINGS = _IMP_misc.IMPSCOREFUNCTOR_SHOW_WARNINGS
420 import IMP.score_functor
421 
422 _IMP_misc.IMP_CORE_HAS_IMP_CGAL_swigconstant(_IMP_misc)
423 IMP_CORE_HAS_IMP_CGAL = _IMP_misc.IMP_CORE_HAS_IMP_CGAL
424 
425 _IMP_misc.IMP_CORE_HAS_IMP_KERNEL_swigconstant(_IMP_misc)
426 IMP_CORE_HAS_IMP_KERNEL = _IMP_misc.IMP_CORE_HAS_IMP_KERNEL
427 
428 _IMP_misc.IMP_CORE_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_misc)
429 IMP_CORE_HAS_BOOST_FILESYSTEM = _IMP_misc.IMP_CORE_HAS_BOOST_FILESYSTEM
430 
431 _IMP_misc.IMP_CORE_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_misc)
432 IMP_CORE_HAS_BOOST_PROGRAMOPTIONS = _IMP_misc.IMP_CORE_HAS_BOOST_PROGRAMOPTIONS
433 
434 _IMP_misc.IMP_CORE_HAS_BOOST_RANDOM_swigconstant(_IMP_misc)
435 IMP_CORE_HAS_BOOST_RANDOM = _IMP_misc.IMP_CORE_HAS_BOOST_RANDOM
436 
437 _IMP_misc.IMP_CORE_HAS_BOOST_SYSTEM_swigconstant(_IMP_misc)
438 IMP_CORE_HAS_BOOST_SYSTEM = _IMP_misc.IMP_CORE_HAS_BOOST_SYSTEM
439 
440 _IMP_misc.IMP_CORE_HAS_CGAL_swigconstant(_IMP_misc)
441 IMP_CORE_HAS_CGAL = _IMP_misc.IMP_CORE_HAS_CGAL
442 
443 _IMP_misc.IMP_CORE_HAS_HDF5_swigconstant(_IMP_misc)
444 IMP_CORE_HAS_HDF5 = _IMP_misc.IMP_CORE_HAS_HDF5
445 
446 _IMP_misc.IMPCORE_SHOW_WARNINGS_swigconstant(_IMP_misc)
447 IMPCORE_SHOW_WARNINGS = _IMP_misc.IMPCORE_SHOW_WARNINGS
448 import IMP.core
449 
450 _IMP_misc.IMP_CONTAINER_HAS_IMP_ALGEBRA_swigconstant(_IMP_misc)
451 IMP_CONTAINER_HAS_IMP_ALGEBRA = _IMP_misc.IMP_CONTAINER_HAS_IMP_ALGEBRA
452 
453 _IMP_misc.IMP_CONTAINER_HAS_IMP_CGAL_swigconstant(_IMP_misc)
454 IMP_CONTAINER_HAS_IMP_CGAL = _IMP_misc.IMP_CONTAINER_HAS_IMP_CGAL
455 
456 _IMP_misc.IMP_CONTAINER_HAS_IMP_DISPLAY_swigconstant(_IMP_misc)
457 IMP_CONTAINER_HAS_IMP_DISPLAY = _IMP_misc.IMP_CONTAINER_HAS_IMP_DISPLAY
458 
459 _IMP_misc.IMP_CONTAINER_HAS_IMP_KERNEL_swigconstant(_IMP_misc)
460 IMP_CONTAINER_HAS_IMP_KERNEL = _IMP_misc.IMP_CONTAINER_HAS_IMP_KERNEL
461 
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
464 
465 _IMP_misc.IMP_CONTAINER_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_misc)
466 IMP_CONTAINER_HAS_BOOST_FILESYSTEM = _IMP_misc.IMP_CONTAINER_HAS_BOOST_FILESYSTEM
467 
468 _IMP_misc.IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_misc)
469 IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS = _IMP_misc.IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS
470 
471 _IMP_misc.IMP_CONTAINER_HAS_BOOST_RANDOM_swigconstant(_IMP_misc)
472 IMP_CONTAINER_HAS_BOOST_RANDOM = _IMP_misc.IMP_CONTAINER_HAS_BOOST_RANDOM
473 
474 _IMP_misc.IMP_CONTAINER_HAS_BOOST_SYSTEM_swigconstant(_IMP_misc)
475 IMP_CONTAINER_HAS_BOOST_SYSTEM = _IMP_misc.IMP_CONTAINER_HAS_BOOST_SYSTEM
476 
477 _IMP_misc.IMP_CONTAINER_HAS_CGAL_swigconstant(_IMP_misc)
478 IMP_CONTAINER_HAS_CGAL = _IMP_misc.IMP_CONTAINER_HAS_CGAL
479 
480 _IMP_misc.IMP_CONTAINER_HAS_HDF5_swigconstant(_IMP_misc)
481 IMP_CONTAINER_HAS_HDF5 = _IMP_misc.IMP_CONTAINER_HAS_HDF5
482 
483 _IMP_misc.IMPCONTAINER_SHOW_WARNINGS_swigconstant(_IMP_misc)
484 IMPCONTAINER_SHOW_WARNINGS = _IMP_misc.IMPCONTAINER_SHOW_WARNINGS
485 import IMP.container
486 
487 _IMP_misc.IMP_ATOM_HAS_IMP_CGAL_swigconstant(_IMP_misc)
488 IMP_ATOM_HAS_IMP_CGAL = _IMP_misc.IMP_ATOM_HAS_IMP_CGAL
489 
490 _IMP_misc.IMP_ATOM_HAS_IMP_KERNEL_swigconstant(_IMP_misc)
491 IMP_ATOM_HAS_IMP_KERNEL = _IMP_misc.IMP_ATOM_HAS_IMP_KERNEL
492 
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
495 
496 _IMP_misc.IMP_ATOM_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_misc)
497 IMP_ATOM_HAS_BOOST_PROGRAMOPTIONS = _IMP_misc.IMP_ATOM_HAS_BOOST_PROGRAMOPTIONS
498 
499 _IMP_misc.IMP_ATOM_HAS_BOOST_RANDOM_swigconstant(_IMP_misc)
500 IMP_ATOM_HAS_BOOST_RANDOM = _IMP_misc.IMP_ATOM_HAS_BOOST_RANDOM
501 
502 _IMP_misc.IMP_ATOM_HAS_BOOST_REGEX_swigconstant(_IMP_misc)
503 IMP_ATOM_HAS_BOOST_REGEX = _IMP_misc.IMP_ATOM_HAS_BOOST_REGEX
504 
505 _IMP_misc.IMP_ATOM_HAS_BOOST_SYSTEM_swigconstant(_IMP_misc)
506 IMP_ATOM_HAS_BOOST_SYSTEM = _IMP_misc.IMP_ATOM_HAS_BOOST_SYSTEM
507 
508 _IMP_misc.IMP_ATOM_HAS_CGAL_swigconstant(_IMP_misc)
509 IMP_ATOM_HAS_CGAL = _IMP_misc.IMP_ATOM_HAS_CGAL
510 
511 _IMP_misc.IMP_ATOM_HAS_HDF5_swigconstant(_IMP_misc)
512 IMP_ATOM_HAS_HDF5 = _IMP_misc.IMP_ATOM_HAS_HDF5
513 
514 _IMP_misc.IMPATOM_SHOW_WARNINGS_swigconstant(_IMP_misc)
515 IMPATOM_SHOW_WARNINGS = _IMP_misc.IMPATOM_SHOW_WARNINGS
516 
517 _IMP_misc.IMP_ATOM_TYPE_INDEX_swigconstant(_IMP_misc)
518 IMP_ATOM_TYPE_INDEX = _IMP_misc.IMP_ATOM_TYPE_INDEX
519 
520 _IMP_misc.IMP_RESIDUE_TYPE_INDEX_swigconstant(_IMP_misc)
521 IMP_RESIDUE_TYPE_INDEX = _IMP_misc.IMP_RESIDUE_TYPE_INDEX
522 
523 _IMP_misc.IMP_HIERARCHY_TYPE_INDEX_swigconstant(_IMP_misc)
524 IMP_HIERARCHY_TYPE_INDEX = _IMP_misc.IMP_HIERARCHY_TYPE_INDEX
525 import IMP.atom
526 
527 _IMP_misc.IMP_MISC_HAS_IMP_ALGEBRA_swigconstant(_IMP_misc)
528 IMP_MISC_HAS_IMP_ALGEBRA = _IMP_misc.IMP_MISC_HAS_IMP_ALGEBRA
529 
530 _IMP_misc.IMP_MISC_HAS_IMP_CGAL_swigconstant(_IMP_misc)
531 IMP_MISC_HAS_IMP_CGAL = _IMP_misc.IMP_MISC_HAS_IMP_CGAL
532 
533 _IMP_misc.IMP_MISC_HAS_IMP_CONTAINER_swigconstant(_IMP_misc)
534 IMP_MISC_HAS_IMP_CONTAINER = _IMP_misc.IMP_MISC_HAS_IMP_CONTAINER
535 
536 _IMP_misc.IMP_MISC_HAS_IMP_DISPLAY_swigconstant(_IMP_misc)
537 IMP_MISC_HAS_IMP_DISPLAY = _IMP_misc.IMP_MISC_HAS_IMP_DISPLAY
538 
539 _IMP_misc.IMP_MISC_HAS_IMP_KERNEL_swigconstant(_IMP_misc)
540 IMP_MISC_HAS_IMP_KERNEL = _IMP_misc.IMP_MISC_HAS_IMP_KERNEL
541 
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
544 
545 _IMP_misc.IMP_MISC_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_misc)
546 IMP_MISC_HAS_BOOST_FILESYSTEM = _IMP_misc.IMP_MISC_HAS_BOOST_FILESYSTEM
547 
548 _IMP_misc.IMP_MISC_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_misc)
549 IMP_MISC_HAS_BOOST_PROGRAMOPTIONS = _IMP_misc.IMP_MISC_HAS_BOOST_PROGRAMOPTIONS
550 
551 _IMP_misc.IMP_MISC_HAS_BOOST_RANDOM_swigconstant(_IMP_misc)
552 IMP_MISC_HAS_BOOST_RANDOM = _IMP_misc.IMP_MISC_HAS_BOOST_RANDOM
553 
554 _IMP_misc.IMP_MISC_HAS_BOOST_REGEX_swigconstant(_IMP_misc)
555 IMP_MISC_HAS_BOOST_REGEX = _IMP_misc.IMP_MISC_HAS_BOOST_REGEX
556 
557 _IMP_misc.IMP_MISC_HAS_BOOST_SYSTEM_swigconstant(_IMP_misc)
558 IMP_MISC_HAS_BOOST_SYSTEM = _IMP_misc.IMP_MISC_HAS_BOOST_SYSTEM
559 
560 _IMP_misc.IMP_MISC_HAS_CGAL_swigconstant(_IMP_misc)
561 IMP_MISC_HAS_CGAL = _IMP_misc.IMP_MISC_HAS_CGAL
562 
563 _IMP_misc.IMP_MISC_HAS_HDF5_swigconstant(_IMP_misc)
564 IMP_MISC_HAS_HDF5 = _IMP_misc.IMP_MISC_HAS_HDF5
565 
566 _IMP_misc.IMPMISC_SHOW_WARNINGS_swigconstant(_IMP_misc)
567 IMPMISC_SHOW_WARNINGS = _IMP_misc.IMPMISC_SHOW_WARNINGS
568 
569 _object_types.append("WormLikeChain")
570 
571 
572 def _object_cast_to_WormLikeChain(o):
573  """_object_cast_to_WormLikeChain(Object o) -> WormLikeChain"""
574  return _IMP_misc._object_cast_to_WormLikeChain(o)
575 
576 _object_types.append("StateAdaptor")
577 
578 
579 def _object_cast_to_StateAdaptor(o):
580  """_object_cast_to_StateAdaptor(Object o) -> StateAdaptor"""
581  return _IMP_misc._object_cast_to_StateAdaptor(o)
582 
583 _object_types.append("CommonEndpointPairFilter")
584 
585 
586 def _object_cast_to_CommonEndpointPairFilter(o):
587  """_object_cast_to_CommonEndpointPairFilter(Object o) -> CommonEndpointPairFilter"""
588  return _IMP_misc._object_cast_to_CommonEndpointPairFilter(o)
589 
590 _object_types.append("LogPairScore")
591 
592 
593 def _object_cast_to_LogPairScore(o):
594  """_object_cast_to_LogPairScore(Object o) -> LogPairScore"""
595  return _IMP_misc._object_cast_to_LogPairScore(o)
596 
597 _object_types.append("LowestRefinedPairScore")
598 
599 
600 def _object_cast_to_LowestRefinedPairScore(o):
601  """_object_cast_to_LowestRefinedPairScore(Object o) -> LowestRefinedPairScore"""
602  return _IMP_misc._object_cast_to_LowestRefinedPairScore(o)
603 
604 _object_types.append("SoftCylinderPairScore")
605 
606 
607 def _object_cast_to_SoftCylinderPairScore(o):
608  """_object_cast_to_SoftCylinderPairScore(Object o) -> SoftCylinderPairScore"""
609  return _IMP_misc._object_cast_to_SoftCylinderPairScore(o)
610 
611 _object_types.append("DecayPairContainerOptimizerState")
612 
613 
614 def _object_cast_to_DecayPairContainerOptimizerState(o):
615  """_object_cast_to_DecayPairContainerOptimizerState(Object o) -> DecayPairContainerOptimizerState"""
616  return _IMP_misc._object_cast_to_DecayPairContainerOptimizerState(o)
617 
618 def CustomXYZRs(l=[]):
619  return [CustomXYZR(x) for x in l]
620 _plural_types.append("CustomXYZRs")
621 
622 
623 _value_types.append("CustomXYZR")
624 
625 class WormLikeChain(IMP.UnaryFunction):
626  """Proxy of C++ IMP::misc::WormLikeChain class."""
627 
628  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
629 
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)
633  try:
634  self.this.append(this)
635  except Exception:
636  self.this = this
637 
638  def get_version_info(self):
639  """get_version_info(WormLikeChain self) -> VersionInfo"""
640  return _IMP_misc.WormLikeChain_get_version_info(self)
641 
642 
643  def do_show(self, out):
644  """do_show(WormLikeChain self, _ostream out)"""
645  return _IMP_misc.WormLikeChain_do_show(self, out)
646 
647 
648  def __str__(self):
649  """__str__(WormLikeChain self) -> std::string"""
650  return _IMP_misc.WormLikeChain___str__(self)
651 
652 
653  def __repr__(self):
654  """__repr__(WormLikeChain self) -> std::string"""
655  return _IMP_misc.WormLikeChain___repr__(self)
656 
657 
658  @staticmethod
659  def get_from(o):
660  return _object_cast_to_WormLikeChain(o)
661 
662 WormLikeChain_swigregister = _IMP_misc.WormLikeChain_swigregister
663 WormLikeChain_swigregister(WormLikeChain)
664 
665 class LowestRefinedPairScore(IMP.PairScore):
666  """Proxy of C++ IMP::misc::LowestRefinedPairScore class."""
667 
668  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
669 
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)
673  try:
674  self.this.append(this)
675  except Exception:
676  self.this = this
677 
678  def do_get_inputs(self, m, pis):
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)
681 
682 
683  def get_version_info(self):
684  """get_version_info(LowestRefinedPairScore self) -> VersionInfo"""
685  return _IMP_misc.LowestRefinedPairScore_get_version_info(self)
686 
687 
688  def __str__(self):
689  """__str__(LowestRefinedPairScore self) -> std::string"""
690  return _IMP_misc.LowestRefinedPairScore___str__(self)
691 
692 
693  def __repr__(self):
694  """__repr__(LowestRefinedPairScore self) -> std::string"""
695  return _IMP_misc.LowestRefinedPairScore___repr__(self)
696 
697 
698  @staticmethod
699  def get_from(o):
700  return _object_cast_to_LowestRefinedPairScore(o)
701 
702 LowestRefinedPairScore_swigregister = _IMP_misc.LowestRefinedPairScore_swigregister
703 LowestRefinedPairScore_swigregister(LowestRefinedPairScore)
704 
705 class LogPairScore(IMP.PairScore):
706  """Proxy of C++ IMP::misc::LogPairScore class."""
707 
708  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
709 
710  def __init__(self):
711  """__init__(IMP::misc::LogPairScore self) -> LogPairScore"""
712  this = _IMP_misc.new_LogPairScore()
713  try:
714  self.this.append(this)
715  except Exception:
716  self.this = this
717 
718  def do_get_inputs(self, arg2, arg3):
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)
721 
722 
723  def get_version_info(self):
724  """get_version_info(LogPairScore self) -> VersionInfo"""
725  return _IMP_misc.LogPairScore_get_version_info(self)
726 
727 
728  def get_particle_pairs(self):
729  """get_particle_pairs(LogPairScore self) -> IMP::ParticlePairsTemp"""
730  return _IMP_misc.LogPairScore_get_particle_pairs(self)
731 
732 
733  def clear(self):
734  """clear(LogPairScore self)"""
735  return _IMP_misc.LogPairScore_clear(self)
736 
737 
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)
741 
742 
743  def __str__(self):
744  """__str__(LogPairScore self) -> std::string"""
745  return _IMP_misc.LogPairScore___str__(self)
746 
747 
748  def __repr__(self):
749  """__repr__(LogPairScore self) -> std::string"""
750  return _IMP_misc.LogPairScore___repr__(self)
751 
752 
753  @staticmethod
754  def get_from(o):
755  return _object_cast_to_LogPairScore(o)
756 
757 LogPairScore_swigregister = _IMP_misc.LogPairScore_swigregister
758 LogPairScore_swigregister(LogPairScore)
759 
760 class StateAdaptor(IMP.ScoreState):
761  """Proxy of C++ IMP::misc::StateAdaptor class."""
762 
763  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
764 
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)
768  try:
769  self.this.append(this)
770  except Exception:
771  self.this = this
772 
773  def do_before_evaluate(self):
774  """do_before_evaluate(StateAdaptor self)"""
775  return _IMP_misc.StateAdaptor_do_before_evaluate(self)
776 
777 
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)
781 
782 
783  def do_get_inputs(self):
784  """do_get_inputs(StateAdaptor self) -> IMP::ModelObjectsTemp"""
785  return _IMP_misc.StateAdaptor_do_get_inputs(self)
786 
787 
788  def do_get_outputs(self):
789  """do_get_outputs(StateAdaptor self) -> IMP::ModelObjectsTemp"""
790  return _IMP_misc.StateAdaptor_do_get_outputs(self)
791 
792 
793  def get_version_info(self):
794  """get_version_info(StateAdaptor self) -> VersionInfo"""
795  return _IMP_misc.StateAdaptor_get_version_info(self)
796 
797 
798  def __str__(self):
799  """__str__(StateAdaptor self) -> std::string"""
800  return _IMP_misc.StateAdaptor___str__(self)
801 
802 
803  def __repr__(self):
804  """__repr__(StateAdaptor self) -> std::string"""
805  return _IMP_misc.StateAdaptor___repr__(self)
806 
807 
808  @staticmethod
809  def get_from(o):
810  return _object_cast_to_StateAdaptor(o)
811 
812 StateAdaptor_swigregister = _IMP_misc.StateAdaptor_swigregister
813 StateAdaptor_swigregister(StateAdaptor)
814 
815 class CommonEndpointPairFilter(IMP.PairPredicate):
816  """Proxy of C++ IMP::misc::CommonEndpointPairFilter class."""
817 
818  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
819 
820  def __init__(self):
821  """__init__(IMP::misc::CommonEndpointPairFilter self) -> CommonEndpointPairFilter"""
822  this = _IMP_misc.new_CommonEndpointPairFilter()
823  try:
824  self.this.append(this)
825  except Exception:
826  self.this = this
827 
828  def do_get_inputs(self, m, pis):
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)
831 
832 
833  def get_value(self, *args):
834  """
835  get_value(CommonEndpointPairFilter self, IMP::ParticlePair const & a) -> int
836  get_value(CommonEndpointPairFilter self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
837  """
838  return _IMP_misc.CommonEndpointPairFilter_get_value(self, *args)
839 
840 
841  def get_value_index(self, *args):
842  """
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
845  """
846  return _IMP_misc.CommonEndpointPairFilter_get_value_index(self, *args)
847 
848 
849  def get_version_info(self):
850  """get_version_info(CommonEndpointPairFilter self) -> VersionInfo"""
851  return _IMP_misc.CommonEndpointPairFilter_get_version_info(self)
852 
853 
854  def __str__(self):
855  """__str__(CommonEndpointPairFilter self) -> std::string"""
856  return _IMP_misc.CommonEndpointPairFilter___str__(self)
857 
858 
859  def __repr__(self):
860  """__repr__(CommonEndpointPairFilter self) -> std::string"""
861  return _IMP_misc.CommonEndpointPairFilter___repr__(self)
862 
863 
864  @staticmethod
865  def get_from(o):
866  return _object_cast_to_CommonEndpointPairFilter(o)
867 
868 CommonEndpointPairFilter_swigregister = _IMP_misc.CommonEndpointPairFilter_swigregister
869 CommonEndpointPairFilter_swigregister(CommonEndpointPairFilter)
870 
871 class CustomXYZR(IMP.core.XYZ):
872  """Proxy of C++ IMP::misc::CustomXYZR class."""
873 
874  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
875 
876  def get_decorator_traits(self):
877  """get_decorator_traits(CustomXYZR self) -> FloatKey"""
878  return _IMP_misc.CustomXYZR_get_decorator_traits(self)
879 
880 
881  def get_default_decorator_traits():
882  """get_default_decorator_traits() -> FloatKey"""
883  return _IMP_misc.CustomXYZR_get_default_decorator_traits()
884 
885  get_default_decorator_traits = staticmethod(get_default_decorator_traits)
886 
887  def __init__(self, *args):
888  """
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
894  """
895  this = _IMP_misc.new_CustomXYZR(*args)
896  try:
897  self.this.append(this)
898  except Exception:
899  self.this = this
900 
901  def show(self, *args):
902  """
903  show(CustomXYZR self, _ostream out)
904  show(CustomXYZR self)
905  """
906  return _IMP_misc.CustomXYZR_show(self, *args)
907 
908 
909  def setup_particle(*args):
910  """
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
923  """
924  return _IMP_misc.CustomXYZR_setup_particle(*args)
925 
926  setup_particle = staticmethod(setup_particle)
927 
928  def get_is_setup(*args):
929  """
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
934  """
935  return _IMP_misc.CustomXYZR_get_is_setup(*args)
936 
937  get_is_setup = staticmethod(get_is_setup)
938 
939  def get_radius(self):
940  """get_radius(CustomXYZR self) -> IMP::Float"""
941  return _IMP_misc.CustomXYZR_get_radius(self)
942 
943 
944  def set_radius(self, t):
945  """set_radius(CustomXYZR self, IMP::Float t)"""
946  return _IMP_misc.CustomXYZR_set_radius(self, t)
947 
948 
949  def get_sphere(self):
950  """get_sphere(CustomXYZR self) -> Sphere3D"""
951  return _IMP_misc.CustomXYZR_get_sphere(self)
952 
953 
954  def set_sphere(self, s):
955  """set_sphere(CustomXYZR self, Sphere3D s)"""
956  return _IMP_misc.CustomXYZR_set_sphere(self, s)
957 
958 
959  def get_default_radius_key():
960  """get_default_radius_key() -> FloatKey"""
961  return _IMP_misc.CustomXYZR_get_default_radius_key()
962 
963  get_default_radius_key = staticmethod(get_default_radius_key)
964 
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)
968 
969 
970  def get_traits(self):
971  """get_traits(CustomXYZR self) -> FloatKey"""
972  return _IMP_misc.CustomXYZR_get_traits(self)
973 
974 
975  def add_attribute(self, *args):
976  """
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)
983  """
984  return _IMP_misc.CustomXYZR_add_attribute(self, *args)
985 
986 
987  def get_value(self, *args):
988  """
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
994  """
995  return _IMP_misc.CustomXYZR_get_value(self, *args)
996 
997 
998  def set_value(self, *args):
999  """
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)
1005  """
1006  return _IMP_misc.CustomXYZR_set_value(self, *args)
1007 
1008 
1009  def remove_attribute(self, *args):
1010  """
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)
1016  """
1017  return _IMP_misc.CustomXYZR_remove_attribute(self, *args)
1018 
1019 
1020  def has_attribute(self, *args):
1021  """
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
1027  """
1028  return _IMP_misc.CustomXYZR_has_attribute(self, *args)
1029 
1030 
1031  def get_derivative(self, a0):
1032  """get_derivative(CustomXYZR self, FloatKey a0) -> double"""
1033  return _IMP_misc.CustomXYZR_get_derivative(self, a0)
1034 
1035 
1036  def get_name(self):
1037  """get_name(CustomXYZR self) -> std::string"""
1038  return _IMP_misc.CustomXYZR_get_name(self)
1039 
1040 
1041  def clear_caches(self):
1042  """clear_caches(CustomXYZR self)"""
1043  return _IMP_misc.CustomXYZR_clear_caches(self)
1044 
1045 
1046  def set_name(self, a0):
1047  """set_name(CustomXYZR self, std::string a0)"""
1048  return _IMP_misc.CustomXYZR_set_name(self, a0)
1049 
1050 
1051  def set_check_level(self, a0):
1052  """set_check_level(CustomXYZR self, IMP::CheckLevel a0)"""
1053  return _IMP_misc.CustomXYZR_set_check_level(self, a0)
1054 
1055 
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)
1059 
1060 
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)
1064 
1065 
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)
1069 
1070 
1071  def get_check_level(self):
1072  """get_check_level(CustomXYZR self) -> IMP::CheckLevel"""
1073  return _IMP_misc.CustomXYZR_get_check_level(self)
1074 
1075 
1076  def __eq__(self, *args):
1077  """
1078  __eq__(CustomXYZR self, CustomXYZR o) -> bool
1079  __eq__(CustomXYZR self, Particle d) -> bool
1080  """
1081  return _IMP_misc.CustomXYZR___eq__(self, *args)
1082 
1083 
1084  def __ne__(self, *args):
1085  """
1086  __ne__(CustomXYZR self, CustomXYZR o) -> bool
1087  __ne__(CustomXYZR self, Particle d) -> bool
1088  """
1089  return _IMP_misc.CustomXYZR___ne__(self, *args)
1090 
1091 
1092  def __le__(self, *args):
1093  """
1094  __le__(CustomXYZR self, CustomXYZR o) -> bool
1095  __le__(CustomXYZR self, Particle d) -> bool
1096  """
1097  return _IMP_misc.CustomXYZR___le__(self, *args)
1098 
1099 
1100  def __lt__(self, *args):
1101  """
1102  __lt__(CustomXYZR self, CustomXYZR o) -> bool
1103  __lt__(CustomXYZR self, Particle d) -> bool
1104  """
1105  return _IMP_misc.CustomXYZR___lt__(self, *args)
1106 
1107 
1108  def __ge__(self, *args):
1109  """
1110  __ge__(CustomXYZR self, CustomXYZR o) -> bool
1111  __ge__(CustomXYZR self, Particle d) -> bool
1112  """
1113  return _IMP_misc.CustomXYZR___ge__(self, *args)
1114 
1115 
1116  def __gt__(self, *args):
1117  """
1118  __gt__(CustomXYZR self, CustomXYZR o) -> bool
1119  __gt__(CustomXYZR self, Particle d) -> bool
1120  """
1121  return _IMP_misc.CustomXYZR___gt__(self, *args)
1122 
1123 
1124  def __hash__(self):
1125  """__hash__(CustomXYZR self) -> std::size_t"""
1126  return _IMP_misc.CustomXYZR___hash__(self)
1127 
1128 
1129  def __str__(self):
1130  """__str__(CustomXYZR self) -> std::string"""
1131  return _IMP_misc.CustomXYZR___str__(self)
1132 
1133 
1134  def __repr__(self):
1135  """__repr__(CustomXYZR self) -> std::string"""
1136  return _IMP_misc.CustomXYZR___repr__(self)
1137 
1138  __swig_destroy__ = _IMP_misc.delete_CustomXYZR
1139  __del__ = lambda self: None
1140 CustomXYZR_swigregister = _IMP_misc.CustomXYZR_swigregister
1141 CustomXYZR_swigregister(CustomXYZR)
1142 
1143 def CustomXYZR_get_default_decorator_traits():
1144  """CustomXYZR_get_default_decorator_traits() -> FloatKey"""
1145  return _IMP_misc.CustomXYZR_get_default_decorator_traits()
1146 
1147 def CustomXYZR_setup_particle(*args):
1148  """
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
1161  """
1162  return _IMP_misc.CustomXYZR_setup_particle(*args)
1163 
1164 def CustomXYZR_get_is_setup(*args):
1165  """
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
1170  """
1171  return _IMP_misc.CustomXYZR_get_is_setup(*args)
1172 
1173 def CustomXYZR_get_default_radius_key():
1174  """CustomXYZR_get_default_radius_key() -> FloatKey"""
1175  return _IMP_misc.CustomXYZR_get_default_radius_key()
1176 
1177 
1178 def __lshift__(out, n):
1179  """__lshift__(_ostream out, CustomXYZR n) -> _ostream"""
1180  return _IMP_misc.__lshift__(out, n)
1181 
1182 def get_distance(a, b):
1183  """get_distance(CustomXYZR a, CustomXYZR b) -> double"""
1184  return _IMP_misc.get_distance(a, b)
1185 
1186 def get_sphere_d_geometry(d):
1187  """get_sphere_d_geometry(CustomXYZR d) -> Sphere3D"""
1188  return _IMP_misc.get_sphere_d_geometry(d)
1189 
1190 def set_sphere_d_geometry(d, v):
1191  """set_sphere_d_geometry(CustomXYZR d, Sphere3D v)"""
1192  return _IMP_misc.set_sphere_d_geometry(d, v)
1193 class SoftCylinderPairScore(IMP.PairScore):
1194  """Proxy of C++ IMP::misc::SoftCylinderPairScore class."""
1195 
1196  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1197 
1198  def __init__(self, k):
1199  """__init__(IMP::misc::SoftCylinderPairScore self, double k) -> SoftCylinderPairScore"""
1200  this = _IMP_misc.new_SoftCylinderPairScore(k)
1201  try:
1202  self.this.append(this)
1203  except Exception:
1204  self.this = this
1205 
1206  def do_get_inputs(self, m, pis):
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)
1209 
1210 
1211  def get_version_info(self):
1212  """get_version_info(SoftCylinderPairScore self) -> VersionInfo"""
1213  return _IMP_misc.SoftCylinderPairScore_get_version_info(self)
1214 
1215 
1216  def __str__(self):
1217  """__str__(SoftCylinderPairScore self) -> std::string"""
1218  return _IMP_misc.SoftCylinderPairScore___str__(self)
1219 
1220 
1221  def __repr__(self):
1222  """__repr__(SoftCylinderPairScore self) -> std::string"""
1223  return _IMP_misc.SoftCylinderPairScore___repr__(self)
1224 
1225 
1226  @staticmethod
1227  def get_from(o):
1228  return _object_cast_to_SoftCylinderPairScore(o)
1229 
1230 SoftCylinderPairScore_swigregister = _IMP_misc.SoftCylinderPairScore_swigregister
1231 SoftCylinderPairScore_swigregister(SoftCylinderPairScore)
1232 
1233 class DecayPairContainerOptimizerState(IMP.OptimizerState):
1234  """Proxy of C++ IMP::misc::DecayPairContainerOptimizerState class."""
1235 
1236  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1237 
1238  def __init__(self, *args):
1239  """
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
1242  """
1243  this = _IMP_misc.new_DecayPairContainerOptimizerState(*args)
1244  try:
1245  self.this.append(this)
1246  except Exception:
1247  self.this = this
1248 
1249  def get_output_container(self):
1250  """get_output_container(DecayPairContainerOptimizerState self) -> PairContainer"""
1251  return _IMP_misc.DecayPairContainerOptimizerState_get_output_container(self)
1252 
1253 
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)
1257 
1258 
1259  def get_version_info(self):
1260  """get_version_info(DecayPairContainerOptimizerState self) -> VersionInfo"""
1261  return _IMP_misc.DecayPairContainerOptimizerState_get_version_info(self)
1262 
1263 
1264  def __str__(self):
1265  """__str__(DecayPairContainerOptimizerState self) -> std::string"""
1266  return _IMP_misc.DecayPairContainerOptimizerState___str__(self)
1267 
1268 
1269  def __repr__(self):
1270  """__repr__(DecayPairContainerOptimizerState self) -> std::string"""
1271  return _IMP_misc.DecayPairContainerOptimizerState___repr__(self)
1272 
1273 
1274  @staticmethod
1275  def get_from(o):
1276  return _object_cast_to_DecayPairContainerOptimizerState(o)
1277 
1278 DecayPairContainerOptimizerState_swigregister = _IMP_misc.DecayPairContainerOptimizerState_swigregister
1279 DecayPairContainerOptimizerState_swigregister(DecayPairContainerOptimizerState)
1280 
1281 
1282 def get_module_version():
1283  """get_module_version() -> std::string const"""
1284  return _IMP_misc.get_module_version()
1285 
1286 def get_example_path(fname):
1287  """get_example_path(std::string fname) -> std::string"""
1288  return _IMP_misc.get_example_path(fname)
1289 
1290 def get_data_path(fname):
1291  """get_data_path(std::string fname) -> std::string"""
1292  return _IMP_misc.get_data_path(fname)
1293 
1294 from . import _version_check
1295 _version_check.check_version(get_module_version())
1296 __version__ = get_module_version()
1297 
1298 
1299 
Abstract class for scoring object(s) of type ParticleIndexPair.
Definition: PairScore.h:37
Various classes to hold sets of particles.
const algebra::Sphere3D get_sphere_d_geometry(CustomXYZR d)
Definition: CustomXYZR.h:90
Make CGAL functionality available to IMP.
virtual void clear_caches()
Definition: Object.h:227
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.
Definition: Plane3D.h:63
ScoreStates maintain invariants in the Model.
Definition: ScoreState.h:53
virtual ModelObjectsTemp do_get_inputs(Model *m, const ParticleIndexes &pis) const =0
A decorator for a particle with x,y,z coordinates.
Definition: XYZ.h:30
void set_sphere_d_geometry(CustomXYZR d, const algebra::Sphere3D &v)
Definition: CustomXYZR.h:95
Basic functionality that is expected to be used by a wide variety of IMP users.
Abstract predicate function.
Definition: PairPredicate.h:31
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.
Definition: Object.h:173
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.
Definition: UnaryFunction.h:25