IMP  2.1.0
The Integrative Modeling Platform
misc/__init__.py
1 # This file was automatically generated by SWIG (http://www.swig.org).
2 # Version 2.0.11
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 IMPSCOREFUNCTOR_SHOW_WARNINGS = _IMP_misc.IMPSCOREFUNCTOR_SHOW_WARNINGS
284 import IMP.score_functor
285 IMP_CORE_HAS_IMP_BASE = _IMP_misc.IMP_CORE_HAS_IMP_BASE
286 IMP_CORE_HAS_IMP_CGAL = _IMP_misc.IMP_CORE_HAS_IMP_CGAL
287 IMP_CORE_HAS_IMP_KERNEL = _IMP_misc.IMP_CORE_HAS_IMP_KERNEL
288 IMP_CORE_HAS_BOOST_FILESYSTEM = _IMP_misc.IMP_CORE_HAS_BOOST_FILESYSTEM
289 IMP_CORE_HAS_BOOST_PROGRAMOPTIONS = _IMP_misc.IMP_CORE_HAS_BOOST_PROGRAMOPTIONS
290 IMP_CORE_HAS_BOOST_RANDOM = _IMP_misc.IMP_CORE_HAS_BOOST_RANDOM
291 IMP_CORE_HAS_BOOST_SYSTEM = _IMP_misc.IMP_CORE_HAS_BOOST_SYSTEM
292 IMP_CORE_HAS_CGAL = _IMP_misc.IMP_CORE_HAS_CGAL
293 IMPCORE_SHOW_WARNINGS = _IMP_misc.IMPCORE_SHOW_WARNINGS
294 import IMP.core
295 IMP_CONTAINER_HAS_IMP_ALGEBRA = _IMP_misc.IMP_CONTAINER_HAS_IMP_ALGEBRA
296 IMP_CONTAINER_HAS_IMP_BASE = _IMP_misc.IMP_CONTAINER_HAS_IMP_BASE
297 IMP_CONTAINER_HAS_IMP_CGAL = _IMP_misc.IMP_CONTAINER_HAS_IMP_CGAL
298 IMP_CONTAINER_HAS_IMP_DISPLAY = _IMP_misc.IMP_CONTAINER_HAS_IMP_DISPLAY
299 IMP_CONTAINER_HAS_IMP_KERNEL = _IMP_misc.IMP_CONTAINER_HAS_IMP_KERNEL
300 IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR = _IMP_misc.IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR
301 IMP_CONTAINER_HAS_BOOST_FILESYSTEM = _IMP_misc.IMP_CONTAINER_HAS_BOOST_FILESYSTEM
302 IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS = _IMP_misc.IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS
303 IMP_CONTAINER_HAS_BOOST_RANDOM = _IMP_misc.IMP_CONTAINER_HAS_BOOST_RANDOM
304 IMP_CONTAINER_HAS_BOOST_SYSTEM = _IMP_misc.IMP_CONTAINER_HAS_BOOST_SYSTEM
305 IMP_CONTAINER_HAS_CGAL = _IMP_misc.IMP_CONTAINER_HAS_CGAL
306 IMPCONTAINER_SHOW_WARNINGS = _IMP_misc.IMPCONTAINER_SHOW_WARNINGS
307 import IMP.container
308 IMP_ATOM_HAS_IMP_BASE = _IMP_misc.IMP_ATOM_HAS_IMP_BASE
309 IMP_ATOM_HAS_IMP_CGAL = _IMP_misc.IMP_ATOM_HAS_IMP_CGAL
310 IMP_ATOM_HAS_IMP_KERNEL = _IMP_misc.IMP_ATOM_HAS_IMP_KERNEL
311 IMP_ATOM_HAS_IMP_SCORE_FUNCTOR = _IMP_misc.IMP_ATOM_HAS_IMP_SCORE_FUNCTOR
312 IMP_ATOM_HAS_BOOST_PROGRAMOPTIONS = _IMP_misc.IMP_ATOM_HAS_BOOST_PROGRAMOPTIONS
313 IMP_ATOM_HAS_BOOST_RANDOM = _IMP_misc.IMP_ATOM_HAS_BOOST_RANDOM
314 IMP_ATOM_HAS_BOOST_REGEX = _IMP_misc.IMP_ATOM_HAS_BOOST_REGEX
315 IMP_ATOM_HAS_BOOST_SYSTEM = _IMP_misc.IMP_ATOM_HAS_BOOST_SYSTEM
316 IMP_ATOM_HAS_CGAL = _IMP_misc.IMP_ATOM_HAS_CGAL
317 IMPATOM_SHOW_WARNINGS = _IMP_misc.IMPATOM_SHOW_WARNINGS
318 IMP_ATOM_TYPE_INDEX = _IMP_misc.IMP_ATOM_TYPE_INDEX
319 IMP_RESIDUE_TYPE_INDEX = _IMP_misc.IMP_RESIDUE_TYPE_INDEX
320 IMP_HIERARCHY_TYPE_INDEX = _IMP_misc.IMP_HIERARCHY_TYPE_INDEX
321 import IMP.atom
322 IMP_MISC_HAS_IMP_ALGEBRA = _IMP_misc.IMP_MISC_HAS_IMP_ALGEBRA
323 IMP_MISC_HAS_IMP_BASE = _IMP_misc.IMP_MISC_HAS_IMP_BASE
324 IMP_MISC_HAS_IMP_CGAL = _IMP_misc.IMP_MISC_HAS_IMP_CGAL
325 IMP_MISC_HAS_IMP_CONTAINER = _IMP_misc.IMP_MISC_HAS_IMP_CONTAINER
326 IMP_MISC_HAS_IMP_DISPLAY = _IMP_misc.IMP_MISC_HAS_IMP_DISPLAY
327 IMP_MISC_HAS_IMP_KERNEL = _IMP_misc.IMP_MISC_HAS_IMP_KERNEL
328 IMP_MISC_HAS_IMP_SCORE_FUNCTOR = _IMP_misc.IMP_MISC_HAS_IMP_SCORE_FUNCTOR
329 IMP_MISC_HAS_BOOST_FILESYSTEM = _IMP_misc.IMP_MISC_HAS_BOOST_FILESYSTEM
330 IMP_MISC_HAS_BOOST_PROGRAMOPTIONS = _IMP_misc.IMP_MISC_HAS_BOOST_PROGRAMOPTIONS
331 IMP_MISC_HAS_BOOST_RANDOM = _IMP_misc.IMP_MISC_HAS_BOOST_RANDOM
332 IMP_MISC_HAS_BOOST_REGEX = _IMP_misc.IMP_MISC_HAS_BOOST_REGEX
333 IMP_MISC_HAS_BOOST_SYSTEM = _IMP_misc.IMP_MISC_HAS_BOOST_SYSTEM
334 IMP_MISC_HAS_CGAL = _IMP_misc.IMP_MISC_HAS_CGAL
335 IMPMISC_SHOW_WARNINGS = _IMP_misc.IMPMISC_SHOW_WARNINGS
336 _object_types.append("WormLikeChain")
337 
338 
339 def _object_cast_to_WormLikeChain(*args):
340  """_object_cast_to_WormLikeChain(Object o) -> WormLikeChain"""
341  return _IMP_misc._object_cast_to_WormLikeChain(*args)
342 _object_types.append("StateAdaptor")
343 
344 
345 def _object_cast_to_StateAdaptor(*args):
346  """_object_cast_to_StateAdaptor(Object o) -> StateAdaptor"""
347  return _IMP_misc._object_cast_to_StateAdaptor(*args)
348 _object_types.append("CommonEndpointPairFilter")
349 
350 
351 def _object_cast_to_CommonEndpointPairFilter(*args):
352  """_object_cast_to_CommonEndpointPairFilter(Object o) -> CommonEndpointPairFilter"""
353  return _IMP_misc._object_cast_to_CommonEndpointPairFilter(*args)
354 _object_types.append("LogPairScore")
355 
356 
357 def _object_cast_to_LogPairScore(*args):
358  """_object_cast_to_LogPairScore(Object o) -> LogPairScore"""
359  return _IMP_misc._object_cast_to_LogPairScore(*args)
360 _object_types.append("LowestRefinedPairScore")
361 
362 
363 def _object_cast_to_LowestRefinedPairScore(*args):
364  """_object_cast_to_LowestRefinedPairScore(Object o) -> LowestRefinedPairScore"""
365  return _IMP_misc._object_cast_to_LowestRefinedPairScore(*args)
366 _object_types.append("SoftCylinderPairScore")
367 
368 
369 def _object_cast_to_SoftCylinderPairScore(*args):
370  """_object_cast_to_SoftCylinderPairScore(Object o) -> SoftCylinderPairScore"""
371  return _IMP_misc._object_cast_to_SoftCylinderPairScore(*args)
372 _object_types.append("DecayPairContainerOptimizerState")
373 
374 
375 def _object_cast_to_DecayPairContainerOptimizerState(*args):
376  """_object_cast_to_DecayPairContainerOptimizerState(Object o) -> DecayPairContainerOptimizerState"""
377  return _IMP_misc._object_cast_to_DecayPairContainerOptimizerState(*args)
378 def CustomXYZRs(l=[]):
379  return [CustomXYZR(x) for x in l]
380 _plural_types.append("CustomXYZRs")
381 
382 _value_types.append("CustomXYZR")
383 
384 class WormLikeChain(IMP.kernel.UnaryFunction):
385  """Proxy of C++ IMP::misc::WormLikeChain class"""
386  __swig_setmethods__ = {}
387  for _s in [IMP.kernel.UnaryFunction]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
388  __setattr__ = lambda self, name, value: _swig_setattr(self, WormLikeChain, name, value)
389  __swig_getmethods__ = {}
390  for _s in [IMP.kernel.UnaryFunction]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
391  __getattr__ = lambda self, name: _swig_getattr(self, WormLikeChain, name)
392  def __init__(self, *args):
393  """__init__(IMP::misc::WormLikeChain self, IMP::Float l_max, IMP::Float lp) -> WormLikeChain"""
394  this = _IMP_misc.new_WormLikeChain(*args)
395  try: self.this.append(this)
396  except: self.this = this
397  def get_version_info(self):
398  """get_version_info(WormLikeChain self) -> VersionInfo"""
399  return _IMP_misc.WormLikeChain_get_version_info(self)
400 
401  __swig_destroy__ = _IMP_misc.delete_WormLikeChain
402  __del__ = lambda self : None;
403  def do_show(self, *args):
404  """do_show(WormLikeChain self, _ostream out)"""
405  return _IMP_misc.WormLikeChain_do_show(self, *args)
406 
407  def __str__(self):
408  """__str__(WormLikeChain self) -> std::string"""
409  return _IMP_misc.WormLikeChain___str__(self)
410 
411  def __repr__(self):
412  """__repr__(WormLikeChain self) -> std::string"""
413  return _IMP_misc.WormLikeChain___repr__(self)
414 
415  def get_from(o):
416  return _object_cast_to_WormLikeChain(o)
417  get_from = staticmethod(get_from)
418 
419 WormLikeChain_swigregister = _IMP_misc.WormLikeChain_swigregister
420 WormLikeChain_swigregister(WormLikeChain)
421 
422 class LowestRefinedPairScore(IMP.kernel.PairScore):
423  """Proxy of C++ IMP::misc::LowestRefinedPairScore class"""
424  __swig_setmethods__ = {}
425  for _s in [IMP.kernel.PairScore]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
426  __setattr__ = lambda self, name, value: _swig_setattr(self, LowestRefinedPairScore, name, value)
427  __swig_getmethods__ = {}
428  for _s in [IMP.kernel.PairScore]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
429  __getattr__ = lambda self, name: _swig_getattr(self, LowestRefinedPairScore, name)
430  def __init__(self, *args):
431  """__init__(IMP::misc::LowestRefinedPairScore self, Refiner r, PairScore f) -> LowestRefinedPairScore"""
432  this = _IMP_misc.new_LowestRefinedPairScore(*args)
433  try: self.this.append(this)
434  except: self.this = this
435  def do_get_inputs(self, *args):
436  """do_get_inputs(LowestRefinedPairScore self, Model m, IMP::kernel::ParticleIndexes const & pis) -> IMP::kernel::ModelObjectsTemp"""
437  return _IMP_misc.LowestRefinedPairScore_do_get_inputs(self, *args)
438 
439  def get_version_info(self):
440  """get_version_info(LowestRefinedPairScore self) -> VersionInfo"""
441  return _IMP_misc.LowestRefinedPairScore_get_version_info(self)
442 
443  __swig_destroy__ = _IMP_misc.delete_LowestRefinedPairScore
444  __del__ = lambda self : None;
445  def __str__(self):
446  """__str__(LowestRefinedPairScore self) -> std::string"""
447  return _IMP_misc.LowestRefinedPairScore___str__(self)
448 
449  def __repr__(self):
450  """__repr__(LowestRefinedPairScore self) -> std::string"""
451  return _IMP_misc.LowestRefinedPairScore___repr__(self)
452 
453  def get_from(o):
454  return _object_cast_to_LowestRefinedPairScore(o)
455  get_from = staticmethod(get_from)
456 
457 LowestRefinedPairScore_swigregister = _IMP_misc.LowestRefinedPairScore_swigregister
458 LowestRefinedPairScore_swigregister(LowestRefinedPairScore)
459 
460 class LogPairScore(IMP.kernel.PairScore):
461  """Proxy of C++ IMP::misc::LogPairScore class"""
462  __swig_setmethods__ = {}
463  for _s in [IMP.kernel.PairScore]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
464  __setattr__ = lambda self, name, value: _swig_setattr(self, LogPairScore, name, value)
465  __swig_getmethods__ = {}
466  for _s in [IMP.kernel.PairScore]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
467  __getattr__ = lambda self, name: _swig_getattr(self, LogPairScore, name)
468  def __init__(self):
469  """__init__(IMP::misc::LogPairScore self) -> LogPairScore"""
470  this = _IMP_misc.new_LogPairScore()
471  try: self.this.append(this)
472  except: self.this = this
473  def do_get_inputs(self, *args):
474  """do_get_inputs(LogPairScore self, Model arg2, IMP::kernel::ParticleIndexes const & arg3) -> IMP::kernel::ModelObjectsTemp"""
475  return _IMP_misc.LogPairScore_do_get_inputs(self, *args)
476 
477  def get_version_info(self):
478  """get_version_info(LogPairScore self) -> VersionInfo"""
479  return _IMP_misc.LogPairScore_get_version_info(self)
480 
481  __swig_destroy__ = _IMP_misc.delete_LogPairScore
482  __del__ = lambda self : None;
483  def get_particle_pairs(self):
484  """get_particle_pairs(LogPairScore self) -> IMP::kernel::ParticlePairsTemp"""
485  return _IMP_misc.LogPairScore_get_particle_pairs(self)
486 
487  def clear(self):
488  """clear(LogPairScore self)"""
489  return _IMP_misc.LogPairScore_clear(self)
490 
491  def get_contains(self, *args):
492  """get_contains(LogPairScore self, IMP::kernel::ParticlePair const & pp) -> bool"""
493  return _IMP_misc.LogPairScore_get_contains(self, *args)
494 
495  def __str__(self):
496  """__str__(LogPairScore self) -> std::string"""
497  return _IMP_misc.LogPairScore___str__(self)
498 
499  def __repr__(self):
500  """__repr__(LogPairScore self) -> std::string"""
501  return _IMP_misc.LogPairScore___repr__(self)
502 
503  def get_from(o):
504  return _object_cast_to_LogPairScore(o)
505  get_from = staticmethod(get_from)
506 
507 LogPairScore_swigregister = _IMP_misc.LogPairScore_swigregister
508 LogPairScore_swigregister(LogPairScore)
509 
510 class StateAdaptor(IMP.kernel.ScoreState):
511  """Proxy of C++ IMP::misc::StateAdaptor class"""
512  __swig_setmethods__ = {}
513  for _s in [IMP.kernel.ScoreState]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
514  __setattr__ = lambda self, name, value: _swig_setattr(self, StateAdaptor, name, value)
515  __swig_getmethods__ = {}
516  for _s in [IMP.kernel.ScoreState]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
517  __getattr__ = lambda self, name: _swig_getattr(self, StateAdaptor, name)
518  def __init__(self, *args):
519  """__init__(IMP::misc::StateAdaptor self, Model m, OptimizerState before, OptimizerState after) -> StateAdaptor"""
520  this = _IMP_misc.new_StateAdaptor(*args)
521  try: self.this.append(this)
522  except: self.this = this
523  def do_before_evaluate(self):
524  """do_before_evaluate(StateAdaptor self)"""
525  return _IMP_misc.StateAdaptor_do_before_evaluate(self)
526 
527  def do_after_evaluate(self, *args):
528  """do_after_evaluate(StateAdaptor self, DerivativeAccumulator da)"""
529  return _IMP_misc.StateAdaptor_do_after_evaluate(self, *args)
530 
531  def do_get_inputs(self):
532  """do_get_inputs(StateAdaptor self) -> IMP::kernel::ModelObjectsTemp"""
533  return _IMP_misc.StateAdaptor_do_get_inputs(self)
534 
535  def do_get_outputs(self):
536  """do_get_outputs(StateAdaptor self) -> IMP::kernel::ModelObjectsTemp"""
537  return _IMP_misc.StateAdaptor_do_get_outputs(self)
538 
539  def get_version_info(self):
540  """get_version_info(StateAdaptor self) -> VersionInfo"""
541  return _IMP_misc.StateAdaptor_get_version_info(self)
542 
543  __swig_destroy__ = _IMP_misc.delete_StateAdaptor
544  __del__ = lambda self : None;
545  def __str__(self):
546  """__str__(StateAdaptor self) -> std::string"""
547  return _IMP_misc.StateAdaptor___str__(self)
548 
549  def __repr__(self):
550  """__repr__(StateAdaptor self) -> std::string"""
551  return _IMP_misc.StateAdaptor___repr__(self)
552 
553  def get_from(o):
554  return _object_cast_to_StateAdaptor(o)
555  get_from = staticmethod(get_from)
556 
557 StateAdaptor_swigregister = _IMP_misc.StateAdaptor_swigregister
558 StateAdaptor_swigregister(StateAdaptor)
559 
560 class CommonEndpointPairFilter(IMP.kernel.PairPredicate):
561  """Proxy of C++ IMP::misc::CommonEndpointPairFilter class"""
562  __swig_setmethods__ = {}
563  for _s in [IMP.kernel.PairPredicate]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
564  __setattr__ = lambda self, name, value: _swig_setattr(self, CommonEndpointPairFilter, name, value)
565  __swig_getmethods__ = {}
566  for _s in [IMP.kernel.PairPredicate]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
567  __getattr__ = lambda self, name: _swig_getattr(self, CommonEndpointPairFilter, name)
568  def __init__(self):
569  """__init__(IMP::misc::CommonEndpointPairFilter self) -> CommonEndpointPairFilter"""
570  this = _IMP_misc.new_CommonEndpointPairFilter()
571  try: self.this.append(this)
572  except: self.this = this
573  def do_get_inputs(self, *args):
574  """do_get_inputs(CommonEndpointPairFilter self, Model m, IMP::kernel::ParticleIndexes const & pis) -> IMP::kernel::ModelObjectsTemp"""
575  return _IMP_misc.CommonEndpointPairFilter_do_get_inputs(self, *args)
576 
577  def get_value(self, *args):
578  """
579  get_value(CommonEndpointPairFilter self, IMP::kernel::ParticlePair const & a) -> int
580  get_value(CommonEndpointPairFilter self, IMP::kernel::ParticlePairsTemp const & o) -> IMP::Ints
581  """
582  return _IMP_misc.CommonEndpointPairFilter_get_value(self, *args)
583 
584  def get_value_index(self, *args):
585  """
586  get_value_index(CommonEndpointPairFilter self, Model m, IMP::kernel::ParticleIndexPair const & p) -> int
587  get_value_index(CommonEndpointPairFilter self, Model m, IMP::kernel::ParticleIndexPairs const & o) -> IMP::Ints
588  """
589  return _IMP_misc.CommonEndpointPairFilter_get_value_index(self, *args)
590 
591  def get_version_info(self):
592  """get_version_info(CommonEndpointPairFilter self) -> VersionInfo"""
593  return _IMP_misc.CommonEndpointPairFilter_get_version_info(self)
594 
595  __swig_destroy__ = _IMP_misc.delete_CommonEndpointPairFilter
596  __del__ = lambda self : None;
597  def __str__(self):
598  """__str__(CommonEndpointPairFilter self) -> std::string"""
599  return _IMP_misc.CommonEndpointPairFilter___str__(self)
600 
601  def __repr__(self):
602  """__repr__(CommonEndpointPairFilter self) -> std::string"""
603  return _IMP_misc.CommonEndpointPairFilter___repr__(self)
604 
605  def get_from(o):
606  return _object_cast_to_CommonEndpointPairFilter(o)
607  get_from = staticmethod(get_from)
608 
609 CommonEndpointPairFilter_swigregister = _IMP_misc.CommonEndpointPairFilter_swigregister
610 CommonEndpointPairFilter_swigregister(CommonEndpointPairFilter)
611 
612 class CustomXYZR(IMP.core.XYZ):
613  """Proxy of C++ IMP::misc::CustomXYZR class"""
614  __swig_setmethods__ = {}
615  for _s in [IMP.core.XYZ]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
616  __setattr__ = lambda self, name, value: _swig_setattr(self, CustomXYZR, name, value)
617  __swig_getmethods__ = {}
618  for _s in [IMP.core.XYZ]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
619  __getattr__ = lambda self, name: _swig_getattr(self, CustomXYZR, name)
620  def get_decorator_traits(self):
621  """get_decorator_traits(CustomXYZR self) -> FloatKey"""
622  return _IMP_misc.CustomXYZR_get_decorator_traits(self)
623 
624  def get_default_decorator_traits():
625  """get_default_decorator_traits() -> FloatKey"""
626  return _IMP_misc.CustomXYZR_get_default_decorator_traits()
627 
628  if _newclass:get_default_decorator_traits = staticmethod(get_default_decorator_traits)
629  __swig_getmethods__["get_default_decorator_traits"] = lambda x: get_default_decorator_traits
630  def __init__(self, *args):
631  """
632  __init__(IMP::misc::CustomXYZR self) -> CustomXYZR
633  __init__(IMP::misc::CustomXYZR self, Model m, ::IMP::kernel::ParticleIndex id, FloatKey tr=IMP::core::XYZR::get_radius_key()) -> CustomXYZR
634  __init__(IMP::misc::CustomXYZR self, Model m, ::IMP::kernel::ParticleIndex id) -> CustomXYZR
635  __init__(IMP::misc::CustomXYZR self, _ParticleAdaptor d, FloatKey tr=IMP::core::XYZR::get_radius_key()) -> CustomXYZR
636  __init__(IMP::misc::CustomXYZR self, _ParticleAdaptor d) -> CustomXYZR
637  """
638  this = _IMP_misc.new_CustomXYZR(*args)
639  try: self.this.append(this)
640  except: self.this = this
641  def decorate_particle(*args):
642  """
643  decorate_particle(Particle p, FloatKey tr=IMP::core::XYZR::get_radius_key()) -> CustomXYZR
644  decorate_particle(Particle p) -> CustomXYZR
645  """
646  return _IMP_misc.CustomXYZR_decorate_particle(*args)
647 
648  if _newclass:decorate_particle = staticmethod(decorate_particle)
649  __swig_getmethods__["decorate_particle"] = lambda x: decorate_particle
650  def particle_is_instance(*args):
651  """
652  particle_is_instance(Particle p, FloatKey tr=IMP::core::XYZR::get_radius_key()) -> bool
653  particle_is_instance(Particle p) -> bool
654  particle_is_instance(Model m, IMP::kernel::ParticleIndex pi, FloatKey tr=IMP::core::XYZR::get_radius_key()) -> bool
655  particle_is_instance(Model m, IMP::kernel::ParticleIndex pi) -> bool
656  """
657  return _IMP_misc.CustomXYZR_particle_is_instance(*args)
658 
659  if _newclass:particle_is_instance = staticmethod(particle_is_instance)
660  __swig_getmethods__["particle_is_instance"] = lambda x: particle_is_instance
661  def show(self, *args):
662  """
663  show(CustomXYZR self, _ostream out=std::cout)
664  show(CustomXYZR self)
665  """
666  return _IMP_misc.CustomXYZR_show(self, *args)
667 
668  def setup_particle(*args):
669  """
670  setup_particle(Model m, IMP::kernel::ParticleIndex pi, FloatKey tr=IMP::misc::CustomXYZR::get_default_decorator_traits()) -> CustomXYZR
671  setup_particle(Model m, IMP::kernel::ParticleIndex pi) -> CustomXYZR
672  setup_particle(_ParticleAdaptor d, FloatKey tr=IMP::misc::CustomXYZR::get_default_decorator_traits()) -> CustomXYZR
673  setup_particle(_ParticleAdaptor d) -> CustomXYZR
674  setup_particle(Model m, IMP::kernel::ParticleIndex pi, double radius, FloatKey tr=IMP::misc::CustomXYZR::get_default_decorator_traits()) -> CustomXYZR
675  setup_particle(Model m, IMP::kernel::ParticleIndex pi, double radius) -> CustomXYZR
676  setup_particle(_ParticleAdaptor d, double radius, FloatKey tr=IMP::misc::CustomXYZR::get_default_decorator_traits()) -> CustomXYZR
677  setup_particle(_ParticleAdaptor d, double radius) -> CustomXYZR
678  setup_particle(Model m, IMP::kernel::ParticleIndex pi, Sphere3D ball, FloatKey tr=IMP::misc::CustomXYZR::get_default_decorator_traits()) -> CustomXYZR
679  setup_particle(Model m, IMP::kernel::ParticleIndex pi, Sphere3D ball) -> CustomXYZR
680  setup_particle(_ParticleAdaptor d, Sphere3D ball, FloatKey tr=IMP::misc::CustomXYZR::get_default_decorator_traits()) -> CustomXYZR
681  setup_particle(_ParticleAdaptor d, Sphere3D ball) -> CustomXYZR
682  """
683  return _IMP_misc.CustomXYZR_setup_particle(*args)
684 
685  if _newclass:setup_particle = staticmethod(setup_particle)
686  __swig_getmethods__["setup_particle"] = lambda x: setup_particle
687  def get_is_setup(*args):
688  """
689  get_is_setup(_ParticleAdaptor p, FloatKey tr=IMP::core::XYZR::get_radius_key()) -> bool
690  get_is_setup(_ParticleAdaptor p) -> bool
691  get_is_setup(Model m, IMP::kernel::ParticleIndex pi, FloatKey radius_key=get_default_radius_key()) -> bool
692  get_is_setup(Model m, IMP::kernel::ParticleIndex pi) -> bool
693  """
694  return _IMP_misc.CustomXYZR_get_is_setup(*args)
695 
696  if _newclass:get_is_setup = staticmethod(get_is_setup)
697  __swig_getmethods__["get_is_setup"] = lambda x: get_is_setup
698  def get_radius(self):
699  """get_radius(CustomXYZR self) -> IMP::Float"""
700  return _IMP_misc.CustomXYZR_get_radius(self)
701 
702  def set_radius(self, *args):
703  """set_radius(CustomXYZR self, IMP::Float t)"""
704  return _IMP_misc.CustomXYZR_set_radius(self, *args)
705 
706  def get_sphere(self):
707  """get_sphere(CustomXYZR self) -> Sphere3D"""
708  return _IMP_misc.CustomXYZR_get_sphere(self)
709 
710  def set_sphere(self, *args):
711  """set_sphere(CustomXYZR self, Sphere3D s)"""
712  return _IMP_misc.CustomXYZR_set_sphere(self, *args)
713 
714  def get_default_radius_key():
715  """get_default_radius_key() -> FloatKey"""
716  return _IMP_misc.CustomXYZR_get_default_radius_key()
717 
718  if _newclass:get_default_radius_key = staticmethod(get_default_radius_key)
719  __swig_getmethods__["get_default_radius_key"] = lambda x: get_default_radius_key
720  def add_to_radius_derivative(self, *args):
721  """add_to_radius_derivative(CustomXYZR self, double v, DerivativeAccumulator d)"""
722  return _IMP_misc.CustomXYZR_add_to_radius_derivative(self, *args)
723 
724  def get_traits(self):
725  """get_traits(CustomXYZR self) -> FloatKey"""
726  return _IMP_misc.CustomXYZR_get_traits(self)
727 
728  def add_attribute(self, *args):
729  """
730  add_attribute(CustomXYZR self, FloatKey k, IMP::Float v, bool opt)
731  add_attribute(CustomXYZR self, FloatKey a0, IMP::Float a1)
732  add_attribute(CustomXYZR self, IntKey a0, IMP::Int a1)
733  add_attribute(CustomXYZR self, StringKey a0, IMP::String a1)
734  add_attribute(CustomXYZR self, ParticleIndexKey a0, Particle a1)
735  add_attribute(CustomXYZR self, ObjectKey a0, IMP::Object * a1)
736  """
737  return _IMP_misc.CustomXYZR_add_attribute(self, *args)
738 
739  def get_value(self, *args):
740  """
741  get_value(CustomXYZR self, FloatKey a0) -> IMP::Float
742  get_value(CustomXYZR self, IntKey a0) -> IMP::Int
743  get_value(CustomXYZR self, StringKey a0) -> IMP::String
744  get_value(CustomXYZR self, ParticleIndexKey a0) -> Particle
745  get_value(CustomXYZR self, ObjectKey a0) -> IMP::Object *
746  """
747  return _IMP_misc.CustomXYZR_get_value(self, *args)
748 
749  def set_value(self, *args):
750  """
751  set_value(CustomXYZR self, FloatKey a0, IMP::Float a1)
752  set_value(CustomXYZR self, IntKey a0, IMP::Int a1)
753  set_value(CustomXYZR self, StringKey a0, IMP::String a1)
754  set_value(CustomXYZR self, ParticleIndexKey a0, Particle a1)
755  set_value(CustomXYZR self, ObjectKey a0, IMP::Object * a1)
756  """
757  return _IMP_misc.CustomXYZR_set_value(self, *args)
758 
759  def remove_attribute(self, *args):
760  """
761  remove_attribute(CustomXYZR self, FloatKey a0)
762  remove_attribute(CustomXYZR self, IntKey a0)
763  remove_attribute(CustomXYZR self, StringKey a0)
764  remove_attribute(CustomXYZR self, ParticleIndexKey a0)
765  remove_attribute(CustomXYZR self, ObjectKey a0)
766  """
767  return _IMP_misc.CustomXYZR_remove_attribute(self, *args)
768 
769  def has_attribute(self, *args):
770  """
771  has_attribute(CustomXYZR self, FloatKey a0) -> bool
772  has_attribute(CustomXYZR self, IntKey a0) -> bool
773  has_attribute(CustomXYZR self, StringKey a0) -> bool
774  has_attribute(CustomXYZR self, ParticleIndexKey a0) -> bool
775  has_attribute(CustomXYZR self, ObjectKey a0) -> bool
776  """
777  return _IMP_misc.CustomXYZR_has_attribute(self, *args)
778 
779  def get_derivative(self, *args):
780  """get_derivative(CustomXYZR self, FloatKey a0) -> double"""
781  return _IMP_misc.CustomXYZR_get_derivative(self, *args)
782 
783  def get_name(self):
784  """get_name(CustomXYZR self) -> std::string"""
785  return _IMP_misc.CustomXYZR_get_name(self)
786 
787  def clear_caches(self):
788  """clear_caches(CustomXYZR self)"""
789  return _IMP_misc.CustomXYZR_clear_caches(self)
790 
791  def set_name(self, *args):
792  """set_name(CustomXYZR self, std::string a0)"""
793  return _IMP_misc.CustomXYZR_set_name(self, *args)
794 
795  def set_check_level(self, *args):
796  """set_check_level(CustomXYZR self, IMP::base::CheckLevel a0)"""
797  return _IMP_misc.CustomXYZR_set_check_level(self, *args)
798 
799  def add_to_derivative(self, *args):
800  """add_to_derivative(CustomXYZR self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
801  return _IMP_misc.CustomXYZR_add_to_derivative(self, *args)
802 
803  def set_is_optimized(self, *args):
804  """set_is_optimized(CustomXYZR self, FloatKey a0, bool a1)"""
805  return _IMP_misc.CustomXYZR_set_is_optimized(self, *args)
806 
807  def get_is_optimized(self, *args):
808  """get_is_optimized(CustomXYZR self, FloatKey a0) -> bool"""
809  return _IMP_misc.CustomXYZR_get_is_optimized(self, *args)
810 
811  def get_check_level(self):
812  """get_check_level(CustomXYZR self) -> IMP::base::CheckLevel"""
813  return _IMP_misc.CustomXYZR_get_check_level(self)
814 
815  def __eq__(self, *args):
816  """
817  __eq__(CustomXYZR self, CustomXYZR o) -> bool
818  __eq__(CustomXYZR self, Particle d) -> bool
819  """
820  return _IMP_misc.CustomXYZR___eq__(self, *args)
821 
822  def __ne__(self, *args):
823  """
824  __ne__(CustomXYZR self, CustomXYZR o) -> bool
825  __ne__(CustomXYZR self, Particle d) -> bool
826  """
827  return _IMP_misc.CustomXYZR___ne__(self, *args)
828 
829  def __le__(self, *args):
830  """
831  __le__(CustomXYZR self, CustomXYZR o) -> bool
832  __le__(CustomXYZR self, Particle d) -> bool
833  """
834  return _IMP_misc.CustomXYZR___le__(self, *args)
835 
836  def __lt__(self, *args):
837  """
838  __lt__(CustomXYZR self, CustomXYZR o) -> bool
839  __lt__(CustomXYZR self, Particle d) -> bool
840  """
841  return _IMP_misc.CustomXYZR___lt__(self, *args)
842 
843  def __ge__(self, *args):
844  """
845  __ge__(CustomXYZR self, CustomXYZR o) -> bool
846  __ge__(CustomXYZR self, Particle d) -> bool
847  """
848  return _IMP_misc.CustomXYZR___ge__(self, *args)
849 
850  def __gt__(self, *args):
851  """
852  __gt__(CustomXYZR self, CustomXYZR o) -> bool
853  __gt__(CustomXYZR self, Particle d) -> bool
854  """
855  return _IMP_misc.CustomXYZR___gt__(self, *args)
856 
857  def __str__(self):
858  """__str__(CustomXYZR self) -> std::string"""
859  return _IMP_misc.CustomXYZR___str__(self)
860 
861  def __repr__(self):
862  """__repr__(CustomXYZR self) -> std::string"""
863  return _IMP_misc.CustomXYZR___repr__(self)
864 
865  __swig_destroy__ = _IMP_misc.delete_CustomXYZR
866  __del__ = lambda self : None;
867 CustomXYZR_swigregister = _IMP_misc.CustomXYZR_swigregister
868 CustomXYZR_swigregister(CustomXYZR)
869 
870 def CustomXYZR_get_default_decorator_traits():
871  """CustomXYZR_get_default_decorator_traits() -> FloatKey"""
872  return _IMP_misc.CustomXYZR_get_default_decorator_traits()
873 
874 def CustomXYZR_decorate_particle(*args):
875  """
876  decorate_particle(Particle p, FloatKey tr=IMP::core::XYZR::get_radius_key()) -> CustomXYZR
877  CustomXYZR_decorate_particle(Particle p) -> CustomXYZR
878  """
879  return _IMP_misc.CustomXYZR_decorate_particle(*args)
880 
881 def CustomXYZR_particle_is_instance(*args):
882  """
883  particle_is_instance(Particle p, FloatKey tr=IMP::core::XYZR::get_radius_key()) -> bool
884  particle_is_instance(Particle p) -> bool
885  particle_is_instance(Model m, IMP::kernel::ParticleIndex pi, FloatKey tr=IMP::core::XYZR::get_radius_key()) -> bool
886  CustomXYZR_particle_is_instance(Model m, IMP::kernel::ParticleIndex pi) -> bool
887  """
888  return _IMP_misc.CustomXYZR_particle_is_instance(*args)
889 
890 def CustomXYZR_setup_particle(*args):
891  """
892  setup_particle(Model m, IMP::kernel::ParticleIndex pi, FloatKey tr=IMP::misc::CustomXYZR::get_default_decorator_traits()) -> CustomXYZR
893  setup_particle(Model m, IMP::kernel::ParticleIndex pi) -> CustomXYZR
894  setup_particle(_ParticleAdaptor d, FloatKey tr=IMP::misc::CustomXYZR::get_default_decorator_traits()) -> CustomXYZR
895  setup_particle(_ParticleAdaptor d) -> CustomXYZR
896  setup_particle(Model m, IMP::kernel::ParticleIndex pi, double radius, FloatKey tr=IMP::misc::CustomXYZR::get_default_decorator_traits()) -> CustomXYZR
897  setup_particle(Model m, IMP::kernel::ParticleIndex pi, double radius) -> CustomXYZR
898  setup_particle(_ParticleAdaptor d, double radius, FloatKey tr=IMP::misc::CustomXYZR::get_default_decorator_traits()) -> CustomXYZR
899  setup_particle(_ParticleAdaptor d, double radius) -> CustomXYZR
900  setup_particle(Model m, IMP::kernel::ParticleIndex pi, Sphere3D ball, FloatKey tr=IMP::misc::CustomXYZR::get_default_decorator_traits()) -> CustomXYZR
901  setup_particle(Model m, IMP::kernel::ParticleIndex pi, Sphere3D ball) -> CustomXYZR
902  setup_particle(_ParticleAdaptor d, Sphere3D ball, FloatKey tr=IMP::misc::CustomXYZR::get_default_decorator_traits()) -> CustomXYZR
903  CustomXYZR_setup_particle(_ParticleAdaptor d, Sphere3D ball) -> CustomXYZR
904  """
905  return _IMP_misc.CustomXYZR_setup_particle(*args)
906 
907 def CustomXYZR_get_is_setup(*args):
908  """
909  get_is_setup(_ParticleAdaptor p, FloatKey tr=IMP::core::XYZR::get_radius_key()) -> bool
910  get_is_setup(_ParticleAdaptor p) -> bool
911  get_is_setup(Model m, IMP::kernel::ParticleIndex pi, FloatKey radius_key=get_default_radius_key()) -> bool
912  CustomXYZR_get_is_setup(Model m, IMP::kernel::ParticleIndex pi) -> bool
913  """
914  return _IMP_misc.CustomXYZR_get_is_setup(*args)
915 
916 def CustomXYZR_get_default_radius_key():
917  """CustomXYZR_get_default_radius_key() -> FloatKey"""
918  return _IMP_misc.CustomXYZR_get_default_radius_key()
919 
920 
921 def __lshift__(*args):
922  """__lshift__(_ostream out, CustomXYZR n) -> _ostream"""
923  return _IMP_misc.__lshift__(*args)
924 
925 def get_distance(*args):
926  """get_distance(CustomXYZR a, CustomXYZR b) -> double"""
927  return _IMP_misc.get_distance(*args)
928 
929 def get_sphere_d_geometry(*args):
930  """get_sphere_d_geometry(CustomXYZR d) -> Sphere3D"""
931  return _IMP_misc.get_sphere_d_geometry(*args)
932 
933 def set_sphere_d_geometry(*args):
934  """set_sphere_d_geometry(CustomXYZR d, Sphere3D v)"""
935  return _IMP_misc.set_sphere_d_geometry(*args)
936 class SoftCylinderPairScore(IMP.kernel.PairScore):
937  """Proxy of C++ IMP::misc::SoftCylinderPairScore class"""
938  __swig_setmethods__ = {}
939  for _s in [IMP.kernel.PairScore]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
940  __setattr__ = lambda self, name, value: _swig_setattr(self, SoftCylinderPairScore, name, value)
941  __swig_getmethods__ = {}
942  for _s in [IMP.kernel.PairScore]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
943  __getattr__ = lambda self, name: _swig_getattr(self, SoftCylinderPairScore, name)
944  def __init__(self, *args):
945  """__init__(IMP::misc::SoftCylinderPairScore self, double k) -> SoftCylinderPairScore"""
946  this = _IMP_misc.new_SoftCylinderPairScore(*args)
947  try: self.this.append(this)
948  except: self.this = this
949  def do_get_inputs(self, *args):
950  """do_get_inputs(SoftCylinderPairScore self, Model m, IMP::kernel::ParticleIndexes const & pis) -> IMP::kernel::ModelObjectsTemp"""
951  return _IMP_misc.SoftCylinderPairScore_do_get_inputs(self, *args)
952 
953  def get_version_info(self):
954  """get_version_info(SoftCylinderPairScore self) -> VersionInfo"""
955  return _IMP_misc.SoftCylinderPairScore_get_version_info(self)
956 
957  __swig_destroy__ = _IMP_misc.delete_SoftCylinderPairScore
958  __del__ = lambda self : None;
959  def __str__(self):
960  """__str__(SoftCylinderPairScore self) -> std::string"""
961  return _IMP_misc.SoftCylinderPairScore___str__(self)
962 
963  def __repr__(self):
964  """__repr__(SoftCylinderPairScore self) -> std::string"""
965  return _IMP_misc.SoftCylinderPairScore___repr__(self)
966 
967  def get_from(o):
968  return _object_cast_to_SoftCylinderPairScore(o)
969  get_from = staticmethod(get_from)
970 
971 SoftCylinderPairScore_swigregister = _IMP_misc.SoftCylinderPairScore_swigregister
972 SoftCylinderPairScore_swigregister(SoftCylinderPairScore)
973 
974 class DecayPairContainerOptimizerState(IMP.kernel.OptimizerState):
975  """Proxy of C++ IMP::misc::DecayPairContainerOptimizerState class"""
976  __swig_setmethods__ = {}
977  for _s in [IMP.kernel.OptimizerState]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
978  __setattr__ = lambda self, name, value: _swig_setattr(self, DecayPairContainerOptimizerState, name, value)
979  __swig_getmethods__ = {}
980  for _s in [IMP.kernel.OptimizerState]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
981  __getattr__ = lambda self, name: _swig_getattr(self, DecayPairContainerOptimizerState, name)
982  def __init__(self, *args):
983  """
984  __init__(IMP::misc::DecayPairContainerOptimizerState self, PairPredicate pred, IMP::kernel::ParticlePairsTemp const & initial_list, std::string name="DecayPairContainerOptimizerState%1%") -> DecayPairContainerOptimizerState
985  __init__(IMP::misc::DecayPairContainerOptimizerState self, PairPredicate pred, IMP::kernel::ParticlePairsTemp const & initial_list) -> DecayPairContainerOptimizerState
986  """
987  this = _IMP_misc.new_DecayPairContainerOptimizerState(*args)
988  try: self.this.append(this)
989  except: self.this = this
990  def get_output_container(self):
991  """get_output_container(DecayPairContainerOptimizerState self) -> PairContainer"""
992  return _IMP_misc.DecayPairContainerOptimizerState_get_output_container(self)
993 
994  def do_update(self, *args):
995  """do_update(DecayPairContainerOptimizerState self, unsigned int call_num)"""
996  return _IMP_misc.DecayPairContainerOptimizerState_do_update(self, *args)
997 
998  def get_version_info(self):
999  """get_version_info(DecayPairContainerOptimizerState self) -> VersionInfo"""
1000  return _IMP_misc.DecayPairContainerOptimizerState_get_version_info(self)
1001 
1002  __swig_destroy__ = _IMP_misc.delete_DecayPairContainerOptimizerState
1003  __del__ = lambda self : None;
1004  def __str__(self):
1005  """__str__(DecayPairContainerOptimizerState self) -> std::string"""
1006  return _IMP_misc.DecayPairContainerOptimizerState___str__(self)
1007 
1008  def __repr__(self):
1009  """__repr__(DecayPairContainerOptimizerState self) -> std::string"""
1010  return _IMP_misc.DecayPairContainerOptimizerState___repr__(self)
1011 
1012  def get_from(o):
1013  return _object_cast_to_DecayPairContainerOptimizerState(o)
1014  get_from = staticmethod(get_from)
1015 
1016 DecayPairContainerOptimizerState_swigregister = _IMP_misc.DecayPairContainerOptimizerState_swigregister
1017 DecayPairContainerOptimizerState_swigregister(DecayPairContainerOptimizerState)
1018 
1019 
1020 def get_module_version():
1021  """get_module_version() -> std::string const"""
1022  return _IMP_misc.get_module_version()
1023 
1024 def get_example_path(*args):
1025  """get_example_path(std::string fname) -> std::string"""
1026  return _IMP_misc.get_example_path(*args)
1027 
1028 def get_data_path(*args):
1029  """get_data_path(std::string fname) -> std::string"""
1030  return _IMP_misc.get_data_path(*args)
1031 import _version_check
1032 _version_check.check_version(get_module_version())
1033 
1034 # This file is compatible with both classic and new-style classes.
1035 
1036 
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:68
See IMP.kernel for more information.
void set_sphere_d_geometry(kernel::Particle *p, const algebra::Sphere3D &v)
Definition: XYZR.h:193
A decorator for a particle with x,y,z coordinates.
Definition: XYZ.h:32
const algebra::Sphere3D get_sphere_d_geometry(kernel::Particle *p)
Definition: XYZR.h:188
Abstract predicate function.
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: BildWriter.h:20
CheckLevel get_check_level()
Get the current audit mode.
See IMP.atom for more information.