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