IMP logo
IMP Reference Guide  2.8.0
The Integrative Modeling Platform
rmf/__init__.py
1 # This file was automatically generated by SWIG (http://www.swig.org).
2 # Version 3.0.10
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-2017 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 as _swig_python_version_info
16 if _swig_python_version_info >= (2, 7, 0):
17  def swig_import_helper():
18  import importlib
19  pkg = __name__.rpartition('.')[0]
20  mname = '.'.join((pkg, '_IMP_rmf')).lstrip('.')
21  try:
22  return importlib.import_module(mname)
23  except ImportError:
24  return importlib.import_module('_IMP_rmf')
25  _IMP_rmf = swig_import_helper()
26  del swig_import_helper
27 elif _swig_python_version_info >= (2, 6, 0):
28  def swig_import_helper():
29  from os.path import dirname
30  import imp
31  fp = None
32  try:
33  fp, pathname, description = imp.find_module('_IMP_rmf', [dirname(__file__)])
34  except ImportError:
35  import _IMP_rmf
36  return _IMP_rmf
37  if fp is not None:
38  try:
39  _mod = imp.load_module('_IMP_rmf', fp, pathname, description)
40  finally:
41  fp.close()
42  return _mod
43  _IMP_rmf = swig_import_helper()
44  del swig_import_helper
45 else:
46  import _IMP_rmf
47 del _swig_python_version_info
48 try:
49  _swig_property = property
50 except NameError:
51  pass # Python < 2.2 doesn't have 'property'.
52 
53 try:
54  import builtins as __builtin__
55 except ImportError:
56  import __builtin__
57 
58 def _swig_setattr_nondynamic(self, class_type, name, value, static=1):
59  if (name == "thisown"):
60  return self.this.own(value)
61  if (name == "this"):
62  if type(value).__name__ == 'SwigPyObject':
63  self.__dict__[name] = value
64  return
65  method = class_type.__swig_setmethods__.get(name, None)
66  if method:
67  return method(self, value)
68  if (not static):
69  object.__setattr__(self, name, value)
70  else:
71  raise AttributeError("You cannot add attributes to %s" % self)
72 
73 
74 def _swig_setattr(self, class_type, name, value):
75  return _swig_setattr_nondynamic(self, class_type, name, value, 0)
76 
77 
78 def _swig_getattr(self, class_type, name):
79  if (name == "thisown"):
80  return self.this.own()
81  method = class_type.__swig_getmethods__.get(name, None)
82  if method:
83  return method(self)
84  raise AttributeError("'%s' object has no attribute '%s'" % (class_type.__name__, name))
85 
86 
87 def _swig_repr(self):
88  try:
89  strthis = "proxy of " + self.this.__repr__()
90  except __builtin__.Exception:
91  strthis = ""
92  return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
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 __builtin__.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 IMP_DEBUG = _IMP_rmf.IMP_DEBUG
224 IMP_RELEASE = _IMP_rmf.IMP_RELEASE
225 IMP_SILENT = _IMP_rmf.IMP_SILENT
226 IMP_PROGRESS = _IMP_rmf.IMP_PROGRESS
227 IMP_TERSE = _IMP_rmf.IMP_TERSE
228 IMP_VERBOSE = _IMP_rmf.IMP_VERBOSE
229 IMP_MEMORY = _IMP_rmf.IMP_MEMORY
230 IMP_NONE = _IMP_rmf.IMP_NONE
231 IMP_USAGE = _IMP_rmf.IMP_USAGE
232 IMP_INTERNAL = _IMP_rmf.IMP_INTERNAL
233 IMP_KERNEL_HAS_LOG4CXX = _IMP_rmf.IMP_KERNEL_HAS_LOG4CXX
234 IMP_COMPILER_HAS_AUTO = _IMP_rmf.IMP_COMPILER_HAS_AUTO
235 IMP_COMPILER_HAS_DEBUG_VECTOR = _IMP_rmf.IMP_COMPILER_HAS_DEBUG_VECTOR
236 IMP_COMPILER_HAS_UNIQUE_PTR = _IMP_rmf.IMP_COMPILER_HAS_UNIQUE_PTR
237 IMP_KERNEL_HAS_BOOST_RANDOM = _IMP_rmf.IMP_KERNEL_HAS_BOOST_RANDOM
238 IMP_KERNEL_HAS_GPERFTOOLS = _IMP_rmf.IMP_KERNEL_HAS_GPERFTOOLS
239 IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER = _IMP_rmf.IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER
240 IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER = _IMP_rmf.IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER
241 IMPKERNEL_SHOW_WARNINGS = _IMP_rmf.IMPKERNEL_SHOW_WARNINGS
242 
243 import sys
244 class _DirectorObjects(object):
245  """@internal Simple class to keep references to director objects
246  to prevent premature deletion."""
247  def __init__(self):
248  self._objects = []
249  def register(self, obj):
250  """Take a reference to a director object; will only work for
251  refcounted C++ classes"""
252  if hasattr(obj, 'get_ref_count'):
253  self._objects.append(obj)
254  def cleanup(self):
255  """Only drop our reference and allow cleanup by Python if no other
256  Python references exist (we hold 3 references: one in self._objects,
257  one in x, and one in the argument list for getrefcount) *and* no
258  other C++ references exist (the Python object always holds one)"""
259  objs = [x for x in self._objects if sys.getrefcount(x) > 3 \
260  or x.get_ref_count() > 1]
261 # Do in two steps so the references are kept until the end of the
262 # function (deleting references may trigger a fresh call to this method)
263  self._objects = objs
264  def get_object_count(self):
265  """Get number of director objects (useful for testing only)"""
266  return len(self._objects)
267 _director_objects = _DirectorObjects()
268 
269 class _ostream(object):
270  """Proxy of C++ std::ostream class."""
271 
272  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
273 
274  def __init__(self, *args, **kwargs):
275  raise AttributeError("No constructor defined")
276  __repr__ = _swig_repr
277 
278  def write(self, osa_buf):
279  """write(_ostream self, char const * osa_buf)"""
280  return _IMP_rmf._ostream_write(self, osa_buf)
281 
282 _ostream_swigregister = _IMP_rmf._ostream_swigregister
283 _ostream_swigregister(_ostream)
284 
285 IMP_COMPILER_HAS_OVERRIDE = _IMP_rmf.IMP_COMPILER_HAS_OVERRIDE
286 IMP_COMPILER_HAS_FINAL = _IMP_rmf.IMP_COMPILER_HAS_FINAL
287 IMP_HAS_NOEXCEPT = _IMP_rmf.IMP_HAS_NOEXCEPT
288 import IMP
289 IMP_CGAL_HAS_BOOST_FILESYSTEM = _IMP_rmf.IMP_CGAL_HAS_BOOST_FILESYSTEM
290 IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS = _IMP_rmf.IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS
291 IMP_CGAL_HAS_BOOST_RANDOM = _IMP_rmf.IMP_CGAL_HAS_BOOST_RANDOM
292 IMP_CGAL_HAS_BOOST_SYSTEM = _IMP_rmf.IMP_CGAL_HAS_BOOST_SYSTEM
293 IMPCGAL_SHOW_WARNINGS = _IMP_rmf.IMPCGAL_SHOW_WARNINGS
294 import IMP.cgal
295 IMP_ALGEBRA_HAS_IMP_CGAL = _IMP_rmf.IMP_ALGEBRA_HAS_IMP_CGAL
296 IMP_ALGEBRA_HAS_BOOST_FILESYSTEM = _IMP_rmf.IMP_ALGEBRA_HAS_BOOST_FILESYSTEM
297 IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS = _IMP_rmf.IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS
298 IMP_ALGEBRA_HAS_BOOST_RANDOM = _IMP_rmf.IMP_ALGEBRA_HAS_BOOST_RANDOM
299 IMP_ALGEBRA_HAS_BOOST_SYSTEM = _IMP_rmf.IMP_ALGEBRA_HAS_BOOST_SYSTEM
300 IMP_ALGEBRA_HAS_CGAL = _IMP_rmf.IMP_ALGEBRA_HAS_CGAL
301 IMP_ALGEBRA_HAS_ANN = _IMP_rmf.IMP_ALGEBRA_HAS_ANN
302 IMPALGEBRA_SHOW_WARNINGS = _IMP_rmf.IMPALGEBRA_SHOW_WARNINGS
303 import IMP.algebra
304 IMP_DISPLAY_HAS_IMP_CGAL = _IMP_rmf.IMP_DISPLAY_HAS_IMP_CGAL
305 IMP_DISPLAY_HAS_BOOST_FILESYSTEM = _IMP_rmf.IMP_DISPLAY_HAS_BOOST_FILESYSTEM
306 IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS = _IMP_rmf.IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS
307 IMP_DISPLAY_HAS_BOOST_RANDOM = _IMP_rmf.IMP_DISPLAY_HAS_BOOST_RANDOM
308 IMP_DISPLAY_HAS_BOOST_SYSTEM = _IMP_rmf.IMP_DISPLAY_HAS_BOOST_SYSTEM
309 IMP_DISPLAY_HAS_CGAL = _IMP_rmf.IMP_DISPLAY_HAS_CGAL
310 IMPDISPLAY_SHOW_WARNINGS = _IMP_rmf.IMPDISPLAY_SHOW_WARNINGS
311 import IMP.display
312 IMP_SCORE_FUNCTOR_HAS_IMP_CGAL = _IMP_rmf.IMP_SCORE_FUNCTOR_HAS_IMP_CGAL
313 IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM = _IMP_rmf.IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM
314 IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS = _IMP_rmf.IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS
315 IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM = _IMP_rmf.IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM
316 IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM = _IMP_rmf.IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM
317 IMP_SCORE_FUNCTOR_HAS_CGAL = _IMP_rmf.IMP_SCORE_FUNCTOR_HAS_CGAL
318 IMP_SCORE_FUNCTOR_HAS_HDF5 = _IMP_rmf.IMP_SCORE_FUNCTOR_HAS_HDF5
319 IMPSCOREFUNCTOR_SHOW_WARNINGS = _IMP_rmf.IMPSCOREFUNCTOR_SHOW_WARNINGS
320 import IMP.score_functor
321 IMP_CORE_HAS_IMP_CGAL = _IMP_rmf.IMP_CORE_HAS_IMP_CGAL
322 IMP_CORE_HAS_IMP_KERNEL = _IMP_rmf.IMP_CORE_HAS_IMP_KERNEL
323 IMP_CORE_HAS_BOOST_FILESYSTEM = _IMP_rmf.IMP_CORE_HAS_BOOST_FILESYSTEM
324 IMP_CORE_HAS_BOOST_PROGRAMOPTIONS = _IMP_rmf.IMP_CORE_HAS_BOOST_PROGRAMOPTIONS
325 IMP_CORE_HAS_BOOST_RANDOM = _IMP_rmf.IMP_CORE_HAS_BOOST_RANDOM
326 IMP_CORE_HAS_BOOST_SYSTEM = _IMP_rmf.IMP_CORE_HAS_BOOST_SYSTEM
327 IMP_CORE_HAS_CGAL = _IMP_rmf.IMP_CORE_HAS_CGAL
328 IMP_CORE_HAS_HDF5 = _IMP_rmf.IMP_CORE_HAS_HDF5
329 IMPCORE_SHOW_WARNINGS = _IMP_rmf.IMPCORE_SHOW_WARNINGS
330 import IMP.core
331 IMP_CONTAINER_HAS_IMP_ALGEBRA = _IMP_rmf.IMP_CONTAINER_HAS_IMP_ALGEBRA
332 IMP_CONTAINER_HAS_IMP_CGAL = _IMP_rmf.IMP_CONTAINER_HAS_IMP_CGAL
333 IMP_CONTAINER_HAS_IMP_DISPLAY = _IMP_rmf.IMP_CONTAINER_HAS_IMP_DISPLAY
334 IMP_CONTAINER_HAS_IMP_KERNEL = _IMP_rmf.IMP_CONTAINER_HAS_IMP_KERNEL
335 IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR = _IMP_rmf.IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR
336 IMP_CONTAINER_HAS_BOOST_FILESYSTEM = _IMP_rmf.IMP_CONTAINER_HAS_BOOST_FILESYSTEM
337 IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS = _IMP_rmf.IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS
338 IMP_CONTAINER_HAS_BOOST_RANDOM = _IMP_rmf.IMP_CONTAINER_HAS_BOOST_RANDOM
339 IMP_CONTAINER_HAS_BOOST_SYSTEM = _IMP_rmf.IMP_CONTAINER_HAS_BOOST_SYSTEM
340 IMP_CONTAINER_HAS_CGAL = _IMP_rmf.IMP_CONTAINER_HAS_CGAL
341 IMP_CONTAINER_HAS_HDF5 = _IMP_rmf.IMP_CONTAINER_HAS_HDF5
342 IMPCONTAINER_SHOW_WARNINGS = _IMP_rmf.IMPCONTAINER_SHOW_WARNINGS
343 import IMP.container
344 IMP_ATOM_HAS_IMP_CGAL = _IMP_rmf.IMP_ATOM_HAS_IMP_CGAL
345 IMP_ATOM_HAS_IMP_KERNEL = _IMP_rmf.IMP_ATOM_HAS_IMP_KERNEL
346 IMP_ATOM_HAS_IMP_SCORE_FUNCTOR = _IMP_rmf.IMP_ATOM_HAS_IMP_SCORE_FUNCTOR
347 IMP_ATOM_HAS_BOOST_PROGRAMOPTIONS = _IMP_rmf.IMP_ATOM_HAS_BOOST_PROGRAMOPTIONS
348 IMP_ATOM_HAS_BOOST_RANDOM = _IMP_rmf.IMP_ATOM_HAS_BOOST_RANDOM
349 IMP_ATOM_HAS_BOOST_REGEX = _IMP_rmf.IMP_ATOM_HAS_BOOST_REGEX
350 IMP_ATOM_HAS_BOOST_SYSTEM = _IMP_rmf.IMP_ATOM_HAS_BOOST_SYSTEM
351 IMP_ATOM_HAS_CGAL = _IMP_rmf.IMP_ATOM_HAS_CGAL
352 IMP_ATOM_HAS_HDF5 = _IMP_rmf.IMP_ATOM_HAS_HDF5
353 IMPATOM_SHOW_WARNINGS = _IMP_rmf.IMPATOM_SHOW_WARNINGS
354 IMP_ATOM_TYPE_INDEX = _IMP_rmf.IMP_ATOM_TYPE_INDEX
355 IMP_RESIDUE_TYPE_INDEX = _IMP_rmf.IMP_RESIDUE_TYPE_INDEX
356 IMP_HIERARCHY_TYPE_INDEX = _IMP_rmf.IMP_HIERARCHY_TYPE_INDEX
357 import IMP.atom
358 IMP_RMF_HAS_IMP_CGAL = _IMP_rmf.IMP_RMF_HAS_IMP_CGAL
359 IMP_RMF_HAS_IMP_SCORE_FUNCTOR = _IMP_rmf.IMP_RMF_HAS_IMP_SCORE_FUNCTOR
360 IMP_RMF_HAS_BOOST_FILESYSTEM = _IMP_rmf.IMP_RMF_HAS_BOOST_FILESYSTEM
361 IMP_RMF_HAS_BOOST_PROGRAMOPTIONS = _IMP_rmf.IMP_RMF_HAS_BOOST_PROGRAMOPTIONS
362 IMP_RMF_HAS_BOOST_RANDOM = _IMP_rmf.IMP_RMF_HAS_BOOST_RANDOM
363 IMP_RMF_HAS_BOOST_REGEX = _IMP_rmf.IMP_RMF_HAS_BOOST_REGEX
364 IMP_RMF_HAS_BOOST_SYSTEM = _IMP_rmf.IMP_RMF_HAS_BOOST_SYSTEM
365 IMP_RMF_HAS_CGAL = _IMP_rmf.IMP_RMF_HAS_CGAL
366 IMP_RMF_HAS_HDF5 = _IMP_rmf.IMP_RMF_HAS_HDF5
367 IMPRMF_SHOW_WARNINGS = _IMP_rmf.IMPRMF_SHOW_WARNINGS
368 import RMF
369 
370 _object_types.append("SaveOptimizerState")
371 
372 
373 def _object_cast_to_SaveOptimizerState(o):
374  """_object_cast_to_SaveOptimizerState(Object o) -> SaveOptimizerState"""
375  return _IMP_rmf._object_cast_to_SaveOptimizerState(o)
376 
377 _object_types.append("LoadLink")
378 
379 
380 def _object_cast_to_LoadLink(o):
381  """_object_cast_to_LoadLink(Object o) -> LoadLink"""
382  return _IMP_rmf._object_cast_to_LoadLink(o)
383 
384 _object_types.append("SaveLink")
385 
386 
387 def _object_cast_to_SaveLink(o):
388  """_object_cast_to_SaveLink(Object o) -> SaveLink"""
389  return _IMP_rmf._object_cast_to_SaveLink(o)
390 
391 _object_types.append("HierarchySaveLink")
392 
393 
394 def _object_cast_to_HierarchySaveLink(o):
395  """_object_cast_to_HierarchySaveLink(Object o) -> HierarchySaveLink"""
396  return _IMP_rmf._object_cast_to_HierarchySaveLink(o)
397 
398 _object_types.append("HierarchyLoadLink")
399 
400 
401 def _object_cast_to_HierarchyLoadLink(o):
402  """_object_cast_to_HierarchyLoadLink(Object o) -> HierarchyLoadLink"""
403  return _IMP_rmf._object_cast_to_HierarchyLoadLink(o)
404 class LoadLink(IMP.Object):
405  """Proxy of C++ IMP::rmf::LoadLink class."""
406 
407  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
408 
409  def do_load(self, fh):
410  """do_load(LoadLink self, FileConstHandle fh)"""
411  return _IMP_rmf.LoadLink_do_load(self, fh)
412 
413 
414  def __init__(self, name):
415  """__init__(IMP::rmf::LoadLink self, std::string name) -> LoadLink"""
416  if self.__class__ == LoadLink:
417  _self = None
418  else:
419  _self = self
420  this = _IMP_rmf.new_LoadLink(_self, name)
421  try:
422  self.this.append(this)
423  except __builtin__.Exception:
424  self.this = this
425 
426  if self.__class__ != LoadLink:
427  _director_objects.register(self)
428 
429 
430 
431 
432  def load(self, fh):
433  """load(LoadLink self, FileConstHandle fh)"""
434  return _IMP_rmf.LoadLink_load(self, fh)
435 
436  __swig_destroy__ = _IMP_rmf.delete_LoadLink
437  __del__ = lambda self: None
438 
439  def __str__(self):
440  """__str__(LoadLink self) -> std::string"""
441  return _IMP_rmf.LoadLink___str__(self)
442 
443 
444  def __repr__(self):
445  """__repr__(LoadLink self) -> std::string"""
446  return _IMP_rmf.LoadLink___repr__(self)
447 
448 
449  @staticmethod
450  def get_from(o):
451  return _object_cast_to_LoadLink(o)
452 
453 
454  def get_type_name(self):
455  return self.__class__.__name__
456  def do_show(self, out):
457  pass
458  def get_version_info(self):
459  if"IMP::rmf" == "IMP":
460  return VersionInfo(self.__module__,
461  __import__(self.__module__).get_module_version())
462  else:
463  return IMP.VersionInfo(self.__module__,
464  __import__(self.__module__).get_module_version())
465  @staticmethod
466  def get_from(o):
467  return _object_cast_to_LoadLink(o)
468 
469  def __disown__(self):
470  self.this.disown()
471  _IMP_rmf.disown_LoadLink(self)
472  return weakref_proxy(self)
473 
474  def do_destroy(self):
475  """do_destroy(LoadLink self)"""
476  return _IMP_rmf.LoadLink_do_destroy(self)
477 
478 LoadLink_swigregister = _IMP_rmf.LoadLink_swigregister
479 LoadLink_swigregister(LoadLink)
480 
481 class SaveLink(IMP.Object):
482  """Proxy of C++ IMP::rmf::SaveLink class."""
483 
484  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
485 
486  def do_save(self, hf):
487  """do_save(SaveLink self, FileHandle hf)"""
488  return _IMP_rmf.SaveLink_do_save(self, hf)
489 
490 
491  def __init__(self, name):
492  """__init__(IMP::rmf::SaveLink self, std::string name) -> SaveLink"""
493  if self.__class__ == SaveLink:
494  _self = None
495  else:
496  _self = self
497  this = _IMP_rmf.new_SaveLink(_self, name)
498  try:
499  self.this.append(this)
500  except __builtin__.Exception:
501  self.this = this
502 
503  if self.__class__ != SaveLink:
504  _director_objects.register(self)
505 
506 
507 
508 
509  def save(self, fh):
510  """save(SaveLink self, FileHandle fh)"""
511  return _IMP_rmf.SaveLink_save(self, fh)
512 
513  __swig_destroy__ = _IMP_rmf.delete_SaveLink
514  __del__ = lambda self: None
515 
516  def __str__(self):
517  """__str__(SaveLink self) -> std::string"""
518  return _IMP_rmf.SaveLink___str__(self)
519 
520 
521  def __repr__(self):
522  """__repr__(SaveLink self) -> std::string"""
523  return _IMP_rmf.SaveLink___repr__(self)
524 
525 
526  @staticmethod
527  def get_from(o):
528  return _object_cast_to_SaveLink(o)
529 
530 
531  def get_type_name(self):
532  return self.__class__.__name__
533  def do_show(self, out):
534  pass
535  def get_version_info(self):
536  if"IMP::rmf" == "IMP":
537  return VersionInfo(self.__module__,
538  __import__(self.__module__).get_module_version())
539  else:
540  return IMP.VersionInfo(self.__module__,
541  __import__(self.__module__).get_module_version())
542  @staticmethod
543  def get_from(o):
544  return _object_cast_to_SaveLink(o)
545 
546  def __disown__(self):
547  self.this.disown()
548  _IMP_rmf.disown_SaveLink(self)
549  return weakref_proxy(self)
550 
551  def do_destroy(self):
552  """do_destroy(SaveLink self)"""
553  return _IMP_rmf.SaveLink_do_destroy(self)
554 
555 SaveLink_swigregister = _IMP_rmf.SaveLink_swigregister
556 SaveLink_swigregister(SaveLink)
557 
558 
559 def add_hierarchies(*args):
560  """
561  add_hierarchies(FileHandle fh, IMP::atom::Hierarchies const & hs)
562  add_hierarchies(NodeHandle fh, IMP::atom::Hierarchies const & hs)
563  """
564  return _IMP_rmf.add_hierarchies(*args)
565 
566 def add_hierarchy(fh, hs):
567  """add_hierarchy(FileHandle fh, Hierarchy hs)"""
568  return _IMP_rmf.add_hierarchy(fh, hs)
569 
570 def create_hierarchies(fh, m):
571  """create_hierarchies(FileConstHandle fh, Model m) -> IMP::atom::Hierarchies"""
572  return _IMP_rmf.create_hierarchies(fh, m)
573 
574 def link_hierarchies(fh, hs):
575  """link_hierarchies(FileConstHandle fh, IMP::atom::Hierarchies const & hs)"""
576  return _IMP_rmf.link_hierarchies(fh, hs)
577 
578 def add_restraints(*args):
579  """
580  add_restraints(FileHandle fh, IMP::Restraints const & hs)
581  add_restraints(NodeHandle fh, IMP::Restraints const & hs)
582  """
583  return _IMP_rmf.add_restraints(*args)
584 
585 def add_restraint(fh, hs):
586  """add_restraint(FileHandle fh, Restraint hs)"""
587  return _IMP_rmf.add_restraint(fh, hs)
588 
589 def create_restraints(fh, m):
590  """create_restraints(FileConstHandle fh, Model m) -> IMP::Restraints"""
591  return _IMP_rmf.create_restraints(fh, m)
592 
593 def link_restraints(fh, hs):
594  """link_restraints(FileConstHandle fh, IMP::Restraints const & hs)"""
595  return _IMP_rmf.link_restraints(fh, hs)
596 
597 def add_restraints_as_bonds(fh, rs):
598  """add_restraints_as_bonds(FileHandle fh, IMP::Restraints const & rs)"""
599  return _IMP_rmf.add_restraints_as_bonds(fh, rs)
600 
601 def set_maximum_number_of_terms(fh, num):
602  """set_maximum_number_of_terms(FileHandle fh, unsigned int num)"""
603  return _IMP_rmf.set_maximum_number_of_terms(fh, num)
604 
605 def add_particles(*args):
606  """
607  add_particles(FileHandle fh, IMP::ParticlesTemp const & hs)
608  add_particles(NodeHandle fh, IMP::ParticlesTemp const & hs)
609  """
610  return _IMP_rmf.add_particles(*args)
611 
612 def add_particle(fh, hs):
613  """add_particle(FileHandle fh, Particle hs)"""
614  return _IMP_rmf.add_particle(fh, hs)
615 
616 def create_particles(fh, m):
617  """create_particles(FileConstHandle fh, Model m) -> IMP::ParticlesTemp"""
618  return _IMP_rmf.create_particles(fh, m)
619 
620 def link_particles(fh, hs):
621  """link_particles(FileConstHandle fh, IMP::ParticlesTemp const & hs)"""
622  return _IMP_rmf.link_particles(fh, hs)
623 
624 def add_geometries(*args):
625  """
626  add_geometries(FileHandle file, IMP::display::GeometriesTemp const & r)
627  add_geometries(NodeHandle parent, IMP::display::GeometriesTemp const & r)
628  """
629  return _IMP_rmf.add_geometries(*args)
630 
631 def add_static_geometries(parent, r):
632  """add_static_geometries(FileHandle parent, IMP::display::GeometriesTemp const & r)"""
633  return _IMP_rmf.add_static_geometries(parent, r)
634 
635 def add_geometry(file, r):
636  """add_geometry(FileHandle file, Geometry r)"""
637  return _IMP_rmf.add_geometry(file, r)
638 
639 def create_geometries(parent):
640  """create_geometries(FileConstHandle parent) -> IMP::display::Geometries"""
641  return _IMP_rmf.create_geometries(parent)
642 
643 def link_geometries(parent, r):
644  """link_geometries(FileConstHandle parent, IMP::display::GeometriesTemp const & r)"""
645  return _IMP_rmf.link_geometries(parent, r)
646 
647 def set_association(nh, o, overwrite=False):
648  """
649  set_association(NodeConstHandle nh, Object o, bool overwrite=False)
650  set_association(NodeConstHandle nh, Object o)
651  """
652  return _IMP_rmf.set_association(nh, o, overwrite)
653 
654 def get_node_from_association(*args):
655  """
656  get_node_from_association(FileConstHandle nh, Object oi) -> NodeConstHandle
657  get_node_from_association(FileHandle nh, Object oi) -> NodeHandle
658  """
659  return _IMP_rmf.get_node_from_association(*args)
660 
661 def get_has_associated_node(nh, oi):
662  """get_has_associated_node(FileConstHandle nh, Object oi) -> bool"""
663  return _IMP_rmf.get_has_associated_node(nh, oi)
664 class SaveOptimizerState(IMP.OptimizerState):
665  """Proxy of C++ IMP::rmf::SaveOptimizerState class."""
666 
667  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
668 
669  def __init__(self, m, fh):
670  """__init__(IMP::rmf::SaveOptimizerState self, Model m, FileHandle fh) -> SaveOptimizerState"""
671  this = _IMP_rmf.new_SaveOptimizerState(m, fh)
672  try:
673  self.this.append(this)
674  except __builtin__.Exception:
675  self.this = this
676 
677  def remove_hierarchy(self, d):
678  """remove_hierarchy(SaveOptimizerState self, Particle d)"""
679  return _IMP_rmf.SaveOptimizerState_remove_hierarchy(self, d)
680 
681 
682  def remove_hierarchies(self, d):
683  """remove_hierarchies(SaveOptimizerState self, IMP::Particles const & d)"""
684  return _IMP_rmf.SaveOptimizerState_remove_hierarchies(self, d)
685 
686 
687  def set_hierarchies(self, ps):
688  """set_hierarchies(SaveOptimizerState self, IMP::Particles const & ps)"""
689  return _IMP_rmf.SaveOptimizerState_set_hierarchies(self, ps)
690 
691 
692  def set_hierarchies_order(self, objs):
693  """set_hierarchies_order(SaveOptimizerState self, IMP::Particles const & objs)"""
694  return _IMP_rmf.SaveOptimizerState_set_hierarchies_order(self, objs)
695 
696 
697  def add_hierarchy(self, obj):
698  """add_hierarchy(SaveOptimizerState self, Particle obj) -> unsigned int"""
699  return _IMP_rmf.SaveOptimizerState_add_hierarchy(self, obj)
700 
701 
702  def add_hierarchies(self, objs):
703  """add_hierarchies(SaveOptimizerState self, IMP::Particles const & objs)"""
704  return _IMP_rmf.SaveOptimizerState_add_hierarchies(self, objs)
705 
706 
707  def clear_hierarchies(self):
708  """clear_hierarchies(SaveOptimizerState self)"""
709  return _IMP_rmf.SaveOptimizerState_clear_hierarchies(self)
710 
711 
712  def get_number_of_hierarchies(self):
713  """get_number_of_hierarchies(SaveOptimizerState self) -> unsigned int"""
714  return _IMP_rmf.SaveOptimizerState_get_number_of_hierarchies(self)
715 
716 
717  def get_has_hierarchies(self):
718  """get_has_hierarchies(SaveOptimizerState self) -> bool"""
719  return _IMP_rmf.SaveOptimizerState_get_has_hierarchies(self)
720 
721 
722  def get_hierarchy(self, i):
723  """get_hierarchy(SaveOptimizerState self, unsigned int i) -> Particle"""
724  return _IMP_rmf.SaveOptimizerState_get_hierarchy(self, i)
725 
726 
727  def get_hierarchies(self):
728  """get_hierarchies(SaveOptimizerState self) -> IMP::Particles"""
729  return _IMP_rmf.SaveOptimizerState_get_hierarchies(self)
730 
731 
732  def reserve_hierarchies(self, sz):
733  """reserve_hierarchies(SaveOptimizerState self, unsigned int sz)"""
734  return _IMP_rmf.SaveOptimizerState_reserve_hierarchies(self, sz)
735 
736 
737  def remove_restraint(self, d):
738  """remove_restraint(SaveOptimizerState self, Restraint d)"""
739  return _IMP_rmf.SaveOptimizerState_remove_restraint(self, d)
740 
741 
742  def remove_restraints(self, d):
743  """remove_restraints(SaveOptimizerState self, IMP::Restraints const & d)"""
744  return _IMP_rmf.SaveOptimizerState_remove_restraints(self, d)
745 
746 
747  def set_restraints(self, ps):
748  """set_restraints(SaveOptimizerState self, IMP::Restraints const & ps)"""
749  return _IMP_rmf.SaveOptimizerState_set_restraints(self, ps)
750 
751 
752  def set_restraints_order(self, objs):
753  """set_restraints_order(SaveOptimizerState self, IMP::Restraints const & objs)"""
754  return _IMP_rmf.SaveOptimizerState_set_restraints_order(self, objs)
755 
756 
757  def add_restraint(self, obj):
758  """add_restraint(SaveOptimizerState self, Restraint obj) -> unsigned int"""
759  return _IMP_rmf.SaveOptimizerState_add_restraint(self, obj)
760 
761 
762  def add_restraints(self, objs):
763  """add_restraints(SaveOptimizerState self, IMP::Restraints const & objs)"""
764  return _IMP_rmf.SaveOptimizerState_add_restraints(self, objs)
765 
766 
767  def clear_restraints(self):
768  """clear_restraints(SaveOptimizerState self)"""
769  return _IMP_rmf.SaveOptimizerState_clear_restraints(self)
770 
771 
772  def get_number_of_restraints(self):
773  """get_number_of_restraints(SaveOptimizerState self) -> unsigned int"""
774  return _IMP_rmf.SaveOptimizerState_get_number_of_restraints(self)
775 
776 
777  def get_has_restraints(self):
778  """get_has_restraints(SaveOptimizerState self) -> bool"""
779  return _IMP_rmf.SaveOptimizerState_get_has_restraints(self)
780 
781 
782  def get_restraint(self, i):
783  """get_restraint(SaveOptimizerState self, unsigned int i) -> Restraint"""
784  return _IMP_rmf.SaveOptimizerState_get_restraint(self, i)
785 
786 
787  def get_restraints(self):
788  """get_restraints(SaveOptimizerState self) -> IMP::Restraints"""
789  return _IMP_rmf.SaveOptimizerState_get_restraints(self)
790 
791 
792  def reserve_restraints(self, sz):
793  """reserve_restraints(SaveOptimizerState self, unsigned int sz)"""
794  return _IMP_rmf.SaveOptimizerState_reserve_restraints(self, sz)
795 
796 
797  def remove_particle(self, d):
798  """remove_particle(SaveOptimizerState self, Particle d)"""
799  return _IMP_rmf.SaveOptimizerState_remove_particle(self, d)
800 
801 
802  def remove_particles(self, d):
803  """remove_particles(SaveOptimizerState self, IMP::Particles const & d)"""
804  return _IMP_rmf.SaveOptimizerState_remove_particles(self, d)
805 
806 
807  def set_particles(self, ps):
808  """set_particles(SaveOptimizerState self, IMP::Particles const & ps)"""
809  return _IMP_rmf.SaveOptimizerState_set_particles(self, ps)
810 
811 
812  def set_particles_order(self, objs):
813  """set_particles_order(SaveOptimizerState self, IMP::Particles const & objs)"""
814  return _IMP_rmf.SaveOptimizerState_set_particles_order(self, objs)
815 
816 
817  def add_particle(self, obj):
818  """add_particle(SaveOptimizerState self, Particle obj) -> unsigned int"""
819  return _IMP_rmf.SaveOptimizerState_add_particle(self, obj)
820 
821 
822  def add_particles(self, objs):
823  """add_particles(SaveOptimizerState self, IMP::Particles const & objs)"""
824  return _IMP_rmf.SaveOptimizerState_add_particles(self, objs)
825 
826 
827  def clear_particles(self):
828  """clear_particles(SaveOptimizerState self)"""
829  return _IMP_rmf.SaveOptimizerState_clear_particles(self)
830 
831 
832  def get_number_of_particles(self):
833  """get_number_of_particles(SaveOptimizerState self) -> unsigned int"""
834  return _IMP_rmf.SaveOptimizerState_get_number_of_particles(self)
835 
836 
837  def get_has_particles(self):
838  """get_has_particles(SaveOptimizerState self) -> bool"""
839  return _IMP_rmf.SaveOptimizerState_get_has_particles(self)
840 
841 
842  def get_particle(self, i):
843  """get_particle(SaveOptimizerState self, unsigned int i) -> Particle"""
844  return _IMP_rmf.SaveOptimizerState_get_particle(self, i)
845 
846 
847  def get_particles(self):
848  """get_particles(SaveOptimizerState self) -> IMP::Particles"""
849  return _IMP_rmf.SaveOptimizerState_get_particles(self)
850 
851 
852  def reserve_particles(self, sz):
853  """reserve_particles(SaveOptimizerState self, unsigned int sz)"""
854  return _IMP_rmf.SaveOptimizerState_reserve_particles(self, sz)
855 
856 
857  def remove_geometry(self, d):
858  """remove_geometry(SaveOptimizerState self, Geometry d)"""
859  return _IMP_rmf.SaveOptimizerState_remove_geometry(self, d)
860 
861 
862  def remove_geometries(self, d):
863  """remove_geometries(SaveOptimizerState self, IMP::display::Geometries const & d)"""
864  return _IMP_rmf.SaveOptimizerState_remove_geometries(self, d)
865 
866 
867  def set_geometries(self, ps):
868  """set_geometries(SaveOptimizerState self, IMP::display::Geometries const & ps)"""
869  return _IMP_rmf.SaveOptimizerState_set_geometries(self, ps)
870 
871 
872  def set_geometries_order(self, objs):
873  """set_geometries_order(SaveOptimizerState self, IMP::display::Geometries const & objs)"""
874  return _IMP_rmf.SaveOptimizerState_set_geometries_order(self, objs)
875 
876 
877  def add_geometry(self, obj):
878  """add_geometry(SaveOptimizerState self, Geometry obj) -> unsigned int"""
879  return _IMP_rmf.SaveOptimizerState_add_geometry(self, obj)
880 
881 
882  def add_geometries(self, objs):
883  """add_geometries(SaveOptimizerState self, IMP::display::Geometries const & objs)"""
884  return _IMP_rmf.SaveOptimizerState_add_geometries(self, objs)
885 
886 
887  def clear_geometries(self):
888  """clear_geometries(SaveOptimizerState self)"""
889  return _IMP_rmf.SaveOptimizerState_clear_geometries(self)
890 
891 
892  def get_number_of_geometries(self):
893  """get_number_of_geometries(SaveOptimizerState self) -> unsigned int"""
894  return _IMP_rmf.SaveOptimizerState_get_number_of_geometries(self)
895 
896 
897  def get_has_geometries(self):
898  """get_has_geometries(SaveOptimizerState self) -> bool"""
899  return _IMP_rmf.SaveOptimizerState_get_has_geometries(self)
900 
901 
902  def get_geometry(self, i):
903  """get_geometry(SaveOptimizerState self, unsigned int i) -> Geometry"""
904  return _IMP_rmf.SaveOptimizerState_get_geometry(self, i)
905 
906 
907  def get_geometries(self):
908  """get_geometries(SaveOptimizerState self) -> IMP::display::Geometries"""
909  return _IMP_rmf.SaveOptimizerState_get_geometries(self)
910 
911 
912  def reserve_geometries(self, sz):
913  """reserve_geometries(SaveOptimizerState self, unsigned int sz)"""
914  return _IMP_rmf.SaveOptimizerState_reserve_geometries(self, sz)
915 
916 
917  def set_simulator(self, sim):
918  """set_simulator(SaveOptimizerState self, Simulator sim)"""
919  return _IMP_rmf.SaveOptimizerState_set_simulator(self, sim)
920 
921 
922  def update_always(self, *args):
923  """
924  update_always(SaveOptimizerState self, std::string name)
925  update_always(SaveOptimizerState self)
926  """
927  return _IMP_rmf.SaveOptimizerState_update_always(self, *args)
928 
929 
930  def do_update(self, call_num):
931  """do_update(SaveOptimizerState self, unsigned int call_num)"""
932  return _IMP_rmf.SaveOptimizerState_do_update(self, call_num)
933 
934 
935  def get_version_info(self):
936  """get_version_info(SaveOptimizerState self) -> VersionInfo"""
937  return _IMP_rmf.SaveOptimizerState_get_version_info(self)
938 
939 
940  def __str__(self):
941  """__str__(SaveOptimizerState self) -> std::string"""
942  return _IMP_rmf.SaveOptimizerState___str__(self)
943 
944 
945  def __repr__(self):
946  """__repr__(SaveOptimizerState self) -> std::string"""
947  return _IMP_rmf.SaveOptimizerState___repr__(self)
948 
949 
950  @staticmethod
951  def get_from(o):
952  return _object_cast_to_SaveOptimizerState(o)
953 
954 SaveOptimizerState_swigregister = _IMP_rmf.SaveOptimizerState_swigregister
955 SaveOptimizerState_swigregister(SaveOptimizerState)
956 
957 
958 def load_frame(file, frame):
959  """load_frame(FileConstHandle file, FrameID frame)"""
960  return _IMP_rmf.load_frame(file, frame)
961 
962 def save_frame(*args):
963  """
964  save_frame(FileHandle file, std::string name) -> FrameID
965  save_frame(FileHandle file) -> FrameID
966  """
967  return _IMP_rmf.save_frame(*args)
968 class _ParticleSaveLink(SaveLink):
969  """Proxy of C++ IMP::rmf::SimpleSaveLink<(IMP::Particle)> class."""
970 
971  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
972 
973  def __init__(self, *args, **kwargs):
974  raise AttributeError("No constructor defined - class is abstract")
975  __repr__ = _swig_repr
976 
977  def add(self, parent, os):
978  """add(_ParticleSaveLink self, NodeHandle parent, IMP::Vector< Pointer< IMP::Particle > > const & os)"""
979  return _IMP_rmf._ParticleSaveLink_add(self, parent, os)
980 
981  __swig_destroy__ = _IMP_rmf.delete__ParticleSaveLink
982  __del__ = lambda self: None
983 _ParticleSaveLink_swigregister = _IMP_rmf._ParticleSaveLink_swigregister
984 _ParticleSaveLink_swigregister(_ParticleSaveLink)
985 
986 class _ParticleLoadLink(LoadLink):
987  """Proxy of C++ IMP::rmf::SimpleLoadLink<(IMP::Particle)> class."""
988 
989  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
990 
991  def __init__(self, *args, **kwargs):
992  raise AttributeError("No constructor defined - class is abstract")
993  __repr__ = _swig_repr
994 
995  def create(self, *args):
996  """
997  create(_ParticleLoadLink self, NodeConstHandle rt) -> IMP::Vector< Pointer< IMP::Particle > >
998  create(_ParticleLoadLink self, NodeConstHandle rt, Model m) -> IMP::Vector< Pointer< IMP::Particle > >
999  """
1000  return _IMP_rmf._ParticleLoadLink_create(self, *args)
1001 
1002 
1003  def link(self, rt, ps):
1004  """link(_ParticleLoadLink self, NodeConstHandle rt, IMP::Vector< Pointer< IMP::Particle > > const & ps)"""
1005  return _IMP_rmf._ParticleLoadLink_link(self, rt, ps)
1006 
1007  __swig_destroy__ = _IMP_rmf.delete__ParticleLoadLink
1008  __del__ = lambda self: None
1009 _ParticleLoadLink_swigregister = _IMP_rmf._ParticleLoadLink_swigregister
1010 _ParticleLoadLink_swigregister(_ParticleLoadLink)
1011 
1012 class HierarchyLoadLink(_ParticleLoadLink):
1013  """Proxy of C++ IMP::rmf::HierarchyLoadLink class."""
1014 
1015  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1016 
1017  def __init__(self, fh):
1018  """__init__(IMP::rmf::HierarchyLoadLink self, FileConstHandle fh) -> HierarchyLoadLink"""
1019  this = _IMP_rmf.new_HierarchyLoadLink(fh)
1020  try:
1021  self.this.append(this)
1022  except __builtin__.Exception:
1023  self.this = this
1024 
1025  def get_name():
1026  """get_name() -> char const *"""
1027  return _IMP_rmf.HierarchyLoadLink_get_name()
1028 
1029  get_name = staticmethod(get_name)
1030 
1031  def get_version_info(self):
1032  """get_version_info(HierarchyLoadLink self) -> VersionInfo"""
1033  return _IMP_rmf.HierarchyLoadLink_get_version_info(self)
1034 
1035 
1036  def __str__(self):
1037  """__str__(HierarchyLoadLink self) -> std::string"""
1038  return _IMP_rmf.HierarchyLoadLink___str__(self)
1039 
1040 
1041  def __repr__(self):
1042  """__repr__(HierarchyLoadLink self) -> std::string"""
1043  return _IMP_rmf.HierarchyLoadLink___repr__(self)
1044 
1045 
1046  @staticmethod
1047  def get_from(o):
1048  return _object_cast_to_HierarchyLoadLink(o)
1049 
1050 HierarchyLoadLink_swigregister = _IMP_rmf.HierarchyLoadLink_swigregister
1051 HierarchyLoadLink_swigregister(HierarchyLoadLink)
1052 
1053 def HierarchyLoadLink_get_name():
1054  """HierarchyLoadLink_get_name() -> char const *"""
1055  return _IMP_rmf.HierarchyLoadLink_get_name()
1056 
1057 class HierarchySaveLink(_ParticleSaveLink):
1058  """Proxy of C++ IMP::rmf::HierarchySaveLink class."""
1059 
1060  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1061 
1062  def __init__(self, fh):
1063  """__init__(IMP::rmf::HierarchySaveLink self, FileHandle fh) -> HierarchySaveLink"""
1064  this = _IMP_rmf.new_HierarchySaveLink(fh)
1065  try:
1066  self.this.append(this)
1067  except __builtin__.Exception:
1068  self.this = this
1069 
1070  def get_name():
1071  """get_name() -> char const *"""
1072  return _IMP_rmf.HierarchySaveLink_get_name()
1073 
1074  get_name = staticmethod(get_name)
1075 
1076  def get_version_info(self):
1077  """get_version_info(HierarchySaveLink self) -> VersionInfo"""
1078  return _IMP_rmf.HierarchySaveLink_get_version_info(self)
1079 
1080 
1081  def __str__(self):
1082  """__str__(HierarchySaveLink self) -> std::string"""
1083  return _IMP_rmf.HierarchySaveLink___str__(self)
1084 
1085 
1086  def __repr__(self):
1087  """__repr__(HierarchySaveLink self) -> std::string"""
1088  return _IMP_rmf.HierarchySaveLink___repr__(self)
1089 
1090 
1091  @staticmethod
1092  def get_from(o):
1093  return _object_cast_to_HierarchySaveLink(o)
1094 
1095 HierarchySaveLink_swigregister = _IMP_rmf.HierarchySaveLink_swigregister
1096 HierarchySaveLink_swigregister(HierarchySaveLink)
1097 
1098 def HierarchySaveLink_get_name():
1099  """HierarchySaveLink_get_name() -> char const *"""
1100  return _IMP_rmf.HierarchySaveLink_get_name()
1101 
1102 
1103 suffixes = [".rmf", ".rmfz"]
1104 
1105 
1106 def get_module_version():
1107  """get_module_version() -> std::string const"""
1108  return _IMP_rmf.get_module_version()
1109 
1110 def get_example_path(fname):
1111  """get_example_path(std::string fname) -> std::string"""
1112  return _IMP_rmf.get_example_path(fname)
1113 
1114 def get_data_path(fname):
1115  """get_data_path(std::string fname) -> std::string"""
1116  return _IMP_rmf.get_data_path(fname)
1117 
1118 from . import _version_check
1119 _version_check.check_version(get_module_version())
1120 __version__ = get_module_version()
1121 
1122 
1123 
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)
Load the given RMF frame into the state of the linked objects.
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.