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