IMP logo
IMP Reference Guide  2.13.0
The Integrative Modeling Platform
misc/__init__.py
1 # This file was automatically generated by SWIG (http://www.swig.org).
2 # Version 3.0.10
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-2020 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 as _swig_python_version_info
16 if _swig_python_version_info >= (2, 7, 0):
17  def swig_import_helper():
18  import importlib
19  pkg = __name__.rpartition('.')[0]
20  mname = '.'.join((pkg, '_IMP_misc')).lstrip('.')
21  try:
22  return importlib.import_module(mname)
23  except ImportError:
24  return importlib.import_module('_IMP_misc')
25  _IMP_misc = swig_import_helper()
26  del swig_import_helper
27 elif _swig_python_version_info >= (2, 6, 0):
28  def swig_import_helper():
29  from os.path import dirname
30  import imp
31  fp = None
32  try:
33  fp, pathname, description = imp.find_module('_IMP_misc', [dirname(__file__)])
34  except ImportError:
35  import _IMP_misc
36  return _IMP_misc
37  if fp is not None:
38  try:
39  _mod = imp.load_module('_IMP_misc', fp, pathname, description)
40  finally:
41  fp.close()
42  return _mod
43  _IMP_misc = swig_import_helper()
44  del swig_import_helper
45 else:
46  import _IMP_misc
47 del _swig_python_version_info
48 try:
49  _swig_property = property
50 except NameError:
51  pass # Python < 2.2 doesn't have 'property'.
52 
53 try:
54  import builtins as __builtin__
55 except ImportError:
56  import __builtin__
57 
58 def _swig_setattr_nondynamic(self, class_type, name, value, static=1):
59  if (name == "thisown"):
60  return self.this.own(value)
61  if (name == "this"):
62  if type(value).__name__ == 'SwigPyObject':
63  self.__dict__[name] = value
64  return
65  method = class_type.__swig_setmethods__.get(name, None)
66  if method:
67  return method(self, value)
68  if (not static):
69  object.__setattr__(self, name, value)
70  else:
71  raise AttributeError("You cannot add attributes to %s" % self)
72 
73 
74 def _swig_setattr(self, class_type, name, value):
75  return _swig_setattr_nondynamic(self, class_type, name, value, 0)
76 
77 
78 def _swig_getattr(self, class_type, name):
79  if (name == "thisown"):
80  return self.this.own()
81  method = class_type.__swig_getmethods__.get(name, None)
82  if method:
83  return method(self)
84  raise AttributeError("'%s' object has no attribute '%s'" % (class_type.__name__, name))
85 
86 
87 def _swig_repr(self):
88  try:
89  strthis = "proxy of " + self.this.__repr__()
90  except __builtin__.Exception:
91  strthis = ""
92  return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
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 __builtin__.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 IMP_DEBUG = _IMP_misc.IMP_DEBUG
224 IMP_RELEASE = _IMP_misc.IMP_RELEASE
225 IMP_SILENT = _IMP_misc.IMP_SILENT
226 IMP_PROGRESS = _IMP_misc.IMP_PROGRESS
227 IMP_TERSE = _IMP_misc.IMP_TERSE
228 IMP_VERBOSE = _IMP_misc.IMP_VERBOSE
229 IMP_MEMORY = _IMP_misc.IMP_MEMORY
230 IMP_NONE = _IMP_misc.IMP_NONE
231 IMP_USAGE = _IMP_misc.IMP_USAGE
232 IMP_INTERNAL = _IMP_misc.IMP_INTERNAL
233 IMP_KERNEL_HAS_LOG4CXX = _IMP_misc.IMP_KERNEL_HAS_LOG4CXX
234 IMP_COMPILER_HAS_AUTO = _IMP_misc.IMP_COMPILER_HAS_AUTO
235 IMP_COMPILER_HAS_DEBUG_VECTOR = _IMP_misc.IMP_COMPILER_HAS_DEBUG_VECTOR
236 IMP_COMPILER_HAS_UNIQUE_PTR = _IMP_misc.IMP_COMPILER_HAS_UNIQUE_PTR
237 IMP_KERNEL_HAS_BOOST_RANDOM = _IMP_misc.IMP_KERNEL_HAS_BOOST_RANDOM
238 IMP_KERNEL_HAS_NUMPY = _IMP_misc.IMP_KERNEL_HAS_NUMPY
239 IMP_KERNEL_HAS_GPERFTOOLS = _IMP_misc.IMP_KERNEL_HAS_GPERFTOOLS
240 IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER = _IMP_misc.IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER
241 IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER = _IMP_misc.IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER
242 IMPKERNEL_SHOW_WARNINGS = _IMP_misc.IMPKERNEL_SHOW_WARNINGS
243 
244 import sys
245 class _DirectorObjects(object):
246  """@internal Simple class to keep references to director objects
247  to prevent premature deletion."""
248  def __init__(self):
249  self._objects = []
250  def register(self, obj):
251  """Take a reference to a director object; will only work for
252  refcounted C++ classes"""
253  if hasattr(obj, 'get_ref_count'):
254  self._objects.append(obj)
255  def cleanup(self):
256  """Only drop our reference and allow cleanup by Python if no other
257  Python references exist (we hold 3 references: one in self._objects,
258  one in x, and one in the argument list for getrefcount) *and* no
259  other C++ references exist (the Python object always holds one)"""
260  objs = [x for x in self._objects if sys.getrefcount(x) > 3 \
261  or x.get_ref_count() > 1]
262 # Do in two steps so the references are kept until the end of the
263 # function (deleting references may trigger a fresh call to this method)
264  self._objects = objs
265  def get_object_count(self):
266  """Get number of director objects (useful for testing only)"""
267  return len(self._objects)
268 _director_objects = _DirectorObjects()
269 
270 class _ostream(object):
271  """Proxy of C++ std::ostream class."""
272 
273  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
274 
275  def __init__(self, *args, **kwargs):
276  raise AttributeError("No constructor defined")
277  __repr__ = _swig_repr
278 
279  def write(self, osa_buf):
280  """write(_ostream self, char const * osa_buf)"""
281  return _IMP_misc._ostream_write(self, osa_buf)
282 
283 _ostream_swigregister = _IMP_misc._ostream_swigregister
284 _ostream_swigregister(_ostream)
285 
286 IMP_COMPILER_HAS_OVERRIDE = _IMP_misc.IMP_COMPILER_HAS_OVERRIDE
287 IMP_COMPILER_HAS_FINAL = _IMP_misc.IMP_COMPILER_HAS_FINAL
288 IMP_HAS_NOEXCEPT = _IMP_misc.IMP_HAS_NOEXCEPT
289 IMP_C_OPEN_BINARY = _IMP_misc.IMP_C_OPEN_BINARY
290 import IMP
291 IMP_CGAL_HAS_BOOST_FILESYSTEM = _IMP_misc.IMP_CGAL_HAS_BOOST_FILESYSTEM
292 IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS = _IMP_misc.IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS
293 IMP_CGAL_HAS_BOOST_RANDOM = _IMP_misc.IMP_CGAL_HAS_BOOST_RANDOM
294 IMP_CGAL_HAS_BOOST_SYSTEM = _IMP_misc.IMP_CGAL_HAS_BOOST_SYSTEM
295 IMP_CGAL_HAS_NUMPY = _IMP_misc.IMP_CGAL_HAS_NUMPY
296 IMPCGAL_SHOW_WARNINGS = _IMP_misc.IMPCGAL_SHOW_WARNINGS
297 import IMP.cgal
298 IMP_ALGEBRA_HAS_IMP_CGAL = _IMP_misc.IMP_ALGEBRA_HAS_IMP_CGAL
299 IMP_ALGEBRA_HAS_BOOST_FILESYSTEM = _IMP_misc.IMP_ALGEBRA_HAS_BOOST_FILESYSTEM
300 IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS = _IMP_misc.IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS
301 IMP_ALGEBRA_HAS_BOOST_RANDOM = _IMP_misc.IMP_ALGEBRA_HAS_BOOST_RANDOM
302 IMP_ALGEBRA_HAS_BOOST_SYSTEM = _IMP_misc.IMP_ALGEBRA_HAS_BOOST_SYSTEM
303 IMP_ALGEBRA_HAS_CGAL = _IMP_misc.IMP_ALGEBRA_HAS_CGAL
304 IMP_ALGEBRA_HAS_NUMPY = _IMP_misc.IMP_ALGEBRA_HAS_NUMPY
305 IMP_ALGEBRA_HAS_ANN = _IMP_misc.IMP_ALGEBRA_HAS_ANN
306 IMPALGEBRA_SHOW_WARNINGS = _IMP_misc.IMPALGEBRA_SHOW_WARNINGS
307 import IMP.algebra
308 IMP_DISPLAY_HAS_IMP_CGAL = _IMP_misc.IMP_DISPLAY_HAS_IMP_CGAL
309 IMP_DISPLAY_HAS_BOOST_FILESYSTEM = _IMP_misc.IMP_DISPLAY_HAS_BOOST_FILESYSTEM
310 IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS = _IMP_misc.IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS
311 IMP_DISPLAY_HAS_BOOST_RANDOM = _IMP_misc.IMP_DISPLAY_HAS_BOOST_RANDOM
312 IMP_DISPLAY_HAS_BOOST_SYSTEM = _IMP_misc.IMP_DISPLAY_HAS_BOOST_SYSTEM
313 IMP_DISPLAY_HAS_CGAL = _IMP_misc.IMP_DISPLAY_HAS_CGAL
314 IMP_DISPLAY_HAS_NUMPY = _IMP_misc.IMP_DISPLAY_HAS_NUMPY
315 IMPDISPLAY_SHOW_WARNINGS = _IMP_misc.IMPDISPLAY_SHOW_WARNINGS
316 import IMP.display
317 IMP_SCORE_FUNCTOR_HAS_IMP_CGAL = _IMP_misc.IMP_SCORE_FUNCTOR_HAS_IMP_CGAL
318 IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM = _IMP_misc.IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM
319 IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS = _IMP_misc.IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS
320 IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM = _IMP_misc.IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM
321 IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM = _IMP_misc.IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM
322 IMP_SCORE_FUNCTOR_HAS_CGAL = _IMP_misc.IMP_SCORE_FUNCTOR_HAS_CGAL
323 IMP_SCORE_FUNCTOR_HAS_HDF5 = _IMP_misc.IMP_SCORE_FUNCTOR_HAS_HDF5
324 IMP_SCORE_FUNCTOR_HAS_NUMPY = _IMP_misc.IMP_SCORE_FUNCTOR_HAS_NUMPY
325 IMPSCOREFUNCTOR_SHOW_WARNINGS = _IMP_misc.IMPSCOREFUNCTOR_SHOW_WARNINGS
326 import IMP.score_functor
327 IMP_CORE_HAS_IMP_CGAL = _IMP_misc.IMP_CORE_HAS_IMP_CGAL
328 IMP_CORE_HAS_IMP_KERNEL = _IMP_misc.IMP_CORE_HAS_IMP_KERNEL
329 IMP_CORE_HAS_BOOST_FILESYSTEM = _IMP_misc.IMP_CORE_HAS_BOOST_FILESYSTEM
330 IMP_CORE_HAS_BOOST_PROGRAMOPTIONS = _IMP_misc.IMP_CORE_HAS_BOOST_PROGRAMOPTIONS
331 IMP_CORE_HAS_BOOST_RANDOM = _IMP_misc.IMP_CORE_HAS_BOOST_RANDOM
332 IMP_CORE_HAS_BOOST_SYSTEM = _IMP_misc.IMP_CORE_HAS_BOOST_SYSTEM
333 IMP_CORE_HAS_CGAL = _IMP_misc.IMP_CORE_HAS_CGAL
334 IMP_CORE_HAS_HDF5 = _IMP_misc.IMP_CORE_HAS_HDF5
335 IMP_CORE_HAS_NUMPY = _IMP_misc.IMP_CORE_HAS_NUMPY
336 IMPCORE_SHOW_WARNINGS = _IMP_misc.IMPCORE_SHOW_WARNINGS
337 import IMP.core
338 IMP_CONTAINER_HAS_IMP_ALGEBRA = _IMP_misc.IMP_CONTAINER_HAS_IMP_ALGEBRA
339 IMP_CONTAINER_HAS_IMP_CGAL = _IMP_misc.IMP_CONTAINER_HAS_IMP_CGAL
340 IMP_CONTAINER_HAS_IMP_DISPLAY = _IMP_misc.IMP_CONTAINER_HAS_IMP_DISPLAY
341 IMP_CONTAINER_HAS_IMP_KERNEL = _IMP_misc.IMP_CONTAINER_HAS_IMP_KERNEL
342 IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR = _IMP_misc.IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR
343 IMP_CONTAINER_HAS_BOOST_FILESYSTEM = _IMP_misc.IMP_CONTAINER_HAS_BOOST_FILESYSTEM
344 IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS = _IMP_misc.IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS
345 IMP_CONTAINER_HAS_BOOST_RANDOM = _IMP_misc.IMP_CONTAINER_HAS_BOOST_RANDOM
346 IMP_CONTAINER_HAS_BOOST_SYSTEM = _IMP_misc.IMP_CONTAINER_HAS_BOOST_SYSTEM
347 IMP_CONTAINER_HAS_CGAL = _IMP_misc.IMP_CONTAINER_HAS_CGAL
348 IMP_CONTAINER_HAS_HDF5 = _IMP_misc.IMP_CONTAINER_HAS_HDF5
349 IMP_CONTAINER_HAS_NUMPY = _IMP_misc.IMP_CONTAINER_HAS_NUMPY
350 IMP_CONTAINER_HAS_PYTHON_IHM = _IMP_misc.IMP_CONTAINER_HAS_PYTHON_IHM
351 IMP_CONTAINER_HAS_GOOGLE_DENSE_HASH_MAP = _IMP_misc.IMP_CONTAINER_HAS_GOOGLE_DENSE_HASH_MAP
352 IMP_CONTAINER_HAS_ROBIN_MAP = _IMP_misc.IMP_CONTAINER_HAS_ROBIN_MAP
353 IMPCONTAINER_SHOW_WARNINGS = _IMP_misc.IMPCONTAINER_SHOW_WARNINGS
354 import IMP.container
355 IMP_ATOM_HAS_IMP_CGAL = _IMP_misc.IMP_ATOM_HAS_IMP_CGAL
356 IMP_ATOM_HAS_IMP_KERNEL = _IMP_misc.IMP_ATOM_HAS_IMP_KERNEL
357 IMP_ATOM_HAS_IMP_SCORE_FUNCTOR = _IMP_misc.IMP_ATOM_HAS_IMP_SCORE_FUNCTOR
358 IMP_ATOM_HAS_BOOST_PROGRAMOPTIONS = _IMP_misc.IMP_ATOM_HAS_BOOST_PROGRAMOPTIONS
359 IMP_ATOM_HAS_BOOST_RANDOM = _IMP_misc.IMP_ATOM_HAS_BOOST_RANDOM
360 IMP_ATOM_HAS_BOOST_REGEX = _IMP_misc.IMP_ATOM_HAS_BOOST_REGEX
361 IMP_ATOM_HAS_BOOST_SYSTEM = _IMP_misc.IMP_ATOM_HAS_BOOST_SYSTEM
362 IMP_ATOM_HAS_CGAL = _IMP_misc.IMP_ATOM_HAS_CGAL
363 IMP_ATOM_HAS_HDF5 = _IMP_misc.IMP_ATOM_HAS_HDF5
364 IMP_ATOM_HAS_NUMPY = _IMP_misc.IMP_ATOM_HAS_NUMPY
365 IMP_ATOM_HAS_PYTHON_IHM = _IMP_misc.IMP_ATOM_HAS_PYTHON_IHM
366 IMPATOM_SHOW_WARNINGS = _IMP_misc.IMPATOM_SHOW_WARNINGS
367 IMP_ATOM_TYPE_INDEX = _IMP_misc.IMP_ATOM_TYPE_INDEX
368 IMP_RESIDUE_TYPE_INDEX = _IMP_misc.IMP_RESIDUE_TYPE_INDEX
369 IMP_HIERARCHY_TYPE_INDEX = _IMP_misc.IMP_HIERARCHY_TYPE_INDEX
370 IMP_CHAIN_TYPE_INDEX = _IMP_misc.IMP_CHAIN_TYPE_INDEX
371 import IMP.atom
372 IMP_MISC_HAS_IMP_ALGEBRA = _IMP_misc.IMP_MISC_HAS_IMP_ALGEBRA
373 IMP_MISC_HAS_IMP_CGAL = _IMP_misc.IMP_MISC_HAS_IMP_CGAL
374 IMP_MISC_HAS_IMP_CONTAINER = _IMP_misc.IMP_MISC_HAS_IMP_CONTAINER
375 IMP_MISC_HAS_IMP_DISPLAY = _IMP_misc.IMP_MISC_HAS_IMP_DISPLAY
376 IMP_MISC_HAS_IMP_KERNEL = _IMP_misc.IMP_MISC_HAS_IMP_KERNEL
377 IMP_MISC_HAS_IMP_SCORE_FUNCTOR = _IMP_misc.IMP_MISC_HAS_IMP_SCORE_FUNCTOR
378 IMP_MISC_HAS_BOOST_FILESYSTEM = _IMP_misc.IMP_MISC_HAS_BOOST_FILESYSTEM
379 IMP_MISC_HAS_BOOST_PROGRAMOPTIONS = _IMP_misc.IMP_MISC_HAS_BOOST_PROGRAMOPTIONS
380 IMP_MISC_HAS_BOOST_RANDOM = _IMP_misc.IMP_MISC_HAS_BOOST_RANDOM
381 IMP_MISC_HAS_BOOST_REGEX = _IMP_misc.IMP_MISC_HAS_BOOST_REGEX
382 IMP_MISC_HAS_BOOST_SYSTEM = _IMP_misc.IMP_MISC_HAS_BOOST_SYSTEM
383 IMP_MISC_HAS_CGAL = _IMP_misc.IMP_MISC_HAS_CGAL
384 IMP_MISC_HAS_HDF5 = _IMP_misc.IMP_MISC_HAS_HDF5
385 IMP_MISC_HAS_NUMPY = _IMP_misc.IMP_MISC_HAS_NUMPY
386 IMP_MISC_HAS_PYTHON_IHM = _IMP_misc.IMP_MISC_HAS_PYTHON_IHM
387 IMPMISC_SHOW_WARNINGS = _IMP_misc.IMPMISC_SHOW_WARNINGS
388 
389 _object_types.append("WormLikeChain")
390 
391 
392 def _object_cast_to_WormLikeChain(o):
393  """_object_cast_to_WormLikeChain(Object o) -> WormLikeChain"""
394  return _IMP_misc._object_cast_to_WormLikeChain(o)
395 
396 _object_types.append("FreelyJointedChain")
397 
398 
399 def _object_cast_to_FreelyJointedChain(o):
400  """_object_cast_to_FreelyJointedChain(Object o) -> FreelyJointedChain"""
401  return _IMP_misc._object_cast_to_FreelyJointedChain(o)
402 
403 _object_types.append("StateAdaptor")
404 
405 
406 def _object_cast_to_StateAdaptor(o):
407  """_object_cast_to_StateAdaptor(Object o) -> StateAdaptor"""
408  return _IMP_misc._object_cast_to_StateAdaptor(o)
409 
410 _object_types.append("CommonEndpointPairFilter")
411 
412 
413 def _object_cast_to_CommonEndpointPairFilter(o):
414  """_object_cast_to_CommonEndpointPairFilter(Object o) -> CommonEndpointPairFilter"""
415  return _IMP_misc._object_cast_to_CommonEndpointPairFilter(o)
416 
417 _object_types.append("LogPairScore")
418 
419 
420 def _object_cast_to_LogPairScore(o):
421  """_object_cast_to_LogPairScore(Object o) -> LogPairScore"""
422  return _IMP_misc._object_cast_to_LogPairScore(o)
423 
424 _object_types.append("LowestRefinedPairScore")
425 
426 
427 def _object_cast_to_LowestRefinedPairScore(o):
428  """_object_cast_to_LowestRefinedPairScore(Object o) -> LowestRefinedPairScore"""
429  return _IMP_misc._object_cast_to_LowestRefinedPairScore(o)
430 
431 _object_types.append("SoftCylinderPairScore")
432 
433 
434 def _object_cast_to_SoftCylinderPairScore(o):
435  """_object_cast_to_SoftCylinderPairScore(Object o) -> SoftCylinderPairScore"""
436  return _IMP_misc._object_cast_to_SoftCylinderPairScore(o)
437 
438 _object_types.append("DecayPairContainerOptimizerState")
439 
440 
441 def _object_cast_to_DecayPairContainerOptimizerState(o):
442  """_object_cast_to_DecayPairContainerOptimizerState(Object o) -> DecayPairContainerOptimizerState"""
443  return _IMP_misc._object_cast_to_DecayPairContainerOptimizerState(o)
444 
445 def CustomXYZRs(l=[]):
446  return [CustomXYZR(x) for x in l]
447 _plural_types.append("CustomXYZRs")
448 
449 
450 _value_types.append("CustomXYZR")
451 
452 class WormLikeChain(IMP.UnaryFunction):
453  """Proxy of C++ IMP::misc::WormLikeChain class."""
454 
455  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
456 
457  def __init__(self, l_max, lp):
458  """__init__(IMP::misc::WormLikeChain self, IMP::Float l_max, IMP::Float lp) -> WormLikeChain"""
459  this = _IMP_misc.new_WormLikeChain(l_max, lp)
460  try:
461  self.this.append(this)
462  except __builtin__.Exception:
463  self.this = this
464 
465  def get_version_info(self):
466  """get_version_info(WormLikeChain self) -> VersionInfo"""
467  return _IMP_misc.WormLikeChain_get_version_info(self)
468 
469 
470  def do_show(self, out):
471  """do_show(WormLikeChain self, _ostream out)"""
472  return _IMP_misc.WormLikeChain_do_show(self, out)
473 
474 
475  def __str__(self):
476  """__str__(WormLikeChain self) -> std::string"""
477  return _IMP_misc.WormLikeChain___str__(self)
478 
479 
480  def __repr__(self):
481  """__repr__(WormLikeChain self) -> std::string"""
482  return _IMP_misc.WormLikeChain___repr__(self)
483 
484 
485  @staticmethod
486  def get_from(o):
487  return _object_cast_to_WormLikeChain(o)
488 
489 WormLikeChain_swigregister = _IMP_misc.WormLikeChain_swigregister
490 WormLikeChain_swigregister(WormLikeChain)
491 
492 class FreelyJointedChain(IMP.UnaryFunction):
493  """Proxy of C++ IMP::misc::FreelyJointedChain class."""
494 
495  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
496 
497  def __init__(self, link_num, link_length):
498  """__init__(IMP::misc::FreelyJointedChain self, int link_num, double link_length) -> FreelyJointedChain"""
499  this = _IMP_misc.new_FreelyJointedChain(link_num, link_length)
500  try:
501  self.this.append(this)
502  except __builtin__.Exception:
503  self.this = this
504 
505  def get_version_info(self):
506  """get_version_info(FreelyJointedChain self) -> VersionInfo"""
507  return _IMP_misc.FreelyJointedChain_get_version_info(self)
508 
509 
510  def get_link_number(self):
511  """get_link_number(FreelyJointedChain self) -> int"""
512  return _IMP_misc.FreelyJointedChain_get_link_number(self)
513 
514 
515  def get_link_length(self):
516  """get_link_length(FreelyJointedChain self) -> double"""
517  return _IMP_misc.FreelyJointedChain_get_link_length(self)
518 
519 
520  def set_link_number(self, N):
521  """set_link_number(FreelyJointedChain self, int N)"""
522  return _IMP_misc.FreelyJointedChain_set_link_number(self, N)
523 
524 
525  def set_link_length(self, b):
526  """set_link_length(FreelyJointedChain self, double b)"""
527  return _IMP_misc.FreelyJointedChain_set_link_length(self, b)
528 
529 
530  def get_distance_at_minimum(self):
531  """get_distance_at_minimum(FreelyJointedChain self) -> double"""
532  return _IMP_misc.FreelyJointedChain_get_distance_at_minimum(self)
533 
534 
535  def get_average_distance(self):
536  """get_average_distance(FreelyJointedChain self) -> double"""
537  return _IMP_misc.FreelyJointedChain_get_average_distance(self)
538 
539 
540  def __str__(self):
541  """__str__(FreelyJointedChain self) -> std::string"""
542  return _IMP_misc.FreelyJointedChain___str__(self)
543 
544 
545  def __repr__(self):
546  """__repr__(FreelyJointedChain self) -> std::string"""
547  return _IMP_misc.FreelyJointedChain___repr__(self)
548 
549 
550  @staticmethod
551  def get_from(o):
552  return _object_cast_to_FreelyJointedChain(o)
553 
554 FreelyJointedChain_swigregister = _IMP_misc.FreelyJointedChain_swigregister
555 FreelyJointedChain_swigregister(FreelyJointedChain)
556 
557 class LowestRefinedPairScore(IMP.PairScore):
558  """Proxy of C++ IMP::misc::LowestRefinedPairScore class."""
559 
560  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
561 
562  def __init__(self, r, f):
563  """__init__(IMP::misc::LowestRefinedPairScore self, Refiner r, PairScore f) -> LowestRefinedPairScore"""
564  this = _IMP_misc.new_LowestRefinedPairScore(r, f)
565  try:
566  self.this.append(this)
567  except __builtin__.Exception:
568  self.this = this
569 
570  def do_get_inputs(self, m, pis):
571  """do_get_inputs(LowestRefinedPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
572  return _IMP_misc.LowestRefinedPairScore_do_get_inputs(self, m, pis)
573 
574 
575  def get_version_info(self):
576  """get_version_info(LowestRefinedPairScore self) -> VersionInfo"""
577  return _IMP_misc.LowestRefinedPairScore_get_version_info(self)
578 
579 
580  def __str__(self):
581  """__str__(LowestRefinedPairScore self) -> std::string"""
582  return _IMP_misc.LowestRefinedPairScore___str__(self)
583 
584 
585  def __repr__(self):
586  """__repr__(LowestRefinedPairScore self) -> std::string"""
587  return _IMP_misc.LowestRefinedPairScore___repr__(self)
588 
589 
590  @staticmethod
591  def get_from(o):
592  return _object_cast_to_LowestRefinedPairScore(o)
593 
594 LowestRefinedPairScore_swigregister = _IMP_misc.LowestRefinedPairScore_swigregister
595 LowestRefinedPairScore_swigregister(LowestRefinedPairScore)
596 
597 class LogPairScore(IMP.PairScore):
598  """Proxy of C++ IMP::misc::LogPairScore class."""
599 
600  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
601 
602  def __init__(self):
603  """__init__(IMP::misc::LogPairScore self) -> LogPairScore"""
604  this = _IMP_misc.new_LogPairScore()
605  try:
606  self.this.append(this)
607  except __builtin__.Exception:
608  self.this = this
609 
610  def do_get_inputs(self, arg2, arg3):
611  """do_get_inputs(LogPairScore self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
612  return _IMP_misc.LogPairScore_do_get_inputs(self, arg2, arg3)
613 
614 
615  def get_version_info(self):
616  """get_version_info(LogPairScore self) -> VersionInfo"""
617  return _IMP_misc.LogPairScore_get_version_info(self)
618 
619 
620  def get_particle_pairs(self):
621  """get_particle_pairs(LogPairScore self) -> IMP::ParticlePairsTemp"""
622  return _IMP_misc.LogPairScore_get_particle_pairs(self)
623 
624 
625  def clear(self):
626  """clear(LogPairScore self)"""
627  return _IMP_misc.LogPairScore_clear(self)
628 
629 
630  def get_contains(self, pp):
631  """get_contains(LogPairScore self, IMP::ParticlePair const & pp) -> bool"""
632  return _IMP_misc.LogPairScore_get_contains(self, pp)
633 
634 
635  def __str__(self):
636  """__str__(LogPairScore self) -> std::string"""
637  return _IMP_misc.LogPairScore___str__(self)
638 
639 
640  def __repr__(self):
641  """__repr__(LogPairScore self) -> std::string"""
642  return _IMP_misc.LogPairScore___repr__(self)
643 
644 
645  @staticmethod
646  def get_from(o):
647  return _object_cast_to_LogPairScore(o)
648 
649 LogPairScore_swigregister = _IMP_misc.LogPairScore_swigregister
650 LogPairScore_swigregister(LogPairScore)
651 
652 class StateAdaptor(IMP.ScoreState):
653  """Proxy of C++ IMP::misc::StateAdaptor class."""
654 
655  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
656 
657  def __init__(self, m, before, after):
658  """__init__(IMP::misc::StateAdaptor self, Model m, OptimizerState before, OptimizerState after) -> StateAdaptor"""
659  this = _IMP_misc.new_StateAdaptor(m, before, after)
660  try:
661  self.this.append(this)
662  except __builtin__.Exception:
663  self.this = this
664 
665  def do_before_evaluate(self):
666  """do_before_evaluate(StateAdaptor self)"""
667  return _IMP_misc.StateAdaptor_do_before_evaluate(self)
668 
669 
670  def do_after_evaluate(self, da):
671  """do_after_evaluate(StateAdaptor self, DerivativeAccumulator da)"""
672  return _IMP_misc.StateAdaptor_do_after_evaluate(self, da)
673 
674 
675  def do_get_inputs(self):
676  """do_get_inputs(StateAdaptor self) -> IMP::ModelObjectsTemp"""
677  return _IMP_misc.StateAdaptor_do_get_inputs(self)
678 
679 
680  def do_get_outputs(self):
681  """do_get_outputs(StateAdaptor self) -> IMP::ModelObjectsTemp"""
682  return _IMP_misc.StateAdaptor_do_get_outputs(self)
683 
684 
685  def get_version_info(self):
686  """get_version_info(StateAdaptor self) -> VersionInfo"""
687  return _IMP_misc.StateAdaptor_get_version_info(self)
688 
689 
690  def __str__(self):
691  """__str__(StateAdaptor self) -> std::string"""
692  return _IMP_misc.StateAdaptor___str__(self)
693 
694 
695  def __repr__(self):
696  """__repr__(StateAdaptor self) -> std::string"""
697  return _IMP_misc.StateAdaptor___repr__(self)
698 
699 
700  @staticmethod
701  def get_from(o):
702  return _object_cast_to_StateAdaptor(o)
703 
704 StateAdaptor_swigregister = _IMP_misc.StateAdaptor_swigregister
705 StateAdaptor_swigregister(StateAdaptor)
706 
707 class CommonEndpointPairFilter(IMP.PairPredicate):
708  """Proxy of C++ IMP::misc::CommonEndpointPairFilter class."""
709 
710  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
711 
712  def __init__(self):
713  """__init__(IMP::misc::CommonEndpointPairFilter self) -> CommonEndpointPairFilter"""
714  this = _IMP_misc.new_CommonEndpointPairFilter()
715  try:
716  self.this.append(this)
717  except __builtin__.Exception:
718  self.this = this
719 
720  def do_get_inputs(self, m, pis):
721  """do_get_inputs(CommonEndpointPairFilter self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
722  return _IMP_misc.CommonEndpointPairFilter_do_get_inputs(self, m, pis)
723 
724 
725  def get_value(self, *args):
726  """
727  get_value(CommonEndpointPairFilter self, IMP::ParticlePair const & a) -> int
728  get_value(CommonEndpointPairFilter self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
729  """
730  return _IMP_misc.CommonEndpointPairFilter_get_value(self, *args)
731 
732 
733  def get_value_index(self, *args):
734  """
735  get_value_index(CommonEndpointPairFilter self, Model m, IMP::ParticleIndexPair const & p) -> int
736  get_value_index(CommonEndpointPairFilter self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
737  """
738  return _IMP_misc.CommonEndpointPairFilter_get_value_index(self, *args)
739 
740 
741  def get_version_info(self):
742  """get_version_info(CommonEndpointPairFilter self) -> VersionInfo"""
743  return _IMP_misc.CommonEndpointPairFilter_get_version_info(self)
744 
745 
746  def __str__(self):
747  """__str__(CommonEndpointPairFilter self) -> std::string"""
748  return _IMP_misc.CommonEndpointPairFilter___str__(self)
749 
750 
751  def __repr__(self):
752  """__repr__(CommonEndpointPairFilter self) -> std::string"""
753  return _IMP_misc.CommonEndpointPairFilter___repr__(self)
754 
755 
756  @staticmethod
757  def get_from(o):
758  return _object_cast_to_CommonEndpointPairFilter(o)
759 
760 CommonEndpointPairFilter_swigregister = _IMP_misc.CommonEndpointPairFilter_swigregister
761 CommonEndpointPairFilter_swigregister(CommonEndpointPairFilter)
762 
763 class CustomXYZR(IMP.core.XYZ):
764  """Proxy of C++ IMP::misc::CustomXYZR class."""
765 
766  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
767 
768  def get_decorator_traits(self):
769  """get_decorator_traits(CustomXYZR self) -> FloatKey"""
770  return _IMP_misc.CustomXYZR_get_decorator_traits(self)
771 
772 
773  def get_default_decorator_traits():
774  """get_default_decorator_traits() -> FloatKey"""
775  return _IMP_misc.CustomXYZR_get_default_decorator_traits()
776 
777  get_default_decorator_traits = staticmethod(get_default_decorator_traits)
778 
779  def __init__(self, *args):
780  """
781  __init__(IMP::misc::CustomXYZR self) -> CustomXYZR
782  __init__(IMP::misc::CustomXYZR self, Model m, ParticleIndex id, FloatKey tr) -> CustomXYZR
783  __init__(IMP::misc::CustomXYZR self, Model m, ParticleIndex id) -> CustomXYZR
784  __init__(IMP::misc::CustomXYZR self, _ParticleAdaptor d, FloatKey tr) -> CustomXYZR
785  __init__(IMP::misc::CustomXYZR self, _ParticleAdaptor d) -> CustomXYZR
786  """
787  this = _IMP_misc.new_CustomXYZR(*args)
788  try:
789  self.this.append(this)
790  except __builtin__.Exception:
791  self.this = this
792 
793  def show(self, *args):
794  """
795  show(CustomXYZR self, _ostream out)
796  show(CustomXYZR self)
797  """
798  return _IMP_misc.CustomXYZR_show(self, *args)
799 
800 
801  def setup_particle(*args):
802  """
803  setup_particle(Model m, ParticleIndex pi, FloatKey tr) -> CustomXYZR
804  setup_particle(Model m, ParticleIndex pi) -> CustomXYZR
805  setup_particle(_ParticleAdaptor d, FloatKey tr) -> CustomXYZR
806  setup_particle(_ParticleAdaptor d) -> CustomXYZR
807  setup_particle(Model m, ParticleIndex pi, double radius, FloatKey tr) -> CustomXYZR
808  setup_particle(Model m, ParticleIndex pi, double radius) -> CustomXYZR
809  setup_particle(_ParticleAdaptor d, double radius, FloatKey tr) -> CustomXYZR
810  setup_particle(_ParticleAdaptor d, double radius) -> CustomXYZR
811  setup_particle(Model m, ParticleIndex pi, Sphere3D ball, FloatKey tr) -> CustomXYZR
812  setup_particle(Model m, ParticleIndex pi, Sphere3D ball) -> CustomXYZR
813  setup_particle(_ParticleAdaptor d, Sphere3D ball, FloatKey tr) -> CustomXYZR
814  setup_particle(_ParticleAdaptor d, Sphere3D ball) -> CustomXYZR
815  """
816  return _IMP_misc.CustomXYZR_setup_particle(*args)
817 
818  setup_particle = staticmethod(setup_particle)
819 
820  def get_is_setup(*args):
821  """
822  get_is_setup(_ParticleAdaptor p, FloatKey tr) -> bool
823  get_is_setup(_ParticleAdaptor p) -> bool
824  get_is_setup(Model m, ParticleIndex pi, FloatKey radius_key) -> bool
825  get_is_setup(Model m, ParticleIndex pi) -> bool
826  """
827  return _IMP_misc.CustomXYZR_get_is_setup(*args)
828 
829  get_is_setup = staticmethod(get_is_setup)
830 
831  def get_radius(self):
832  """get_radius(CustomXYZR self) -> IMP::Float"""
833  return _IMP_misc.CustomXYZR_get_radius(self)
834 
835 
836  def set_radius(self, t):
837  """set_radius(CustomXYZR self, IMP::Float t)"""
838  return _IMP_misc.CustomXYZR_set_radius(self, t)
839 
840 
841  def get_sphere(self):
842  """get_sphere(CustomXYZR self) -> Sphere3D"""
843  return _IMP_misc.CustomXYZR_get_sphere(self)
844 
845 
846  def set_sphere(self, s):
847  """set_sphere(CustomXYZR self, Sphere3D s)"""
848  return _IMP_misc.CustomXYZR_set_sphere(self, s)
849 
850 
851  def get_default_radius_key():
852  """get_default_radius_key() -> FloatKey"""
853  return _IMP_misc.CustomXYZR_get_default_radius_key()
854 
855  get_default_radius_key = staticmethod(get_default_radius_key)
856 
857  def add_to_radius_derivative(self, v, d):
858  """add_to_radius_derivative(CustomXYZR self, double v, DerivativeAccumulator d)"""
859  return _IMP_misc.CustomXYZR_add_to_radius_derivative(self, v, d)
860 
861 
862  def get_traits(self):
863  """get_traits(CustomXYZR self) -> FloatKey"""
864  return _IMP_misc.CustomXYZR_get_traits(self)
865 
866 
867  def add_attribute(self, *args):
868  """
869  add_attribute(CustomXYZR self, FloatKey k, IMP::Float v, bool opt)
870  add_attribute(CustomXYZR self, FloatKey a0, IMP::Float a1)
871  add_attribute(CustomXYZR self, IntKey a0, IMP::Int a1)
872  add_attribute(CustomXYZR self, StringKey a0, IMP::String a1)
873  add_attribute(CustomXYZR self, ParticleIndexKey a0, Particle a1)
874  add_attribute(CustomXYZR self, ObjectKey a0, Object a1)
875  """
876  return _IMP_misc.CustomXYZR_add_attribute(self, *args)
877 
878 
879  def get_value(self, *args):
880  """
881  get_value(CustomXYZR self, FloatKey a0) -> IMP::Float
882  get_value(CustomXYZR self, IntKey a0) -> IMP::Int
883  get_value(CustomXYZR self, StringKey a0) -> IMP::String
884  get_value(CustomXYZR self, ParticleIndexKey a0) -> Particle
885  get_value(CustomXYZR self, ObjectKey a0) -> Object
886  """
887  return _IMP_misc.CustomXYZR_get_value(self, *args)
888 
889 
890  def set_value(self, *args):
891  """
892  set_value(CustomXYZR self, FloatKey a0, IMP::Float a1)
893  set_value(CustomXYZR self, IntKey a0, IMP::Int a1)
894  set_value(CustomXYZR self, StringKey a0, IMP::String a1)
895  set_value(CustomXYZR self, ParticleIndexKey a0, Particle a1)
896  set_value(CustomXYZR self, ObjectKey a0, Object a1)
897  """
898  return _IMP_misc.CustomXYZR_set_value(self, *args)
899 
900 
901  def remove_attribute(self, *args):
902  """
903  remove_attribute(CustomXYZR self, FloatKey a0)
904  remove_attribute(CustomXYZR self, IntKey a0)
905  remove_attribute(CustomXYZR self, StringKey a0)
906  remove_attribute(CustomXYZR self, ParticleIndexKey a0)
907  remove_attribute(CustomXYZR self, ObjectKey a0)
908  """
909  return _IMP_misc.CustomXYZR_remove_attribute(self, *args)
910 
911 
912  def has_attribute(self, *args):
913  """
914  has_attribute(CustomXYZR self, FloatKey a0) -> bool
915  has_attribute(CustomXYZR self, IntKey a0) -> bool
916  has_attribute(CustomXYZR self, StringKey a0) -> bool
917  has_attribute(CustomXYZR self, ParticleIndexKey a0) -> bool
918  has_attribute(CustomXYZR self, ObjectKey a0) -> bool
919  """
920  return _IMP_misc.CustomXYZR_has_attribute(self, *args)
921 
922 
923  def get_derivative(self, a0):
924  """get_derivative(CustomXYZR self, FloatKey a0) -> double"""
925  return _IMP_misc.CustomXYZR_get_derivative(self, a0)
926 
927 
928  def get_name(self):
929  """get_name(CustomXYZR self) -> std::string"""
930  return _IMP_misc.CustomXYZR_get_name(self)
931 
932 
933  def clear_caches(self):
934  """clear_caches(CustomXYZR self)"""
935  return _IMP_misc.CustomXYZR_clear_caches(self)
936 
937 
938  def set_name(self, a0):
939  """set_name(CustomXYZR self, std::string a0)"""
940  return _IMP_misc.CustomXYZR_set_name(self, a0)
941 
942 
943  def set_check_level(self, a0):
944  """set_check_level(CustomXYZR self, IMP::CheckLevel a0)"""
945  return _IMP_misc.CustomXYZR_set_check_level(self, a0)
946 
947 
948  def add_to_derivative(self, a0, a1, a2):
949  """add_to_derivative(CustomXYZR self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
950  return _IMP_misc.CustomXYZR_add_to_derivative(self, a0, a1, a2)
951 
952 
953  def set_is_optimized(self, a0, a1):
954  """set_is_optimized(CustomXYZR self, FloatKey a0, bool a1)"""
955  return _IMP_misc.CustomXYZR_set_is_optimized(self, a0, a1)
956 
957 
958  def get_is_optimized(self, a0):
959  """get_is_optimized(CustomXYZR self, FloatKey a0) -> bool"""
960  return _IMP_misc.CustomXYZR_get_is_optimized(self, a0)
961 
962 
963  def get_check_level(self):
964  """get_check_level(CustomXYZR self) -> IMP::CheckLevel"""
965  return _IMP_misc.CustomXYZR_get_check_level(self)
966 
967 
968  def __eq__(self, *args):
969  """
970  __eq__(CustomXYZR self, CustomXYZR o) -> bool
971  __eq__(CustomXYZR self, Particle d) -> bool
972  """
973  return _IMP_misc.CustomXYZR___eq__(self, *args)
974 
975 
976  def __ne__(self, *args):
977  """
978  __ne__(CustomXYZR self, CustomXYZR o) -> bool
979  __ne__(CustomXYZR self, Particle d) -> bool
980  """
981  return _IMP_misc.CustomXYZR___ne__(self, *args)
982 
983 
984  def __le__(self, *args):
985  """
986  __le__(CustomXYZR self, CustomXYZR o) -> bool
987  __le__(CustomXYZR self, Particle d) -> bool
988  """
989  return _IMP_misc.CustomXYZR___le__(self, *args)
990 
991 
992  def __lt__(self, *args):
993  """
994  __lt__(CustomXYZR self, CustomXYZR o) -> bool
995  __lt__(CustomXYZR self, Particle d) -> bool
996  """
997  return _IMP_misc.CustomXYZR___lt__(self, *args)
998 
999 
1000  def __ge__(self, *args):
1001  """
1002  __ge__(CustomXYZR self, CustomXYZR o) -> bool
1003  __ge__(CustomXYZR self, Particle d) -> bool
1004  """
1005  return _IMP_misc.CustomXYZR___ge__(self, *args)
1006 
1007 
1008  def __gt__(self, *args):
1009  """
1010  __gt__(CustomXYZR self, CustomXYZR o) -> bool
1011  __gt__(CustomXYZR self, Particle d) -> bool
1012  """
1013  return _IMP_misc.CustomXYZR___gt__(self, *args)
1014 
1015 
1016  def __hash__(self):
1017  """__hash__(CustomXYZR self) -> std::size_t"""
1018  return _IMP_misc.CustomXYZR___hash__(self)
1019 
1020 
1021  def __str__(self):
1022  """__str__(CustomXYZR self) -> std::string"""
1023  return _IMP_misc.CustomXYZR___str__(self)
1024 
1025 
1026  def __repr__(self):
1027  """__repr__(CustomXYZR self) -> std::string"""
1028  return _IMP_misc.CustomXYZR___repr__(self)
1029 
1030  __swig_destroy__ = _IMP_misc.delete_CustomXYZR
1031  __del__ = lambda self: None
1032 CustomXYZR_swigregister = _IMP_misc.CustomXYZR_swigregister
1033 CustomXYZR_swigregister(CustomXYZR)
1034 
1035 def CustomXYZR_get_default_decorator_traits():
1036  """CustomXYZR_get_default_decorator_traits() -> FloatKey"""
1037  return _IMP_misc.CustomXYZR_get_default_decorator_traits()
1038 
1039 def CustomXYZR_setup_particle(*args):
1040  """
1041  setup_particle(Model m, ParticleIndex pi, FloatKey tr) -> CustomXYZR
1042  setup_particle(Model m, ParticleIndex pi) -> CustomXYZR
1043  setup_particle(_ParticleAdaptor d, FloatKey tr) -> CustomXYZR
1044  setup_particle(_ParticleAdaptor d) -> CustomXYZR
1045  setup_particle(Model m, ParticleIndex pi, double radius, FloatKey tr) -> CustomXYZR
1046  setup_particle(Model m, ParticleIndex pi, double radius) -> CustomXYZR
1047  setup_particle(_ParticleAdaptor d, double radius, FloatKey tr) -> CustomXYZR
1048  setup_particle(_ParticleAdaptor d, double radius) -> CustomXYZR
1049  setup_particle(Model m, ParticleIndex pi, Sphere3D ball, FloatKey tr) -> CustomXYZR
1050  setup_particle(Model m, ParticleIndex pi, Sphere3D ball) -> CustomXYZR
1051  setup_particle(_ParticleAdaptor d, Sphere3D ball, FloatKey tr) -> CustomXYZR
1052  CustomXYZR_setup_particle(_ParticleAdaptor d, Sphere3D ball) -> CustomXYZR
1053  """
1054  return _IMP_misc.CustomXYZR_setup_particle(*args)
1055 
1056 def CustomXYZR_get_is_setup(*args):
1057  """
1058  get_is_setup(_ParticleAdaptor p, FloatKey tr) -> bool
1059  get_is_setup(_ParticleAdaptor p) -> bool
1060  get_is_setup(Model m, ParticleIndex pi, FloatKey radius_key) -> bool
1061  CustomXYZR_get_is_setup(Model m, ParticleIndex pi) -> bool
1062  """
1063  return _IMP_misc.CustomXYZR_get_is_setup(*args)
1064 
1065 def CustomXYZR_get_default_radius_key():
1066  """CustomXYZR_get_default_radius_key() -> FloatKey"""
1067  return _IMP_misc.CustomXYZR_get_default_radius_key()
1068 
1069 
1070 def __lshift__(out, n):
1071  """__lshift__(_ostream out, CustomXYZR n) -> _ostream"""
1072  return _IMP_misc.__lshift__(out, n)
1073 
1074 def get_distance(a, b):
1075  """get_distance(CustomXYZR a, CustomXYZR b) -> double"""
1076  return _IMP_misc.get_distance(a, b)
1077 
1078 def get_sphere_d_geometry(d):
1079  """get_sphere_d_geometry(CustomXYZR d) -> Sphere3D"""
1080  return _IMP_misc.get_sphere_d_geometry(d)
1081 
1082 def set_sphere_d_geometry(d, v):
1083  """set_sphere_d_geometry(CustomXYZR d, Sphere3D v)"""
1084  return _IMP_misc.set_sphere_d_geometry(d, v)
1085 class SoftCylinderPairScore(IMP.PairScore):
1086  """Proxy of C++ IMP::misc::SoftCylinderPairScore class."""
1087 
1088  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1089 
1090  def __init__(self, k):
1091  """__init__(IMP::misc::SoftCylinderPairScore self, double k) -> SoftCylinderPairScore"""
1092  this = _IMP_misc.new_SoftCylinderPairScore(k)
1093  try:
1094  self.this.append(this)
1095  except __builtin__.Exception:
1096  self.this = this
1097 
1098  def do_get_inputs(self, m, pis):
1099  """do_get_inputs(SoftCylinderPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
1100  return _IMP_misc.SoftCylinderPairScore_do_get_inputs(self, m, pis)
1101 
1102 
1103  def get_version_info(self):
1104  """get_version_info(SoftCylinderPairScore self) -> VersionInfo"""
1105  return _IMP_misc.SoftCylinderPairScore_get_version_info(self)
1106 
1107 
1108  def __str__(self):
1109  """__str__(SoftCylinderPairScore self) -> std::string"""
1110  return _IMP_misc.SoftCylinderPairScore___str__(self)
1111 
1112 
1113  def __repr__(self):
1114  """__repr__(SoftCylinderPairScore self) -> std::string"""
1115  return _IMP_misc.SoftCylinderPairScore___repr__(self)
1116 
1117 
1118  @staticmethod
1119  def get_from(o):
1120  return _object_cast_to_SoftCylinderPairScore(o)
1121 
1122 SoftCylinderPairScore_swigregister = _IMP_misc.SoftCylinderPairScore_swigregister
1123 SoftCylinderPairScore_swigregister(SoftCylinderPairScore)
1124 
1125 class DecayPairContainerOptimizerState(IMP.OptimizerState):
1126  """Proxy of C++ IMP::misc::DecayPairContainerOptimizerState class."""
1127 
1128  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1129 
1130  def __init__(self, *args):
1131  """
1132  __init__(IMP::misc::DecayPairContainerOptimizerState self, Model m, PairPredicate pred, IMP::ParticleIndexPairs const & initial_list, std::string name) -> DecayPairContainerOptimizerState
1133  __init__(IMP::misc::DecayPairContainerOptimizerState self, Model m, PairPredicate pred, IMP::ParticleIndexPairs const & initial_list) -> DecayPairContainerOptimizerState
1134  """
1135  this = _IMP_misc.new_DecayPairContainerOptimizerState(*args)
1136  try:
1137  self.this.append(this)
1138  except __builtin__.Exception:
1139  self.this = this
1140 
1141  def get_output_container(self):
1142  """get_output_container(DecayPairContainerOptimizerState self) -> PairContainer"""
1143  return _IMP_misc.DecayPairContainerOptimizerState_get_output_container(self)
1144 
1145 
1146  def do_update(self, call_num):
1147  """do_update(DecayPairContainerOptimizerState self, unsigned int call_num)"""
1148  return _IMP_misc.DecayPairContainerOptimizerState_do_update(self, call_num)
1149 
1150 
1151  def get_version_info(self):
1152  """get_version_info(DecayPairContainerOptimizerState self) -> VersionInfo"""
1153  return _IMP_misc.DecayPairContainerOptimizerState_get_version_info(self)
1154 
1155 
1156  def __str__(self):
1157  """__str__(DecayPairContainerOptimizerState self) -> std::string"""
1158  return _IMP_misc.DecayPairContainerOptimizerState___str__(self)
1159 
1160 
1161  def __repr__(self):
1162  """__repr__(DecayPairContainerOptimizerState self) -> std::string"""
1163  return _IMP_misc.DecayPairContainerOptimizerState___repr__(self)
1164 
1165 
1166  @staticmethod
1167  def get_from(o):
1168  return _object_cast_to_DecayPairContainerOptimizerState(o)
1169 
1170 DecayPairContainerOptimizerState_swigregister = _IMP_misc.DecayPairContainerOptimizerState_swigregister
1171 DecayPairContainerOptimizerState_swigregister(DecayPairContainerOptimizerState)
1172 
1173 
1174 def get_module_version():
1175  """get_module_version() -> std::string const"""
1176  return _IMP_misc.get_module_version()
1177 
1178 def get_example_path(fname):
1179  """get_example_path(std::string fname) -> std::string"""
1180  return _IMP_misc.get_example_path(fname)
1181 
1182 def get_data_path(fname):
1183  """get_data_path(std::string fname) -> std::string"""
1184  return _IMP_misc.get_data_path(fname)
1185 
1186 from . import _version_check
1187 _version_check.check_version(get_module_version())
1188 __version__ = get_module_version()
1189 
1190 
1191 
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
Overload this method to specify the outputs.
Composable functors to implement scores via compile-time composition.
ScoreStates maintain invariants in the Model.
Definition: ScoreState.h:53
virtual ModelObjectsTemp do_get_inputs(Model *m, const ParticleIndexes &pis) const =0
Overload this method to specify the inputs.
A decorator for a particle with x,y,z coordinates.
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...
std::string get_module_version()
Return the version of this module, as a string.
virtual VersionInfo get_version_info() const
Get information about the module and version of the object.
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
double get_distance(const Line3D &s, const Vector3D &p)
Get closest distance between a line and a point.