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