IMP  2.3.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 show(self, *args):
637  """
638  show(CustomXYZR self, _ostream out=std::cout)
639  show(CustomXYZR self)
640  """
641  return _IMP_misc.CustomXYZR_show(self, *args)
642 
643  def setup_particle(*args):
644  """
645  setup_particle(Model m, IMP::kernel::ParticleIndex pi, FloatKey tr=IMP::misc::CustomXYZR::get_default_decorator_traits()) -> CustomXYZR
646  setup_particle(Model m, IMP::kernel::ParticleIndex pi) -> CustomXYZR
647  setup_particle(_ParticleAdaptor d, FloatKey tr=IMP::misc::CustomXYZR::get_default_decorator_traits()) -> CustomXYZR
648  setup_particle(_ParticleAdaptor d) -> CustomXYZR
649  setup_particle(Model m, IMP::kernel::ParticleIndex pi, double radius, FloatKey tr=IMP::misc::CustomXYZR::get_default_decorator_traits()) -> CustomXYZR
650  setup_particle(Model m, IMP::kernel::ParticleIndex pi, double radius) -> CustomXYZR
651  setup_particle(_ParticleAdaptor d, double radius, FloatKey tr=IMP::misc::CustomXYZR::get_default_decorator_traits()) -> CustomXYZR
652  setup_particle(_ParticleAdaptor d, double radius) -> CustomXYZR
653  setup_particle(Model m, IMP::kernel::ParticleIndex pi, Sphere3D ball, FloatKey tr=IMP::misc::CustomXYZR::get_default_decorator_traits()) -> CustomXYZR
654  setup_particle(Model m, IMP::kernel::ParticleIndex pi, Sphere3D ball) -> CustomXYZR
655  setup_particle(_ParticleAdaptor d, Sphere3D ball, FloatKey tr=IMP::misc::CustomXYZR::get_default_decorator_traits()) -> CustomXYZR
656  setup_particle(_ParticleAdaptor d, Sphere3D ball) -> CustomXYZR
657  """
658  return _IMP_misc.CustomXYZR_setup_particle(*args)
659 
660  if _newclass:setup_particle = staticmethod(setup_particle)
661  __swig_getmethods__["setup_particle"] = lambda x: setup_particle
662  def get_is_setup(*args):
663  """
664  get_is_setup(_ParticleAdaptor p, FloatKey tr=IMP::core::XYZR::get_radius_key()) -> bool
665  get_is_setup(_ParticleAdaptor p) -> bool
666  get_is_setup(Model m, IMP::kernel::ParticleIndex pi, FloatKey radius_key=get_default_radius_key()) -> bool
667  get_is_setup(Model m, IMP::kernel::ParticleIndex pi) -> bool
668  """
669  return _IMP_misc.CustomXYZR_get_is_setup(*args)
670 
671  if _newclass:get_is_setup = staticmethod(get_is_setup)
672  __swig_getmethods__["get_is_setup"] = lambda x: get_is_setup
673  def get_radius(self):
674  """get_radius(CustomXYZR self) -> IMP::Float"""
675  return _IMP_misc.CustomXYZR_get_radius(self)
676 
677  def set_radius(self, *args):
678  """set_radius(CustomXYZR self, IMP::Float t)"""
679  return _IMP_misc.CustomXYZR_set_radius(self, *args)
680 
681  def get_sphere(self):
682  """get_sphere(CustomXYZR self) -> Sphere3D"""
683  return _IMP_misc.CustomXYZR_get_sphere(self)
684 
685  def set_sphere(self, *args):
686  """set_sphere(CustomXYZR self, Sphere3D s)"""
687  return _IMP_misc.CustomXYZR_set_sphere(self, *args)
688 
689  def get_default_radius_key():
690  """get_default_radius_key() -> FloatKey"""
691  return _IMP_misc.CustomXYZR_get_default_radius_key()
692 
693  if _newclass:get_default_radius_key = staticmethod(get_default_radius_key)
694  __swig_getmethods__["get_default_radius_key"] = lambda x: get_default_radius_key
695  def add_to_radius_derivative(self, *args):
696  """add_to_radius_derivative(CustomXYZR self, double v, DerivativeAccumulator d)"""
697  return _IMP_misc.CustomXYZR_add_to_radius_derivative(self, *args)
698 
699  def get_traits(self):
700  """get_traits(CustomXYZR self) -> FloatKey"""
701  return _IMP_misc.CustomXYZR_get_traits(self)
702 
703  def add_attribute(self, *args):
704  """
705  add_attribute(CustomXYZR self, FloatKey k, IMP::Float v, bool opt)
706  add_attribute(CustomXYZR self, FloatKey a0, IMP::Float a1)
707  add_attribute(CustomXYZR self, IntKey a0, IMP::Int a1)
708  add_attribute(CustomXYZR self, StringKey a0, IMP::String a1)
709  add_attribute(CustomXYZR self, ParticleIndexKey a0, Particle a1)
710  add_attribute(CustomXYZR self, ObjectKey a0, Object a1)
711  """
712  return _IMP_misc.CustomXYZR_add_attribute(self, *args)
713 
714  def get_value(self, *args):
715  """
716  get_value(CustomXYZR self, FloatKey a0) -> IMP::Float
717  get_value(CustomXYZR self, IntKey a0) -> IMP::Int
718  get_value(CustomXYZR self, StringKey a0) -> IMP::String
719  get_value(CustomXYZR self, ParticleIndexKey a0) -> Particle
720  get_value(CustomXYZR self, ObjectKey a0) -> Object
721  """
722  return _IMP_misc.CustomXYZR_get_value(self, *args)
723 
724  def set_value(self, *args):
725  """
726  set_value(CustomXYZR self, FloatKey a0, IMP::Float a1)
727  set_value(CustomXYZR self, IntKey a0, IMP::Int a1)
728  set_value(CustomXYZR self, StringKey a0, IMP::String a1)
729  set_value(CustomXYZR self, ParticleIndexKey a0, Particle a1)
730  set_value(CustomXYZR self, ObjectKey a0, Object a1)
731  """
732  return _IMP_misc.CustomXYZR_set_value(self, *args)
733 
734  def remove_attribute(self, *args):
735  """
736  remove_attribute(CustomXYZR self, FloatKey a0)
737  remove_attribute(CustomXYZR self, IntKey a0)
738  remove_attribute(CustomXYZR self, StringKey a0)
739  remove_attribute(CustomXYZR self, ParticleIndexKey a0)
740  remove_attribute(CustomXYZR self, ObjectKey a0)
741  """
742  return _IMP_misc.CustomXYZR_remove_attribute(self, *args)
743 
744  def has_attribute(self, *args):
745  """
746  has_attribute(CustomXYZR self, FloatKey a0) -> bool
747  has_attribute(CustomXYZR self, IntKey a0) -> bool
748  has_attribute(CustomXYZR self, StringKey a0) -> bool
749  has_attribute(CustomXYZR self, ParticleIndexKey a0) -> bool
750  has_attribute(CustomXYZR self, ObjectKey a0) -> bool
751  """
752  return _IMP_misc.CustomXYZR_has_attribute(self, *args)
753 
754  def get_derivative(self, *args):
755  """get_derivative(CustomXYZR self, FloatKey a0) -> double"""
756  return _IMP_misc.CustomXYZR_get_derivative(self, *args)
757 
758  def get_name(self):
759  """get_name(CustomXYZR self) -> std::string"""
760  return _IMP_misc.CustomXYZR_get_name(self)
761 
762  def clear_caches(self):
763  """clear_caches(CustomXYZR self)"""
764  return _IMP_misc.CustomXYZR_clear_caches(self)
765 
766  def set_name(self, *args):
767  """set_name(CustomXYZR self, std::string a0)"""
768  return _IMP_misc.CustomXYZR_set_name(self, *args)
769 
770  def set_check_level(self, *args):
771  """set_check_level(CustomXYZR self, IMP::base::CheckLevel a0)"""
772  return _IMP_misc.CustomXYZR_set_check_level(self, *args)
773 
774  def add_to_derivative(self, *args):
775  """add_to_derivative(CustomXYZR self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
776  return _IMP_misc.CustomXYZR_add_to_derivative(self, *args)
777 
778  def set_is_optimized(self, *args):
779  """set_is_optimized(CustomXYZR self, FloatKey a0, bool a1)"""
780  return _IMP_misc.CustomXYZR_set_is_optimized(self, *args)
781 
782  def get_is_optimized(self, *args):
783  """get_is_optimized(CustomXYZR self, FloatKey a0) -> bool"""
784  return _IMP_misc.CustomXYZR_get_is_optimized(self, *args)
785 
786  def get_check_level(self):
787  """get_check_level(CustomXYZR self) -> IMP::base::CheckLevel"""
788  return _IMP_misc.CustomXYZR_get_check_level(self)
789 
790  def __eq__(self, *args):
791  """
792  __eq__(CustomXYZR self, CustomXYZR o) -> bool
793  __eq__(CustomXYZR self, Particle d) -> bool
794  """
795  return _IMP_misc.CustomXYZR___eq__(self, *args)
796 
797  def __ne__(self, *args):
798  """
799  __ne__(CustomXYZR self, CustomXYZR o) -> bool
800  __ne__(CustomXYZR self, Particle d) -> bool
801  """
802  return _IMP_misc.CustomXYZR___ne__(self, *args)
803 
804  def __le__(self, *args):
805  """
806  __le__(CustomXYZR self, CustomXYZR o) -> bool
807  __le__(CustomXYZR self, Particle d) -> bool
808  """
809  return _IMP_misc.CustomXYZR___le__(self, *args)
810 
811  def __lt__(self, *args):
812  """
813  __lt__(CustomXYZR self, CustomXYZR o) -> bool
814  __lt__(CustomXYZR self, Particle d) -> bool
815  """
816  return _IMP_misc.CustomXYZR___lt__(self, *args)
817 
818  def __ge__(self, *args):
819  """
820  __ge__(CustomXYZR self, CustomXYZR o) -> bool
821  __ge__(CustomXYZR self, Particle d) -> bool
822  """
823  return _IMP_misc.CustomXYZR___ge__(self, *args)
824 
825  def __gt__(self, *args):
826  """
827  __gt__(CustomXYZR self, CustomXYZR o) -> bool
828  __gt__(CustomXYZR self, Particle d) -> bool
829  """
830  return _IMP_misc.CustomXYZR___gt__(self, *args)
831 
832  def __str__(self):
833  """__str__(CustomXYZR self) -> std::string"""
834  return _IMP_misc.CustomXYZR___str__(self)
835 
836  def __repr__(self):
837  """__repr__(CustomXYZR self) -> std::string"""
838  return _IMP_misc.CustomXYZR___repr__(self)
839 
840  __swig_destroy__ = _IMP_misc.delete_CustomXYZR
841  __del__ = lambda self : None;
842 CustomXYZR_swigregister = _IMP_misc.CustomXYZR_swigregister
843 CustomXYZR_swigregister(CustomXYZR)
844 
845 def CustomXYZR_get_default_decorator_traits():
846  """CustomXYZR_get_default_decorator_traits() -> FloatKey"""
847  return _IMP_misc.CustomXYZR_get_default_decorator_traits()
848 
849 def CustomXYZR_setup_particle(*args):
850  """
851  setup_particle(Model m, IMP::kernel::ParticleIndex pi, FloatKey tr=IMP::misc::CustomXYZR::get_default_decorator_traits()) -> CustomXYZR
852  setup_particle(Model m, IMP::kernel::ParticleIndex pi) -> CustomXYZR
853  setup_particle(_ParticleAdaptor d, FloatKey tr=IMP::misc::CustomXYZR::get_default_decorator_traits()) -> CustomXYZR
854  setup_particle(_ParticleAdaptor d) -> CustomXYZR
855  setup_particle(Model m, IMP::kernel::ParticleIndex pi, double radius, FloatKey tr=IMP::misc::CustomXYZR::get_default_decorator_traits()) -> CustomXYZR
856  setup_particle(Model m, IMP::kernel::ParticleIndex pi, double radius) -> CustomXYZR
857  setup_particle(_ParticleAdaptor d, double radius, FloatKey tr=IMP::misc::CustomXYZR::get_default_decorator_traits()) -> CustomXYZR
858  setup_particle(_ParticleAdaptor d, double radius) -> CustomXYZR
859  setup_particle(Model m, IMP::kernel::ParticleIndex pi, Sphere3D ball, FloatKey tr=IMP::misc::CustomXYZR::get_default_decorator_traits()) -> CustomXYZR
860  setup_particle(Model m, IMP::kernel::ParticleIndex pi, Sphere3D ball) -> CustomXYZR
861  setup_particle(_ParticleAdaptor d, Sphere3D ball, FloatKey tr=IMP::misc::CustomXYZR::get_default_decorator_traits()) -> CustomXYZR
862  CustomXYZR_setup_particle(_ParticleAdaptor d, Sphere3D ball) -> CustomXYZR
863  """
864  return _IMP_misc.CustomXYZR_setup_particle(*args)
865 
866 def CustomXYZR_get_is_setup(*args):
867  """
868  get_is_setup(_ParticleAdaptor p, FloatKey tr=IMP::core::XYZR::get_radius_key()) -> bool
869  get_is_setup(_ParticleAdaptor p) -> bool
870  get_is_setup(Model m, IMP::kernel::ParticleIndex pi, FloatKey radius_key=get_default_radius_key()) -> bool
871  CustomXYZR_get_is_setup(Model m, IMP::kernel::ParticleIndex pi) -> bool
872  """
873  return _IMP_misc.CustomXYZR_get_is_setup(*args)
874 
875 def CustomXYZR_get_default_radius_key():
876  """CustomXYZR_get_default_radius_key() -> FloatKey"""
877  return _IMP_misc.CustomXYZR_get_default_radius_key()
878 
879 
880 def __lshift__(*args):
881  """__lshift__(_ostream out, CustomXYZR n) -> _ostream"""
882  return _IMP_misc.__lshift__(*args)
883 
884 def get_distance(*args):
885  """get_distance(CustomXYZR a, CustomXYZR b) -> double"""
886  return _IMP_misc.get_distance(*args)
887 
888 def get_sphere_d_geometry(*args):
889  """get_sphere_d_geometry(CustomXYZR d) -> Sphere3D"""
890  return _IMP_misc.get_sphere_d_geometry(*args)
891 
892 def set_sphere_d_geometry(*args):
893  """set_sphere_d_geometry(CustomXYZR d, Sphere3D v)"""
894  return _IMP_misc.set_sphere_d_geometry(*args)
895 class SoftCylinderPairScore(IMP.kernel.PairScore):
896  """Proxy of C++ IMP::misc::SoftCylinderPairScore class"""
897  __swig_setmethods__ = {}
898  for _s in [IMP.kernel.PairScore]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
899  __setattr__ = lambda self, name, value: _swig_setattr(self, SoftCylinderPairScore, name, value)
900  __swig_getmethods__ = {}
901  for _s in [IMP.kernel.PairScore]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
902  __getattr__ = lambda self, name: _swig_getattr(self, SoftCylinderPairScore, name)
903  def __init__(self, *args):
904  """__init__(IMP::misc::SoftCylinderPairScore self, double k) -> SoftCylinderPairScore"""
905  this = _IMP_misc.new_SoftCylinderPairScore(*args)
906  try: self.this.append(this)
907  except: self.this = this
908  def do_get_inputs(self, *args):
909  """do_get_inputs(SoftCylinderPairScore self, Model m, IMP::kernel::ParticleIndexes const & pis) -> IMP::kernel::ModelObjectsTemp"""
910  return _IMP_misc.SoftCylinderPairScore_do_get_inputs(self, *args)
911 
912  def get_version_info(self):
913  """get_version_info(SoftCylinderPairScore self) -> VersionInfo"""
914  return _IMP_misc.SoftCylinderPairScore_get_version_info(self)
915 
916  def __str__(self):
917  """__str__(SoftCylinderPairScore self) -> std::string"""
918  return _IMP_misc.SoftCylinderPairScore___str__(self)
919 
920  def __repr__(self):
921  """__repr__(SoftCylinderPairScore self) -> std::string"""
922  return _IMP_misc.SoftCylinderPairScore___repr__(self)
923 
924  def get_from(o):
925  return _object_cast_to_SoftCylinderPairScore(o)
926  get_from = staticmethod(get_from)
927 
928 SoftCylinderPairScore_swigregister = _IMP_misc.SoftCylinderPairScore_swigregister
929 SoftCylinderPairScore_swigregister(SoftCylinderPairScore)
930 
931 class DecayPairContainerOptimizerState(IMP.kernel.OptimizerState):
932  """Proxy of C++ IMP::misc::DecayPairContainerOptimizerState class"""
933  __swig_setmethods__ = {}
934  for _s in [IMP.kernel.OptimizerState]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
935  __setattr__ = lambda self, name, value: _swig_setattr(self, DecayPairContainerOptimizerState, name, value)
936  __swig_getmethods__ = {}
937  for _s in [IMP.kernel.OptimizerState]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
938  __getattr__ = lambda self, name: _swig_getattr(self, DecayPairContainerOptimizerState, name)
939  def __init__(self, *args):
940  """
941  __init__(IMP::misc::DecayPairContainerOptimizerState self, PairPredicate pred, IMP::kernel::ParticlePairsTemp const & initial_list, std::string name="DecayPairContainerOptimizerState%1%") -> DecayPairContainerOptimizerState
942  __init__(IMP::misc::DecayPairContainerOptimizerState self, PairPredicate pred, IMP::kernel::ParticlePairsTemp const & initial_list) -> DecayPairContainerOptimizerState
943  """
944  this = _IMP_misc.new_DecayPairContainerOptimizerState(*args)
945  try: self.this.append(this)
946  except: self.this = this
947  def get_output_container(self):
948  """get_output_container(DecayPairContainerOptimizerState self) -> PairContainer"""
949  return _IMP_misc.DecayPairContainerOptimizerState_get_output_container(self)
950 
951  def do_update(self, *args):
952  """do_update(DecayPairContainerOptimizerState self, unsigned int call_num)"""
953  return _IMP_misc.DecayPairContainerOptimizerState_do_update(self, *args)
954 
955  def get_version_info(self):
956  """get_version_info(DecayPairContainerOptimizerState self) -> VersionInfo"""
957  return _IMP_misc.DecayPairContainerOptimizerState_get_version_info(self)
958 
959  def __str__(self):
960  """__str__(DecayPairContainerOptimizerState self) -> std::string"""
961  return _IMP_misc.DecayPairContainerOptimizerState___str__(self)
962 
963  def __repr__(self):
964  """__repr__(DecayPairContainerOptimizerState self) -> std::string"""
965  return _IMP_misc.DecayPairContainerOptimizerState___repr__(self)
966 
967  def get_from(o):
968  return _object_cast_to_DecayPairContainerOptimizerState(o)
969  get_from = staticmethod(get_from)
970 
971 DecayPairContainerOptimizerState_swigregister = _IMP_misc.DecayPairContainerOptimizerState_swigregister
972 DecayPairContainerOptimizerState_swigregister(DecayPairContainerOptimizerState)
973 
974 
975 def get_module_version():
976  """get_module_version() -> std::string const"""
977  return _IMP_misc.get_module_version()
978 
979 def get_example_path(*args):
980  """get_example_path(std::string fname) -> std::string"""
981  return _IMP_misc.get_example_path(*args)
982 
983 def get_data_path(*args):
984  """get_data_path(std::string fname) -> std::string"""
985  return _IMP_misc.get_data_path(*args)
986 import _version_check
987 _version_check.check_version(get_module_version())
988 
989 # This file is compatible with both classic and new-style classes.
990 
991 
Various classes to hold sets of particles.
Shared optimizer state that is invoked upon commitment of new coordinates.
const algebra::Sphere3D get_sphere_d_geometry(CustomXYZR d)
Definition: CustomXYZR.h:90
Make CGAL functionality available to IMP.
void set_check_level(CheckLevel tf)
Control runtime checks in the code.
Definition: exception.h:73
Low level functionality (logging, error handling, profiling, command line flags etc) that is used by ...
std::string get_data_path(std::string file_name)
Return the full path to installed data.
Abstract single variable functor class for score functions.
ScoreStates maintain invariants in the Model.
Composable functors to implement scores via compile-time composition.
Abstract class for scoring object(s) of type ParticlePair.
double get_distance(const Plane3D &pln, const Vector3D &p)
Return the distance between a plane and a point in 3D.
Definition: Plane3D.h:71
Base functionality and abstract base classes for representation, scoring and sampling.
A decorator for a particle with x,y,z coordinates.
Definition: XYZ.h:30
Abstract predicate function.
void set_sphere_d_geometry(CustomXYZR d, const algebra::Sphere3D &v)
Definition: CustomXYZR.h:95
Basic functionality that is expected to be used by a wide variety of IMP users.
General purpose algebraic and geometric methods that are expected to be used by a wide variety of IMP...
void show(Hierarchy h, std::ostream &out=std::cout)
Print out a molecular hierarchy.
std::string get_example_path(std::string file_name)
Return the path to installed example data for this module.
Output IMP model data in various file formats.
CheckLevel get_check_level()
Get the current audit mode.
Definition: exception.h:81
Functionality for loading, creating, manipulating and scoring atomic structures.