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