IMP logo
IMP Reference Guide  2.10.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-2018 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 IMP_C_OPEN_BINARY = _IMP_rmf.IMP_C_OPEN_BINARY
289 import IMP
290 IMP_CGAL_HAS_BOOST_FILESYSTEM = _IMP_rmf.IMP_CGAL_HAS_BOOST_FILESYSTEM
291 IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS = _IMP_rmf.IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS
292 IMP_CGAL_HAS_BOOST_RANDOM = _IMP_rmf.IMP_CGAL_HAS_BOOST_RANDOM
293 IMP_CGAL_HAS_BOOST_SYSTEM = _IMP_rmf.IMP_CGAL_HAS_BOOST_SYSTEM
294 IMPCGAL_SHOW_WARNINGS = _IMP_rmf.IMPCGAL_SHOW_WARNINGS
295 import IMP.cgal
296 IMP_ALGEBRA_HAS_IMP_CGAL = _IMP_rmf.IMP_ALGEBRA_HAS_IMP_CGAL
297 IMP_ALGEBRA_HAS_BOOST_FILESYSTEM = _IMP_rmf.IMP_ALGEBRA_HAS_BOOST_FILESYSTEM
298 IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS = _IMP_rmf.IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS
299 IMP_ALGEBRA_HAS_BOOST_RANDOM = _IMP_rmf.IMP_ALGEBRA_HAS_BOOST_RANDOM
300 IMP_ALGEBRA_HAS_BOOST_SYSTEM = _IMP_rmf.IMP_ALGEBRA_HAS_BOOST_SYSTEM
301 IMP_ALGEBRA_HAS_CGAL = _IMP_rmf.IMP_ALGEBRA_HAS_CGAL
302 IMP_ALGEBRA_HAS_ANN = _IMP_rmf.IMP_ALGEBRA_HAS_ANN
303 IMPALGEBRA_SHOW_WARNINGS = _IMP_rmf.IMPALGEBRA_SHOW_WARNINGS
304 import IMP.algebra
305 IMP_DISPLAY_HAS_IMP_CGAL = _IMP_rmf.IMP_DISPLAY_HAS_IMP_CGAL
306 IMP_DISPLAY_HAS_BOOST_FILESYSTEM = _IMP_rmf.IMP_DISPLAY_HAS_BOOST_FILESYSTEM
307 IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS = _IMP_rmf.IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS
308 IMP_DISPLAY_HAS_BOOST_RANDOM = _IMP_rmf.IMP_DISPLAY_HAS_BOOST_RANDOM
309 IMP_DISPLAY_HAS_BOOST_SYSTEM = _IMP_rmf.IMP_DISPLAY_HAS_BOOST_SYSTEM
310 IMP_DISPLAY_HAS_CGAL = _IMP_rmf.IMP_DISPLAY_HAS_CGAL
311 IMPDISPLAY_SHOW_WARNINGS = _IMP_rmf.IMPDISPLAY_SHOW_WARNINGS
312 import IMP.display
313 IMP_SCORE_FUNCTOR_HAS_IMP_CGAL = _IMP_rmf.IMP_SCORE_FUNCTOR_HAS_IMP_CGAL
314 IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM = _IMP_rmf.IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM
315 IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS = _IMP_rmf.IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS
316 IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM = _IMP_rmf.IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM
317 IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM = _IMP_rmf.IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM
318 IMP_SCORE_FUNCTOR_HAS_CGAL = _IMP_rmf.IMP_SCORE_FUNCTOR_HAS_CGAL
319 IMP_SCORE_FUNCTOR_HAS_HDF5 = _IMP_rmf.IMP_SCORE_FUNCTOR_HAS_HDF5
320 IMPSCOREFUNCTOR_SHOW_WARNINGS = _IMP_rmf.IMPSCOREFUNCTOR_SHOW_WARNINGS
321 import IMP.score_functor
322 IMP_CORE_HAS_IMP_CGAL = _IMP_rmf.IMP_CORE_HAS_IMP_CGAL
323 IMP_CORE_HAS_IMP_KERNEL = _IMP_rmf.IMP_CORE_HAS_IMP_KERNEL
324 IMP_CORE_HAS_BOOST_FILESYSTEM = _IMP_rmf.IMP_CORE_HAS_BOOST_FILESYSTEM
325 IMP_CORE_HAS_BOOST_PROGRAMOPTIONS = _IMP_rmf.IMP_CORE_HAS_BOOST_PROGRAMOPTIONS
326 IMP_CORE_HAS_BOOST_RANDOM = _IMP_rmf.IMP_CORE_HAS_BOOST_RANDOM
327 IMP_CORE_HAS_BOOST_SYSTEM = _IMP_rmf.IMP_CORE_HAS_BOOST_SYSTEM
328 IMP_CORE_HAS_CGAL = _IMP_rmf.IMP_CORE_HAS_CGAL
329 IMP_CORE_HAS_HDF5 = _IMP_rmf.IMP_CORE_HAS_HDF5
330 IMPCORE_SHOW_WARNINGS = _IMP_rmf.IMPCORE_SHOW_WARNINGS
331 import IMP.core
332 IMP_CONTAINER_HAS_IMP_ALGEBRA = _IMP_rmf.IMP_CONTAINER_HAS_IMP_ALGEBRA
333 IMP_CONTAINER_HAS_IMP_CGAL = _IMP_rmf.IMP_CONTAINER_HAS_IMP_CGAL
334 IMP_CONTAINER_HAS_IMP_DISPLAY = _IMP_rmf.IMP_CONTAINER_HAS_IMP_DISPLAY
335 IMP_CONTAINER_HAS_IMP_KERNEL = _IMP_rmf.IMP_CONTAINER_HAS_IMP_KERNEL
336 IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR = _IMP_rmf.IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR
337 IMP_CONTAINER_HAS_BOOST_FILESYSTEM = _IMP_rmf.IMP_CONTAINER_HAS_BOOST_FILESYSTEM
338 IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS = _IMP_rmf.IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS
339 IMP_CONTAINER_HAS_BOOST_RANDOM = _IMP_rmf.IMP_CONTAINER_HAS_BOOST_RANDOM
340 IMP_CONTAINER_HAS_BOOST_SYSTEM = _IMP_rmf.IMP_CONTAINER_HAS_BOOST_SYSTEM
341 IMP_CONTAINER_HAS_CGAL = _IMP_rmf.IMP_CONTAINER_HAS_CGAL
342 IMP_CONTAINER_HAS_HDF5 = _IMP_rmf.IMP_CONTAINER_HAS_HDF5
343 IMP_CONTAINER_HAS_PYTHON_IHM = _IMP_rmf.IMP_CONTAINER_HAS_PYTHON_IHM
344 IMP_CONTAINER_HAS_GOOGLE_DENSE_HASH_MAP = _IMP_rmf.IMP_CONTAINER_HAS_GOOGLE_DENSE_HASH_MAP
345 IMP_CONTAINER_HAS_ROBIN_MAP = _IMP_rmf.IMP_CONTAINER_HAS_ROBIN_MAP
346 IMPCONTAINER_SHOW_WARNINGS = _IMP_rmf.IMPCONTAINER_SHOW_WARNINGS
347 import IMP.container
348 IMP_ATOM_HAS_IMP_CGAL = _IMP_rmf.IMP_ATOM_HAS_IMP_CGAL
349 IMP_ATOM_HAS_IMP_KERNEL = _IMP_rmf.IMP_ATOM_HAS_IMP_KERNEL
350 IMP_ATOM_HAS_IMP_SCORE_FUNCTOR = _IMP_rmf.IMP_ATOM_HAS_IMP_SCORE_FUNCTOR
351 IMP_ATOM_HAS_BOOST_PROGRAMOPTIONS = _IMP_rmf.IMP_ATOM_HAS_BOOST_PROGRAMOPTIONS
352 IMP_ATOM_HAS_BOOST_RANDOM = _IMP_rmf.IMP_ATOM_HAS_BOOST_RANDOM
353 IMP_ATOM_HAS_BOOST_REGEX = _IMP_rmf.IMP_ATOM_HAS_BOOST_REGEX
354 IMP_ATOM_HAS_BOOST_SYSTEM = _IMP_rmf.IMP_ATOM_HAS_BOOST_SYSTEM
355 IMP_ATOM_HAS_CGAL = _IMP_rmf.IMP_ATOM_HAS_CGAL
356 IMP_ATOM_HAS_HDF5 = _IMP_rmf.IMP_ATOM_HAS_HDF5
357 IMP_ATOM_HAS_PYTHON_IHM = _IMP_rmf.IMP_ATOM_HAS_PYTHON_IHM
358 IMPATOM_SHOW_WARNINGS = _IMP_rmf.IMPATOM_SHOW_WARNINGS
359 IMP_ATOM_TYPE_INDEX = _IMP_rmf.IMP_ATOM_TYPE_INDEX
360 IMP_RESIDUE_TYPE_INDEX = _IMP_rmf.IMP_RESIDUE_TYPE_INDEX
361 IMP_HIERARCHY_TYPE_INDEX = _IMP_rmf.IMP_HIERARCHY_TYPE_INDEX
362 IMP_CHAIN_TYPE_INDEX = _IMP_rmf.IMP_CHAIN_TYPE_INDEX
363 import IMP.atom
364 IMP_RMF_HAS_IMP_CGAL = _IMP_rmf.IMP_RMF_HAS_IMP_CGAL
365 IMP_RMF_HAS_IMP_SCORE_FUNCTOR = _IMP_rmf.IMP_RMF_HAS_IMP_SCORE_FUNCTOR
366 IMP_RMF_HAS_BOOST_FILESYSTEM = _IMP_rmf.IMP_RMF_HAS_BOOST_FILESYSTEM
367 IMP_RMF_HAS_BOOST_PROGRAMOPTIONS = _IMP_rmf.IMP_RMF_HAS_BOOST_PROGRAMOPTIONS
368 IMP_RMF_HAS_BOOST_RANDOM = _IMP_rmf.IMP_RMF_HAS_BOOST_RANDOM
369 IMP_RMF_HAS_BOOST_REGEX = _IMP_rmf.IMP_RMF_HAS_BOOST_REGEX
370 IMP_RMF_HAS_BOOST_SYSTEM = _IMP_rmf.IMP_RMF_HAS_BOOST_SYSTEM
371 IMP_RMF_HAS_CGAL = _IMP_rmf.IMP_RMF_HAS_CGAL
372 IMP_RMF_HAS_HDF5 = _IMP_rmf.IMP_RMF_HAS_HDF5
373 IMP_RMF_HAS_PYTHON_IHM = _IMP_rmf.IMP_RMF_HAS_PYTHON_IHM
374 IMPRMF_SHOW_WARNINGS = _IMP_rmf.IMPRMF_SHOW_WARNINGS
375 import RMF
376 
377 _object_types.append("SaveOptimizerState")
378 
379 
380 def _object_cast_to_SaveOptimizerState(o):
381  """_object_cast_to_SaveOptimizerState(Object o) -> SaveOptimizerState"""
382  return _IMP_rmf._object_cast_to_SaveOptimizerState(o)
383 
384 _object_types.append("LoadLink")
385 
386 
387 def _object_cast_to_LoadLink(o):
388  """_object_cast_to_LoadLink(Object o) -> LoadLink"""
389  return _IMP_rmf._object_cast_to_LoadLink(o)
390 
391 _object_types.append("SaveLink")
392 
393 
394 def _object_cast_to_SaveLink(o):
395  """_object_cast_to_SaveLink(Object o) -> SaveLink"""
396  return _IMP_rmf._object_cast_to_SaveLink(o)
397 
398 _object_types.append("HierarchySaveLink")
399 
400 
401 def _object_cast_to_HierarchySaveLink(o):
402  """_object_cast_to_HierarchySaveLink(Object o) -> HierarchySaveLink"""
403  return _IMP_rmf._object_cast_to_HierarchySaveLink(o)
404 
405 _object_types.append("HierarchyLoadLink")
406 
407 
408 def _object_cast_to_HierarchyLoadLink(o):
409  """_object_cast_to_HierarchyLoadLink(Object o) -> HierarchyLoadLink"""
410  return _IMP_rmf._object_cast_to_HierarchyLoadLink(o)
411 class LoadLink(IMP.Object):
412  """Proxy of C++ IMP::rmf::LoadLink class."""
413 
414  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
415 
416  def do_load(self, fh):
417  """do_load(LoadLink self, FileConstHandle fh)"""
418  return _IMP_rmf.LoadLink_do_load(self, fh)
419 
420 
421  def __init__(self, name):
422  """__init__(IMP::rmf::LoadLink self, std::string name) -> LoadLink"""
423  if self.__class__ == LoadLink:
424  _self = None
425  else:
426  _self = self
427  this = _IMP_rmf.new_LoadLink(_self, name)
428  try:
429  self.this.append(this)
430  except __builtin__.Exception:
431  self.this = this
432 
433  if self.__class__ != LoadLink:
434  _director_objects.register(self)
435 
436 
437 
438 
439  def load(self, fh):
440  """load(LoadLink self, FileConstHandle fh)"""
441  return _IMP_rmf.LoadLink_load(self, fh)
442 
443  __swig_destroy__ = _IMP_rmf.delete_LoadLink
444  __del__ = lambda self: None
445 
446  def __str__(self):
447  """__str__(LoadLink self) -> std::string"""
448  return _IMP_rmf.LoadLink___str__(self)
449 
450 
451  def __repr__(self):
452  """__repr__(LoadLink self) -> std::string"""
453  return _IMP_rmf.LoadLink___repr__(self)
454 
455 
456  @staticmethod
457  def get_from(o):
458  return _object_cast_to_LoadLink(o)
459 
460 
461  def get_type_name(self):
462  return self.__class__.__name__
463  def do_show(self, out):
464  pass
465  def get_version_info(self):
466  if"IMP::rmf" == "IMP":
467  return VersionInfo(self.__module__,
468  __import__(self.__module__).get_module_version())
469  else:
470  return IMP.VersionInfo(self.__module__,
471  __import__(self.__module__).get_module_version())
472  @staticmethod
473  def get_from(o):
474  return _object_cast_to_LoadLink(o)
475 
476  def __disown__(self):
477  self.this.disown()
478  _IMP_rmf.disown_LoadLink(self)
479  return weakref_proxy(self)
480 
481  def do_destroy(self):
482  """do_destroy(LoadLink self)"""
483  return _IMP_rmf.LoadLink_do_destroy(self)
484 
485 LoadLink_swigregister = _IMP_rmf.LoadLink_swigregister
486 LoadLink_swigregister(LoadLink)
487 
488 class SaveLink(IMP.Object):
489  """Proxy of C++ IMP::rmf::SaveLink class."""
490 
491  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
492 
493  def do_save(self, hf):
494  """do_save(SaveLink self, FileHandle hf)"""
495  return _IMP_rmf.SaveLink_do_save(self, hf)
496 
497 
498  def __init__(self, name):
499  """__init__(IMP::rmf::SaveLink self, std::string name) -> SaveLink"""
500  if self.__class__ == SaveLink:
501  _self = None
502  else:
503  _self = self
504  this = _IMP_rmf.new_SaveLink(_self, name)
505  try:
506  self.this.append(this)
507  except __builtin__.Exception:
508  self.this = this
509 
510  if self.__class__ != SaveLink:
511  _director_objects.register(self)
512 
513 
514 
515 
516  def save(self, fh):
517  """save(SaveLink self, FileHandle fh)"""
518  return _IMP_rmf.SaveLink_save(self, fh)
519 
520  __swig_destroy__ = _IMP_rmf.delete_SaveLink
521  __del__ = lambda self: None
522 
523  def __str__(self):
524  """__str__(SaveLink self) -> std::string"""
525  return _IMP_rmf.SaveLink___str__(self)
526 
527 
528  def __repr__(self):
529  """__repr__(SaveLink self) -> std::string"""
530  return _IMP_rmf.SaveLink___repr__(self)
531 
532 
533  @staticmethod
534  def get_from(o):
535  return _object_cast_to_SaveLink(o)
536 
537 
538  def get_type_name(self):
539  return self.__class__.__name__
540  def do_show(self, out):
541  pass
542  def get_version_info(self):
543  if"IMP::rmf" == "IMP":
544  return VersionInfo(self.__module__,
545  __import__(self.__module__).get_module_version())
546  else:
547  return IMP.VersionInfo(self.__module__,
548  __import__(self.__module__).get_module_version())
549  @staticmethod
550  def get_from(o):
551  return _object_cast_to_SaveLink(o)
552 
553  def __disown__(self):
554  self.this.disown()
555  _IMP_rmf.disown_SaveLink(self)
556  return weakref_proxy(self)
557 
558  def do_destroy(self):
559  """do_destroy(SaveLink self)"""
560  return _IMP_rmf.SaveLink_do_destroy(self)
561 
562 SaveLink_swigregister = _IMP_rmf.SaveLink_swigregister
563 SaveLink_swigregister(SaveLink)
564 
565 
566 def add_hierarchies(*args):
567  """
568  add_hierarchies(FileHandle fh, IMP::atom::Hierarchies const & hs)
569  add_hierarchies(NodeHandle fh, IMP::atom::Hierarchies const & hs)
570  """
571  return _IMP_rmf.add_hierarchies(*args)
572 
573 def add_hierarchy(fh, hs):
574  """add_hierarchy(FileHandle fh, Hierarchy hs)"""
575  return _IMP_rmf.add_hierarchy(fh, hs)
576 
577 def create_hierarchies(fh, m):
578  """create_hierarchies(FileConstHandle fh, Model m) -> IMP::atom::Hierarchies"""
579  return _IMP_rmf.create_hierarchies(fh, m)
580 
581 def link_hierarchies(fh, hs):
582  """link_hierarchies(FileConstHandle fh, IMP::atom::Hierarchies const & hs)"""
583  return _IMP_rmf.link_hierarchies(fh, hs)
584 
585 def add_restraints(*args):
586  """
587  add_restraints(FileHandle fh, IMP::Restraints const & hs)
588  add_restraints(NodeHandle fh, IMP::Restraints const & hs)
589  """
590  return _IMP_rmf.add_restraints(*args)
591 
592 def add_restraint(fh, hs):
593  """add_restraint(FileHandle fh, Restraint hs)"""
594  return _IMP_rmf.add_restraint(fh, hs)
595 
596 def create_restraints(fh, m):
597  """create_restraints(FileConstHandle fh, Model m) -> IMP::Restraints"""
598  return _IMP_rmf.create_restraints(fh, m)
599 
600 def link_restraints(fh, hs):
601  """link_restraints(FileConstHandle fh, IMP::Restraints const & hs)"""
602  return _IMP_rmf.link_restraints(fh, hs)
603 
604 def add_restraints_as_bonds(fh, rs):
605  """add_restraints_as_bonds(FileHandle fh, IMP::Restraints const & rs)"""
606  return _IMP_rmf.add_restraints_as_bonds(fh, rs)
607 
608 def set_maximum_number_of_terms(fh, num):
609  """set_maximum_number_of_terms(FileHandle fh, unsigned int num)"""
610  return _IMP_rmf.set_maximum_number_of_terms(fh, num)
611 
612 def add_particles(*args):
613  """
614  add_particles(FileHandle fh, IMP::ParticlesTemp const & hs)
615  add_particles(NodeHandle fh, IMP::ParticlesTemp const & hs)
616  """
617  return _IMP_rmf.add_particles(*args)
618 
619 def add_particle(fh, hs):
620  """add_particle(FileHandle fh, Particle hs)"""
621  return _IMP_rmf.add_particle(fh, hs)
622 
623 def create_particles(fh, m):
624  """create_particles(FileConstHandle fh, Model m) -> IMP::ParticlesTemp"""
625  return _IMP_rmf.create_particles(fh, m)
626 
627 def link_particles(fh, hs):
628  """link_particles(FileConstHandle fh, IMP::ParticlesTemp const & hs)"""
629  return _IMP_rmf.link_particles(fh, hs)
630 
631 def add_geometries(*args):
632  """
633  add_geometries(FileHandle file, IMP::display::GeometriesTemp const & r)
634  add_geometries(NodeHandle parent, IMP::display::GeometriesTemp const & r)
635  """
636  return _IMP_rmf.add_geometries(*args)
637 
638 def add_static_geometries(parent, r):
639  """add_static_geometries(FileHandle parent, IMP::display::GeometriesTemp const & r)"""
640  return _IMP_rmf.add_static_geometries(parent, r)
641 
642 def add_geometry(file, r):
643  """add_geometry(FileHandle file, Geometry r)"""
644  return _IMP_rmf.add_geometry(file, r)
645 
646 def create_geometries(parent):
647  """create_geometries(FileConstHandle parent) -> IMP::display::Geometries"""
648  return _IMP_rmf.create_geometries(parent)
649 
650 def link_geometries(parent, r):
651  """link_geometries(FileConstHandle parent, IMP::display::GeometriesTemp const & r)"""
652  return _IMP_rmf.link_geometries(parent, r)
653 
654 def set_association(nh, o, overwrite=False):
655  """
656  set_association(NodeConstHandle nh, Object o, bool overwrite=False)
657  set_association(NodeConstHandle nh, Object o)
658  """
659  return _IMP_rmf.set_association(nh, o, overwrite)
660 
661 def get_node_from_association(*args):
662  """
663  get_node_from_association(FileConstHandle nh, Object oi) -> NodeConstHandle
664  get_node_from_association(FileHandle nh, Object oi) -> NodeHandle
665  """
666  return _IMP_rmf.get_node_from_association(*args)
667 
668 def get_has_associated_node(nh, oi):
669  """get_has_associated_node(FileConstHandle nh, Object oi) -> bool"""
670  return _IMP_rmf.get_has_associated_node(nh, oi)
671 class SaveOptimizerState(IMP.OptimizerState):
672  """Proxy of C++ IMP::rmf::SaveOptimizerState class."""
673 
674  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
675 
676  def __init__(self, m, fh):
677  """__init__(IMP::rmf::SaveOptimizerState self, Model m, FileHandle fh) -> SaveOptimizerState"""
678  this = _IMP_rmf.new_SaveOptimizerState(m, fh)
679  try:
680  self.this.append(this)
681  except __builtin__.Exception:
682  self.this = this
683 
684  def remove_hierarchy(self, d):
685  """remove_hierarchy(SaveOptimizerState self, Particle d)"""
686  return _IMP_rmf.SaveOptimizerState_remove_hierarchy(self, d)
687 
688 
689  def remove_hierarchies(self, d):
690  """remove_hierarchies(SaveOptimizerState self, IMP::Particles const & d)"""
691  return _IMP_rmf.SaveOptimizerState_remove_hierarchies(self, d)
692 
693 
694  def set_hierarchies(self, ps):
695  """set_hierarchies(SaveOptimizerState self, IMP::Particles const & ps)"""
696  return _IMP_rmf.SaveOptimizerState_set_hierarchies(self, ps)
697 
698 
699  def set_hierarchies_order(self, objs):
700  """set_hierarchies_order(SaveOptimizerState self, IMP::Particles const & objs)"""
701  return _IMP_rmf.SaveOptimizerState_set_hierarchies_order(self, objs)
702 
703 
704  def add_hierarchy(self, obj):
705  """add_hierarchy(SaveOptimizerState self, Particle obj) -> unsigned int"""
706  return _IMP_rmf.SaveOptimizerState_add_hierarchy(self, obj)
707 
708 
709  def add_hierarchies(self, objs):
710  """add_hierarchies(SaveOptimizerState self, IMP::Particles const & objs)"""
711  return _IMP_rmf.SaveOptimizerState_add_hierarchies(self, objs)
712 
713 
714  def clear_hierarchies(self):
715  """clear_hierarchies(SaveOptimizerState self)"""
716  return _IMP_rmf.SaveOptimizerState_clear_hierarchies(self)
717 
718 
719  def get_number_of_hierarchies(self):
720  """get_number_of_hierarchies(SaveOptimizerState self) -> unsigned int"""
721  return _IMP_rmf.SaveOptimizerState_get_number_of_hierarchies(self)
722 
723 
724  def get_has_hierarchies(self):
725  """get_has_hierarchies(SaveOptimizerState self) -> bool"""
726  return _IMP_rmf.SaveOptimizerState_get_has_hierarchies(self)
727 
728 
729  def get_hierarchy(self, i):
730  """get_hierarchy(SaveOptimizerState self, unsigned int i) -> Particle"""
731  return _IMP_rmf.SaveOptimizerState_get_hierarchy(self, i)
732 
733 
734  def get_hierarchies(self):
735  """get_hierarchies(SaveOptimizerState self) -> IMP::Particles"""
736  return _IMP_rmf.SaveOptimizerState_get_hierarchies(self)
737 
738 
739  def reserve_hierarchies(self, sz):
740  """reserve_hierarchies(SaveOptimizerState self, unsigned int sz)"""
741  return _IMP_rmf.SaveOptimizerState_reserve_hierarchies(self, sz)
742 
743 
744  def remove_restraint(self, d):
745  """remove_restraint(SaveOptimizerState self, Restraint d)"""
746  return _IMP_rmf.SaveOptimizerState_remove_restraint(self, d)
747 
748 
749  def remove_restraints(self, d):
750  """remove_restraints(SaveOptimizerState self, IMP::Restraints const & d)"""
751  return _IMP_rmf.SaveOptimizerState_remove_restraints(self, d)
752 
753 
754  def set_restraints(self, ps):
755  """set_restraints(SaveOptimizerState self, IMP::Restraints const & ps)"""
756  return _IMP_rmf.SaveOptimizerState_set_restraints(self, ps)
757 
758 
759  def set_restraints_order(self, objs):
760  """set_restraints_order(SaveOptimizerState self, IMP::Restraints const & objs)"""
761  return _IMP_rmf.SaveOptimizerState_set_restraints_order(self, objs)
762 
763 
764  def add_restraint(self, obj):
765  """add_restraint(SaveOptimizerState self, Restraint obj) -> unsigned int"""
766  return _IMP_rmf.SaveOptimizerState_add_restraint(self, obj)
767 
768 
769  def add_restraints(self, objs):
770  """add_restraints(SaveOptimizerState self, IMP::Restraints const & objs)"""
771  return _IMP_rmf.SaveOptimizerState_add_restraints(self, objs)
772 
773 
774  def clear_restraints(self):
775  """clear_restraints(SaveOptimizerState self)"""
776  return _IMP_rmf.SaveOptimizerState_clear_restraints(self)
777 
778 
779  def get_number_of_restraints(self):
780  """get_number_of_restraints(SaveOptimizerState self) -> unsigned int"""
781  return _IMP_rmf.SaveOptimizerState_get_number_of_restraints(self)
782 
783 
784  def get_has_restraints(self):
785  """get_has_restraints(SaveOptimizerState self) -> bool"""
786  return _IMP_rmf.SaveOptimizerState_get_has_restraints(self)
787 
788 
789  def get_restraint(self, i):
790  """get_restraint(SaveOptimizerState self, unsigned int i) -> Restraint"""
791  return _IMP_rmf.SaveOptimizerState_get_restraint(self, i)
792 
793 
794  def get_restraints(self):
795  """get_restraints(SaveOptimizerState self) -> IMP::Restraints"""
796  return _IMP_rmf.SaveOptimizerState_get_restraints(self)
797 
798 
799  def reserve_restraints(self, sz):
800  """reserve_restraints(SaveOptimizerState self, unsigned int sz)"""
801  return _IMP_rmf.SaveOptimizerState_reserve_restraints(self, sz)
802 
803 
804  def remove_particle(self, d):
805  """remove_particle(SaveOptimizerState self, Particle d)"""
806  return _IMP_rmf.SaveOptimizerState_remove_particle(self, d)
807 
808 
809  def remove_particles(self, d):
810  """remove_particles(SaveOptimizerState self, IMP::Particles const & d)"""
811  return _IMP_rmf.SaveOptimizerState_remove_particles(self, d)
812 
813 
814  def set_particles(self, ps):
815  """set_particles(SaveOptimizerState self, IMP::Particles const & ps)"""
816  return _IMP_rmf.SaveOptimizerState_set_particles(self, ps)
817 
818 
819  def set_particles_order(self, objs):
820  """set_particles_order(SaveOptimizerState self, IMP::Particles const & objs)"""
821  return _IMP_rmf.SaveOptimizerState_set_particles_order(self, objs)
822 
823 
824  def add_particle(self, obj):
825  """add_particle(SaveOptimizerState self, Particle obj) -> unsigned int"""
826  return _IMP_rmf.SaveOptimizerState_add_particle(self, obj)
827 
828 
829  def add_particles(self, objs):
830  """add_particles(SaveOptimizerState self, IMP::Particles const & objs)"""
831  return _IMP_rmf.SaveOptimizerState_add_particles(self, objs)
832 
833 
834  def clear_particles(self):
835  """clear_particles(SaveOptimizerState self)"""
836  return _IMP_rmf.SaveOptimizerState_clear_particles(self)
837 
838 
839  def get_number_of_particles(self):
840  """get_number_of_particles(SaveOptimizerState self) -> unsigned int"""
841  return _IMP_rmf.SaveOptimizerState_get_number_of_particles(self)
842 
843 
844  def get_has_particles(self):
845  """get_has_particles(SaveOptimizerState self) -> bool"""
846  return _IMP_rmf.SaveOptimizerState_get_has_particles(self)
847 
848 
849  def get_particle(self, i):
850  """get_particle(SaveOptimizerState self, unsigned int i) -> Particle"""
851  return _IMP_rmf.SaveOptimizerState_get_particle(self, i)
852 
853 
854  def get_particles(self):
855  """get_particles(SaveOptimizerState self) -> IMP::Particles"""
856  return _IMP_rmf.SaveOptimizerState_get_particles(self)
857 
858 
859  def reserve_particles(self, sz):
860  """reserve_particles(SaveOptimizerState self, unsigned int sz)"""
861  return _IMP_rmf.SaveOptimizerState_reserve_particles(self, sz)
862 
863 
864  def remove_geometry(self, d):
865  """remove_geometry(SaveOptimizerState self, Geometry d)"""
866  return _IMP_rmf.SaveOptimizerState_remove_geometry(self, d)
867 
868 
869  def remove_geometries(self, d):
870  """remove_geometries(SaveOptimizerState self, IMP::display::Geometries const & d)"""
871  return _IMP_rmf.SaveOptimizerState_remove_geometries(self, d)
872 
873 
874  def set_geometries(self, ps):
875  """set_geometries(SaveOptimizerState self, IMP::display::Geometries const & ps)"""
876  return _IMP_rmf.SaveOptimizerState_set_geometries(self, ps)
877 
878 
879  def set_geometries_order(self, objs):
880  """set_geometries_order(SaveOptimizerState self, IMP::display::Geometries const & objs)"""
881  return _IMP_rmf.SaveOptimizerState_set_geometries_order(self, objs)
882 
883 
884  def add_geometry(self, obj):
885  """add_geometry(SaveOptimizerState self, Geometry obj) -> unsigned int"""
886  return _IMP_rmf.SaveOptimizerState_add_geometry(self, obj)
887 
888 
889  def add_geometries(self, objs):
890  """add_geometries(SaveOptimizerState self, IMP::display::Geometries const & objs)"""
891  return _IMP_rmf.SaveOptimizerState_add_geometries(self, objs)
892 
893 
894  def clear_geometries(self):
895  """clear_geometries(SaveOptimizerState self)"""
896  return _IMP_rmf.SaveOptimizerState_clear_geometries(self)
897 
898 
899  def get_number_of_geometries(self):
900  """get_number_of_geometries(SaveOptimizerState self) -> unsigned int"""
901  return _IMP_rmf.SaveOptimizerState_get_number_of_geometries(self)
902 
903 
904  def get_has_geometries(self):
905  """get_has_geometries(SaveOptimizerState self) -> bool"""
906  return _IMP_rmf.SaveOptimizerState_get_has_geometries(self)
907 
908 
909  def get_geometry(self, i):
910  """get_geometry(SaveOptimizerState self, unsigned int i) -> Geometry"""
911  return _IMP_rmf.SaveOptimizerState_get_geometry(self, i)
912 
913 
914  def get_geometries(self):
915  """get_geometries(SaveOptimizerState self) -> IMP::display::Geometries"""
916  return _IMP_rmf.SaveOptimizerState_get_geometries(self)
917 
918 
919  def reserve_geometries(self, sz):
920  """reserve_geometries(SaveOptimizerState self, unsigned int sz)"""
921  return _IMP_rmf.SaveOptimizerState_reserve_geometries(self, sz)
922 
923 
924  def set_simulator(self, sim):
925  """set_simulator(SaveOptimizerState self, Simulator sim)"""
926  return _IMP_rmf.SaveOptimizerState_set_simulator(self, sim)
927 
928 
929  def update_always(self, *args):
930  """
931  update_always(SaveOptimizerState self, std::string name)
932  update_always(SaveOptimizerState self)
933  """
934  return _IMP_rmf.SaveOptimizerState_update_always(self, *args)
935 
936 
937  def do_update(self, call_num):
938  """do_update(SaveOptimizerState self, unsigned int call_num)"""
939  return _IMP_rmf.SaveOptimizerState_do_update(self, call_num)
940 
941 
942  def get_version_info(self):
943  """get_version_info(SaveOptimizerState self) -> VersionInfo"""
944  return _IMP_rmf.SaveOptimizerState_get_version_info(self)
945 
946 
947  def __str__(self):
948  """__str__(SaveOptimizerState self) -> std::string"""
949  return _IMP_rmf.SaveOptimizerState___str__(self)
950 
951 
952  def __repr__(self):
953  """__repr__(SaveOptimizerState self) -> std::string"""
954  return _IMP_rmf.SaveOptimizerState___repr__(self)
955 
956 
957  @staticmethod
958  def get_from(o):
959  return _object_cast_to_SaveOptimizerState(o)
960 
961 SaveOptimizerState_swigregister = _IMP_rmf.SaveOptimizerState_swigregister
962 SaveOptimizerState_swigregister(SaveOptimizerState)
963 
964 
965 def load_frame(file, frame):
966  """load_frame(FileConstHandle file, FrameID frame)"""
967  return _IMP_rmf.load_frame(file, frame)
968 
969 def save_frame(*args):
970  """
971  save_frame(FileHandle file, std::string name) -> FrameID
972  save_frame(FileHandle file) -> FrameID
973  """
974  return _IMP_rmf.save_frame(*args)
975 class _ParticleSaveLink(SaveLink):
976  """Proxy of C++ IMP::rmf::SimpleSaveLink<(IMP::Particle)> class."""
977 
978  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
979 
980  def __init__(self, *args, **kwargs):
981  raise AttributeError("No constructor defined - class is abstract")
982  __repr__ = _swig_repr
983 
984  def add(self, parent, os):
985  """add(_ParticleSaveLink self, NodeHandle parent, IMP::Vector< Pointer< IMP::Particle > > const & os)"""
986  return _IMP_rmf._ParticleSaveLink_add(self, parent, os)
987 
988  __swig_destroy__ = _IMP_rmf.delete__ParticleSaveLink
989  __del__ = lambda self: None
990 _ParticleSaveLink_swigregister = _IMP_rmf._ParticleSaveLink_swigregister
991 _ParticleSaveLink_swigregister(_ParticleSaveLink)
992 
993 class _ParticleLoadLink(LoadLink):
994  """Proxy of C++ IMP::rmf::SimpleLoadLink<(IMP::Particle)> class."""
995 
996  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
997 
998  def __init__(self, *args, **kwargs):
999  raise AttributeError("No constructor defined - class is abstract")
1000  __repr__ = _swig_repr
1001 
1002  def create(self, *args):
1003  """
1004  create(_ParticleLoadLink self, NodeConstHandle rt) -> IMP::Vector< Pointer< IMP::Particle > >
1005  create(_ParticleLoadLink self, NodeConstHandle rt, Model m) -> IMP::Vector< Pointer< IMP::Particle > >
1006  """
1007  return _IMP_rmf._ParticleLoadLink_create(self, *args)
1008 
1009 
1010  def link(self, rt, ps):
1011  """link(_ParticleLoadLink self, NodeConstHandle rt, IMP::Vector< Pointer< IMP::Particle > > const & ps)"""
1012  return _IMP_rmf._ParticleLoadLink_link(self, rt, ps)
1013 
1014  __swig_destroy__ = _IMP_rmf.delete__ParticleLoadLink
1015  __del__ = lambda self: None
1016 _ParticleLoadLink_swigregister = _IMP_rmf._ParticleLoadLink_swigregister
1017 _ParticleLoadLink_swigregister(_ParticleLoadLink)
1018 
1019 class HierarchyLoadLink(_ParticleLoadLink):
1020  """Proxy of C++ IMP::rmf::HierarchyLoadLink class."""
1021 
1022  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1023 
1024  def __init__(self, fh):
1025  """__init__(IMP::rmf::HierarchyLoadLink self, FileConstHandle fh) -> HierarchyLoadLink"""
1026  this = _IMP_rmf.new_HierarchyLoadLink(fh)
1027  try:
1028  self.this.append(this)
1029  except __builtin__.Exception:
1030  self.this = this
1031 
1032  def get_name():
1033  """get_name() -> char const *"""
1034  return _IMP_rmf.HierarchyLoadLink_get_name()
1035 
1036  get_name = staticmethod(get_name)
1037 
1038  def get_version_info(self):
1039  """get_version_info(HierarchyLoadLink self) -> VersionInfo"""
1040  return _IMP_rmf.HierarchyLoadLink_get_version_info(self)
1041 
1042 
1043  def __str__(self):
1044  """__str__(HierarchyLoadLink self) -> std::string"""
1045  return _IMP_rmf.HierarchyLoadLink___str__(self)
1046 
1047 
1048  def __repr__(self):
1049  """__repr__(HierarchyLoadLink self) -> std::string"""
1050  return _IMP_rmf.HierarchyLoadLink___repr__(self)
1051 
1052 
1053  @staticmethod
1054  def get_from(o):
1055  return _object_cast_to_HierarchyLoadLink(o)
1056 
1057 HierarchyLoadLink_swigregister = _IMP_rmf.HierarchyLoadLink_swigregister
1058 HierarchyLoadLink_swigregister(HierarchyLoadLink)
1059 
1060 def HierarchyLoadLink_get_name():
1061  """HierarchyLoadLink_get_name() -> char const *"""
1062  return _IMP_rmf.HierarchyLoadLink_get_name()
1063 
1064 class HierarchySaveLink(_ParticleSaveLink):
1065  """Proxy of C++ IMP::rmf::HierarchySaveLink class."""
1066 
1067  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1068 
1069  def __init__(self, fh):
1070  """__init__(IMP::rmf::HierarchySaveLink self, FileHandle fh) -> HierarchySaveLink"""
1071  this = _IMP_rmf.new_HierarchySaveLink(fh)
1072  try:
1073  self.this.append(this)
1074  except __builtin__.Exception:
1075  self.this = this
1076 
1077  def get_name():
1078  """get_name() -> char const *"""
1079  return _IMP_rmf.HierarchySaveLink_get_name()
1080 
1081  get_name = staticmethod(get_name)
1082 
1083  def get_version_info(self):
1084  """get_version_info(HierarchySaveLink self) -> VersionInfo"""
1085  return _IMP_rmf.HierarchySaveLink_get_version_info(self)
1086 
1087 
1088  def __str__(self):
1089  """__str__(HierarchySaveLink self) -> std::string"""
1090  return _IMP_rmf.HierarchySaveLink___str__(self)
1091 
1092 
1093  def __repr__(self):
1094  """__repr__(HierarchySaveLink self) -> std::string"""
1095  return _IMP_rmf.HierarchySaveLink___repr__(self)
1096 
1097 
1098  @staticmethod
1099  def get_from(o):
1100  return _object_cast_to_HierarchySaveLink(o)
1101 
1102 HierarchySaveLink_swigregister = _IMP_rmf.HierarchySaveLink_swigregister
1103 HierarchySaveLink_swigregister(HierarchySaveLink)
1104 
1105 def HierarchySaveLink_get_name():
1106  """HierarchySaveLink_get_name() -> char const *"""
1107  return _IMP_rmf.HierarchySaveLink_get_name()
1108 
1109 
1110 suffixes = [".rmf", ".rmfz"]
1111 
1112 
1113 def get_module_version():
1114  """get_module_version() -> std::string const"""
1115  return _IMP_rmf.get_module_version()
1116 
1117 def get_example_path(fname):
1118  """get_example_path(std::string fname) -> std::string"""
1119  return _IMP_rmf.get_example_path(fname)
1120 
1121 def get_data_path(fname):
1122  """get_data_path(std::string fname) -> std::string"""
1123  return _IMP_rmf.get_data_path(fname)
1124 
1125 from . import _version_check
1126 _version_check.check_version(get_module_version())
1127 __version__ = get_module_version()
1128 
1129 
1130 
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.
ParticlesTemp get_particles(Model *m, const ParticleIndexes &ps)
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.
std::string get_data_path(std::string file_name)
Return the full path to one of this module's data files.
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.
Particle * get_particle() const
Returns the particle decorated by this decorator.
Definition: Decorator.h:171
void set_maximum_number_of_terms(RMF::FileHandle fh, unsigned int num)
Limit the number of restraint terms.
std::string get_example_path(std::string file_name)
Return the full path to one of this module's example files.
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.