IMP  2.3.0
The Integrative Modeling Platform
rmf/__init__.py
1 # This file was automatically generated by SWIG (http://www.swig.org).
2 # Version 3.0.2
3 #
4 # Do not make changes to this file unless you know what you are doing--modify
5 # the SWIG interface file instead.
6 
7 
8 
9 
10 
11 from sys import version_info
12 if version_info >= (2,6,0):
13  def swig_import_helper():
14  from os.path import dirname
15  import imp
16  fp = None
17  try:
18  fp, pathname, description = imp.find_module('_IMP_rmf', [dirname(__file__)])
19  except ImportError:
20  import _IMP_rmf
21  return _IMP_rmf
22  if fp is not None:
23  try:
24  _mod = imp.load_module('_IMP_rmf', fp, pathname, description)
25  finally:
26  fp.close()
27  return _mod
28  _IMP_rmf = swig_import_helper()
29  del swig_import_helper
30 else:
31  import _IMP_rmf
32 del version_info
33 try:
34  _swig_property = property
35 except NameError:
36  pass # Python < 2.2 doesn't have 'property'.
37 def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
38  if (name == "thisown"): return self.this.own(value)
39  if (name == "this"):
40  if type(value).__name__ == 'SwigPyObject':
41  self.__dict__[name] = value
42  return
43  method = class_type.__swig_setmethods__.get(name,None)
44  if method: return method(self,value)
45  if (not static):
46  self.__dict__[name] = value
47  else:
48  raise AttributeError("You cannot add attributes to %s" % self)
49 
50 def _swig_setattr(self,class_type,name,value):
51  return _swig_setattr_nondynamic(self,class_type,name,value,0)
52 
53 def _swig_getattr(self,class_type,name):
54  if (name == "thisown"): return self.this.own()
55  method = class_type.__swig_getmethods__.get(name,None)
56  if method: return method(self)
57  raise AttributeError(name)
58 
59 def _swig_repr(self):
60  try: strthis = "proxy of " + self.this.__repr__()
61  except: strthis = ""
62  return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
63 
64 try:
65  _object = object
66  _newclass = 1
67 except AttributeError:
68  class _object : pass
69  _newclass = 0
70 
71 
72 try:
73  import weakref
74  weakref_proxy = weakref.proxy
75 except:
76  weakref_proxy = lambda x: x
77 
78 
79 class IMP_RMF_SwigPyIterator(_object):
80  """Proxy of C++ swig::IMP_RMF_SwigPyIterator class"""
81  __swig_setmethods__ = {}
82  __setattr__ = lambda self, name, value: _swig_setattr(self, IMP_RMF_SwigPyIterator, name, value)
83  __swig_getmethods__ = {}
84  __getattr__ = lambda self, name: _swig_getattr(self, IMP_RMF_SwigPyIterator, name)
85  def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined - class is abstract")
86  __repr__ = _swig_repr
87  __swig_destroy__ = _IMP_rmf.delete_IMP_RMF_SwigPyIterator
88  __del__ = lambda self : None;
89  def value(self):
90  """value(IMP_RMF_SwigPyIterator self) -> PyObject *"""
91  return _IMP_rmf.IMP_RMF_SwigPyIterator_value(self)
92 
93  def incr(self, n=1):
94  """
95  incr(IMP_RMF_SwigPyIterator self, size_t n=1) -> IMP_RMF_SwigPyIterator
96  incr(IMP_RMF_SwigPyIterator self) -> IMP_RMF_SwigPyIterator
97  """
98  return _IMP_rmf.IMP_RMF_SwigPyIterator_incr(self, n)
99 
100  def decr(self, n=1):
101  """
102  decr(IMP_RMF_SwigPyIterator self, size_t n=1) -> IMP_RMF_SwigPyIterator
103  decr(IMP_RMF_SwigPyIterator self) -> IMP_RMF_SwigPyIterator
104  """
105  return _IMP_rmf.IMP_RMF_SwigPyIterator_decr(self, n)
106 
107  def distance(self, *args):
108  """distance(IMP_RMF_SwigPyIterator self, IMP_RMF_SwigPyIterator x) -> ptrdiff_t"""
109  return _IMP_rmf.IMP_RMF_SwigPyIterator_distance(self, *args)
110 
111  def equal(self, *args):
112  """equal(IMP_RMF_SwigPyIterator self, IMP_RMF_SwigPyIterator x) -> bool"""
113  return _IMP_rmf.IMP_RMF_SwigPyIterator_equal(self, *args)
114 
115  def copy(self):
116  """copy(IMP_RMF_SwigPyIterator self) -> IMP_RMF_SwigPyIterator"""
117  return _IMP_rmf.IMP_RMF_SwigPyIterator_copy(self)
118 
119  def next(self):
120  """next(IMP_RMF_SwigPyIterator self) -> PyObject *"""
121  return _IMP_rmf.IMP_RMF_SwigPyIterator_next(self)
122 
123  def __next__(self):
124  """__next__(IMP_RMF_SwigPyIterator self) -> PyObject *"""
125  return _IMP_rmf.IMP_RMF_SwigPyIterator___next__(self)
126 
127  def previous(self):
128  """previous(IMP_RMF_SwigPyIterator self) -> PyObject *"""
129  return _IMP_rmf.IMP_RMF_SwigPyIterator_previous(self)
130 
131  def advance(self, *args):
132  """advance(IMP_RMF_SwigPyIterator self, ptrdiff_t n) -> IMP_RMF_SwigPyIterator"""
133  return _IMP_rmf.IMP_RMF_SwigPyIterator_advance(self, *args)
134 
135  def __eq__(self, *args):
136  """__eq__(IMP_RMF_SwigPyIterator self, IMP_RMF_SwigPyIterator x) -> bool"""
137  return _IMP_rmf.IMP_RMF_SwigPyIterator___eq__(self, *args)
138 
139  def __ne__(self, *args):
140  """__ne__(IMP_RMF_SwigPyIterator self, IMP_RMF_SwigPyIterator x) -> bool"""
141  return _IMP_rmf.IMP_RMF_SwigPyIterator___ne__(self, *args)
142 
143  def __iadd__(self, *args):
144  """__iadd__(IMP_RMF_SwigPyIterator self, ptrdiff_t n) -> IMP_RMF_SwigPyIterator"""
145  return _IMP_rmf.IMP_RMF_SwigPyIterator___iadd__(self, *args)
146 
147  def __isub__(self, *args):
148  """__isub__(IMP_RMF_SwigPyIterator self, ptrdiff_t n) -> IMP_RMF_SwigPyIterator"""
149  return _IMP_rmf.IMP_RMF_SwigPyIterator___isub__(self, *args)
150 
151  def __add__(self, *args):
152  """__add__(IMP_RMF_SwigPyIterator self, ptrdiff_t n) -> IMP_RMF_SwigPyIterator"""
153  return _IMP_rmf.IMP_RMF_SwigPyIterator___add__(self, *args)
154 
155  def __sub__(self, *args):
156  """
157  __sub__(IMP_RMF_SwigPyIterator self, ptrdiff_t n) -> IMP_RMF_SwigPyIterator
158  __sub__(IMP_RMF_SwigPyIterator self, IMP_RMF_SwigPyIterator x) -> ptrdiff_t
159  """
160  return _IMP_rmf.IMP_RMF_SwigPyIterator___sub__(self, *args)
161 
162  def __iter__(self): return self
163 IMP_RMF_SwigPyIterator_swigregister = _IMP_rmf.IMP_RMF_SwigPyIterator_swigregister
164 IMP_RMF_SwigPyIterator_swigregister(IMP_RMF_SwigPyIterator)
165 
166 _value_types=[]
167 _object_types=[]
168 _raii_types=[]
169 _plural_types=[]
170 
171 IMP_DEBUG = _IMP_rmf.IMP_DEBUG
172 IMP_RELEASE = _IMP_rmf.IMP_RELEASE
173 IMP_SILENT = _IMP_rmf.IMP_SILENT
174 IMP_PROGRESS = _IMP_rmf.IMP_PROGRESS
175 IMP_TERSE = _IMP_rmf.IMP_TERSE
176 IMP_VERBOSE = _IMP_rmf.IMP_VERBOSE
177 IMP_MEMORY = _IMP_rmf.IMP_MEMORY
178 IMP_NONE = _IMP_rmf.IMP_NONE
179 IMP_USAGE = _IMP_rmf.IMP_USAGE
180 IMP_INTERNAL = _IMP_rmf.IMP_INTERNAL
181 IMP_BASE_HAS_LOG4CXX = _IMP_rmf.IMP_BASE_HAS_LOG4CXX
182 IMP_COMPILER_HAS_AUTO = _IMP_rmf.IMP_COMPILER_HAS_AUTO
183 IMP_COMPILER_HAS_DEBUG_VECTOR = _IMP_rmf.IMP_COMPILER_HAS_DEBUG_VECTOR
184 IMP_BASE_HAS_BOOST_RANDOM = _IMP_rmf.IMP_BASE_HAS_BOOST_RANDOM
185 IMP_BASE_HAS_GPERFTOOLS = _IMP_rmf.IMP_BASE_HAS_GPERFTOOLS
186 IMP_BASE_HAS_TCMALLOC_HEAPCHECKER = _IMP_rmf.IMP_BASE_HAS_TCMALLOC_HEAPCHECKER
187 IMP_BASE_HAS_TCMALLOC_HEAPPROFILER = _IMP_rmf.IMP_BASE_HAS_TCMALLOC_HEAPPROFILER
188 IMPBASE_SHOW_WARNINGS = _IMP_rmf.IMPBASE_SHOW_WARNINGS
189 import sys
190 class _DirectorObjects(object):
191  """@internal Simple class to keep references to director objects
192  to prevent premature deletion."""
193  def __init__(self):
194  self._objects = []
195  def register(self, obj):
196  """Take a reference to a director object; will only work for
197  refcounted C++ classes"""
198  if hasattr(obj, 'get_ref_count'):
199  self._objects.append(obj)
200  def cleanup(self):
201  """Only drop our reference and allow cleanup by Python if no other
202  Python references exist (we hold 3 references: one in self._objects,
203  one in x, and one in the argument list for getrefcount) *and* no
204  other C++ references exist (the Python object always holds one)"""
205  objs = [x for x in self._objects if sys.getrefcount(x) > 3 \
206  or x.get_ref_count() > 1]
207 
208 
209  self._objects = objs
210  def get_object_count(self):
211  """Get number of director objects (useful for testing only)"""
212  return len(self._objects)
213 _director_objects = _DirectorObjects()
214 
215 DEFAULT_CHECK = _IMP_rmf.DEFAULT_CHECK
216 NONE = _IMP_rmf.NONE
217 USAGE = _IMP_rmf.USAGE
218 USAGE_AND_INTERNAL = _IMP_rmf.USAGE_AND_INTERNAL
219 
220 def set_check_level(*args):
221  """set_check_level(IMP::base::CheckLevel tf)"""
222  return _IMP_rmf.set_check_level(*args)
223 
224 def get_check_level():
225  """get_check_level() -> IMP::base::CheckLevel"""
226  return _IMP_rmf.get_check_level()
227 class _ostream(_object):
228  """Proxy of C++ std::ostream class"""
229  __swig_setmethods__ = {}
230  __setattr__ = lambda self, name, value: _swig_setattr(self, _ostream, name, value)
231  __swig_getmethods__ = {}
232  __getattr__ = lambda self, name: _swig_getattr(self, _ostream, name)
233  def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined")
234  __repr__ = _swig_repr
235  def write(self, *args):
236  """write(_ostream self, char const * osa_buf)"""
237  return _IMP_rmf._ostream_write(self, *args)
238 
239 _ostream_swigregister = _IMP_rmf._ostream_swigregister
240 _ostream_swigregister(_ostream)
241 
242 IMP_COMPILER_HAS_OVERRIDE = _IMP_rmf.IMP_COMPILER_HAS_OVERRIDE
243 IMP_COMPILER_HAS_FINAL = _IMP_rmf.IMP_COMPILER_HAS_FINAL
244 IMP_HAS_NOEXCEPT = _IMP_rmf.IMP_HAS_NOEXCEPT
245 import IMP.base
246 IMP_CGAL_HAS_BOOST_FILESYSTEM = _IMP_rmf.IMP_CGAL_HAS_BOOST_FILESYSTEM
247 IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS = _IMP_rmf.IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS
248 IMP_CGAL_HAS_BOOST_RANDOM = _IMP_rmf.IMP_CGAL_HAS_BOOST_RANDOM
249 IMP_CGAL_HAS_BOOST_SYSTEM = _IMP_rmf.IMP_CGAL_HAS_BOOST_SYSTEM
250 IMPCGAL_SHOW_WARNINGS = _IMP_rmf.IMPCGAL_SHOW_WARNINGS
251 import IMP.cgal
252 IMP_ALGEBRA_HAS_IMP_CGAL = _IMP_rmf.IMP_ALGEBRA_HAS_IMP_CGAL
253 IMP_ALGEBRA_HAS_BOOST_FILESYSTEM = _IMP_rmf.IMP_ALGEBRA_HAS_BOOST_FILESYSTEM
254 IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS = _IMP_rmf.IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS
255 IMP_ALGEBRA_HAS_BOOST_RANDOM = _IMP_rmf.IMP_ALGEBRA_HAS_BOOST_RANDOM
256 IMP_ALGEBRA_HAS_BOOST_SYSTEM = _IMP_rmf.IMP_ALGEBRA_HAS_BOOST_SYSTEM
257 IMP_ALGEBRA_HAS_CGAL = _IMP_rmf.IMP_ALGEBRA_HAS_CGAL
258 IMP_ALGEBRA_HAS_ANN = _IMP_rmf.IMP_ALGEBRA_HAS_ANN
259 IMPALGEBRA_SHOW_WARNINGS = _IMP_rmf.IMPALGEBRA_SHOW_WARNINGS
260 import IMP.algebra
261 IMP_KERNEL_HAS_IMP_CGAL = _IMP_rmf.IMP_KERNEL_HAS_IMP_CGAL
262 IMP_KERNEL_HAS_BOOST_PROGRAMOPTIONS = _IMP_rmf.IMP_KERNEL_HAS_BOOST_PROGRAMOPTIONS
263 IMP_KERNEL_HAS_BOOST_RANDOM = _IMP_rmf.IMP_KERNEL_HAS_BOOST_RANDOM
264 IMP_KERNEL_HAS_BOOST_SYSTEM = _IMP_rmf.IMP_KERNEL_HAS_BOOST_SYSTEM
265 IMP_KERNEL_HAS_CGAL = _IMP_rmf.IMP_KERNEL_HAS_CGAL
266 IMPKERNEL_SHOW_WARNINGS = _IMP_rmf.IMPKERNEL_SHOW_WARNINGS
267 import IMP.kernel
268 IMP_DISPLAY_HAS_IMP_BASE = _IMP_rmf.IMP_DISPLAY_HAS_IMP_BASE
269 IMP_DISPLAY_HAS_IMP_CGAL = _IMP_rmf.IMP_DISPLAY_HAS_IMP_CGAL
270 IMP_DISPLAY_HAS_BOOST_FILESYSTEM = _IMP_rmf.IMP_DISPLAY_HAS_BOOST_FILESYSTEM
271 IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS = _IMP_rmf.IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS
272 IMP_DISPLAY_HAS_BOOST_RANDOM = _IMP_rmf.IMP_DISPLAY_HAS_BOOST_RANDOM
273 IMP_DISPLAY_HAS_BOOST_SYSTEM = _IMP_rmf.IMP_DISPLAY_HAS_BOOST_SYSTEM
274 IMP_DISPLAY_HAS_CGAL = _IMP_rmf.IMP_DISPLAY_HAS_CGAL
275 IMPDISPLAY_SHOW_WARNINGS = _IMP_rmf.IMPDISPLAY_SHOW_WARNINGS
276 import IMP.display
277 IMP_SCORE_FUNCTOR_HAS_IMP_CGAL = _IMP_rmf.IMP_SCORE_FUNCTOR_HAS_IMP_CGAL
278 IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM = _IMP_rmf.IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM
279 IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS = _IMP_rmf.IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS
280 IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM = _IMP_rmf.IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM
281 IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM = _IMP_rmf.IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM
282 IMP_SCORE_FUNCTOR_HAS_CGAL = _IMP_rmf.IMP_SCORE_FUNCTOR_HAS_CGAL
283 IMP_SCORE_FUNCTOR_HAS_HDF5 = _IMP_rmf.IMP_SCORE_FUNCTOR_HAS_HDF5
284 IMPSCOREFUNCTOR_SHOW_WARNINGS = _IMP_rmf.IMPSCOREFUNCTOR_SHOW_WARNINGS
285 import IMP.score_functor
286 IMP_CORE_HAS_IMP_BASE = _IMP_rmf.IMP_CORE_HAS_IMP_BASE
287 IMP_CORE_HAS_IMP_CGAL = _IMP_rmf.IMP_CORE_HAS_IMP_CGAL
288 IMP_CORE_HAS_IMP_KERNEL = _IMP_rmf.IMP_CORE_HAS_IMP_KERNEL
289 IMP_CORE_HAS_BOOST_FILESYSTEM = _IMP_rmf.IMP_CORE_HAS_BOOST_FILESYSTEM
290 IMP_CORE_HAS_BOOST_PROGRAMOPTIONS = _IMP_rmf.IMP_CORE_HAS_BOOST_PROGRAMOPTIONS
291 IMP_CORE_HAS_BOOST_RANDOM = _IMP_rmf.IMP_CORE_HAS_BOOST_RANDOM
292 IMP_CORE_HAS_BOOST_SYSTEM = _IMP_rmf.IMP_CORE_HAS_BOOST_SYSTEM
293 IMP_CORE_HAS_CGAL = _IMP_rmf.IMP_CORE_HAS_CGAL
294 IMP_CORE_HAS_HDF5 = _IMP_rmf.IMP_CORE_HAS_HDF5
295 IMPCORE_SHOW_WARNINGS = _IMP_rmf.IMPCORE_SHOW_WARNINGS
296 import IMP.core
297 IMP_CONTAINER_HAS_IMP_ALGEBRA = _IMP_rmf.IMP_CONTAINER_HAS_IMP_ALGEBRA
298 IMP_CONTAINER_HAS_IMP_BASE = _IMP_rmf.IMP_CONTAINER_HAS_IMP_BASE
299 IMP_CONTAINER_HAS_IMP_CGAL = _IMP_rmf.IMP_CONTAINER_HAS_IMP_CGAL
300 IMP_CONTAINER_HAS_IMP_DISPLAY = _IMP_rmf.IMP_CONTAINER_HAS_IMP_DISPLAY
301 IMP_CONTAINER_HAS_IMP_KERNEL = _IMP_rmf.IMP_CONTAINER_HAS_IMP_KERNEL
302 IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR = _IMP_rmf.IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR
303 IMP_CONTAINER_HAS_BOOST_FILESYSTEM = _IMP_rmf.IMP_CONTAINER_HAS_BOOST_FILESYSTEM
304 IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS = _IMP_rmf.IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS
305 IMP_CONTAINER_HAS_BOOST_RANDOM = _IMP_rmf.IMP_CONTAINER_HAS_BOOST_RANDOM
306 IMP_CONTAINER_HAS_BOOST_SYSTEM = _IMP_rmf.IMP_CONTAINER_HAS_BOOST_SYSTEM
307 IMP_CONTAINER_HAS_CGAL = _IMP_rmf.IMP_CONTAINER_HAS_CGAL
308 IMP_CONTAINER_HAS_HDF5 = _IMP_rmf.IMP_CONTAINER_HAS_HDF5
309 IMPCONTAINER_SHOW_WARNINGS = _IMP_rmf.IMPCONTAINER_SHOW_WARNINGS
310 import IMP.container
311 IMP_ATOM_HAS_IMP_BASE = _IMP_rmf.IMP_ATOM_HAS_IMP_BASE
312 IMP_ATOM_HAS_IMP_CGAL = _IMP_rmf.IMP_ATOM_HAS_IMP_CGAL
313 IMP_ATOM_HAS_IMP_KERNEL = _IMP_rmf.IMP_ATOM_HAS_IMP_KERNEL
314 IMP_ATOM_HAS_IMP_SCORE_FUNCTOR = _IMP_rmf.IMP_ATOM_HAS_IMP_SCORE_FUNCTOR
315 IMP_ATOM_HAS_BOOST_PROGRAMOPTIONS = _IMP_rmf.IMP_ATOM_HAS_BOOST_PROGRAMOPTIONS
316 IMP_ATOM_HAS_BOOST_RANDOM = _IMP_rmf.IMP_ATOM_HAS_BOOST_RANDOM
317 IMP_ATOM_HAS_BOOST_REGEX = _IMP_rmf.IMP_ATOM_HAS_BOOST_REGEX
318 IMP_ATOM_HAS_BOOST_SYSTEM = _IMP_rmf.IMP_ATOM_HAS_BOOST_SYSTEM
319 IMP_ATOM_HAS_CGAL = _IMP_rmf.IMP_ATOM_HAS_CGAL
320 IMP_ATOM_HAS_HDF5 = _IMP_rmf.IMP_ATOM_HAS_HDF5
321 IMPATOM_SHOW_WARNINGS = _IMP_rmf.IMPATOM_SHOW_WARNINGS
322 IMP_ATOM_TYPE_INDEX = _IMP_rmf.IMP_ATOM_TYPE_INDEX
323 IMP_RESIDUE_TYPE_INDEX = _IMP_rmf.IMP_RESIDUE_TYPE_INDEX
324 IMP_HIERARCHY_TYPE_INDEX = _IMP_rmf.IMP_HIERARCHY_TYPE_INDEX
325 import IMP.atom
326 IMP_RMF_HAS_IMP_BASE = _IMP_rmf.IMP_RMF_HAS_IMP_BASE
327 IMP_RMF_HAS_IMP_CGAL = _IMP_rmf.IMP_RMF_HAS_IMP_CGAL
328 IMP_RMF_HAS_IMP_SCORE_FUNCTOR = _IMP_rmf.IMP_RMF_HAS_IMP_SCORE_FUNCTOR
329 IMP_RMF_HAS_BOOST_FILESYSTEM = _IMP_rmf.IMP_RMF_HAS_BOOST_FILESYSTEM
330 IMP_RMF_HAS_BOOST_PROGRAMOPTIONS = _IMP_rmf.IMP_RMF_HAS_BOOST_PROGRAMOPTIONS
331 IMP_RMF_HAS_BOOST_RANDOM = _IMP_rmf.IMP_RMF_HAS_BOOST_RANDOM
332 IMP_RMF_HAS_BOOST_REGEX = _IMP_rmf.IMP_RMF_HAS_BOOST_REGEX
333 IMP_RMF_HAS_BOOST_SYSTEM = _IMP_rmf.IMP_RMF_HAS_BOOST_SYSTEM
334 IMP_RMF_HAS_CGAL = _IMP_rmf.IMP_RMF_HAS_CGAL
335 IMP_RMF_HAS_HDF5 = _IMP_rmf.IMP_RMF_HAS_HDF5
336 IMPRMF_SHOW_WARNINGS = _IMP_rmf.IMPRMF_SHOW_WARNINGS
337 import RMF
338 _object_types.append("SaveOptimizerState")
339 
340 
341 def _object_cast_to_SaveOptimizerState(*args):
342  """_object_cast_to_SaveOptimizerState(Object o) -> SaveOptimizerState"""
343  return _IMP_rmf._object_cast_to_SaveOptimizerState(*args)
344 _object_types.append("LoadLink")
345 
346 
347 def _object_cast_to_LoadLink(*args):
348  """_object_cast_to_LoadLink(Object o) -> LoadLink"""
349  return _IMP_rmf._object_cast_to_LoadLink(*args)
350 _object_types.append("SaveLink")
351 
352 
353 def _object_cast_to_SaveLink(*args):
354  """_object_cast_to_SaveLink(Object o) -> SaveLink"""
355  return _IMP_rmf._object_cast_to_SaveLink(*args)
356 _object_types.append("HierarchySaveLink")
357 
358 
359 def _object_cast_to_HierarchySaveLink(*args):
360  """_object_cast_to_HierarchySaveLink(Object o) -> HierarchySaveLink"""
361  return _IMP_rmf._object_cast_to_HierarchySaveLink(*args)
362 _object_types.append("HierarchyLoadLink")
363 
364 
365 def _object_cast_to_HierarchyLoadLink(*args):
366  """_object_cast_to_HierarchyLoadLink(Object o) -> HierarchyLoadLink"""
367  return _IMP_rmf._object_cast_to_HierarchyLoadLink(*args)
368 class LoadLink(IMP.base.Object):
369  """Proxy of C++ IMP::rmf::LoadLink class"""
370  __swig_setmethods__ = {}
371  for _s in [IMP.base.Object]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
372  __setattr__ = lambda self, name, value: _swig_setattr(self, LoadLink, name, value)
373  __swig_getmethods__ = {}
374  for _s in [IMP.base.Object]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
375  __getattr__ = lambda self, name: _swig_getattr(self, LoadLink, name)
376  def do_load(self, *args):
377  """do_load(LoadLink self, FileConstHandle fh)"""
378  return _IMP_rmf.LoadLink_do_load(self, *args)
379 
380  def __init__(self, *args):
381  """__init__(IMP::rmf::LoadLink self, std::string name) -> LoadLink"""
382  if self.__class__ == LoadLink:
383  _self = None
384  else:
385  _self = self
386  this = _IMP_rmf.new_LoadLink(_self, *args)
387  try: self.this.append(this)
388  except: self.this = this
389  if self.__class__ != LoadLink:
390  import IMP.base
391  IMP.base._director_objects.register(self)
392 
393 
394 
395  def load(self, *args):
396  """load(LoadLink self, FileConstHandle fh)"""
397  return _IMP_rmf.LoadLink_load(self, *args)
398 
399  __swig_destroy__ = _IMP_rmf.delete_LoadLink
400  __del__ = lambda self : None;
401  def __str__(self):
402  """__str__(LoadLink self) -> std::string"""
403  return _IMP_rmf.LoadLink___str__(self)
404 
405  def __repr__(self):
406  """__repr__(LoadLink self) -> std::string"""
407  return _IMP_rmf.LoadLink___repr__(self)
408 
409  def get_from(o):
410  return _object_cast_to_LoadLink(o)
411  get_from = staticmethod(get_from)
412 
413  def get_type_name(self):
414  return self.__class__.__name__
415  def do_show(self, out):
416  pass
417  def get_version_info(self):
418  if"IMP::rmf" == "IMP":
419  return VersionInfo("python", "0")
420  else:
421  return IMP.VersionInfo("python", "0")
422  def get_from(o):
423  return _object_cast_to_LoadLink(o)
424  get_from = staticmethod(get_from)
425 
426  def __disown__(self):
427  self.this.disown()
428  _IMP_rmf.disown_LoadLink(self)
429  return weakref_proxy(self)
430  def do_destroy(self):
431  """do_destroy(LoadLink self)"""
432  return _IMP_rmf.LoadLink_do_destroy(self)
433 
434 LoadLink_swigregister = _IMP_rmf.LoadLink_swigregister
435 LoadLink_swigregister(LoadLink)
436 
437 class SaveLink(IMP.base.Object):
438  """Proxy of C++ IMP::rmf::SaveLink class"""
439  __swig_setmethods__ = {}
440  for _s in [IMP.base.Object]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
441  __setattr__ = lambda self, name, value: _swig_setattr(self, SaveLink, name, value)
442  __swig_getmethods__ = {}
443  for _s in [IMP.base.Object]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
444  __getattr__ = lambda self, name: _swig_getattr(self, SaveLink, name)
445  def do_save(self, *args):
446  """do_save(SaveLink self, FileHandle hf)"""
447  return _IMP_rmf.SaveLink_do_save(self, *args)
448 
449  def __init__(self, *args):
450  """__init__(IMP::rmf::SaveLink self, std::string name) -> SaveLink"""
451  if self.__class__ == SaveLink:
452  _self = None
453  else:
454  _self = self
455  this = _IMP_rmf.new_SaveLink(_self, *args)
456  try: self.this.append(this)
457  except: self.this = this
458  if self.__class__ != SaveLink:
459  import IMP.base
460  IMP.base._director_objects.register(self)
461 
462 
463 
464  def save(self, *args):
465  """save(SaveLink self, FileHandle fh)"""
466  return _IMP_rmf.SaveLink_save(self, *args)
467 
468  __swig_destroy__ = _IMP_rmf.delete_SaveLink
469  __del__ = lambda self : None;
470  def __str__(self):
471  """__str__(SaveLink self) -> std::string"""
472  return _IMP_rmf.SaveLink___str__(self)
473 
474  def __repr__(self):
475  """__repr__(SaveLink self) -> std::string"""
476  return _IMP_rmf.SaveLink___repr__(self)
477 
478  def get_from(o):
479  return _object_cast_to_SaveLink(o)
480  get_from = staticmethod(get_from)
481 
482  def get_type_name(self):
483  return self.__class__.__name__
484  def do_show(self, out):
485  pass
486  def get_version_info(self):
487  if"IMP::rmf" == "IMP":
488  return VersionInfo("python", "0")
489  else:
490  return IMP.VersionInfo("python", "0")
491  def get_from(o):
492  return _object_cast_to_SaveLink(o)
493  get_from = staticmethod(get_from)
494 
495  def __disown__(self):
496  self.this.disown()
497  _IMP_rmf.disown_SaveLink(self)
498  return weakref_proxy(self)
499  def do_destroy(self):
500  """do_destroy(SaveLink self)"""
501  return _IMP_rmf.SaveLink_do_destroy(self)
502 
503 SaveLink_swigregister = _IMP_rmf.SaveLink_swigregister
504 SaveLink_swigregister(SaveLink)
505 
506 
507 def add_hierarchies(*args):
508  """
509  add_hierarchies(FileHandle fh, IMP::atom::Hierarchies const & hs)
510  add_hierarchies(NodeHandle fh, IMP::atom::Hierarchies const & hs)
511  """
512  return _IMP_rmf.add_hierarchies(*args)
513 
514 def add_hierarchy(*args):
515  """add_hierarchy(FileHandle fh, Hierarchy hs)"""
516  return _IMP_rmf.add_hierarchy(*args)
517 
518 def create_hierarchies(*args):
519  """create_hierarchies(FileConstHandle fh, Model m) -> IMP::atom::Hierarchies"""
520  return _IMP_rmf.create_hierarchies(*args)
521 
522 def link_hierarchies(*args):
523  """link_hierarchies(FileConstHandle fh, IMP::atom::Hierarchies const & hs)"""
524  return _IMP_rmf.link_hierarchies(*args)
525 
526 def add_restraints(*args):
527  """
528  add_restraints(FileHandle fh, IMP::kernel::Restraints const & hs)
529  add_restraints(NodeHandle fh, IMP::kernel::Restraints const & hs)
530  """
531  return _IMP_rmf.add_restraints(*args)
532 
533 def add_restraint(*args):
534  """add_restraint(FileHandle fh, Restraint hs)"""
535  return _IMP_rmf.add_restraint(*args)
536 
537 def create_restraints(*args):
538  """create_restraints(FileConstHandle fh, Model m) -> IMP::kernel::Restraints"""
539  return _IMP_rmf.create_restraints(*args)
540 
541 def link_restraints(*args):
542  """link_restraints(FileConstHandle fh, IMP::kernel::Restraints const & hs)"""
543  return _IMP_rmf.link_restraints(*args)
544 
545 def add_restraints_as_bonds(*args):
546  """add_restraints_as_bonds(FileHandle fh, IMP::kernel::Restraints const & rs)"""
547  return _IMP_rmf.add_restraints_as_bonds(*args)
548 
549 def set_maximum_number_of_terms(*args):
550  """set_maximum_number_of_terms(FileHandle fh, unsigned int num)"""
551  return _IMP_rmf.set_maximum_number_of_terms(*args)
552 
553 def add_particles(*args):
554  """
555  add_particles(FileHandle fh, IMP::kernel::ParticlesTemp const & hs)
556  add_particles(NodeHandle fh, IMP::kernel::ParticlesTemp const & hs)
557  """
558  return _IMP_rmf.add_particles(*args)
559 
560 def add_particle(*args):
561  """add_particle(FileHandle fh, Particle hs)"""
562  return _IMP_rmf.add_particle(*args)
563 
564 def create_particles(*args):
565  """create_particles(FileConstHandle fh, Model m) -> IMP::kernel::ParticlesTemp"""
566  return _IMP_rmf.create_particles(*args)
567 
568 def link_particles(*args):
569  """link_particles(FileConstHandle fh, IMP::kernel::ParticlesTemp const & hs)"""
570  return _IMP_rmf.link_particles(*args)
571 
572 def add_geometries(*args):
573  """
574  add_geometries(FileHandle file, IMP::display::GeometriesTemp const & r)
575  add_geometries(NodeHandle parent, IMP::display::GeometriesTemp const & r)
576  """
577  return _IMP_rmf.add_geometries(*args)
578 
579 def add_static_geometries(*args):
580  """add_static_geometries(FileHandle parent, IMP::display::GeometriesTemp const & r)"""
581  return _IMP_rmf.add_static_geometries(*args)
582 
583 def add_geometry(*args):
584  """add_geometry(FileHandle parent, Geometry r)"""
585  return _IMP_rmf.add_geometry(*args)
586 
587 def create_geometries(*args):
588  """create_geometries(FileConstHandle parent) -> IMP::display::Geometries"""
589  return _IMP_rmf.create_geometries(*args)
590 
591 def link_geometries(*args):
592  """link_geometries(FileConstHandle parent, IMP::display::GeometriesTemp const & r)"""
593  return _IMP_rmf.link_geometries(*args)
594 
595 def set_association(*args):
596  """
597  set_association(NodeConstHandle nh, Object o, bool overwrite=False)
598  set_association(NodeConstHandle nh, Object o)
599  """
600  return _IMP_rmf.set_association(*args)
601 
602 def get_node_from_association(*args):
603  """
604  get_node_from_association(FileConstHandle nh, Object oi) -> NodeConstHandle
605  get_node_from_association(FileHandle nh, Object oi) -> NodeHandle
606  """
607  return _IMP_rmf.get_node_from_association(*args)
608 
609 def get_has_associated_node(*args):
610  """get_has_associated_node(FileConstHandle nh, Object oi) -> bool"""
611  return _IMP_rmf.get_has_associated_node(*args)
612 class SaveOptimizerState(IMP.kernel.OptimizerState):
613  """Proxy of C++ IMP::rmf::SaveOptimizerState class"""
614  __swig_setmethods__ = {}
615  for _s in [IMP.kernel.OptimizerState]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
616  __setattr__ = lambda self, name, value: _swig_setattr(self, SaveOptimizerState, name, value)
617  __swig_getmethods__ = {}
618  for _s in [IMP.kernel.OptimizerState]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
619  __getattr__ = lambda self, name: _swig_getattr(self, SaveOptimizerState, name)
620  def __init__(self, *args):
621  """__init__(IMP::rmf::SaveOptimizerState self, Model m, FileHandle fh) -> SaveOptimizerState"""
622  this = _IMP_rmf.new_SaveOptimizerState(*args)
623  try: self.this.append(this)
624  except: self.this = this
625  def remove_hierarchy(self, *args):
626  """remove_hierarchy(SaveOptimizerState self, Particle d)"""
627  return _IMP_rmf.SaveOptimizerState_remove_hierarchy(self, *args)
628 
629  def remove_hierarchies(self, *args):
630  """remove_hierarchies(SaveOptimizerState self, IMP::kernel::Particles const & d)"""
631  return _IMP_rmf.SaveOptimizerState_remove_hierarchies(self, *args)
632 
633  def set_hierarchies(self, *args):
634  """set_hierarchies(SaveOptimizerState self, IMP::kernel::Particles const & ps)"""
635  return _IMP_rmf.SaveOptimizerState_set_hierarchies(self, *args)
636 
637  def set_hierarchies_order(self, *args):
638  """set_hierarchies_order(SaveOptimizerState self, IMP::kernel::Particles const & objs)"""
639  return _IMP_rmf.SaveOptimizerState_set_hierarchies_order(self, *args)
640 
641  def add_hierarchy(self, *args):
642  """add_hierarchy(SaveOptimizerState self, Particle obj) -> unsigned int"""
643  return _IMP_rmf.SaveOptimizerState_add_hierarchy(self, *args)
644 
645  def add_hierarchies(self, *args):
646  """add_hierarchies(SaveOptimizerState self, IMP::kernel::Particles const & objs)"""
647  return _IMP_rmf.SaveOptimizerState_add_hierarchies(self, *args)
648 
649  def clear_hierarchies(self):
650  """clear_hierarchies(SaveOptimizerState self)"""
651  return _IMP_rmf.SaveOptimizerState_clear_hierarchies(self)
652 
653  def get_number_of_hierarchies(self):
654  """get_number_of_hierarchies(SaveOptimizerState self) -> unsigned int"""
655  return _IMP_rmf.SaveOptimizerState_get_number_of_hierarchies(self)
656 
657  def get_has_hierarchies(self):
658  """get_has_hierarchies(SaveOptimizerState self) -> bool"""
659  return _IMP_rmf.SaveOptimizerState_get_has_hierarchies(self)
660 
661  def get_hierarchy(self, *args):
662  """get_hierarchy(SaveOptimizerState self, unsigned int i) -> Particle"""
663  return _IMP_rmf.SaveOptimizerState_get_hierarchy(self, *args)
664 
665  def get_hierarchies(self):
666  """get_hierarchies(SaveOptimizerState self) -> IMP::kernel::Particles"""
667  return _IMP_rmf.SaveOptimizerState_get_hierarchies(self)
668 
669  def reserve_hierarchies(self, *args):
670  """reserve_hierarchies(SaveOptimizerState self, unsigned int sz)"""
671  return _IMP_rmf.SaveOptimizerState_reserve_hierarchies(self, *args)
672 
673  def remove_restraint(self, *args):
674  """remove_restraint(SaveOptimizerState self, Restraint d)"""
675  return _IMP_rmf.SaveOptimizerState_remove_restraint(self, *args)
676 
677  def remove_restraints(self, *args):
678  """remove_restraints(SaveOptimizerState self, IMP::kernel::Restraints const & d)"""
679  return _IMP_rmf.SaveOptimizerState_remove_restraints(self, *args)
680 
681  def set_restraints(self, *args):
682  """set_restraints(SaveOptimizerState self, IMP::kernel::Restraints const & ps)"""
683  return _IMP_rmf.SaveOptimizerState_set_restraints(self, *args)
684 
685  def set_restraints_order(self, *args):
686  """set_restraints_order(SaveOptimizerState self, IMP::kernel::Restraints const & objs)"""
687  return _IMP_rmf.SaveOptimizerState_set_restraints_order(self, *args)
688 
689  def add_restraint(self, *args):
690  """add_restraint(SaveOptimizerState self, Restraint obj) -> unsigned int"""
691  return _IMP_rmf.SaveOptimizerState_add_restraint(self, *args)
692 
693  def add_restraints(self, *args):
694  """add_restraints(SaveOptimizerState self, IMP::kernel::Restraints const & objs)"""
695  return _IMP_rmf.SaveOptimizerState_add_restraints(self, *args)
696 
697  def clear_restraints(self):
698  """clear_restraints(SaveOptimizerState self)"""
699  return _IMP_rmf.SaveOptimizerState_clear_restraints(self)
700 
701  def get_number_of_restraints(self):
702  """get_number_of_restraints(SaveOptimizerState self) -> unsigned int"""
703  return _IMP_rmf.SaveOptimizerState_get_number_of_restraints(self)
704 
705  def get_has_restraints(self):
706  """get_has_restraints(SaveOptimizerState self) -> bool"""
707  return _IMP_rmf.SaveOptimizerState_get_has_restraints(self)
708 
709  def get_restraint(self, *args):
710  """get_restraint(SaveOptimizerState self, unsigned int i) -> Restraint"""
711  return _IMP_rmf.SaveOptimizerState_get_restraint(self, *args)
712 
713  def get_restraints(self):
714  """get_restraints(SaveOptimizerState self) -> IMP::kernel::Restraints"""
715  return _IMP_rmf.SaveOptimizerState_get_restraints(self)
716 
717  def reserve_restraints(self, *args):
718  """reserve_restraints(SaveOptimizerState self, unsigned int sz)"""
719  return _IMP_rmf.SaveOptimizerState_reserve_restraints(self, *args)
720 
721  def remove_particle(self, *args):
722  """remove_particle(SaveOptimizerState self, Particle d)"""
723  return _IMP_rmf.SaveOptimizerState_remove_particle(self, *args)
724 
725  def remove_particles(self, *args):
726  """remove_particles(SaveOptimizerState self, IMP::kernel::Particles const & d)"""
727  return _IMP_rmf.SaveOptimizerState_remove_particles(self, *args)
728 
729  def set_particles(self, *args):
730  """set_particles(SaveOptimizerState self, IMP::kernel::Particles const & ps)"""
731  return _IMP_rmf.SaveOptimizerState_set_particles(self, *args)
732 
733  def set_particles_order(self, *args):
734  """set_particles_order(SaveOptimizerState self, IMP::kernel::Particles const & objs)"""
735  return _IMP_rmf.SaveOptimizerState_set_particles_order(self, *args)
736 
737  def add_particle(self, *args):
738  """add_particle(SaveOptimizerState self, Particle obj) -> unsigned int"""
739  return _IMP_rmf.SaveOptimizerState_add_particle(self, *args)
740 
741  def add_particles(self, *args):
742  """add_particles(SaveOptimizerState self, IMP::kernel::Particles const & objs)"""
743  return _IMP_rmf.SaveOptimizerState_add_particles(self, *args)
744 
745  def clear_particles(self):
746  """clear_particles(SaveOptimizerState self)"""
747  return _IMP_rmf.SaveOptimizerState_clear_particles(self)
748 
749  def get_number_of_particles(self):
750  """get_number_of_particles(SaveOptimizerState self) -> unsigned int"""
751  return _IMP_rmf.SaveOptimizerState_get_number_of_particles(self)
752 
753  def get_has_particles(self):
754  """get_has_particles(SaveOptimizerState self) -> bool"""
755  return _IMP_rmf.SaveOptimizerState_get_has_particles(self)
756 
757  def get_particle(self, *args):
758  """get_particle(SaveOptimizerState self, unsigned int i) -> Particle"""
759  return _IMP_rmf.SaveOptimizerState_get_particle(self, *args)
760 
761  def get_particles(self):
762  """get_particles(SaveOptimizerState self) -> IMP::kernel::Particles"""
763  return _IMP_rmf.SaveOptimizerState_get_particles(self)
764 
765  def reserve_particles(self, *args):
766  """reserve_particles(SaveOptimizerState self, unsigned int sz)"""
767  return _IMP_rmf.SaveOptimizerState_reserve_particles(self, *args)
768 
769  def remove_geometry(self, *args):
770  """remove_geometry(SaveOptimizerState self, Geometry d)"""
771  return _IMP_rmf.SaveOptimizerState_remove_geometry(self, *args)
772 
773  def remove_geometries(self, *args):
774  """remove_geometries(SaveOptimizerState self, IMP::display::Geometries const & d)"""
775  return _IMP_rmf.SaveOptimizerState_remove_geometries(self, *args)
776 
777  def set_geometries(self, *args):
778  """set_geometries(SaveOptimizerState self, IMP::display::Geometries const & ps)"""
779  return _IMP_rmf.SaveOptimizerState_set_geometries(self, *args)
780 
781  def set_geometries_order(self, *args):
782  """set_geometries_order(SaveOptimizerState self, IMP::display::Geometries const & objs)"""
783  return _IMP_rmf.SaveOptimizerState_set_geometries_order(self, *args)
784 
785  def add_geometry(self, *args):
786  """add_geometry(SaveOptimizerState self, Geometry obj) -> unsigned int"""
787  return _IMP_rmf.SaveOptimizerState_add_geometry(self, *args)
788 
789  def add_geometries(self, *args):
790  """add_geometries(SaveOptimizerState self, IMP::display::Geometries const & objs)"""
791  return _IMP_rmf.SaveOptimizerState_add_geometries(self, *args)
792 
793  def clear_geometries(self):
794  """clear_geometries(SaveOptimizerState self)"""
795  return _IMP_rmf.SaveOptimizerState_clear_geometries(self)
796 
797  def get_number_of_geometries(self):
798  """get_number_of_geometries(SaveOptimizerState self) -> unsigned int"""
799  return _IMP_rmf.SaveOptimizerState_get_number_of_geometries(self)
800 
801  def get_has_geometries(self):
802  """get_has_geometries(SaveOptimizerState self) -> bool"""
803  return _IMP_rmf.SaveOptimizerState_get_has_geometries(self)
804 
805  def get_geometry(self, *args):
806  """get_geometry(SaveOptimizerState self, unsigned int i) -> Geometry"""
807  return _IMP_rmf.SaveOptimizerState_get_geometry(self, *args)
808 
809  def get_geometries(self):
810  """get_geometries(SaveOptimizerState self) -> IMP::display::Geometries"""
811  return _IMP_rmf.SaveOptimizerState_get_geometries(self)
812 
813  def reserve_geometries(self, *args):
814  """reserve_geometries(SaveOptimizerState self, unsigned int sz)"""
815  return _IMP_rmf.SaveOptimizerState_reserve_geometries(self, *args)
816 
817  def set_simulator(self, *args):
818  """set_simulator(SaveOptimizerState self, Simulator sim)"""
819  return _IMP_rmf.SaveOptimizerState_set_simulator(self, *args)
820 
821  def update_always(self, *args):
822  """
823  update_always(SaveOptimizerState self, std::string name)
824  update_always(SaveOptimizerState self)
825  """
826  return _IMP_rmf.SaveOptimizerState_update_always(self, *args)
827 
828  def do_update(self, *args):
829  """do_update(SaveOptimizerState self, unsigned int call_num)"""
830  return _IMP_rmf.SaveOptimizerState_do_update(self, *args)
831 
832  def get_version_info(self):
833  """get_version_info(SaveOptimizerState self) -> VersionInfo"""
834  return _IMP_rmf.SaveOptimizerState_get_version_info(self)
835 
836  def __str__(self):
837  """__str__(SaveOptimizerState self) -> std::string"""
838  return _IMP_rmf.SaveOptimizerState___str__(self)
839 
840  def __repr__(self):
841  """__repr__(SaveOptimizerState self) -> std::string"""
842  return _IMP_rmf.SaveOptimizerState___repr__(self)
843 
844  def get_from(o):
845  return _object_cast_to_SaveOptimizerState(o)
846  get_from = staticmethod(get_from)
847 
848 SaveOptimizerState_swigregister = _IMP_rmf.SaveOptimizerState_swigregister
849 SaveOptimizerState_swigregister(SaveOptimizerState)
850 
851 
852 def load_frame(*args):
853  """
854  load_frame(FileConstHandle file, FrameID frame)
855  load_frame(FileConstHandle file, unsigned int frame)
856  """
857  return _IMP_rmf.load_frame(*args)
858 
859 def save_frame(*args):
860  """
861  save_frame(FileHandle file, std::string name="") -> FrameID
862  save_frame(FileHandle file) -> FrameID
863  save_frame(FileHandle file, unsigned int arg2, std::string name="")
864  save_frame(FileHandle file, unsigned int arg2)
865  """
866  return _IMP_rmf.save_frame(*args)
867 class _ParticleSaveLink(SaveLink):
868  """Proxy of C++ IMP::rmf::SimpleSaveLink<(IMP::kernel::Particle)> class"""
869  __swig_setmethods__ = {}
870  for _s in [SaveLink]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
871  __setattr__ = lambda self, name, value: _swig_setattr(self, _ParticleSaveLink, name, value)
872  __swig_getmethods__ = {}
873  for _s in [SaveLink]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
874  __getattr__ = lambda self, name: _swig_getattr(self, _ParticleSaveLink, name)
875  def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined - class is abstract")
876  __repr__ = _swig_repr
877  def add(self, *args):
878  """add(_ParticleSaveLink self, NodeHandle parent, IMP::base::Vector< IMP::base::Pointer< IMP::kernel::Particle > > const & os)"""
879  return _IMP_rmf._ParticleSaveLink_add(self, *args)
880 
881  __swig_destroy__ = _IMP_rmf.delete__ParticleSaveLink
882  __del__ = lambda self : None;
883 _ParticleSaveLink_swigregister = _IMP_rmf._ParticleSaveLink_swigregister
884 _ParticleSaveLink_swigregister(_ParticleSaveLink)
885 
886 class _ParticleLoadLink(LoadLink):
887  """Proxy of C++ IMP::rmf::SimpleLoadLink<(IMP::kernel::Particle)> class"""
888  __swig_setmethods__ = {}
889  for _s in [LoadLink]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
890  __setattr__ = lambda self, name, value: _swig_setattr(self, _ParticleLoadLink, name, value)
891  __swig_getmethods__ = {}
892  for _s in [LoadLink]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
893  __getattr__ = lambda self, name: _swig_getattr(self, _ParticleLoadLink, name)
894  def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined - class is abstract")
895  __repr__ = _swig_repr
896  def create(self, *args):
897  """
898  create(_ParticleLoadLink self, NodeConstHandle rt) -> IMP::base::Vector< IMP::base::Pointer< IMP::kernel::Particle > >
899  create(_ParticleLoadLink self, NodeConstHandle rt, Model m) -> IMP::base::Vector< IMP::base::Pointer< IMP::kernel::Particle > >
900  """
901  return _IMP_rmf._ParticleLoadLink_create(self, *args)
902 
903  def link(self, *args):
904  """link(_ParticleLoadLink self, NodeConstHandle rt, IMP::base::Vector< IMP::base::Pointer< IMP::kernel::Particle > > const & ps)"""
905  return _IMP_rmf._ParticleLoadLink_link(self, *args)
906 
907  __swig_destroy__ = _IMP_rmf.delete__ParticleLoadLink
908  __del__ = lambda self : None;
909 _ParticleLoadLink_swigregister = _IMP_rmf._ParticleLoadLink_swigregister
910 _ParticleLoadLink_swigregister(_ParticleLoadLink)
911 
912 class HierarchyLoadLink(_ParticleLoadLink):
913  """Proxy of C++ IMP::rmf::HierarchyLoadLink class"""
914  __swig_setmethods__ = {}
915  for _s in [_ParticleLoadLink]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
916  __setattr__ = lambda self, name, value: _swig_setattr(self, HierarchyLoadLink, name, value)
917  __swig_getmethods__ = {}
918  for _s in [_ParticleLoadLink]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
919  __getattr__ = lambda self, name: _swig_getattr(self, HierarchyLoadLink, name)
920  def __init__(self, *args):
921  """__init__(IMP::rmf::HierarchyLoadLink self, FileConstHandle fh) -> HierarchyLoadLink"""
922  this = _IMP_rmf.new_HierarchyLoadLink(*args)
923  try: self.this.append(this)
924  except: self.this = this
925  def get_name():
926  """get_name() -> char const *"""
927  return _IMP_rmf.HierarchyLoadLink_get_name()
928 
929  if _newclass:get_name = staticmethod(get_name)
930  __swig_getmethods__["get_name"] = lambda x: get_name
931  def get_version_info(self):
932  """get_version_info(HierarchyLoadLink self) -> VersionInfo"""
933  return _IMP_rmf.HierarchyLoadLink_get_version_info(self)
934 
935  def __str__(self):
936  """__str__(HierarchyLoadLink self) -> std::string"""
937  return _IMP_rmf.HierarchyLoadLink___str__(self)
938 
939  def __repr__(self):
940  """__repr__(HierarchyLoadLink self) -> std::string"""
941  return _IMP_rmf.HierarchyLoadLink___repr__(self)
942 
943  def get_from(o):
944  return _object_cast_to_HierarchyLoadLink(o)
945  get_from = staticmethod(get_from)
946 
947 HierarchyLoadLink_swigregister = _IMP_rmf.HierarchyLoadLink_swigregister
948 HierarchyLoadLink_swigregister(HierarchyLoadLink)
949 
950 def HierarchyLoadLink_get_name():
951  """HierarchyLoadLink_get_name() -> char const *"""
952  return _IMP_rmf.HierarchyLoadLink_get_name()
953 
954 class HierarchySaveLink(_ParticleSaveLink):
955  """Proxy of C++ IMP::rmf::HierarchySaveLink class"""
956  __swig_setmethods__ = {}
957  for _s in [_ParticleSaveLink]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
958  __setattr__ = lambda self, name, value: _swig_setattr(self, HierarchySaveLink, name, value)
959  __swig_getmethods__ = {}
960  for _s in [_ParticleSaveLink]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
961  __getattr__ = lambda self, name: _swig_getattr(self, HierarchySaveLink, name)
962  def __init__(self, *args):
963  """__init__(IMP::rmf::HierarchySaveLink self, FileHandle fh) -> HierarchySaveLink"""
964  this = _IMP_rmf.new_HierarchySaveLink(*args)
965  try: self.this.append(this)
966  except: self.this = this
967  def get_name():
968  """get_name() -> char const *"""
969  return _IMP_rmf.HierarchySaveLink_get_name()
970 
971  if _newclass:get_name = staticmethod(get_name)
972  __swig_getmethods__["get_name"] = lambda x: get_name
973  def get_version_info(self):
974  """get_version_info(HierarchySaveLink self) -> VersionInfo"""
975  return _IMP_rmf.HierarchySaveLink_get_version_info(self)
976 
977  def __str__(self):
978  """__str__(HierarchySaveLink self) -> std::string"""
979  return _IMP_rmf.HierarchySaveLink___str__(self)
980 
981  def __repr__(self):
982  """__repr__(HierarchySaveLink self) -> std::string"""
983  return _IMP_rmf.HierarchySaveLink___repr__(self)
984 
985  def get_from(o):
986  return _object_cast_to_HierarchySaveLink(o)
987  get_from = staticmethod(get_from)
988 
989 HierarchySaveLink_swigregister = _IMP_rmf.HierarchySaveLink_swigregister
990 HierarchySaveLink_swigregister(HierarchySaveLink)
991 
992 def HierarchySaveLink_get_name():
993  """HierarchySaveLink_get_name() -> char const *"""
994  return _IMP_rmf.HierarchySaveLink_get_name()
995 
996 suffixes = [".rmf", ".rmfz"]
997 
998 
999 def get_module_version():
1000  """get_module_version() -> std::string const"""
1001  return _IMP_rmf.get_module_version()
1002 
1003 def get_example_path(*args):
1004  """get_example_path(std::string fname) -> std::string"""
1005  return _IMP_rmf.get_example_path(*args)
1006 
1007 def get_data_path(*args):
1008  """get_data_path(std::string fname) -> std::string"""
1009  return _IMP_rmf.get_data_path(*args)
1010 import _version_check
1011 _version_check.check_version(get_module_version())
1012 
1013 # This file is compatible with both classic and new-style classes.
1014 
1015 
display::Geometries create_geometries(RMF::FileConstHandle parent)
atom::Hierarchies create_hierarchies(RMF::FileConstHandle fh, kernel::Model *m)
void link_particles(RMF::FileConstHandle fh, const kernel::ParticlesTemp &hs)
std::string get_data_path(std::string file_name)
Return the full path to installed data.
RMF::FrameID save_frame(RMF::FileHandle file, std::string name="")
Various classes to hold sets of particles.
kernel::Restraints create_restraints(RMF::FileConstHandle fh, kernel::Model *m)
void add_restraints(RMF::FileHandle fh, const kernel::Restraints &hs)
Shared optimizer state that is invoked upon commitment of new coordinates.
ParticlesTemp get_particles(kernel::Model *m, const ParticleIndexes &ps)
Make CGAL functionality available to IMP.
void set_check_level(CheckLevel tf)
Control runtime checks in the code.
Definition: exception.h:73
Low level functionality (logging, error handling, profiling, command line flags etc) that is used by ...
kernel::RestraintsTemp get_restraints(const Subset &s, const ParticleStatesTable *pst, const DependencyGraph &dg, kernel::RestraintSet *rs)
void add_hierarchies(RMF::FileHandle fh, const atom::Hierarchies &hs)
Composable functors to implement scores via compile-time composition.
void add_hierarchy(RMF::FileHandle fh, atom::Hierarchy hs)
kernel::ParticlesTemp create_particles(RMF::FileConstHandle fh, kernel::Model *m)
void add_particles(RMF::FileHandle fh, const kernel::ParticlesTemp &hs)
Base functionality and abstract base classes for representation, scoring and sampling.
void link_geometries(RMF::FileConstHandle parent, const display::GeometriesTemp &r)
std::string get_example_path(std::string file_name)
Return the path to installed example data for this module.
void link_restraints(RMF::FileConstHandle fh, const kernel::Restraints &hs)
void load_frame(RMF::FileConstHandle file, RMF::FrameID frame)
Common base class for heavy weight IMP objects.
Definition: Object.h:106
void set_maximum_number_of_terms(RMF::FileHandle fh, unsigned int num)
void add_restraints_as_bonds(RMF::FileHandle fh, const kernel::Restraints &rs)
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...
void link_hierarchies(RMF::FileConstHandle fh, const atom::Hierarchies &hs)
void add_static_geometries(RMF::FileHandle parent, const display::GeometriesTemp &r)
void add_geometries(RMF::FileHandle file, const display::GeometriesTemp &r)
void add_particle(RMF::FileHandle fh, kernel::Particle *hs)
Output IMP model data in various file formats.
CheckLevel get_check_level()
Get the current audit mode.
Definition: exception.h:81
Functionality for loading, creating, manipulating and scoring atomic structures.
void add_restraint(RMF::FileHandle fh, kernel::Restraint *hs)