IMP  2.4.0
The Integrative Modeling Platform
misc/__init__.py
1 # This file was automatically generated by SWIG (http://www.swig.org).
2 # Version 3.0.2
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 
8 
9 
10 
11 from sys import version_info
12 if version_info >= (2,6,0):
13  def swig_import_helper():
14  from os.path import dirname
15  import imp
16  fp = None
17  try:
18  fp, pathname, description = imp.find_module('_IMP_misc', [dirname(__file__)])
19  except ImportError:
20  import _IMP_misc
21  return _IMP_misc
22  if fp is not None:
23  try:
24  _mod = imp.load_module('_IMP_misc', fp, pathname, description)
25  finally:
26  fp.close()
27  return _mod
28  _IMP_misc = swig_import_helper()
29  del swig_import_helper
30 else:
31  import _IMP_misc
32 del version_info
33 try:
34  _swig_property = property
35 except NameError:
36  pass # Python < 2.2 doesn't have 'property'.
37 def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
38  if (name == "thisown"): return self.this.own(value)
39  if (name == "this"):
40  if type(value).__name__ == 'SwigPyObject':
41  self.__dict__[name] = value
42  return
43  method = class_type.__swig_setmethods__.get(name,None)
44  if method: return method(self,value)
45  if (not static):
46  self.__dict__[name] = value
47  else:
48  raise AttributeError("You cannot add attributes to %s" % self)
49 
50 def _swig_setattr(self,class_type,name,value):
51  return _swig_setattr_nondynamic(self,class_type,name,value,0)
52 
53 def _swig_getattr(self,class_type,name):
54  if (name == "thisown"): return self.this.own()
55  method = class_type.__swig_getmethods__.get(name,None)
56  if method: return method(self)
57  raise AttributeError(name)
58 
59 def _swig_repr(self):
60  try: strthis = "proxy of " + self.this.__repr__()
61  except: strthis = ""
62  return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
63 
64 try:
65  _object = object
66  _newclass = 1
67 except AttributeError:
68  class _object : pass
69  _newclass = 0
70 
71 
72 def _swig_setattr_nondynamic_method(set):
73  def set_attr(self,name,value):
74  if (name == "thisown"): return self.this.own(value)
75  if hasattr(self,name) or (name == "this"):
76  set(self,name,value)
77  else:
78  raise AttributeError("You cannot add attributes to %s" % self)
79  return set_attr
80 
81 
82 try:
83  import weakref
84  weakref_proxy = weakref.proxy
85 except:
86  weakref_proxy = lambda x: x
87 
88 
89 class IMP_MISC_SwigPyIterator(object):
90  """Proxy of C++ swig::IMP_MISC_SwigPyIterator class"""
91  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
92  def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined - class is abstract")
93  __repr__ = _swig_repr
94  __swig_destroy__ = _IMP_misc.delete_IMP_MISC_SwigPyIterator
95  __del__ = lambda self : None;
96  def value(self):
97  """value(IMP_MISC_SwigPyIterator self) -> PyObject *"""
98  return _IMP_misc.IMP_MISC_SwigPyIterator_value(self)
99 
100  def incr(self, n=1):
101  """
102  incr(IMP_MISC_SwigPyIterator self, size_t n=1) -> IMP_MISC_SwigPyIterator
103  incr(IMP_MISC_SwigPyIterator self) -> IMP_MISC_SwigPyIterator
104  """
105  return _IMP_misc.IMP_MISC_SwigPyIterator_incr(self, n)
106 
107  def decr(self, n=1):
108  """
109  decr(IMP_MISC_SwigPyIterator self, size_t n=1) -> IMP_MISC_SwigPyIterator
110  decr(IMP_MISC_SwigPyIterator self) -> IMP_MISC_SwigPyIterator
111  """
112  return _IMP_misc.IMP_MISC_SwigPyIterator_decr(self, n)
113 
114  def distance(self, *args):
115  """distance(IMP_MISC_SwigPyIterator self, IMP_MISC_SwigPyIterator x) -> ptrdiff_t"""
116  return _IMP_misc.IMP_MISC_SwigPyIterator_distance(self, *args)
117 
118  def equal(self, *args):
119  """equal(IMP_MISC_SwigPyIterator self, IMP_MISC_SwigPyIterator x) -> bool"""
120  return _IMP_misc.IMP_MISC_SwigPyIterator_equal(self, *args)
121 
122  def copy(self):
123  """copy(IMP_MISC_SwigPyIterator self) -> IMP_MISC_SwigPyIterator"""
124  return _IMP_misc.IMP_MISC_SwigPyIterator_copy(self)
125 
126  def next(self):
127  """next(IMP_MISC_SwigPyIterator self) -> PyObject *"""
128  return _IMP_misc.IMP_MISC_SwigPyIterator_next(self)
129 
130  def __next__(self):
131  """__next__(IMP_MISC_SwigPyIterator self) -> PyObject *"""
132  return _IMP_misc.IMP_MISC_SwigPyIterator___next__(self)
133 
134  def previous(self):
135  """previous(IMP_MISC_SwigPyIterator self) -> PyObject *"""
136  return _IMP_misc.IMP_MISC_SwigPyIterator_previous(self)
137 
138  def advance(self, *args):
139  """advance(IMP_MISC_SwigPyIterator self, ptrdiff_t n) -> IMP_MISC_SwigPyIterator"""
140  return _IMP_misc.IMP_MISC_SwigPyIterator_advance(self, *args)
141 
142  def __eq__(self, *args):
143  """__eq__(IMP_MISC_SwigPyIterator self, IMP_MISC_SwigPyIterator x) -> bool"""
144  return _IMP_misc.IMP_MISC_SwigPyIterator___eq__(self, *args)
145 
146  def __ne__(self, *args):
147  """__ne__(IMP_MISC_SwigPyIterator self, IMP_MISC_SwigPyIterator x) -> bool"""
148  return _IMP_misc.IMP_MISC_SwigPyIterator___ne__(self, *args)
149 
150  def __iadd__(self, *args):
151  """__iadd__(IMP_MISC_SwigPyIterator self, ptrdiff_t n) -> IMP_MISC_SwigPyIterator"""
152  return _IMP_misc.IMP_MISC_SwigPyIterator___iadd__(self, *args)
153 
154  def __isub__(self, *args):
155  """__isub__(IMP_MISC_SwigPyIterator self, ptrdiff_t n) -> IMP_MISC_SwigPyIterator"""
156  return _IMP_misc.IMP_MISC_SwigPyIterator___isub__(self, *args)
157 
158  def __add__(self, *args):
159  """__add__(IMP_MISC_SwigPyIterator self, ptrdiff_t n) -> IMP_MISC_SwigPyIterator"""
160  return _IMP_misc.IMP_MISC_SwigPyIterator___add__(self, *args)
161 
162  def __sub__(self, *args):
163  """
164  __sub__(IMP_MISC_SwigPyIterator self, ptrdiff_t n) -> IMP_MISC_SwigPyIterator
165  __sub__(IMP_MISC_SwigPyIterator self, IMP_MISC_SwigPyIterator x) -> ptrdiff_t
166  """
167  return _IMP_misc.IMP_MISC_SwigPyIterator___sub__(self, *args)
168 
169  def __iter__(self): return self
170 IMP_MISC_SwigPyIterator_swigregister = _IMP_misc.IMP_MISC_SwigPyIterator_swigregister
171 IMP_MISC_SwigPyIterator_swigregister(IMP_MISC_SwigPyIterator)
172 
173 _value_types=[]
174 _object_types=[]
175 _raii_types=[]
176 _plural_types=[]
177 
178 IMP_DEBUG = _IMP_misc.IMP_DEBUG
179 IMP_RELEASE = _IMP_misc.IMP_RELEASE
180 IMP_SILENT = _IMP_misc.IMP_SILENT
181 IMP_PROGRESS = _IMP_misc.IMP_PROGRESS
182 IMP_TERSE = _IMP_misc.IMP_TERSE
183 IMP_VERBOSE = _IMP_misc.IMP_VERBOSE
184 IMP_MEMORY = _IMP_misc.IMP_MEMORY
185 IMP_NONE = _IMP_misc.IMP_NONE
186 IMP_USAGE = _IMP_misc.IMP_USAGE
187 IMP_INTERNAL = _IMP_misc.IMP_INTERNAL
188 IMP_BASE_HAS_LOG4CXX = _IMP_misc.IMP_BASE_HAS_LOG4CXX
189 IMP_COMPILER_HAS_AUTO = _IMP_misc.IMP_COMPILER_HAS_AUTO
190 IMP_COMPILER_HAS_DEBUG_VECTOR = _IMP_misc.IMP_COMPILER_HAS_DEBUG_VECTOR
191 IMP_BASE_HAS_BOOST_RANDOM = _IMP_misc.IMP_BASE_HAS_BOOST_RANDOM
192 IMP_BASE_HAS_GPERFTOOLS = _IMP_misc.IMP_BASE_HAS_GPERFTOOLS
193 IMP_BASE_HAS_TCMALLOC_HEAPCHECKER = _IMP_misc.IMP_BASE_HAS_TCMALLOC_HEAPCHECKER
194 IMP_BASE_HAS_TCMALLOC_HEAPPROFILER = _IMP_misc.IMP_BASE_HAS_TCMALLOC_HEAPPROFILER
195 IMPBASE_SHOW_WARNINGS = _IMP_misc.IMPBASE_SHOW_WARNINGS
196 import sys
197 class _DirectorObjects(object):
198  """@internal Simple class to keep references to director objects
199  to prevent premature deletion."""
200  def __init__(self):
201  self._objects = []
202  def register(self, obj):
203  """Take a reference to a director object; will only work for
204  refcounted C++ classes"""
205  if hasattr(obj, 'get_ref_count'):
206  self._objects.append(obj)
207  def cleanup(self):
208  """Only drop our reference and allow cleanup by Python if no other
209  Python references exist (we hold 3 references: one in self._objects,
210  one in x, and one in the argument list for getrefcount) *and* no
211  other C++ references exist (the Python object always holds one)"""
212  objs = [x for x in self._objects if sys.getrefcount(x) > 3 \
213  or x.get_ref_count() > 1]
214  # Do in two steps so the references are kept until the end of the
215  # function (deleting references may trigger a fresh call to this method)
216  self._objects = objs
217  def get_object_count(self):
218  """Get number of director objects (useful for testing only)"""
219  return len(self._objects)
220 _director_objects = _DirectorObjects()
221 
222 class _ostream(object):
223  """Proxy of C++ std::ostream class"""
224  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
225  def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined")
226  __repr__ = _swig_repr
227  def write(self, *args):
228  """write(_ostream self, char const * osa_buf)"""
229  return _IMP_misc._ostream_write(self, *args)
230 
231 _ostream_swigregister = _IMP_misc._ostream_swigregister
232 _ostream_swigregister(_ostream)
233 
234 IMP_COMPILER_HAS_OVERRIDE = _IMP_misc.IMP_COMPILER_HAS_OVERRIDE
235 IMP_COMPILER_HAS_FINAL = _IMP_misc.IMP_COMPILER_HAS_FINAL
236 IMP_HAS_NOEXCEPT = _IMP_misc.IMP_HAS_NOEXCEPT
237 import IMP.base
238 IMP_CGAL_HAS_BOOST_FILESYSTEM = _IMP_misc.IMP_CGAL_HAS_BOOST_FILESYSTEM
239 IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS = _IMP_misc.IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS
240 IMP_CGAL_HAS_BOOST_RANDOM = _IMP_misc.IMP_CGAL_HAS_BOOST_RANDOM
241 IMP_CGAL_HAS_BOOST_SYSTEM = _IMP_misc.IMP_CGAL_HAS_BOOST_SYSTEM
242 IMPCGAL_SHOW_WARNINGS = _IMP_misc.IMPCGAL_SHOW_WARNINGS
243 import IMP.cgal
244 IMP_ALGEBRA_HAS_IMP_CGAL = _IMP_misc.IMP_ALGEBRA_HAS_IMP_CGAL
245 IMP_ALGEBRA_HAS_BOOST_FILESYSTEM = _IMP_misc.IMP_ALGEBRA_HAS_BOOST_FILESYSTEM
246 IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS = _IMP_misc.IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS
247 IMP_ALGEBRA_HAS_BOOST_RANDOM = _IMP_misc.IMP_ALGEBRA_HAS_BOOST_RANDOM
248 IMP_ALGEBRA_HAS_BOOST_SYSTEM = _IMP_misc.IMP_ALGEBRA_HAS_BOOST_SYSTEM
249 IMP_ALGEBRA_HAS_CGAL = _IMP_misc.IMP_ALGEBRA_HAS_CGAL
250 IMP_ALGEBRA_HAS_ANN = _IMP_misc.IMP_ALGEBRA_HAS_ANN
251 IMPALGEBRA_SHOW_WARNINGS = _IMP_misc.IMPALGEBRA_SHOW_WARNINGS
252 import IMP.algebra
253 IMP_KERNEL_HAS_IMP_CGAL = _IMP_misc.IMP_KERNEL_HAS_IMP_CGAL
254 IMP_KERNEL_HAS_BOOST_PROGRAMOPTIONS = _IMP_misc.IMP_KERNEL_HAS_BOOST_PROGRAMOPTIONS
255 IMP_KERNEL_HAS_BOOST_RANDOM = _IMP_misc.IMP_KERNEL_HAS_BOOST_RANDOM
256 IMP_KERNEL_HAS_BOOST_SYSTEM = _IMP_misc.IMP_KERNEL_HAS_BOOST_SYSTEM
257 IMP_KERNEL_HAS_CGAL = _IMP_misc.IMP_KERNEL_HAS_CGAL
258 IMPKERNEL_SHOW_WARNINGS = _IMP_misc.IMPKERNEL_SHOW_WARNINGS
259 import IMP.kernel
260 IMP_DISPLAY_HAS_IMP_BASE = _IMP_misc.IMP_DISPLAY_HAS_IMP_BASE
261 IMP_DISPLAY_HAS_IMP_CGAL = _IMP_misc.IMP_DISPLAY_HAS_IMP_CGAL
262 IMP_DISPLAY_HAS_BOOST_FILESYSTEM = _IMP_misc.IMP_DISPLAY_HAS_BOOST_FILESYSTEM
263 IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS = _IMP_misc.IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS
264 IMP_DISPLAY_HAS_BOOST_RANDOM = _IMP_misc.IMP_DISPLAY_HAS_BOOST_RANDOM
265 IMP_DISPLAY_HAS_BOOST_SYSTEM = _IMP_misc.IMP_DISPLAY_HAS_BOOST_SYSTEM
266 IMP_DISPLAY_HAS_CGAL = _IMP_misc.IMP_DISPLAY_HAS_CGAL
267 IMPDISPLAY_SHOW_WARNINGS = _IMP_misc.IMPDISPLAY_SHOW_WARNINGS
268 import IMP.display
269 IMP_SCORE_FUNCTOR_HAS_IMP_CGAL = _IMP_misc.IMP_SCORE_FUNCTOR_HAS_IMP_CGAL
270 IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM = _IMP_misc.IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM
271 IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS = _IMP_misc.IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS
272 IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM = _IMP_misc.IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM
273 IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM = _IMP_misc.IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM
274 IMP_SCORE_FUNCTOR_HAS_CGAL = _IMP_misc.IMP_SCORE_FUNCTOR_HAS_CGAL
275 IMP_SCORE_FUNCTOR_HAS_HDF5 = _IMP_misc.IMP_SCORE_FUNCTOR_HAS_HDF5
276 IMPSCOREFUNCTOR_SHOW_WARNINGS = _IMP_misc.IMPSCOREFUNCTOR_SHOW_WARNINGS
277 import IMP.score_functor
278 IMP_CORE_HAS_IMP_BASE = _IMP_misc.IMP_CORE_HAS_IMP_BASE
279 IMP_CORE_HAS_IMP_CGAL = _IMP_misc.IMP_CORE_HAS_IMP_CGAL
280 IMP_CORE_HAS_IMP_KERNEL = _IMP_misc.IMP_CORE_HAS_IMP_KERNEL
281 IMP_CORE_HAS_BOOST_FILESYSTEM = _IMP_misc.IMP_CORE_HAS_BOOST_FILESYSTEM
282 IMP_CORE_HAS_BOOST_PROGRAMOPTIONS = _IMP_misc.IMP_CORE_HAS_BOOST_PROGRAMOPTIONS
283 IMP_CORE_HAS_BOOST_RANDOM = _IMP_misc.IMP_CORE_HAS_BOOST_RANDOM
284 IMP_CORE_HAS_BOOST_SYSTEM = _IMP_misc.IMP_CORE_HAS_BOOST_SYSTEM
285 IMP_CORE_HAS_CGAL = _IMP_misc.IMP_CORE_HAS_CGAL
286 IMP_CORE_HAS_HDF5 = _IMP_misc.IMP_CORE_HAS_HDF5
287 IMPCORE_SHOW_WARNINGS = _IMP_misc.IMPCORE_SHOW_WARNINGS
288 import IMP.core
289 IMP_CONTAINER_HAS_IMP_ALGEBRA = _IMP_misc.IMP_CONTAINER_HAS_IMP_ALGEBRA
290 IMP_CONTAINER_HAS_IMP_BASE = _IMP_misc.IMP_CONTAINER_HAS_IMP_BASE
291 IMP_CONTAINER_HAS_IMP_CGAL = _IMP_misc.IMP_CONTAINER_HAS_IMP_CGAL
292 IMP_CONTAINER_HAS_IMP_DISPLAY = _IMP_misc.IMP_CONTAINER_HAS_IMP_DISPLAY
293 IMP_CONTAINER_HAS_IMP_KERNEL = _IMP_misc.IMP_CONTAINER_HAS_IMP_KERNEL
294 IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR = _IMP_misc.IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR
295 IMP_CONTAINER_HAS_BOOST_FILESYSTEM = _IMP_misc.IMP_CONTAINER_HAS_BOOST_FILESYSTEM
296 IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS = _IMP_misc.IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS
297 IMP_CONTAINER_HAS_BOOST_RANDOM = _IMP_misc.IMP_CONTAINER_HAS_BOOST_RANDOM
298 IMP_CONTAINER_HAS_BOOST_SYSTEM = _IMP_misc.IMP_CONTAINER_HAS_BOOST_SYSTEM
299 IMP_CONTAINER_HAS_CGAL = _IMP_misc.IMP_CONTAINER_HAS_CGAL
300 IMP_CONTAINER_HAS_HDF5 = _IMP_misc.IMP_CONTAINER_HAS_HDF5
301 IMPCONTAINER_SHOW_WARNINGS = _IMP_misc.IMPCONTAINER_SHOW_WARNINGS
302 import IMP.container
303 IMP_ATOM_HAS_IMP_BASE = _IMP_misc.IMP_ATOM_HAS_IMP_BASE
304 IMP_ATOM_HAS_IMP_CGAL = _IMP_misc.IMP_ATOM_HAS_IMP_CGAL
305 IMP_ATOM_HAS_IMP_KERNEL = _IMP_misc.IMP_ATOM_HAS_IMP_KERNEL
306 IMP_ATOM_HAS_IMP_SCORE_FUNCTOR = _IMP_misc.IMP_ATOM_HAS_IMP_SCORE_FUNCTOR
307 IMP_ATOM_HAS_BOOST_PROGRAMOPTIONS = _IMP_misc.IMP_ATOM_HAS_BOOST_PROGRAMOPTIONS
308 IMP_ATOM_HAS_BOOST_RANDOM = _IMP_misc.IMP_ATOM_HAS_BOOST_RANDOM
309 IMP_ATOM_HAS_BOOST_REGEX = _IMP_misc.IMP_ATOM_HAS_BOOST_REGEX
310 IMP_ATOM_HAS_BOOST_SYSTEM = _IMP_misc.IMP_ATOM_HAS_BOOST_SYSTEM
311 IMP_ATOM_HAS_CGAL = _IMP_misc.IMP_ATOM_HAS_CGAL
312 IMP_ATOM_HAS_HDF5 = _IMP_misc.IMP_ATOM_HAS_HDF5
313 IMPATOM_SHOW_WARNINGS = _IMP_misc.IMPATOM_SHOW_WARNINGS
314 IMP_ATOM_TYPE_INDEX = _IMP_misc.IMP_ATOM_TYPE_INDEX
315 IMP_RESIDUE_TYPE_INDEX = _IMP_misc.IMP_RESIDUE_TYPE_INDEX
316 IMP_HIERARCHY_TYPE_INDEX = _IMP_misc.IMP_HIERARCHY_TYPE_INDEX
317 import IMP.atom
318 IMP_MISC_HAS_IMP_ALGEBRA = _IMP_misc.IMP_MISC_HAS_IMP_ALGEBRA
319 IMP_MISC_HAS_IMP_BASE = _IMP_misc.IMP_MISC_HAS_IMP_BASE
320 IMP_MISC_HAS_IMP_CGAL = _IMP_misc.IMP_MISC_HAS_IMP_CGAL
321 IMP_MISC_HAS_IMP_CONTAINER = _IMP_misc.IMP_MISC_HAS_IMP_CONTAINER
322 IMP_MISC_HAS_IMP_DISPLAY = _IMP_misc.IMP_MISC_HAS_IMP_DISPLAY
323 IMP_MISC_HAS_IMP_KERNEL = _IMP_misc.IMP_MISC_HAS_IMP_KERNEL
324 IMP_MISC_HAS_IMP_SCORE_FUNCTOR = _IMP_misc.IMP_MISC_HAS_IMP_SCORE_FUNCTOR
325 IMP_MISC_HAS_BOOST_FILESYSTEM = _IMP_misc.IMP_MISC_HAS_BOOST_FILESYSTEM
326 IMP_MISC_HAS_BOOST_PROGRAMOPTIONS = _IMP_misc.IMP_MISC_HAS_BOOST_PROGRAMOPTIONS
327 IMP_MISC_HAS_BOOST_RANDOM = _IMP_misc.IMP_MISC_HAS_BOOST_RANDOM
328 IMP_MISC_HAS_BOOST_REGEX = _IMP_misc.IMP_MISC_HAS_BOOST_REGEX
329 IMP_MISC_HAS_BOOST_SYSTEM = _IMP_misc.IMP_MISC_HAS_BOOST_SYSTEM
330 IMP_MISC_HAS_CGAL = _IMP_misc.IMP_MISC_HAS_CGAL
331 IMP_MISC_HAS_HDF5 = _IMP_misc.IMP_MISC_HAS_HDF5
332 IMPMISC_SHOW_WARNINGS = _IMP_misc.IMPMISC_SHOW_WARNINGS
333 _object_types.append("WormLikeChain")
334 
335 
336 def _object_cast_to_WormLikeChain(*args):
337  """_object_cast_to_WormLikeChain(Object o) -> WormLikeChain"""
338  return _IMP_misc._object_cast_to_WormLikeChain(*args)
339 _object_types.append("StateAdaptor")
340 
341 
342 def _object_cast_to_StateAdaptor(*args):
343  """_object_cast_to_StateAdaptor(Object o) -> StateAdaptor"""
344  return _IMP_misc._object_cast_to_StateAdaptor(*args)
345 _object_types.append("CommonEndpointPairFilter")
346 
347 
348 def _object_cast_to_CommonEndpointPairFilter(*args):
349  """_object_cast_to_CommonEndpointPairFilter(Object o) -> CommonEndpointPairFilter"""
350  return _IMP_misc._object_cast_to_CommonEndpointPairFilter(*args)
351 _object_types.append("LogPairScore")
352 
353 
354 def _object_cast_to_LogPairScore(*args):
355  """_object_cast_to_LogPairScore(Object o) -> LogPairScore"""
356  return _IMP_misc._object_cast_to_LogPairScore(*args)
357 _object_types.append("LowestRefinedPairScore")
358 
359 
360 def _object_cast_to_LowestRefinedPairScore(*args):
361  """_object_cast_to_LowestRefinedPairScore(Object o) -> LowestRefinedPairScore"""
362  return _IMP_misc._object_cast_to_LowestRefinedPairScore(*args)
363 _object_types.append("SoftCylinderPairScore")
364 
365 
366 def _object_cast_to_SoftCylinderPairScore(*args):
367  """_object_cast_to_SoftCylinderPairScore(Object o) -> SoftCylinderPairScore"""
368  return _IMP_misc._object_cast_to_SoftCylinderPairScore(*args)
369 _object_types.append("DecayPairContainerOptimizerState")
370 
371 
372 def _object_cast_to_DecayPairContainerOptimizerState(*args):
373  """_object_cast_to_DecayPairContainerOptimizerState(Object o) -> DecayPairContainerOptimizerState"""
374  return _IMP_misc._object_cast_to_DecayPairContainerOptimizerState(*args)
375 def CustomXYZRs(l=[]):
376  return [CustomXYZR(x) for x in l]
377 _plural_types.append("CustomXYZRs")
378 
379 _value_types.append("CustomXYZR")
380 
381 class WormLikeChain(IMP.kernel.UnaryFunction):
382  """Proxy of C++ IMP::misc::WormLikeChain class"""
383  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
384  def __init__(self, *args):
385  """__init__(IMP::misc::WormLikeChain self, IMP::Float l_max, IMP::Float lp) -> WormLikeChain"""
386  this = _IMP_misc.new_WormLikeChain(*args)
387  try: self.this.append(this)
388  except: self.this = this
389  def get_version_info(self):
390  """get_version_info(WormLikeChain self) -> VersionInfo"""
391  return _IMP_misc.WormLikeChain_get_version_info(self)
392 
393  def do_show(self, *args):
394  """do_show(WormLikeChain self, _ostream out)"""
395  return _IMP_misc.WormLikeChain_do_show(self, *args)
396 
397  def __str__(self):
398  """__str__(WormLikeChain self) -> std::string"""
399  return _IMP_misc.WormLikeChain___str__(self)
400 
401  def __repr__(self):
402  """__repr__(WormLikeChain self) -> std::string"""
403  return _IMP_misc.WormLikeChain___repr__(self)
404 
405  def get_from(o):
406  return _object_cast_to_WormLikeChain(o)
407  get_from = staticmethod(get_from)
408 
409 WormLikeChain_swigregister = _IMP_misc.WormLikeChain_swigregister
410 WormLikeChain_swigregister(WormLikeChain)
411 
412 class LowestRefinedPairScore(IMP.kernel.PairScore):
413  """Proxy of C++ IMP::misc::LowestRefinedPairScore class"""
414  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
415  def __init__(self, *args):
416  """__init__(IMP::misc::LowestRefinedPairScore self, Refiner r, PairScore f) -> LowestRefinedPairScore"""
417  this = _IMP_misc.new_LowestRefinedPairScore(*args)
418  try: self.this.append(this)
419  except: self.this = this
420  def do_get_inputs(self, *args):
421  """do_get_inputs(LowestRefinedPairScore self, Model m, IMP::kernel::ParticleIndexes const & pis) -> IMP::kernel::ModelObjectsTemp"""
422  return _IMP_misc.LowestRefinedPairScore_do_get_inputs(self, *args)
423 
424  def get_version_info(self):
425  """get_version_info(LowestRefinedPairScore self) -> VersionInfo"""
426  return _IMP_misc.LowestRefinedPairScore_get_version_info(self)
427 
428  def __str__(self):
429  """__str__(LowestRefinedPairScore self) -> std::string"""
430  return _IMP_misc.LowestRefinedPairScore___str__(self)
431 
432  def __repr__(self):
433  """__repr__(LowestRefinedPairScore self) -> std::string"""
434  return _IMP_misc.LowestRefinedPairScore___repr__(self)
435 
436  def get_from(o):
437  return _object_cast_to_LowestRefinedPairScore(o)
438  get_from = staticmethod(get_from)
439 
440 LowestRefinedPairScore_swigregister = _IMP_misc.LowestRefinedPairScore_swigregister
441 LowestRefinedPairScore_swigregister(LowestRefinedPairScore)
442 
443 class LogPairScore(IMP.kernel.PairScore):
444  """Proxy of C++ IMP::misc::LogPairScore class"""
445  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
446  def __init__(self):
447  """__init__(IMP::misc::LogPairScore self) -> LogPairScore"""
448  this = _IMP_misc.new_LogPairScore()
449  try: self.this.append(this)
450  except: self.this = this
451  def do_get_inputs(self, *args):
452  """do_get_inputs(LogPairScore self, Model arg2, IMP::kernel::ParticleIndexes const & arg3) -> IMP::kernel::ModelObjectsTemp"""
453  return _IMP_misc.LogPairScore_do_get_inputs(self, *args)
454 
455  def get_version_info(self):
456  """get_version_info(LogPairScore self) -> VersionInfo"""
457  return _IMP_misc.LogPairScore_get_version_info(self)
458 
459  def get_particle_pairs(self):
460  """get_particle_pairs(LogPairScore self) -> IMP::kernel::ParticlePairsTemp"""
461  return _IMP_misc.LogPairScore_get_particle_pairs(self)
462 
463  def clear(self):
464  """clear(LogPairScore self)"""
465  return _IMP_misc.LogPairScore_clear(self)
466 
467  def get_contains(self, *args):
468  """get_contains(LogPairScore self, IMP::kernel::ParticlePair const & pp) -> bool"""
469  return _IMP_misc.LogPairScore_get_contains(self, *args)
470 
471  def __str__(self):
472  """__str__(LogPairScore self) -> std::string"""
473  return _IMP_misc.LogPairScore___str__(self)
474 
475  def __repr__(self):
476  """__repr__(LogPairScore self) -> std::string"""
477  return _IMP_misc.LogPairScore___repr__(self)
478 
479  def get_from(o):
480  return _object_cast_to_LogPairScore(o)
481  get_from = staticmethod(get_from)
482 
483 LogPairScore_swigregister = _IMP_misc.LogPairScore_swigregister
484 LogPairScore_swigregister(LogPairScore)
485 
486 class StateAdaptor(IMP.kernel.ScoreState):
487  """Proxy of C++ IMP::misc::StateAdaptor class"""
488  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
489  def __init__(self, *args):
490  """__init__(IMP::misc::StateAdaptor self, Model m, OptimizerState before, OptimizerState after) -> StateAdaptor"""
491  this = _IMP_misc.new_StateAdaptor(*args)
492  try: self.this.append(this)
493  except: self.this = this
494  def do_before_evaluate(self):
495  """do_before_evaluate(StateAdaptor self)"""
496  return _IMP_misc.StateAdaptor_do_before_evaluate(self)
497 
498  def do_after_evaluate(self, *args):
499  """do_after_evaluate(StateAdaptor self, DerivativeAccumulator da)"""
500  return _IMP_misc.StateAdaptor_do_after_evaluate(self, *args)
501 
502  def do_get_inputs(self):
503  """do_get_inputs(StateAdaptor self) -> IMP::kernel::ModelObjectsTemp"""
504  return _IMP_misc.StateAdaptor_do_get_inputs(self)
505 
506  def do_get_outputs(self):
507  """do_get_outputs(StateAdaptor self) -> IMP::kernel::ModelObjectsTemp"""
508  return _IMP_misc.StateAdaptor_do_get_outputs(self)
509 
510  def get_version_info(self):
511  """get_version_info(StateAdaptor self) -> VersionInfo"""
512  return _IMP_misc.StateAdaptor_get_version_info(self)
513 
514  def __str__(self):
515  """__str__(StateAdaptor self) -> std::string"""
516  return _IMP_misc.StateAdaptor___str__(self)
517 
518  def __repr__(self):
519  """__repr__(StateAdaptor self) -> std::string"""
520  return _IMP_misc.StateAdaptor___repr__(self)
521 
522  def get_from(o):
523  return _object_cast_to_StateAdaptor(o)
524  get_from = staticmethod(get_from)
525 
526 StateAdaptor_swigregister = _IMP_misc.StateAdaptor_swigregister
527 StateAdaptor_swigregister(StateAdaptor)
528 
529 class CommonEndpointPairFilter(IMP.kernel.PairPredicate):
530  """Proxy of C++ IMP::misc::CommonEndpointPairFilter class"""
531  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
532  def __init__(self):
533  """__init__(IMP::misc::CommonEndpointPairFilter self) -> CommonEndpointPairFilter"""
534  this = _IMP_misc.new_CommonEndpointPairFilter()
535  try: self.this.append(this)
536  except: self.this = this
537  def do_get_inputs(self, *args):
538  """do_get_inputs(CommonEndpointPairFilter self, Model m, IMP::kernel::ParticleIndexes const & pis) -> IMP::kernel::ModelObjectsTemp"""
539  return _IMP_misc.CommonEndpointPairFilter_do_get_inputs(self, *args)
540 
541  def get_value(self, *args):
542  """
543  get_value(CommonEndpointPairFilter self, IMP::kernel::ParticlePair const & a) -> int
544  get_value(CommonEndpointPairFilter self, IMP::kernel::ParticlePairsTemp const & o) -> IMP::Ints
545  """
546  return _IMP_misc.CommonEndpointPairFilter_get_value(self, *args)
547 
548  def get_value_index(self, *args):
549  """
550  get_value_index(CommonEndpointPairFilter self, Model m, IMP::kernel::ParticleIndexPair const & p) -> int
551  get_value_index(CommonEndpointPairFilter self, Model m, IMP::kernel::ParticleIndexPairs const & o) -> IMP::Ints
552  """
553  return _IMP_misc.CommonEndpointPairFilter_get_value_index(self, *args)
554 
555  def get_version_info(self):
556  """get_version_info(CommonEndpointPairFilter self) -> VersionInfo"""
557  return _IMP_misc.CommonEndpointPairFilter_get_version_info(self)
558 
559  def __str__(self):
560  """__str__(CommonEndpointPairFilter self) -> std::string"""
561  return _IMP_misc.CommonEndpointPairFilter___str__(self)
562 
563  def __repr__(self):
564  """__repr__(CommonEndpointPairFilter self) -> std::string"""
565  return _IMP_misc.CommonEndpointPairFilter___repr__(self)
566 
567  def get_from(o):
568  return _object_cast_to_CommonEndpointPairFilter(o)
569  get_from = staticmethod(get_from)
570 
571 CommonEndpointPairFilter_swigregister = _IMP_misc.CommonEndpointPairFilter_swigregister
572 CommonEndpointPairFilter_swigregister(CommonEndpointPairFilter)
573 
574 class CustomXYZR(IMP.core.XYZ):
575  """Proxy of C++ IMP::misc::CustomXYZR class"""
576  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
577  def get_decorator_traits(self):
578  """get_decorator_traits(CustomXYZR self) -> FloatKey"""
579  return _IMP_misc.CustomXYZR_get_decorator_traits(self)
580 
581  def get_default_decorator_traits():
582  """get_default_decorator_traits() -> FloatKey"""
583  return _IMP_misc.CustomXYZR_get_default_decorator_traits()
584 
585  get_default_decorator_traits = staticmethod(get_default_decorator_traits)
586  def __init__(self, *args):
587  """
588  __init__(IMP::misc::CustomXYZR self) -> CustomXYZR
589  __init__(IMP::misc::CustomXYZR self, Model m, ::IMP::kernel::ParticleIndex id, FloatKey tr=IMP::core::XYZR::get_radius_key()) -> CustomXYZR
590  __init__(IMP::misc::CustomXYZR self, Model m, ::IMP::kernel::ParticleIndex id) -> CustomXYZR
591  __init__(IMP::misc::CustomXYZR self, _ParticleAdaptor d, FloatKey tr=IMP::core::XYZR::get_radius_key()) -> CustomXYZR
592  __init__(IMP::misc::CustomXYZR self, _ParticleAdaptor d) -> CustomXYZR
593  """
594  this = _IMP_misc.new_CustomXYZR(*args)
595  try: self.this.append(this)
596  except: self.this = this
597  def show(self, *args):
598  """
599  show(CustomXYZR self, _ostream out=std::cout)
600  show(CustomXYZR self)
601  """
602  return _IMP_misc.CustomXYZR_show(self, *args)
603 
604  def setup_particle(*args):
605  """
606  setup_particle(Model m, IMP::kernel::ParticleIndex pi, FloatKey tr=IMP::misc::CustomXYZR::get_default_decorator_traits()) -> CustomXYZR
607  setup_particle(Model m, IMP::kernel::ParticleIndex pi) -> CustomXYZR
608  setup_particle(_ParticleAdaptor d, FloatKey tr=IMP::misc::CustomXYZR::get_default_decorator_traits()) -> CustomXYZR
609  setup_particle(_ParticleAdaptor d) -> CustomXYZR
610  setup_particle(Model m, IMP::kernel::ParticleIndex pi, double radius, FloatKey tr=IMP::misc::CustomXYZR::get_default_decorator_traits()) -> CustomXYZR
611  setup_particle(Model m, IMP::kernel::ParticleIndex pi, double radius) -> CustomXYZR
612  setup_particle(_ParticleAdaptor d, double radius, FloatKey tr=IMP::misc::CustomXYZR::get_default_decorator_traits()) -> CustomXYZR
613  setup_particle(_ParticleAdaptor d, double radius) -> CustomXYZR
614  setup_particle(Model m, IMP::kernel::ParticleIndex pi, Sphere3D ball, FloatKey tr=IMP::misc::CustomXYZR::get_default_decorator_traits()) -> CustomXYZR
615  setup_particle(Model m, IMP::kernel::ParticleIndex pi, Sphere3D ball) -> CustomXYZR
616  setup_particle(_ParticleAdaptor d, Sphere3D ball, FloatKey tr=IMP::misc::CustomXYZR::get_default_decorator_traits()) -> CustomXYZR
617  setup_particle(_ParticleAdaptor d, Sphere3D ball) -> CustomXYZR
618  """
619  return _IMP_misc.CustomXYZR_setup_particle(*args)
620 
621  setup_particle = staticmethod(setup_particle)
622  def get_is_setup(*args):
623  """
624  get_is_setup(_ParticleAdaptor p, FloatKey tr=IMP::core::XYZR::get_radius_key()) -> bool
625  get_is_setup(_ParticleAdaptor p) -> bool
626  get_is_setup(Model m, IMP::kernel::ParticleIndex pi, FloatKey radius_key=get_default_radius_key()) -> bool
627  get_is_setup(Model m, IMP::kernel::ParticleIndex pi) -> bool
628  """
629  return _IMP_misc.CustomXYZR_get_is_setup(*args)
630 
631  get_is_setup = staticmethod(get_is_setup)
632  def get_radius(self):
633  """get_radius(CustomXYZR self) -> IMP::Float"""
634  return _IMP_misc.CustomXYZR_get_radius(self)
635 
636  def set_radius(self, *args):
637  """set_radius(CustomXYZR self, IMP::Float t)"""
638  return _IMP_misc.CustomXYZR_set_radius(self, *args)
639 
640  def get_sphere(self):
641  """get_sphere(CustomXYZR self) -> Sphere3D"""
642  return _IMP_misc.CustomXYZR_get_sphere(self)
643 
644  def set_sphere(self, *args):
645  """set_sphere(CustomXYZR self, Sphere3D s)"""
646  return _IMP_misc.CustomXYZR_set_sphere(self, *args)
647 
648  def get_default_radius_key():
649  """get_default_radius_key() -> FloatKey"""
650  return _IMP_misc.CustomXYZR_get_default_radius_key()
651 
652  get_default_radius_key = staticmethod(get_default_radius_key)
653  def add_to_radius_derivative(self, *args):
654  """add_to_radius_derivative(CustomXYZR self, double v, DerivativeAccumulator d)"""
655  return _IMP_misc.CustomXYZR_add_to_radius_derivative(self, *args)
656 
657  def get_traits(self):
658  """get_traits(CustomXYZR self) -> FloatKey"""
659  return _IMP_misc.CustomXYZR_get_traits(self)
660 
661  def add_attribute(self, *args):
662  """
663  add_attribute(CustomXYZR self, FloatKey k, IMP::Float v, bool opt)
664  add_attribute(CustomXYZR self, FloatKey a0, IMP::Float a1)
665  add_attribute(CustomXYZR self, IntKey a0, IMP::Int a1)
666  add_attribute(CustomXYZR self, StringKey a0, IMP::String a1)
667  add_attribute(CustomXYZR self, ParticleIndexKey a0, Particle a1)
668  add_attribute(CustomXYZR self, ObjectKey a0, Object a1)
669  """
670  return _IMP_misc.CustomXYZR_add_attribute(self, *args)
671 
672  def get_value(self, *args):
673  """
674  get_value(CustomXYZR self, FloatKey a0) -> IMP::Float
675  get_value(CustomXYZR self, IntKey a0) -> IMP::Int
676  get_value(CustomXYZR self, StringKey a0) -> IMP::String
677  get_value(CustomXYZR self, ParticleIndexKey a0) -> Particle
678  get_value(CustomXYZR self, ObjectKey a0) -> Object
679  """
680  return _IMP_misc.CustomXYZR_get_value(self, *args)
681 
682  def set_value(self, *args):
683  """
684  set_value(CustomXYZR self, FloatKey a0, IMP::Float a1)
685  set_value(CustomXYZR self, IntKey a0, IMP::Int a1)
686  set_value(CustomXYZR self, StringKey a0, IMP::String a1)
687  set_value(CustomXYZR self, ParticleIndexKey a0, Particle a1)
688  set_value(CustomXYZR self, ObjectKey a0, Object a1)
689  """
690  return _IMP_misc.CustomXYZR_set_value(self, *args)
691 
692  def remove_attribute(self, *args):
693  """
694  remove_attribute(CustomXYZR self, FloatKey a0)
695  remove_attribute(CustomXYZR self, IntKey a0)
696  remove_attribute(CustomXYZR self, StringKey a0)
697  remove_attribute(CustomXYZR self, ParticleIndexKey a0)
698  remove_attribute(CustomXYZR self, ObjectKey a0)
699  """
700  return _IMP_misc.CustomXYZR_remove_attribute(self, *args)
701 
702  def has_attribute(self, *args):
703  """
704  has_attribute(CustomXYZR self, FloatKey a0) -> bool
705  has_attribute(CustomXYZR self, IntKey a0) -> bool
706  has_attribute(CustomXYZR self, StringKey a0) -> bool
707  has_attribute(CustomXYZR self, ParticleIndexKey a0) -> bool
708  has_attribute(CustomXYZR self, ObjectKey a0) -> bool
709  """
710  return _IMP_misc.CustomXYZR_has_attribute(self, *args)
711 
712  def get_derivative(self, *args):
713  """get_derivative(CustomXYZR self, FloatKey a0) -> double"""
714  return _IMP_misc.CustomXYZR_get_derivative(self, *args)
715 
716  def get_name(self):
717  """get_name(CustomXYZR self) -> std::string"""
718  return _IMP_misc.CustomXYZR_get_name(self)
719 
720  def clear_caches(self):
721  """clear_caches(CustomXYZR self)"""
722  return _IMP_misc.CustomXYZR_clear_caches(self)
723 
724  def set_name(self, *args):
725  """set_name(CustomXYZR self, std::string a0)"""
726  return _IMP_misc.CustomXYZR_set_name(self, *args)
727 
728  def set_check_level(self, *args):
729  """set_check_level(CustomXYZR self, IMP::base::CheckLevel a0)"""
730  return _IMP_misc.CustomXYZR_set_check_level(self, *args)
731 
732  def add_to_derivative(self, *args):
733  """add_to_derivative(CustomXYZR self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
734  return _IMP_misc.CustomXYZR_add_to_derivative(self, *args)
735 
736  def set_is_optimized(self, *args):
737  """set_is_optimized(CustomXYZR self, FloatKey a0, bool a1)"""
738  return _IMP_misc.CustomXYZR_set_is_optimized(self, *args)
739 
740  def get_is_optimized(self, *args):
741  """get_is_optimized(CustomXYZR self, FloatKey a0) -> bool"""
742  return _IMP_misc.CustomXYZR_get_is_optimized(self, *args)
743 
744  def get_check_level(self):
745  """get_check_level(CustomXYZR self) -> IMP::base::CheckLevel"""
746  return _IMP_misc.CustomXYZR_get_check_level(self)
747 
748  def __eq__(self, *args):
749  """
750  __eq__(CustomXYZR self, CustomXYZR o) -> bool
751  __eq__(CustomXYZR self, Particle d) -> bool
752  """
753  return _IMP_misc.CustomXYZR___eq__(self, *args)
754 
755  def __ne__(self, *args):
756  """
757  __ne__(CustomXYZR self, CustomXYZR o) -> bool
758  __ne__(CustomXYZR self, Particle d) -> bool
759  """
760  return _IMP_misc.CustomXYZR___ne__(self, *args)
761 
762  def __le__(self, *args):
763  """
764  __le__(CustomXYZR self, CustomXYZR o) -> bool
765  __le__(CustomXYZR self, Particle d) -> bool
766  """
767  return _IMP_misc.CustomXYZR___le__(self, *args)
768 
769  def __lt__(self, *args):
770  """
771  __lt__(CustomXYZR self, CustomXYZR o) -> bool
772  __lt__(CustomXYZR self, Particle d) -> bool
773  """
774  return _IMP_misc.CustomXYZR___lt__(self, *args)
775 
776  def __ge__(self, *args):
777  """
778  __ge__(CustomXYZR self, CustomXYZR o) -> bool
779  __ge__(CustomXYZR self, Particle d) -> bool
780  """
781  return _IMP_misc.CustomXYZR___ge__(self, *args)
782 
783  def __gt__(self, *args):
784  """
785  __gt__(CustomXYZR self, CustomXYZR o) -> bool
786  __gt__(CustomXYZR self, Particle d) -> bool
787  """
788  return _IMP_misc.CustomXYZR___gt__(self, *args)
789 
790  def __hash__(self):
791  """__hash__(CustomXYZR self) -> std::size_t"""
792  return _IMP_misc.CustomXYZR___hash__(self)
793 
794  def __str__(self):
795  """__str__(CustomXYZR self) -> std::string"""
796  return _IMP_misc.CustomXYZR___str__(self)
797 
798  def __repr__(self):
799  """__repr__(CustomXYZR self) -> std::string"""
800  return _IMP_misc.CustomXYZR___repr__(self)
801 
802  __swig_destroy__ = _IMP_misc.delete_CustomXYZR
803  __del__ = lambda self : None;
804 CustomXYZR_swigregister = _IMP_misc.CustomXYZR_swigregister
805 CustomXYZR_swigregister(CustomXYZR)
806 
807 def CustomXYZR_get_default_decorator_traits():
808  """CustomXYZR_get_default_decorator_traits() -> FloatKey"""
809  return _IMP_misc.CustomXYZR_get_default_decorator_traits()
810 
811 def CustomXYZR_setup_particle(*args):
812  """
813  setup_particle(Model m, IMP::kernel::ParticleIndex pi, FloatKey tr=IMP::misc::CustomXYZR::get_default_decorator_traits()) -> CustomXYZR
814  setup_particle(Model m, IMP::kernel::ParticleIndex pi) -> CustomXYZR
815  setup_particle(_ParticleAdaptor d, FloatKey tr=IMP::misc::CustomXYZR::get_default_decorator_traits()) -> CustomXYZR
816  setup_particle(_ParticleAdaptor d) -> CustomXYZR
817  setup_particle(Model m, IMP::kernel::ParticleIndex pi, double radius, FloatKey tr=IMP::misc::CustomXYZR::get_default_decorator_traits()) -> CustomXYZR
818  setup_particle(Model m, IMP::kernel::ParticleIndex pi, double radius) -> CustomXYZR
819  setup_particle(_ParticleAdaptor d, double radius, FloatKey tr=IMP::misc::CustomXYZR::get_default_decorator_traits()) -> CustomXYZR
820  setup_particle(_ParticleAdaptor d, double radius) -> CustomXYZR
821  setup_particle(Model m, IMP::kernel::ParticleIndex pi, Sphere3D ball, FloatKey tr=IMP::misc::CustomXYZR::get_default_decorator_traits()) -> CustomXYZR
822  setup_particle(Model m, IMP::kernel::ParticleIndex pi, Sphere3D ball) -> CustomXYZR
823  setup_particle(_ParticleAdaptor d, Sphere3D ball, FloatKey tr=IMP::misc::CustomXYZR::get_default_decorator_traits()) -> CustomXYZR
824  CustomXYZR_setup_particle(_ParticleAdaptor d, Sphere3D ball) -> CustomXYZR
825  """
826  return _IMP_misc.CustomXYZR_setup_particle(*args)
827 
828 def CustomXYZR_get_is_setup(*args):
829  """
830  get_is_setup(_ParticleAdaptor p, FloatKey tr=IMP::core::XYZR::get_radius_key()) -> bool
831  get_is_setup(_ParticleAdaptor p) -> bool
832  get_is_setup(Model m, IMP::kernel::ParticleIndex pi, FloatKey radius_key=get_default_radius_key()) -> bool
833  CustomXYZR_get_is_setup(Model m, IMP::kernel::ParticleIndex pi) -> bool
834  """
835  return _IMP_misc.CustomXYZR_get_is_setup(*args)
836 
837 def CustomXYZR_get_default_radius_key():
838  """CustomXYZR_get_default_radius_key() -> FloatKey"""
839  return _IMP_misc.CustomXYZR_get_default_radius_key()
840 
841 
842 def __lshift__(*args):
843  """__lshift__(_ostream out, CustomXYZR n) -> _ostream"""
844  return _IMP_misc.__lshift__(*args)
845 
846 def get_distance(*args):
847  """get_distance(CustomXYZR a, CustomXYZR b) -> double"""
848  return _IMP_misc.get_distance(*args)
849 
850 def get_sphere_d_geometry(*args):
851  """get_sphere_d_geometry(CustomXYZR d) -> Sphere3D"""
852  return _IMP_misc.get_sphere_d_geometry(*args)
853 
854 def set_sphere_d_geometry(*args):
855  """set_sphere_d_geometry(CustomXYZR d, Sphere3D v)"""
856  return _IMP_misc.set_sphere_d_geometry(*args)
857 class SoftCylinderPairScore(IMP.kernel.PairScore):
858  """Proxy of C++ IMP::misc::SoftCylinderPairScore class"""
859  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
860  def __init__(self, *args):
861  """__init__(IMP::misc::SoftCylinderPairScore self, double k) -> SoftCylinderPairScore"""
862  this = _IMP_misc.new_SoftCylinderPairScore(*args)
863  try: self.this.append(this)
864  except: self.this = this
865  def do_get_inputs(self, *args):
866  """do_get_inputs(SoftCylinderPairScore self, Model m, IMP::kernel::ParticleIndexes const & pis) -> IMP::kernel::ModelObjectsTemp"""
867  return _IMP_misc.SoftCylinderPairScore_do_get_inputs(self, *args)
868 
869  def get_version_info(self):
870  """get_version_info(SoftCylinderPairScore self) -> VersionInfo"""
871  return _IMP_misc.SoftCylinderPairScore_get_version_info(self)
872 
873  def __str__(self):
874  """__str__(SoftCylinderPairScore self) -> std::string"""
875  return _IMP_misc.SoftCylinderPairScore___str__(self)
876 
877  def __repr__(self):
878  """__repr__(SoftCylinderPairScore self) -> std::string"""
879  return _IMP_misc.SoftCylinderPairScore___repr__(self)
880 
881  def get_from(o):
882  return _object_cast_to_SoftCylinderPairScore(o)
883  get_from = staticmethod(get_from)
884 
885 SoftCylinderPairScore_swigregister = _IMP_misc.SoftCylinderPairScore_swigregister
886 SoftCylinderPairScore_swigregister(SoftCylinderPairScore)
887 
888 class DecayPairContainerOptimizerState(IMP.kernel.OptimizerState):
889  """Proxy of C++ IMP::misc::DecayPairContainerOptimizerState class"""
890  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
891  def __init__(self, *args):
892  """
893  __init__(IMP::misc::DecayPairContainerOptimizerState self, PairPredicate pred, IMP::kernel::ParticlePairsTemp const & initial_list, std::string name="DecayPairContainerOptimizerState%1%") -> DecayPairContainerOptimizerState
894  __init__(IMP::misc::DecayPairContainerOptimizerState self, PairPredicate pred, IMP::kernel::ParticlePairsTemp const & initial_list) -> DecayPairContainerOptimizerState
895  """
896  this = _IMP_misc.new_DecayPairContainerOptimizerState(*args)
897  try: self.this.append(this)
898  except: self.this = this
899  def get_output_container(self):
900  """get_output_container(DecayPairContainerOptimizerState self) -> PairContainer"""
901  return _IMP_misc.DecayPairContainerOptimizerState_get_output_container(self)
902 
903  def do_update(self, *args):
904  """do_update(DecayPairContainerOptimizerState self, unsigned int call_num)"""
905  return _IMP_misc.DecayPairContainerOptimizerState_do_update(self, *args)
906 
907  def get_version_info(self):
908  """get_version_info(DecayPairContainerOptimizerState self) -> VersionInfo"""
909  return _IMP_misc.DecayPairContainerOptimizerState_get_version_info(self)
910 
911  def __str__(self):
912  """__str__(DecayPairContainerOptimizerState self) -> std::string"""
913  return _IMP_misc.DecayPairContainerOptimizerState___str__(self)
914 
915  def __repr__(self):
916  """__repr__(DecayPairContainerOptimizerState self) -> std::string"""
917  return _IMP_misc.DecayPairContainerOptimizerState___repr__(self)
918 
919  def get_from(o):
920  return _object_cast_to_DecayPairContainerOptimizerState(o)
921  get_from = staticmethod(get_from)
922 
923 DecayPairContainerOptimizerState_swigregister = _IMP_misc.DecayPairContainerOptimizerState_swigregister
924 DecayPairContainerOptimizerState_swigregister(DecayPairContainerOptimizerState)
925 
926 
927 def get_module_version():
928  """get_module_version() -> std::string const"""
929  return _IMP_misc.get_module_version()
930 
931 def get_example_path(*args):
932  """get_example_path(std::string fname) -> std::string"""
933  return _IMP_misc.get_example_path(*args)
934 
935 def get_data_path(*args):
936  """get_data_path(std::string fname) -> std::string"""
937  return _IMP_misc.get_data_path(*args)
938 from . import _version_check
939 _version_check.check_version(get_module_version())
940 
941 
942 
Various classes to hold sets of particles.
Shared optimizer state that is invoked upon commitment of new coordinates.
const algebra::Sphere3D get_sphere_d_geometry(CustomXYZR d)
Definition: CustomXYZR.h:90
Make CGAL functionality available to IMP.
void set_check_level(CheckLevel tf)
Control runtime checks in the code.
Definition: exception.h:73
Low level functionality (logging, error handling, profiling, command line flags etc) that is used by ...
std::string get_data_path(std::string file_name)
Return the full path to installed data.
Abstract single variable functor class for score functions.
ScoreStates maintain invariants in the Model.
Composable functors to implement scores via compile-time composition.
Abstract class for scoring object(s) of type ParticlePair.
double get_distance(const Plane3D &pln, const Vector3D &p)
Return the distance between a plane and a point in 3D.
Definition: Plane3D.h:71
Base functionality and abstract base classes for representation, scoring and sampling.
A decorator for a particle with x,y,z coordinates.
Definition: XYZ.h:30
Abstract predicate function.
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.
General purpose algebraic and geometric methods that are expected to be used by a wide variety of IMP...
void show(Hierarchy h, std::ostream &out=std::cout)
Print out a molecular hierarchy.
std::string get_example_path(std::string file_name)
Return the path to installed example data for this module.
CheckLevel get_check_level()
Get the current audit mode.
Definition: exception.h:81
Output IMP model data in various file formats.
Functionality for loading, creating, manipulating and scoring atomic structures.