IMP logo
IMP Reference Guide  2.6.2
The Integrative Modeling Platform
rmf/__init__.py
1 # This file was automatically generated by SWIG (http://www.swig.org).
2 # Version 3.0.8
3 #
4 # Do not make changes to this file unless you know what you are doing--modify
5 # the SWIG interface file instead.
6 
7 # This wrapper is part of IMP,
8 # Copyright 2007-2016 IMP Inventors. All rights reserved.
9 
10 from __future__ import print_function, division, absolute_import
11 
12 
13 
14 
15 from sys import version_info
16 if version_info >= (2, 6, 0):
17  def swig_import_helper():
18  from os.path import dirname
19  import imp
20  fp = None
21  try:
22  fp, pathname, description = imp.find_module('_IMP_rmf', [dirname(__file__)])
23  except ImportError:
24  import _IMP_rmf
25  return _IMP_rmf
26  if fp is not None:
27  try:
28  _mod = imp.load_module('_IMP_rmf', fp, pathname, description)
29  finally:
30  fp.close()
31  return _mod
32  _IMP_rmf = swig_import_helper()
33  del swig_import_helper
34 else:
35  import _IMP_rmf
36 del version_info
37 try:
38  _swig_property = property
39 except NameError:
40  pass # Python < 2.2 doesn't have 'property'.
41 
42 
43 def _swig_setattr_nondynamic(self, class_type, name, value, static=1):
44  if (name == "thisown"):
45  return self.this.own(value)
46  if (name == "this"):
47  if type(value).__name__ == 'SwigPyObject':
48  self.__dict__[name] = value
49  return
50  method = class_type.__swig_setmethods__.get(name, None)
51  if method:
52  return method(self, value)
53  if (not static):
54  object.__setattr__(self, name, value)
55  else:
56  raise AttributeError("You cannot add attributes to %s" % self)
57 
58 
59 def _swig_setattr(self, class_type, name, value):
60  return _swig_setattr_nondynamic(self, class_type, name, value, 0)
61 
62 
63 def _swig_getattr_nondynamic(self, class_type, name, static=1):
64  if (name == "thisown"):
65  return self.this.own()
66  method = class_type.__swig_getmethods__.get(name, None)
67  if method:
68  return method(self)
69  if (not static):
70  return object.__getattr__(self, name)
71  else:
72  raise AttributeError(name)
73 
74 def _swig_getattr(self, class_type, name):
75  return _swig_getattr_nondynamic(self, class_type, name, 0)
76 
77 
78 def _swig_repr(self):
79  try:
80  strthis = "proxy of " + self.this.__repr__()
81  except Exception:
82  strthis = ""
83  return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
84 
85 try:
86  _object = object
87  _newclass = 1
88 except AttributeError:
89  class _object:
90  pass
91  _newclass = 0
92 
93 
94 
95 def _swig_setattr_nondynamic_method(set):
96  def set_attr(self, name, value):
97  if (name == "thisown"):
98  return self.this.own(value)
99  if hasattr(self, name) or (name == "this"):
100  set(self, name, value)
101  else:
102  raise AttributeError("You cannot add attributes to %s" % self)
103  return set_attr
104 
105 
106 try:
107  import weakref
108  weakref_proxy = weakref.proxy
109 except Exception:
110  weakref_proxy = lambda x: x
111 
112 
113 class IMP_RMF_SwigPyIterator(object):
114  """Proxy of C++ swig::IMP_RMF_SwigPyIterator class."""
115 
116  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
117 
118  def __init__(self, *args, **kwargs):
119  raise AttributeError("No constructor defined - class is abstract")
120  __repr__ = _swig_repr
121  __swig_destroy__ = _IMP_rmf.delete_IMP_RMF_SwigPyIterator
122  __del__ = lambda self: None
123 
124  def value(self):
125  """value(IMP_RMF_SwigPyIterator self) -> PyObject *"""
126  return _IMP_rmf.IMP_RMF_SwigPyIterator_value(self)
127 
128 
129  def incr(self, n=1):
130  """
131  incr(IMP_RMF_SwigPyIterator self, size_t n=1) -> IMP_RMF_SwigPyIterator
132  incr(IMP_RMF_SwigPyIterator self) -> IMP_RMF_SwigPyIterator
133  """
134  return _IMP_rmf.IMP_RMF_SwigPyIterator_incr(self, n)
135 
136 
137  def decr(self, n=1):
138  """
139  decr(IMP_RMF_SwigPyIterator self, size_t n=1) -> IMP_RMF_SwigPyIterator
140  decr(IMP_RMF_SwigPyIterator self) -> IMP_RMF_SwigPyIterator
141  """
142  return _IMP_rmf.IMP_RMF_SwigPyIterator_decr(self, n)
143 
144 
145  def distance(self, x):
146  """distance(IMP_RMF_SwigPyIterator self, IMP_RMF_SwigPyIterator x) -> ptrdiff_t"""
147  return _IMP_rmf.IMP_RMF_SwigPyIterator_distance(self, x)
148 
149 
150  def equal(self, x):
151  """equal(IMP_RMF_SwigPyIterator self, IMP_RMF_SwigPyIterator x) -> bool"""
152  return _IMP_rmf.IMP_RMF_SwigPyIterator_equal(self, x)
153 
154 
155  def copy(self):
156  """copy(IMP_RMF_SwigPyIterator self) -> IMP_RMF_SwigPyIterator"""
157  return _IMP_rmf.IMP_RMF_SwigPyIterator_copy(self)
158 
159 
160  def next(self):
161  """next(IMP_RMF_SwigPyIterator self) -> PyObject *"""
162  return _IMP_rmf.IMP_RMF_SwigPyIterator_next(self)
163 
164 
165  def __next__(self):
166  """__next__(IMP_RMF_SwigPyIterator self) -> PyObject *"""
167  return _IMP_rmf.IMP_RMF_SwigPyIterator___next__(self)
168 
169 
170  def previous(self):
171  """previous(IMP_RMF_SwigPyIterator self) -> PyObject *"""
172  return _IMP_rmf.IMP_RMF_SwigPyIterator_previous(self)
173 
174 
175  def advance(self, n):
176  """advance(IMP_RMF_SwigPyIterator self, ptrdiff_t n) -> IMP_RMF_SwigPyIterator"""
177  return _IMP_rmf.IMP_RMF_SwigPyIterator_advance(self, n)
178 
179 
180  def __eq__(self, x):
181  """__eq__(IMP_RMF_SwigPyIterator self, IMP_RMF_SwigPyIterator x) -> bool"""
182  return _IMP_rmf.IMP_RMF_SwigPyIterator___eq__(self, x)
183 
184 
185  def __ne__(self, x):
186  """__ne__(IMP_RMF_SwigPyIterator self, IMP_RMF_SwigPyIterator x) -> bool"""
187  return _IMP_rmf.IMP_RMF_SwigPyIterator___ne__(self, x)
188 
189 
190  def __iadd__(self, n):
191  """__iadd__(IMP_RMF_SwigPyIterator self, ptrdiff_t n) -> IMP_RMF_SwigPyIterator"""
192  return _IMP_rmf.IMP_RMF_SwigPyIterator___iadd__(self, n)
193 
194 
195  def __isub__(self, n):
196  """__isub__(IMP_RMF_SwigPyIterator self, ptrdiff_t n) -> IMP_RMF_SwigPyIterator"""
197  return _IMP_rmf.IMP_RMF_SwigPyIterator___isub__(self, n)
198 
199 
200  def __add__(self, n):
201  """__add__(IMP_RMF_SwigPyIterator self, ptrdiff_t n) -> IMP_RMF_SwigPyIterator"""
202  return _IMP_rmf.IMP_RMF_SwigPyIterator___add__(self, n)
203 
204 
205  def __sub__(self, *args):
206  """
207  __sub__(IMP_RMF_SwigPyIterator self, ptrdiff_t n) -> IMP_RMF_SwigPyIterator
208  __sub__(IMP_RMF_SwigPyIterator self, IMP_RMF_SwigPyIterator x) -> ptrdiff_t
209  """
210  return _IMP_rmf.IMP_RMF_SwigPyIterator___sub__(self, *args)
211 
212  def __iter__(self):
213  return self
214 IMP_RMF_SwigPyIterator_swigregister = _IMP_rmf.IMP_RMF_SwigPyIterator_swigregister
215 IMP_RMF_SwigPyIterator_swigregister(IMP_RMF_SwigPyIterator)
216 
217 
218 _value_types=[]
219 _object_types=[]
220 _raii_types=[]
221 _plural_types=[]
222 
223 
224 _IMP_rmf.IMP_DEBUG_swigconstant(_IMP_rmf)
225 IMP_DEBUG = _IMP_rmf.IMP_DEBUG
226 
227 _IMP_rmf.IMP_RELEASE_swigconstant(_IMP_rmf)
228 IMP_RELEASE = _IMP_rmf.IMP_RELEASE
229 
230 _IMP_rmf.IMP_SILENT_swigconstant(_IMP_rmf)
231 IMP_SILENT = _IMP_rmf.IMP_SILENT
232 
233 _IMP_rmf.IMP_PROGRESS_swigconstant(_IMP_rmf)
234 IMP_PROGRESS = _IMP_rmf.IMP_PROGRESS
235 
236 _IMP_rmf.IMP_TERSE_swigconstant(_IMP_rmf)
237 IMP_TERSE = _IMP_rmf.IMP_TERSE
238 
239 _IMP_rmf.IMP_VERBOSE_swigconstant(_IMP_rmf)
240 IMP_VERBOSE = _IMP_rmf.IMP_VERBOSE
241 
242 _IMP_rmf.IMP_MEMORY_swigconstant(_IMP_rmf)
243 IMP_MEMORY = _IMP_rmf.IMP_MEMORY
244 
245 _IMP_rmf.IMP_NONE_swigconstant(_IMP_rmf)
246 IMP_NONE = _IMP_rmf.IMP_NONE
247 
248 _IMP_rmf.IMP_USAGE_swigconstant(_IMP_rmf)
249 IMP_USAGE = _IMP_rmf.IMP_USAGE
250 
251 _IMP_rmf.IMP_INTERNAL_swigconstant(_IMP_rmf)
252 IMP_INTERNAL = _IMP_rmf.IMP_INTERNAL
253 
254 _IMP_rmf.IMP_KERNEL_HAS_LOG4CXX_swigconstant(_IMP_rmf)
255 IMP_KERNEL_HAS_LOG4CXX = _IMP_rmf.IMP_KERNEL_HAS_LOG4CXX
256 
257 _IMP_rmf.IMP_COMPILER_HAS_AUTO_swigconstant(_IMP_rmf)
258 IMP_COMPILER_HAS_AUTO = _IMP_rmf.IMP_COMPILER_HAS_AUTO
259 
260 _IMP_rmf.IMP_COMPILER_HAS_DEBUG_VECTOR_swigconstant(_IMP_rmf)
261 IMP_COMPILER_HAS_DEBUG_VECTOR = _IMP_rmf.IMP_COMPILER_HAS_DEBUG_VECTOR
262 
263 _IMP_rmf.IMP_COMPILER_HAS_UNIQUE_PTR_swigconstant(_IMP_rmf)
264 IMP_COMPILER_HAS_UNIQUE_PTR = _IMP_rmf.IMP_COMPILER_HAS_UNIQUE_PTR
265 
266 _IMP_rmf.IMP_KERNEL_HAS_BOOST_RANDOM_swigconstant(_IMP_rmf)
267 IMP_KERNEL_HAS_BOOST_RANDOM = _IMP_rmf.IMP_KERNEL_HAS_BOOST_RANDOM
268 
269 _IMP_rmf.IMP_KERNEL_HAS_GPERFTOOLS_swigconstant(_IMP_rmf)
270 IMP_KERNEL_HAS_GPERFTOOLS = _IMP_rmf.IMP_KERNEL_HAS_GPERFTOOLS
271 
272 _IMP_rmf.IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER_swigconstant(_IMP_rmf)
273 IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER = _IMP_rmf.IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER
274 
275 _IMP_rmf.IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER_swigconstant(_IMP_rmf)
276 IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER = _IMP_rmf.IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER
277 
278 _IMP_rmf.IMPKERNEL_SHOW_WARNINGS_swigconstant(_IMP_rmf)
279 IMPKERNEL_SHOW_WARNINGS = _IMP_rmf.IMPKERNEL_SHOW_WARNINGS
280 
281 import sys
282 class _DirectorObjects(object):
283  """@internal Simple class to keep references to director objects
284  to prevent premature deletion."""
285  def __init__(self):
286  self._objects = []
287  def register(self, obj):
288  """Take a reference to a director object; will only work for
289  refcounted C++ classes"""
290  if hasattr(obj, 'get_ref_count'):
291  self._objects.append(obj)
292  def cleanup(self):
293  """Only drop our reference and allow cleanup by Python if no other
294  Python references exist (we hold 3 references: one in self._objects,
295  one in x, and one in the argument list for getrefcount) *and* no
296  other C++ references exist (the Python object always holds one)"""
297  objs = [x for x in self._objects if sys.getrefcount(x) > 3 \
298  or x.get_ref_count() > 1]
299 # Do in two steps so the references are kept until the end of the
300 # function (deleting references may trigger a fresh call to this method)
301  self._objects = objs
302  def get_object_count(self):
303  """Get number of director objects (useful for testing only)"""
304  return len(self._objects)
305 _director_objects = _DirectorObjects()
306 
307 class _ostream(object):
308  """Proxy of C++ std::ostream class."""
309 
310  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
311 
312  def __init__(self, *args, **kwargs):
313  raise AttributeError("No constructor defined")
314  __repr__ = _swig_repr
315 
316  def write(self, osa_buf):
317  """write(_ostream self, char const * osa_buf)"""
318  return _IMP_rmf._ostream_write(self, osa_buf)
319 
320 _ostream_swigregister = _IMP_rmf._ostream_swigregister
321 _ostream_swigregister(_ostream)
322 
323 
324 _IMP_rmf.IMP_COMPILER_HAS_OVERRIDE_swigconstant(_IMP_rmf)
325 IMP_COMPILER_HAS_OVERRIDE = _IMP_rmf.IMP_COMPILER_HAS_OVERRIDE
326 
327 _IMP_rmf.IMP_COMPILER_HAS_FINAL_swigconstant(_IMP_rmf)
328 IMP_COMPILER_HAS_FINAL = _IMP_rmf.IMP_COMPILER_HAS_FINAL
329 
330 _IMP_rmf.IMP_HAS_NOEXCEPT_swigconstant(_IMP_rmf)
331 IMP_HAS_NOEXCEPT = _IMP_rmf.IMP_HAS_NOEXCEPT
332 import IMP
333 
334 _IMP_rmf.IMP_CGAL_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_rmf)
335 IMP_CGAL_HAS_BOOST_FILESYSTEM = _IMP_rmf.IMP_CGAL_HAS_BOOST_FILESYSTEM
336 
337 _IMP_rmf.IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_rmf)
338 IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS = _IMP_rmf.IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS
339 
340 _IMP_rmf.IMP_CGAL_HAS_BOOST_RANDOM_swigconstant(_IMP_rmf)
341 IMP_CGAL_HAS_BOOST_RANDOM = _IMP_rmf.IMP_CGAL_HAS_BOOST_RANDOM
342 
343 _IMP_rmf.IMP_CGAL_HAS_BOOST_SYSTEM_swigconstant(_IMP_rmf)
344 IMP_CGAL_HAS_BOOST_SYSTEM = _IMP_rmf.IMP_CGAL_HAS_BOOST_SYSTEM
345 
346 _IMP_rmf.IMPCGAL_SHOW_WARNINGS_swigconstant(_IMP_rmf)
347 IMPCGAL_SHOW_WARNINGS = _IMP_rmf.IMPCGAL_SHOW_WARNINGS
348 import IMP.cgal
349 
350 _IMP_rmf.IMP_ALGEBRA_HAS_IMP_CGAL_swigconstant(_IMP_rmf)
351 IMP_ALGEBRA_HAS_IMP_CGAL = _IMP_rmf.IMP_ALGEBRA_HAS_IMP_CGAL
352 
353 _IMP_rmf.IMP_ALGEBRA_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_rmf)
354 IMP_ALGEBRA_HAS_BOOST_FILESYSTEM = _IMP_rmf.IMP_ALGEBRA_HAS_BOOST_FILESYSTEM
355 
356 _IMP_rmf.IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_rmf)
357 IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS = _IMP_rmf.IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS
358 
359 _IMP_rmf.IMP_ALGEBRA_HAS_BOOST_RANDOM_swigconstant(_IMP_rmf)
360 IMP_ALGEBRA_HAS_BOOST_RANDOM = _IMP_rmf.IMP_ALGEBRA_HAS_BOOST_RANDOM
361 
362 _IMP_rmf.IMP_ALGEBRA_HAS_BOOST_SYSTEM_swigconstant(_IMP_rmf)
363 IMP_ALGEBRA_HAS_BOOST_SYSTEM = _IMP_rmf.IMP_ALGEBRA_HAS_BOOST_SYSTEM
364 
365 _IMP_rmf.IMP_ALGEBRA_HAS_CGAL_swigconstant(_IMP_rmf)
366 IMP_ALGEBRA_HAS_CGAL = _IMP_rmf.IMP_ALGEBRA_HAS_CGAL
367 
368 _IMP_rmf.IMP_ALGEBRA_HAS_ANN_swigconstant(_IMP_rmf)
369 IMP_ALGEBRA_HAS_ANN = _IMP_rmf.IMP_ALGEBRA_HAS_ANN
370 
371 _IMP_rmf.IMPALGEBRA_SHOW_WARNINGS_swigconstant(_IMP_rmf)
372 IMPALGEBRA_SHOW_WARNINGS = _IMP_rmf.IMPALGEBRA_SHOW_WARNINGS
373 import IMP.algebra
374 
375 _IMP_rmf.IMP_DISPLAY_HAS_IMP_CGAL_swigconstant(_IMP_rmf)
376 IMP_DISPLAY_HAS_IMP_CGAL = _IMP_rmf.IMP_DISPLAY_HAS_IMP_CGAL
377 
378 _IMP_rmf.IMP_DISPLAY_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_rmf)
379 IMP_DISPLAY_HAS_BOOST_FILESYSTEM = _IMP_rmf.IMP_DISPLAY_HAS_BOOST_FILESYSTEM
380 
381 _IMP_rmf.IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_rmf)
382 IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS = _IMP_rmf.IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS
383 
384 _IMP_rmf.IMP_DISPLAY_HAS_BOOST_RANDOM_swigconstant(_IMP_rmf)
385 IMP_DISPLAY_HAS_BOOST_RANDOM = _IMP_rmf.IMP_DISPLAY_HAS_BOOST_RANDOM
386 
387 _IMP_rmf.IMP_DISPLAY_HAS_BOOST_SYSTEM_swigconstant(_IMP_rmf)
388 IMP_DISPLAY_HAS_BOOST_SYSTEM = _IMP_rmf.IMP_DISPLAY_HAS_BOOST_SYSTEM
389 
390 _IMP_rmf.IMP_DISPLAY_HAS_CGAL_swigconstant(_IMP_rmf)
391 IMP_DISPLAY_HAS_CGAL = _IMP_rmf.IMP_DISPLAY_HAS_CGAL
392 
393 _IMP_rmf.IMPDISPLAY_SHOW_WARNINGS_swigconstant(_IMP_rmf)
394 IMPDISPLAY_SHOW_WARNINGS = _IMP_rmf.IMPDISPLAY_SHOW_WARNINGS
395 import IMP.display
396 
397 _IMP_rmf.IMP_SCORE_FUNCTOR_HAS_IMP_CGAL_swigconstant(_IMP_rmf)
398 IMP_SCORE_FUNCTOR_HAS_IMP_CGAL = _IMP_rmf.IMP_SCORE_FUNCTOR_HAS_IMP_CGAL
399 
400 _IMP_rmf.IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_rmf)
401 IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM = _IMP_rmf.IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM
402 
403 _IMP_rmf.IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_rmf)
404 IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS = _IMP_rmf.IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS
405 
406 _IMP_rmf.IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM_swigconstant(_IMP_rmf)
407 IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM = _IMP_rmf.IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM
408 
409 _IMP_rmf.IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM_swigconstant(_IMP_rmf)
410 IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM = _IMP_rmf.IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM
411 
412 _IMP_rmf.IMP_SCORE_FUNCTOR_HAS_CGAL_swigconstant(_IMP_rmf)
413 IMP_SCORE_FUNCTOR_HAS_CGAL = _IMP_rmf.IMP_SCORE_FUNCTOR_HAS_CGAL
414 
415 _IMP_rmf.IMP_SCORE_FUNCTOR_HAS_HDF5_swigconstant(_IMP_rmf)
416 IMP_SCORE_FUNCTOR_HAS_HDF5 = _IMP_rmf.IMP_SCORE_FUNCTOR_HAS_HDF5
417 
418 _IMP_rmf.IMPSCOREFUNCTOR_SHOW_WARNINGS_swigconstant(_IMP_rmf)
419 IMPSCOREFUNCTOR_SHOW_WARNINGS = _IMP_rmf.IMPSCOREFUNCTOR_SHOW_WARNINGS
420 import IMP.score_functor
421 
422 _IMP_rmf.IMP_CORE_HAS_IMP_CGAL_swigconstant(_IMP_rmf)
423 IMP_CORE_HAS_IMP_CGAL = _IMP_rmf.IMP_CORE_HAS_IMP_CGAL
424 
425 _IMP_rmf.IMP_CORE_HAS_IMP_KERNEL_swigconstant(_IMP_rmf)
426 IMP_CORE_HAS_IMP_KERNEL = _IMP_rmf.IMP_CORE_HAS_IMP_KERNEL
427 
428 _IMP_rmf.IMP_CORE_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_rmf)
429 IMP_CORE_HAS_BOOST_FILESYSTEM = _IMP_rmf.IMP_CORE_HAS_BOOST_FILESYSTEM
430 
431 _IMP_rmf.IMP_CORE_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_rmf)
432 IMP_CORE_HAS_BOOST_PROGRAMOPTIONS = _IMP_rmf.IMP_CORE_HAS_BOOST_PROGRAMOPTIONS
433 
434 _IMP_rmf.IMP_CORE_HAS_BOOST_RANDOM_swigconstant(_IMP_rmf)
435 IMP_CORE_HAS_BOOST_RANDOM = _IMP_rmf.IMP_CORE_HAS_BOOST_RANDOM
436 
437 _IMP_rmf.IMP_CORE_HAS_BOOST_SYSTEM_swigconstant(_IMP_rmf)
438 IMP_CORE_HAS_BOOST_SYSTEM = _IMP_rmf.IMP_CORE_HAS_BOOST_SYSTEM
439 
440 _IMP_rmf.IMP_CORE_HAS_CGAL_swigconstant(_IMP_rmf)
441 IMP_CORE_HAS_CGAL = _IMP_rmf.IMP_CORE_HAS_CGAL
442 
443 _IMP_rmf.IMP_CORE_HAS_HDF5_swigconstant(_IMP_rmf)
444 IMP_CORE_HAS_HDF5 = _IMP_rmf.IMP_CORE_HAS_HDF5
445 
446 _IMP_rmf.IMPCORE_SHOW_WARNINGS_swigconstant(_IMP_rmf)
447 IMPCORE_SHOW_WARNINGS = _IMP_rmf.IMPCORE_SHOW_WARNINGS
448 import IMP.core
449 
450 _IMP_rmf.IMP_CONTAINER_HAS_IMP_ALGEBRA_swigconstant(_IMP_rmf)
451 IMP_CONTAINER_HAS_IMP_ALGEBRA = _IMP_rmf.IMP_CONTAINER_HAS_IMP_ALGEBRA
452 
453 _IMP_rmf.IMP_CONTAINER_HAS_IMP_CGAL_swigconstant(_IMP_rmf)
454 IMP_CONTAINER_HAS_IMP_CGAL = _IMP_rmf.IMP_CONTAINER_HAS_IMP_CGAL
455 
456 _IMP_rmf.IMP_CONTAINER_HAS_IMP_DISPLAY_swigconstant(_IMP_rmf)
457 IMP_CONTAINER_HAS_IMP_DISPLAY = _IMP_rmf.IMP_CONTAINER_HAS_IMP_DISPLAY
458 
459 _IMP_rmf.IMP_CONTAINER_HAS_IMP_KERNEL_swigconstant(_IMP_rmf)
460 IMP_CONTAINER_HAS_IMP_KERNEL = _IMP_rmf.IMP_CONTAINER_HAS_IMP_KERNEL
461 
462 _IMP_rmf.IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR_swigconstant(_IMP_rmf)
463 IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR = _IMP_rmf.IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR
464 
465 _IMP_rmf.IMP_CONTAINER_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_rmf)
466 IMP_CONTAINER_HAS_BOOST_FILESYSTEM = _IMP_rmf.IMP_CONTAINER_HAS_BOOST_FILESYSTEM
467 
468 _IMP_rmf.IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_rmf)
469 IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS = _IMP_rmf.IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS
470 
471 _IMP_rmf.IMP_CONTAINER_HAS_BOOST_RANDOM_swigconstant(_IMP_rmf)
472 IMP_CONTAINER_HAS_BOOST_RANDOM = _IMP_rmf.IMP_CONTAINER_HAS_BOOST_RANDOM
473 
474 _IMP_rmf.IMP_CONTAINER_HAS_BOOST_SYSTEM_swigconstant(_IMP_rmf)
475 IMP_CONTAINER_HAS_BOOST_SYSTEM = _IMP_rmf.IMP_CONTAINER_HAS_BOOST_SYSTEM
476 
477 _IMP_rmf.IMP_CONTAINER_HAS_CGAL_swigconstant(_IMP_rmf)
478 IMP_CONTAINER_HAS_CGAL = _IMP_rmf.IMP_CONTAINER_HAS_CGAL
479 
480 _IMP_rmf.IMP_CONTAINER_HAS_HDF5_swigconstant(_IMP_rmf)
481 IMP_CONTAINER_HAS_HDF5 = _IMP_rmf.IMP_CONTAINER_HAS_HDF5
482 
483 _IMP_rmf.IMPCONTAINER_SHOW_WARNINGS_swigconstant(_IMP_rmf)
484 IMPCONTAINER_SHOW_WARNINGS = _IMP_rmf.IMPCONTAINER_SHOW_WARNINGS
485 import IMP.container
486 
487 _IMP_rmf.IMP_ATOM_HAS_IMP_CGAL_swigconstant(_IMP_rmf)
488 IMP_ATOM_HAS_IMP_CGAL = _IMP_rmf.IMP_ATOM_HAS_IMP_CGAL
489 
490 _IMP_rmf.IMP_ATOM_HAS_IMP_KERNEL_swigconstant(_IMP_rmf)
491 IMP_ATOM_HAS_IMP_KERNEL = _IMP_rmf.IMP_ATOM_HAS_IMP_KERNEL
492 
493 _IMP_rmf.IMP_ATOM_HAS_IMP_SCORE_FUNCTOR_swigconstant(_IMP_rmf)
494 IMP_ATOM_HAS_IMP_SCORE_FUNCTOR = _IMP_rmf.IMP_ATOM_HAS_IMP_SCORE_FUNCTOR
495 
496 _IMP_rmf.IMP_ATOM_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_rmf)
497 IMP_ATOM_HAS_BOOST_PROGRAMOPTIONS = _IMP_rmf.IMP_ATOM_HAS_BOOST_PROGRAMOPTIONS
498 
499 _IMP_rmf.IMP_ATOM_HAS_BOOST_RANDOM_swigconstant(_IMP_rmf)
500 IMP_ATOM_HAS_BOOST_RANDOM = _IMP_rmf.IMP_ATOM_HAS_BOOST_RANDOM
501 
502 _IMP_rmf.IMP_ATOM_HAS_BOOST_REGEX_swigconstant(_IMP_rmf)
503 IMP_ATOM_HAS_BOOST_REGEX = _IMP_rmf.IMP_ATOM_HAS_BOOST_REGEX
504 
505 _IMP_rmf.IMP_ATOM_HAS_BOOST_SYSTEM_swigconstant(_IMP_rmf)
506 IMP_ATOM_HAS_BOOST_SYSTEM = _IMP_rmf.IMP_ATOM_HAS_BOOST_SYSTEM
507 
508 _IMP_rmf.IMP_ATOM_HAS_CGAL_swigconstant(_IMP_rmf)
509 IMP_ATOM_HAS_CGAL = _IMP_rmf.IMP_ATOM_HAS_CGAL
510 
511 _IMP_rmf.IMP_ATOM_HAS_HDF5_swigconstant(_IMP_rmf)
512 IMP_ATOM_HAS_HDF5 = _IMP_rmf.IMP_ATOM_HAS_HDF5
513 
514 _IMP_rmf.IMPATOM_SHOW_WARNINGS_swigconstant(_IMP_rmf)
515 IMPATOM_SHOW_WARNINGS = _IMP_rmf.IMPATOM_SHOW_WARNINGS
516 
517 _IMP_rmf.IMP_ATOM_TYPE_INDEX_swigconstant(_IMP_rmf)
518 IMP_ATOM_TYPE_INDEX = _IMP_rmf.IMP_ATOM_TYPE_INDEX
519 
520 _IMP_rmf.IMP_RESIDUE_TYPE_INDEX_swigconstant(_IMP_rmf)
521 IMP_RESIDUE_TYPE_INDEX = _IMP_rmf.IMP_RESIDUE_TYPE_INDEX
522 
523 _IMP_rmf.IMP_HIERARCHY_TYPE_INDEX_swigconstant(_IMP_rmf)
524 IMP_HIERARCHY_TYPE_INDEX = _IMP_rmf.IMP_HIERARCHY_TYPE_INDEX
525 import IMP.atom
526 
527 _IMP_rmf.IMP_RMF_HAS_IMP_CGAL_swigconstant(_IMP_rmf)
528 IMP_RMF_HAS_IMP_CGAL = _IMP_rmf.IMP_RMF_HAS_IMP_CGAL
529 
530 _IMP_rmf.IMP_RMF_HAS_IMP_SCORE_FUNCTOR_swigconstant(_IMP_rmf)
531 IMP_RMF_HAS_IMP_SCORE_FUNCTOR = _IMP_rmf.IMP_RMF_HAS_IMP_SCORE_FUNCTOR
532 
533 _IMP_rmf.IMP_RMF_HAS_BOOST_FILESYSTEM_swigconstant(_IMP_rmf)
534 IMP_RMF_HAS_BOOST_FILESYSTEM = _IMP_rmf.IMP_RMF_HAS_BOOST_FILESYSTEM
535 
536 _IMP_rmf.IMP_RMF_HAS_BOOST_PROGRAMOPTIONS_swigconstant(_IMP_rmf)
537 IMP_RMF_HAS_BOOST_PROGRAMOPTIONS = _IMP_rmf.IMP_RMF_HAS_BOOST_PROGRAMOPTIONS
538 
539 _IMP_rmf.IMP_RMF_HAS_BOOST_RANDOM_swigconstant(_IMP_rmf)
540 IMP_RMF_HAS_BOOST_RANDOM = _IMP_rmf.IMP_RMF_HAS_BOOST_RANDOM
541 
542 _IMP_rmf.IMP_RMF_HAS_BOOST_REGEX_swigconstant(_IMP_rmf)
543 IMP_RMF_HAS_BOOST_REGEX = _IMP_rmf.IMP_RMF_HAS_BOOST_REGEX
544 
545 _IMP_rmf.IMP_RMF_HAS_BOOST_SYSTEM_swigconstant(_IMP_rmf)
546 IMP_RMF_HAS_BOOST_SYSTEM = _IMP_rmf.IMP_RMF_HAS_BOOST_SYSTEM
547 
548 _IMP_rmf.IMP_RMF_HAS_CGAL_swigconstant(_IMP_rmf)
549 IMP_RMF_HAS_CGAL = _IMP_rmf.IMP_RMF_HAS_CGAL
550 
551 _IMP_rmf.IMP_RMF_HAS_HDF5_swigconstant(_IMP_rmf)
552 IMP_RMF_HAS_HDF5 = _IMP_rmf.IMP_RMF_HAS_HDF5
553 
554 _IMP_rmf.IMPRMF_SHOW_WARNINGS_swigconstant(_IMP_rmf)
555 IMPRMF_SHOW_WARNINGS = _IMP_rmf.IMPRMF_SHOW_WARNINGS
556 import RMF
557 
558 _object_types.append("SaveOptimizerState")
559 
560 
561 def _object_cast_to_SaveOptimizerState(o):
562  """_object_cast_to_SaveOptimizerState(Object o) -> SaveOptimizerState"""
563  return _IMP_rmf._object_cast_to_SaveOptimizerState(o)
564 
565 _object_types.append("LoadLink")
566 
567 
568 def _object_cast_to_LoadLink(o):
569  """_object_cast_to_LoadLink(Object o) -> LoadLink"""
570  return _IMP_rmf._object_cast_to_LoadLink(o)
571 
572 _object_types.append("SaveLink")
573 
574 
575 def _object_cast_to_SaveLink(o):
576  """_object_cast_to_SaveLink(Object o) -> SaveLink"""
577  return _IMP_rmf._object_cast_to_SaveLink(o)
578 
579 _object_types.append("HierarchySaveLink")
580 
581 
582 def _object_cast_to_HierarchySaveLink(o):
583  """_object_cast_to_HierarchySaveLink(Object o) -> HierarchySaveLink"""
584  return _IMP_rmf._object_cast_to_HierarchySaveLink(o)
585 
586 _object_types.append("HierarchyLoadLink")
587 
588 
589 def _object_cast_to_HierarchyLoadLink(o):
590  """_object_cast_to_HierarchyLoadLink(Object o) -> HierarchyLoadLink"""
591  return _IMP_rmf._object_cast_to_HierarchyLoadLink(o)
592 class LoadLink(IMP.Object):
593  """Proxy of C++ IMP::rmf::LoadLink class."""
594 
595  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
596 
597  def do_load(self, fh):
598  """do_load(LoadLink self, FileConstHandle fh)"""
599  return _IMP_rmf.LoadLink_do_load(self, fh)
600 
601 
602  def __init__(self, name):
603  """__init__(IMP::rmf::LoadLink self, std::string name) -> LoadLink"""
604  if self.__class__ == LoadLink:
605  _self = None
606  else:
607  _self = self
608  this = _IMP_rmf.new_LoadLink(_self, name)
609  try:
610  self.this.append(this)
611  except Exception:
612  self.this = this
613 
614  if self.__class__ != LoadLink:
615  _director_objects.register(self)
616 
617 
618 
619 
620  def load(self, fh):
621  """load(LoadLink self, FileConstHandle fh)"""
622  return _IMP_rmf.LoadLink_load(self, fh)
623 
624  __swig_destroy__ = _IMP_rmf.delete_LoadLink
625  __del__ = lambda self: None
626 
627  def __str__(self):
628  """__str__(LoadLink self) -> std::string"""
629  return _IMP_rmf.LoadLink___str__(self)
630 
631 
632  def __repr__(self):
633  """__repr__(LoadLink self) -> std::string"""
634  return _IMP_rmf.LoadLink___repr__(self)
635 
636 
637  @staticmethod
638  def get_from(o):
639  return _object_cast_to_LoadLink(o)
640 
641 
642  def get_type_name(self):
643  return self.__class__.__name__
644  def do_show(self, out):
645  pass
646  def get_version_info(self):
647  if"IMP::rmf" == "IMP":
648  return VersionInfo(self.__module__,
649  __import__(self.__module__).get_module_version())
650  else:
651  return IMP.VersionInfo(self.__module__,
652  __import__(self.__module__).get_module_version())
653  @staticmethod
654  def get_from(o):
655  return _object_cast_to_LoadLink(o)
656 
657  def __disown__(self):
658  self.this.disown()
659  _IMP_rmf.disown_LoadLink(self)
660  return weakref_proxy(self)
661 
662  def do_destroy(self):
663  """do_destroy(LoadLink self)"""
664  return _IMP_rmf.LoadLink_do_destroy(self)
665 
666 LoadLink_swigregister = _IMP_rmf.LoadLink_swigregister
667 LoadLink_swigregister(LoadLink)
668 
669 class SaveLink(IMP.Object):
670  """Proxy of C++ IMP::rmf::SaveLink class."""
671 
672  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
673 
674  def do_save(self, hf):
675  """do_save(SaveLink self, FileHandle hf)"""
676  return _IMP_rmf.SaveLink_do_save(self, hf)
677 
678 
679  def __init__(self, name):
680  """__init__(IMP::rmf::SaveLink self, std::string name) -> SaveLink"""
681  if self.__class__ == SaveLink:
682  _self = None
683  else:
684  _self = self
685  this = _IMP_rmf.new_SaveLink(_self, name)
686  try:
687  self.this.append(this)
688  except Exception:
689  self.this = this
690 
691  if self.__class__ != SaveLink:
692  _director_objects.register(self)
693 
694 
695 
696 
697  def save(self, fh):
698  """save(SaveLink self, FileHandle fh)"""
699  return _IMP_rmf.SaveLink_save(self, fh)
700 
701  __swig_destroy__ = _IMP_rmf.delete_SaveLink
702  __del__ = lambda self: None
703 
704  def __str__(self):
705  """__str__(SaveLink self) -> std::string"""
706  return _IMP_rmf.SaveLink___str__(self)
707 
708 
709  def __repr__(self):
710  """__repr__(SaveLink self) -> std::string"""
711  return _IMP_rmf.SaveLink___repr__(self)
712 
713 
714  @staticmethod
715  def get_from(o):
716  return _object_cast_to_SaveLink(o)
717 
718 
719  def get_type_name(self):
720  return self.__class__.__name__
721  def do_show(self, out):
722  pass
723  def get_version_info(self):
724  if"IMP::rmf" == "IMP":
725  return VersionInfo(self.__module__,
726  __import__(self.__module__).get_module_version())
727  else:
728  return IMP.VersionInfo(self.__module__,
729  __import__(self.__module__).get_module_version())
730  @staticmethod
731  def get_from(o):
732  return _object_cast_to_SaveLink(o)
733 
734  def __disown__(self):
735  self.this.disown()
736  _IMP_rmf.disown_SaveLink(self)
737  return weakref_proxy(self)
738 
739  def do_destroy(self):
740  """do_destroy(SaveLink self)"""
741  return _IMP_rmf.SaveLink_do_destroy(self)
742 
743 SaveLink_swigregister = _IMP_rmf.SaveLink_swigregister
744 SaveLink_swigregister(SaveLink)
745 
746 
747 def add_hierarchies(*args):
748  """
749  add_hierarchies(FileHandle fh, IMP::atom::Hierarchies const & hs)
750  add_hierarchies(NodeHandle fh, IMP::atom::Hierarchies const & hs)
751  """
752  return _IMP_rmf.add_hierarchies(*args)
753 
754 def add_hierarchy(fh, hs):
755  """add_hierarchy(FileHandle fh, Hierarchy hs)"""
756  return _IMP_rmf.add_hierarchy(fh, hs)
757 
758 def create_hierarchies(fh, m):
759  """create_hierarchies(FileConstHandle fh, Model m) -> IMP::atom::Hierarchies"""
760  return _IMP_rmf.create_hierarchies(fh, m)
761 
762 def link_hierarchies(fh, hs):
763  """link_hierarchies(FileConstHandle fh, IMP::atom::Hierarchies const & hs)"""
764  return _IMP_rmf.link_hierarchies(fh, hs)
765 
766 def add_restraints(*args):
767  """
768  add_restraints(FileHandle fh, IMP::Restraints const & hs)
769  add_restraints(NodeHandle fh, IMP::Restraints const & hs)
770  """
771  return _IMP_rmf.add_restraints(*args)
772 
773 def add_restraint(fh, hs):
774  """add_restraint(FileHandle fh, Restraint hs)"""
775  return _IMP_rmf.add_restraint(fh, hs)
776 
777 def create_restraints(fh, m):
778  """create_restraints(FileConstHandle fh, Model m) -> IMP::Restraints"""
779  return _IMP_rmf.create_restraints(fh, m)
780 
781 def link_restraints(fh, hs):
782  """link_restraints(FileConstHandle fh, IMP::Restraints const & hs)"""
783  return _IMP_rmf.link_restraints(fh, hs)
784 
785 def add_restraints_as_bonds(fh, rs):
786  """add_restraints_as_bonds(FileHandle fh, IMP::Restraints const & rs)"""
787  return _IMP_rmf.add_restraints_as_bonds(fh, rs)
788 
789 def set_maximum_number_of_terms(fh, num):
790  """set_maximum_number_of_terms(FileHandle fh, unsigned int num)"""
791  return _IMP_rmf.set_maximum_number_of_terms(fh, num)
792 
793 def add_particles(*args):
794  """
795  add_particles(FileHandle fh, IMP::ParticlesTemp const & hs)
796  add_particles(NodeHandle fh, IMP::ParticlesTemp const & hs)
797  """
798  return _IMP_rmf.add_particles(*args)
799 
800 def add_particle(fh, hs):
801  """add_particle(FileHandle fh, Particle hs)"""
802  return _IMP_rmf.add_particle(fh, hs)
803 
804 def create_particles(fh, m):
805  """create_particles(FileConstHandle fh, Model m) -> IMP::ParticlesTemp"""
806  return _IMP_rmf.create_particles(fh, m)
807 
808 def link_particles(fh, hs):
809  """link_particles(FileConstHandle fh, IMP::ParticlesTemp const & hs)"""
810  return _IMP_rmf.link_particles(fh, hs)
811 
812 def add_geometries(*args):
813  """
814  add_geometries(FileHandle file, IMP::display::GeometriesTemp const & r)
815  add_geometries(NodeHandle parent, IMP::display::GeometriesTemp const & r)
816  """
817  return _IMP_rmf.add_geometries(*args)
818 
819 def add_static_geometries(parent, r):
820  """add_static_geometries(FileHandle parent, IMP::display::GeometriesTemp const & r)"""
821  return _IMP_rmf.add_static_geometries(parent, r)
822 
823 def add_geometry(file, r):
824  """add_geometry(FileHandle file, Geometry r)"""
825  return _IMP_rmf.add_geometry(file, r)
826 
827 def create_geometries(parent):
828  """create_geometries(FileConstHandle parent) -> IMP::display::Geometries"""
829  return _IMP_rmf.create_geometries(parent)
830 
831 def link_geometries(parent, r):
832  """link_geometries(FileConstHandle parent, IMP::display::GeometriesTemp const & r)"""
833  return _IMP_rmf.link_geometries(parent, r)
834 
835 def set_association(nh, o, overwrite=False):
836  """
837  set_association(NodeConstHandle nh, Object o, bool overwrite=False)
838  set_association(NodeConstHandle nh, Object o)
839  """
840  return _IMP_rmf.set_association(nh, o, overwrite)
841 
842 def get_node_from_association(*args):
843  """
844  get_node_from_association(FileConstHandle nh, Object oi) -> NodeConstHandle
845  get_node_from_association(FileHandle nh, Object oi) -> NodeHandle
846  """
847  return _IMP_rmf.get_node_from_association(*args)
848 
849 def get_has_associated_node(nh, oi):
850  """get_has_associated_node(FileConstHandle nh, Object oi) -> bool"""
851  return _IMP_rmf.get_has_associated_node(nh, oi)
852 class SaveOptimizerState(IMP.OptimizerState):
853  """Proxy of C++ IMP::rmf::SaveOptimizerState class."""
854 
855  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
856 
857  def __init__(self, m, fh):
858  """__init__(IMP::rmf::SaveOptimizerState self, Model m, FileHandle fh) -> SaveOptimizerState"""
859  this = _IMP_rmf.new_SaveOptimizerState(m, fh)
860  try:
861  self.this.append(this)
862  except Exception:
863  self.this = this
864 
865  def remove_hierarchy(self, d):
866  """remove_hierarchy(SaveOptimizerState self, Particle d)"""
867  return _IMP_rmf.SaveOptimizerState_remove_hierarchy(self, d)
868 
869 
870  def remove_hierarchies(self, d):
871  """remove_hierarchies(SaveOptimizerState self, IMP::Particles const & d)"""
872  return _IMP_rmf.SaveOptimizerState_remove_hierarchies(self, d)
873 
874 
875  def set_hierarchies(self, ps):
876  """set_hierarchies(SaveOptimizerState self, IMP::Particles const & ps)"""
877  return _IMP_rmf.SaveOptimizerState_set_hierarchies(self, ps)
878 
879 
880  def set_hierarchies_order(self, objs):
881  """set_hierarchies_order(SaveOptimizerState self, IMP::Particles const & objs)"""
882  return _IMP_rmf.SaveOptimizerState_set_hierarchies_order(self, objs)
883 
884 
885  def add_hierarchy(self, obj):
886  """add_hierarchy(SaveOptimizerState self, Particle obj) -> unsigned int"""
887  return _IMP_rmf.SaveOptimizerState_add_hierarchy(self, obj)
888 
889 
890  def add_hierarchies(self, objs):
891  """add_hierarchies(SaveOptimizerState self, IMP::Particles const & objs)"""
892  return _IMP_rmf.SaveOptimizerState_add_hierarchies(self, objs)
893 
894 
895  def clear_hierarchies(self):
896  """clear_hierarchies(SaveOptimizerState self)"""
897  return _IMP_rmf.SaveOptimizerState_clear_hierarchies(self)
898 
899 
900  def get_number_of_hierarchies(self):
901  """get_number_of_hierarchies(SaveOptimizerState self) -> unsigned int"""
902  return _IMP_rmf.SaveOptimizerState_get_number_of_hierarchies(self)
903 
904 
905  def get_has_hierarchies(self):
906  """get_has_hierarchies(SaveOptimizerState self) -> bool"""
907  return _IMP_rmf.SaveOptimizerState_get_has_hierarchies(self)
908 
909 
910  def get_hierarchy(self, i):
911  """get_hierarchy(SaveOptimizerState self, unsigned int i) -> Particle"""
912  return _IMP_rmf.SaveOptimizerState_get_hierarchy(self, i)
913 
914 
915  def get_hierarchies(self):
916  """get_hierarchies(SaveOptimizerState self) -> IMP::Particles"""
917  return _IMP_rmf.SaveOptimizerState_get_hierarchies(self)
918 
919 
920  def reserve_hierarchies(self, sz):
921  """reserve_hierarchies(SaveOptimizerState self, unsigned int sz)"""
922  return _IMP_rmf.SaveOptimizerState_reserve_hierarchies(self, sz)
923 
924 
925  def remove_restraint(self, d):
926  """remove_restraint(SaveOptimizerState self, Restraint d)"""
927  return _IMP_rmf.SaveOptimizerState_remove_restraint(self, d)
928 
929 
930  def remove_restraints(self, d):
931  """remove_restraints(SaveOptimizerState self, IMP::Restraints const & d)"""
932  return _IMP_rmf.SaveOptimizerState_remove_restraints(self, d)
933 
934 
935  def set_restraints(self, ps):
936  """set_restraints(SaveOptimizerState self, IMP::Restraints const & ps)"""
937  return _IMP_rmf.SaveOptimizerState_set_restraints(self, ps)
938 
939 
940  def set_restraints_order(self, objs):
941  """set_restraints_order(SaveOptimizerState self, IMP::Restraints const & objs)"""
942  return _IMP_rmf.SaveOptimizerState_set_restraints_order(self, objs)
943 
944 
945  def add_restraint(self, obj):
946  """add_restraint(SaveOptimizerState self, Restraint obj) -> unsigned int"""
947  return _IMP_rmf.SaveOptimizerState_add_restraint(self, obj)
948 
949 
950  def add_restraints(self, objs):
951  """add_restraints(SaveOptimizerState self, IMP::Restraints const & objs)"""
952  return _IMP_rmf.SaveOptimizerState_add_restraints(self, objs)
953 
954 
955  def clear_restraints(self):
956  """clear_restraints(SaveOptimizerState self)"""
957  return _IMP_rmf.SaveOptimizerState_clear_restraints(self)
958 
959 
960  def get_number_of_restraints(self):
961  """get_number_of_restraints(SaveOptimizerState self) -> unsigned int"""
962  return _IMP_rmf.SaveOptimizerState_get_number_of_restraints(self)
963 
964 
965  def get_has_restraints(self):
966  """get_has_restraints(SaveOptimizerState self) -> bool"""
967  return _IMP_rmf.SaveOptimizerState_get_has_restraints(self)
968 
969 
970  def get_restraint(self, i):
971  """get_restraint(SaveOptimizerState self, unsigned int i) -> Restraint"""
972  return _IMP_rmf.SaveOptimizerState_get_restraint(self, i)
973 
974 
975  def get_restraints(self):
976  """get_restraints(SaveOptimizerState self) -> IMP::Restraints"""
977  return _IMP_rmf.SaveOptimizerState_get_restraints(self)
978 
979 
980  def reserve_restraints(self, sz):
981  """reserve_restraints(SaveOptimizerState self, unsigned int sz)"""
982  return _IMP_rmf.SaveOptimizerState_reserve_restraints(self, sz)
983 
984 
985  def remove_particle(self, d):
986  """remove_particle(SaveOptimizerState self, Particle d)"""
987  return _IMP_rmf.SaveOptimizerState_remove_particle(self, d)
988 
989 
990  def remove_particles(self, d):
991  """remove_particles(SaveOptimizerState self, IMP::Particles const & d)"""
992  return _IMP_rmf.SaveOptimizerState_remove_particles(self, d)
993 
994 
995  def set_particles(self, ps):
996  """set_particles(SaveOptimizerState self, IMP::Particles const & ps)"""
997  return _IMP_rmf.SaveOptimizerState_set_particles(self, ps)
998 
999 
1000  def set_particles_order(self, objs):
1001  """set_particles_order(SaveOptimizerState self, IMP::Particles const & objs)"""
1002  return _IMP_rmf.SaveOptimizerState_set_particles_order(self, objs)
1003 
1004 
1005  def add_particle(self, obj):
1006  """add_particle(SaveOptimizerState self, Particle obj) -> unsigned int"""
1007  return _IMP_rmf.SaveOptimizerState_add_particle(self, obj)
1008 
1009 
1010  def add_particles(self, objs):
1011  """add_particles(SaveOptimizerState self, IMP::Particles const & objs)"""
1012  return _IMP_rmf.SaveOptimizerState_add_particles(self, objs)
1013 
1014 
1015  def clear_particles(self):
1016  """clear_particles(SaveOptimizerState self)"""
1017  return _IMP_rmf.SaveOptimizerState_clear_particles(self)
1018 
1019 
1020  def get_number_of_particles(self):
1021  """get_number_of_particles(SaveOptimizerState self) -> unsigned int"""
1022  return _IMP_rmf.SaveOptimizerState_get_number_of_particles(self)
1023 
1024 
1025  def get_has_particles(self):
1026  """get_has_particles(SaveOptimizerState self) -> bool"""
1027  return _IMP_rmf.SaveOptimizerState_get_has_particles(self)
1028 
1029 
1030  def get_particle(self, i):
1031  """get_particle(SaveOptimizerState self, unsigned int i) -> Particle"""
1032  return _IMP_rmf.SaveOptimizerState_get_particle(self, i)
1033 
1034 
1035  def get_particles(self):
1036  """get_particles(SaveOptimizerState self) -> IMP::Particles"""
1037  return _IMP_rmf.SaveOptimizerState_get_particles(self)
1038 
1039 
1040  def reserve_particles(self, sz):
1041  """reserve_particles(SaveOptimizerState self, unsigned int sz)"""
1042  return _IMP_rmf.SaveOptimizerState_reserve_particles(self, sz)
1043 
1044 
1045  def remove_geometry(self, d):
1046  """remove_geometry(SaveOptimizerState self, Geometry d)"""
1047  return _IMP_rmf.SaveOptimizerState_remove_geometry(self, d)
1048 
1049 
1050  def remove_geometries(self, d):
1051  """remove_geometries(SaveOptimizerState self, IMP::display::Geometries const & d)"""
1052  return _IMP_rmf.SaveOptimizerState_remove_geometries(self, d)
1053 
1054 
1055  def set_geometries(self, ps):
1056  """set_geometries(SaveOptimizerState self, IMP::display::Geometries const & ps)"""
1057  return _IMP_rmf.SaveOptimizerState_set_geometries(self, ps)
1058 
1059 
1060  def set_geometries_order(self, objs):
1061  """set_geometries_order(SaveOptimizerState self, IMP::display::Geometries const & objs)"""
1062  return _IMP_rmf.SaveOptimizerState_set_geometries_order(self, objs)
1063 
1064 
1065  def add_geometry(self, obj):
1066  """add_geometry(SaveOptimizerState self, Geometry obj) -> unsigned int"""
1067  return _IMP_rmf.SaveOptimizerState_add_geometry(self, obj)
1068 
1069 
1070  def add_geometries(self, objs):
1071  """add_geometries(SaveOptimizerState self, IMP::display::Geometries const & objs)"""
1072  return _IMP_rmf.SaveOptimizerState_add_geometries(self, objs)
1073 
1074 
1075  def clear_geometries(self):
1076  """clear_geometries(SaveOptimizerState self)"""
1077  return _IMP_rmf.SaveOptimizerState_clear_geometries(self)
1078 
1079 
1080  def get_number_of_geometries(self):
1081  """get_number_of_geometries(SaveOptimizerState self) -> unsigned int"""
1082  return _IMP_rmf.SaveOptimizerState_get_number_of_geometries(self)
1083 
1084 
1085  def get_has_geometries(self):
1086  """get_has_geometries(SaveOptimizerState self) -> bool"""
1087  return _IMP_rmf.SaveOptimizerState_get_has_geometries(self)
1088 
1089 
1090  def get_geometry(self, i):
1091  """get_geometry(SaveOptimizerState self, unsigned int i) -> Geometry"""
1092  return _IMP_rmf.SaveOptimizerState_get_geometry(self, i)
1093 
1094 
1095  def get_geometries(self):
1096  """get_geometries(SaveOptimizerState self) -> IMP::display::Geometries"""
1097  return _IMP_rmf.SaveOptimizerState_get_geometries(self)
1098 
1099 
1100  def reserve_geometries(self, sz):
1101  """reserve_geometries(SaveOptimizerState self, unsigned int sz)"""
1102  return _IMP_rmf.SaveOptimizerState_reserve_geometries(self, sz)
1103 
1104 
1105  def set_simulator(self, sim):
1106  """set_simulator(SaveOptimizerState self, Simulator sim)"""
1107  return _IMP_rmf.SaveOptimizerState_set_simulator(self, sim)
1108 
1109 
1110  def update_always(self, *args):
1111  """
1112  update_always(SaveOptimizerState self, std::string name)
1113  update_always(SaveOptimizerState self)
1114  """
1115  return _IMP_rmf.SaveOptimizerState_update_always(self, *args)
1116 
1117 
1118  def do_update(self, call_num):
1119  """do_update(SaveOptimizerState self, unsigned int call_num)"""
1120  return _IMP_rmf.SaveOptimizerState_do_update(self, call_num)
1121 
1122 
1123  def get_version_info(self):
1124  """get_version_info(SaveOptimizerState self) -> VersionInfo"""
1125  return _IMP_rmf.SaveOptimizerState_get_version_info(self)
1126 
1127 
1128  def __str__(self):
1129  """__str__(SaveOptimizerState self) -> std::string"""
1130  return _IMP_rmf.SaveOptimizerState___str__(self)
1131 
1132 
1133  def __repr__(self):
1134  """__repr__(SaveOptimizerState self) -> std::string"""
1135  return _IMP_rmf.SaveOptimizerState___repr__(self)
1136 
1137 
1138  @staticmethod
1139  def get_from(o):
1140  return _object_cast_to_SaveOptimizerState(o)
1141 
1142 SaveOptimizerState_swigregister = _IMP_rmf.SaveOptimizerState_swigregister
1143 SaveOptimizerState_swigregister(SaveOptimizerState)
1144 
1145 
1146 def load_frame(file, frame):
1147  """load_frame(FileConstHandle file, FrameID frame)"""
1148  return _IMP_rmf.load_frame(file, frame)
1149 
1150 def save_frame(*args):
1151  """
1152  save_frame(FileHandle file, std::string name) -> FrameID
1153  save_frame(FileHandle file) -> FrameID
1154  """
1155  return _IMP_rmf.save_frame(*args)
1156 class _ParticleSaveLink(SaveLink):
1157  """Proxy of C++ IMP::rmf::SimpleSaveLink<(IMP::Particle)> class."""
1158 
1159  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1160 
1161  def __init__(self, *args, **kwargs):
1162  raise AttributeError("No constructor defined - class is abstract")
1163  __repr__ = _swig_repr
1164 
1165  def add(self, parent, os):
1166  """add(_ParticleSaveLink self, NodeHandle parent, IMP::Vector< Pointer< IMP::Particle > > const & os)"""
1167  return _IMP_rmf._ParticleSaveLink_add(self, parent, os)
1168 
1169  __swig_destroy__ = _IMP_rmf.delete__ParticleSaveLink
1170  __del__ = lambda self: None
1171 _ParticleSaveLink_swigregister = _IMP_rmf._ParticleSaveLink_swigregister
1172 _ParticleSaveLink_swigregister(_ParticleSaveLink)
1173 
1174 class _ParticleLoadLink(LoadLink):
1175  """Proxy of C++ IMP::rmf::SimpleLoadLink<(IMP::Particle)> class."""
1176 
1177  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1178 
1179  def __init__(self, *args, **kwargs):
1180  raise AttributeError("No constructor defined - class is abstract")
1181  __repr__ = _swig_repr
1182 
1183  def create(self, *args):
1184  """
1185  create(_ParticleLoadLink self, NodeConstHandle rt) -> IMP::Vector< Pointer< IMP::Particle > >
1186  create(_ParticleLoadLink self, NodeConstHandle rt, Model m) -> IMP::Vector< Pointer< IMP::Particle > >
1187  """
1188  return _IMP_rmf._ParticleLoadLink_create(self, *args)
1189 
1190 
1191  def link(self, rt, ps):
1192  """link(_ParticleLoadLink self, NodeConstHandle rt, IMP::Vector< Pointer< IMP::Particle > > const & ps)"""
1193  return _IMP_rmf._ParticleLoadLink_link(self, rt, ps)
1194 
1195  __swig_destroy__ = _IMP_rmf.delete__ParticleLoadLink
1196  __del__ = lambda self: None
1197 _ParticleLoadLink_swigregister = _IMP_rmf._ParticleLoadLink_swigregister
1198 _ParticleLoadLink_swigregister(_ParticleLoadLink)
1199 
1200 class HierarchyLoadLink(_ParticleLoadLink):
1201  """Proxy of C++ IMP::rmf::HierarchyLoadLink class."""
1202 
1203  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1204 
1205  def __init__(self, fh):
1206  """__init__(IMP::rmf::HierarchyLoadLink self, FileConstHandle fh) -> HierarchyLoadLink"""
1207  this = _IMP_rmf.new_HierarchyLoadLink(fh)
1208  try:
1209  self.this.append(this)
1210  except Exception:
1211  self.this = this
1212 
1213  def get_name():
1214  """get_name() -> char const *"""
1215  return _IMP_rmf.HierarchyLoadLink_get_name()
1216 
1217  get_name = staticmethod(get_name)
1218 
1219  def get_version_info(self):
1220  """get_version_info(HierarchyLoadLink self) -> VersionInfo"""
1221  return _IMP_rmf.HierarchyLoadLink_get_version_info(self)
1222 
1223 
1224  def __str__(self):
1225  """__str__(HierarchyLoadLink self) -> std::string"""
1226  return _IMP_rmf.HierarchyLoadLink___str__(self)
1227 
1228 
1229  def __repr__(self):
1230  """__repr__(HierarchyLoadLink self) -> std::string"""
1231  return _IMP_rmf.HierarchyLoadLink___repr__(self)
1232 
1233 
1234  @staticmethod
1235  def get_from(o):
1236  return _object_cast_to_HierarchyLoadLink(o)
1237 
1238 HierarchyLoadLink_swigregister = _IMP_rmf.HierarchyLoadLink_swigregister
1239 HierarchyLoadLink_swigregister(HierarchyLoadLink)
1240 
1241 def HierarchyLoadLink_get_name():
1242  """HierarchyLoadLink_get_name() -> char const *"""
1243  return _IMP_rmf.HierarchyLoadLink_get_name()
1244 
1245 class HierarchySaveLink(_ParticleSaveLink):
1246  """Proxy of C++ IMP::rmf::HierarchySaveLink class."""
1247 
1248  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1249 
1250  def __init__(self, fh):
1251  """__init__(IMP::rmf::HierarchySaveLink self, FileHandle fh) -> HierarchySaveLink"""
1252  this = _IMP_rmf.new_HierarchySaveLink(fh)
1253  try:
1254  self.this.append(this)
1255  except Exception:
1256  self.this = this
1257 
1258  def get_name():
1259  """get_name() -> char const *"""
1260  return _IMP_rmf.HierarchySaveLink_get_name()
1261 
1262  get_name = staticmethod(get_name)
1263 
1264  def get_version_info(self):
1265  """get_version_info(HierarchySaveLink self) -> VersionInfo"""
1266  return _IMP_rmf.HierarchySaveLink_get_version_info(self)
1267 
1268 
1269  def __str__(self):
1270  """__str__(HierarchySaveLink self) -> std::string"""
1271  return _IMP_rmf.HierarchySaveLink___str__(self)
1272 
1273 
1274  def __repr__(self):
1275  """__repr__(HierarchySaveLink self) -> std::string"""
1276  return _IMP_rmf.HierarchySaveLink___repr__(self)
1277 
1278 
1279  @staticmethod
1280  def get_from(o):
1281  return _object_cast_to_HierarchySaveLink(o)
1282 
1283 HierarchySaveLink_swigregister = _IMP_rmf.HierarchySaveLink_swigregister
1284 HierarchySaveLink_swigregister(HierarchySaveLink)
1285 
1286 def HierarchySaveLink_get_name():
1287  """HierarchySaveLink_get_name() -> char const *"""
1288  return _IMP_rmf.HierarchySaveLink_get_name()
1289 
1290 
1291 suffixes = [".rmf", ".rmfz"]
1292 
1293 
1294 def get_module_version():
1295  """get_module_version() -> std::string const"""
1296  return _IMP_rmf.get_module_version()
1297 
1298 def get_example_path(fname):
1299  """get_example_path(std::string fname) -> std::string"""
1300  return _IMP_rmf.get_example_path(fname)
1301 
1302 def get_data_path(fname):
1303  """get_data_path(std::string fname) -> std::string"""
1304  return _IMP_rmf.get_data_path(fname)
1305 
1306 from . import _version_check
1307 _version_check.check_version(get_module_version())
1308 __version__ = get_module_version()
1309 
1310 
1311 
void link_particles(RMF::FileConstHandle fh, const ParticlesTemp &hs)
display::Geometries create_geometries(RMF::FileConstHandle parent)
Create geometry objects for the geometry nodes found in the file.
ParticlesTemp create_particles(RMF::FileConstHandle fh, Model *m)
atom::Hierarchies create_hierarchies(RMF::FileConstHandle fh, Model *m)
RMF::FrameID save_frame(RMF::FileHandle file, std::string name="")
Save the current state of the linked objects as a new RMF frame.
void add_particles(RMF::FileHandle fh, const ParticlesTemp &hs)
Various classes to hold sets of particles.
void add_restraints_as_bonds(RMF::FileHandle fh, const Restraints &rs)
Add a list of restraints to the file as (static) bonds.
Make CGAL functionality available to IMP.
std::string get_data_path(std::string file_name)
Return the full path to one of this module's data files.
ParticlesTemp get_particles(Model *m, const ParticleIndexes &ps)
std::string get_example_path(std::string file_name)
Return the full path to one of this module's example files.
void link_restraints(RMF::FileConstHandle fh, const Restraints &hs)
void add_particle(RMF::FileHandle fh, Particle *hs)
void add_hierarchies(RMF::FileHandle fh, const atom::Hierarchies &hs)
Composable functors to implement scores via compile-time composition.
void add_restraint(RMF::FileHandle fh, Restraint *hs)
void add_hierarchy(RMF::FileHandle fh, atom::Hierarchy hs)
Common base class for heavy weight IMP objects.
Definition: Object.h:106
void add_restraints(RMF::FileHandle fh, const Restraints &hs)
void link_geometries(RMF::FileConstHandle parent, const display::GeometriesTemp &r)
Link the passed geometry objects to corresponding ones in the file.
Version and module information for Objects.
Definition: VersionInfo.h:28
void load_frame(RMF::FileConstHandle file, RMF::FrameID frame)
void set_maximum_number_of_terms(RMF::FileHandle fh, unsigned int num)
Limit the number of restraint terms.
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...
Restraints create_restraints(RMF::FileConstHandle fh, Model *m)
Shared optimizer state that is invoked upon commitment of new coordinates.
void link_hierarchies(RMF::FileConstHandle fh, const atom::Hierarchies &hs)
void add_geometry(RMF::FileHandle file, display::Geometry *r)
Add a single geometry to the file.
void add_static_geometries(RMF::FileHandle parent, const display::GeometriesTemp &r)
Add geometries, assuming they do not move between frames.
void add_geometries(RMF::FileHandle file, const display::GeometriesTemp &r)
Add geometries to the file.
Output IMP model data in various file formats.
Functionality for loading, creating, manipulating and scoring atomic structures.