IMP  2.1.1
The Integrative Modeling Platform
rmf/__init__.py
1 # This file was automatically generated by SWIG (http://www.swig.org).
2 # Version 2.0.11
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 IMPSCOREFUNCTOR_SHOW_WARNINGS = _IMP_rmf.IMPSCOREFUNCTOR_SHOW_WARNINGS
284 import IMP.score_functor
285 IMP_CORE_HAS_IMP_BASE = _IMP_rmf.IMP_CORE_HAS_IMP_BASE
286 IMP_CORE_HAS_IMP_CGAL = _IMP_rmf.IMP_CORE_HAS_IMP_CGAL
287 IMP_CORE_HAS_IMP_KERNEL = _IMP_rmf.IMP_CORE_HAS_IMP_KERNEL
288 IMP_CORE_HAS_BOOST_FILESYSTEM = _IMP_rmf.IMP_CORE_HAS_BOOST_FILESYSTEM
289 IMP_CORE_HAS_BOOST_PROGRAMOPTIONS = _IMP_rmf.IMP_CORE_HAS_BOOST_PROGRAMOPTIONS
290 IMP_CORE_HAS_BOOST_RANDOM = _IMP_rmf.IMP_CORE_HAS_BOOST_RANDOM
291 IMP_CORE_HAS_BOOST_SYSTEM = _IMP_rmf.IMP_CORE_HAS_BOOST_SYSTEM
292 IMP_CORE_HAS_CGAL = _IMP_rmf.IMP_CORE_HAS_CGAL
293 IMPCORE_SHOW_WARNINGS = _IMP_rmf.IMPCORE_SHOW_WARNINGS
294 import IMP.core
295 IMP_CONTAINER_HAS_IMP_ALGEBRA = _IMP_rmf.IMP_CONTAINER_HAS_IMP_ALGEBRA
296 IMP_CONTAINER_HAS_IMP_BASE = _IMP_rmf.IMP_CONTAINER_HAS_IMP_BASE
297 IMP_CONTAINER_HAS_IMP_CGAL = _IMP_rmf.IMP_CONTAINER_HAS_IMP_CGAL
298 IMP_CONTAINER_HAS_IMP_DISPLAY = _IMP_rmf.IMP_CONTAINER_HAS_IMP_DISPLAY
299 IMP_CONTAINER_HAS_IMP_KERNEL = _IMP_rmf.IMP_CONTAINER_HAS_IMP_KERNEL
300 IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR = _IMP_rmf.IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR
301 IMP_CONTAINER_HAS_BOOST_FILESYSTEM = _IMP_rmf.IMP_CONTAINER_HAS_BOOST_FILESYSTEM
302 IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS = _IMP_rmf.IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS
303 IMP_CONTAINER_HAS_BOOST_RANDOM = _IMP_rmf.IMP_CONTAINER_HAS_BOOST_RANDOM
304 IMP_CONTAINER_HAS_BOOST_SYSTEM = _IMP_rmf.IMP_CONTAINER_HAS_BOOST_SYSTEM
305 IMP_CONTAINER_HAS_CGAL = _IMP_rmf.IMP_CONTAINER_HAS_CGAL
306 IMPCONTAINER_SHOW_WARNINGS = _IMP_rmf.IMPCONTAINER_SHOW_WARNINGS
307 import IMP.container
308 IMP_ATOM_HAS_IMP_BASE = _IMP_rmf.IMP_ATOM_HAS_IMP_BASE
309 IMP_ATOM_HAS_IMP_CGAL = _IMP_rmf.IMP_ATOM_HAS_IMP_CGAL
310 IMP_ATOM_HAS_IMP_KERNEL = _IMP_rmf.IMP_ATOM_HAS_IMP_KERNEL
311 IMP_ATOM_HAS_IMP_SCORE_FUNCTOR = _IMP_rmf.IMP_ATOM_HAS_IMP_SCORE_FUNCTOR
312 IMP_ATOM_HAS_BOOST_PROGRAMOPTIONS = _IMP_rmf.IMP_ATOM_HAS_BOOST_PROGRAMOPTIONS
313 IMP_ATOM_HAS_BOOST_RANDOM = _IMP_rmf.IMP_ATOM_HAS_BOOST_RANDOM
314 IMP_ATOM_HAS_BOOST_REGEX = _IMP_rmf.IMP_ATOM_HAS_BOOST_REGEX
315 IMP_ATOM_HAS_BOOST_SYSTEM = _IMP_rmf.IMP_ATOM_HAS_BOOST_SYSTEM
316 IMP_ATOM_HAS_CGAL = _IMP_rmf.IMP_ATOM_HAS_CGAL
317 IMPATOM_SHOW_WARNINGS = _IMP_rmf.IMPATOM_SHOW_WARNINGS
318 IMP_ATOM_TYPE_INDEX = _IMP_rmf.IMP_ATOM_TYPE_INDEX
319 IMP_RESIDUE_TYPE_INDEX = _IMP_rmf.IMP_RESIDUE_TYPE_INDEX
320 IMP_HIERARCHY_TYPE_INDEX = _IMP_rmf.IMP_HIERARCHY_TYPE_INDEX
321 import IMP.atom
322 IMP_RMF_HAS_IMP_BASE = _IMP_rmf.IMP_RMF_HAS_IMP_BASE
323 IMP_RMF_HAS_IMP_CGAL = _IMP_rmf.IMP_RMF_HAS_IMP_CGAL
324 IMP_RMF_HAS_IMP_SCORE_FUNCTOR = _IMP_rmf.IMP_RMF_HAS_IMP_SCORE_FUNCTOR
325 IMP_RMF_HAS_BOOST_FILESYSTEM = _IMP_rmf.IMP_RMF_HAS_BOOST_FILESYSTEM
326 IMP_RMF_HAS_BOOST_PROGRAMOPTIONS = _IMP_rmf.IMP_RMF_HAS_BOOST_PROGRAMOPTIONS
327 IMP_RMF_HAS_BOOST_RANDOM = _IMP_rmf.IMP_RMF_HAS_BOOST_RANDOM
328 IMP_RMF_HAS_BOOST_REGEX = _IMP_rmf.IMP_RMF_HAS_BOOST_REGEX
329 IMP_RMF_HAS_BOOST_SYSTEM = _IMP_rmf.IMP_RMF_HAS_BOOST_SYSTEM
330 IMP_RMF_HAS_CGAL = _IMP_rmf.IMP_RMF_HAS_CGAL
331 IMPRMF_SHOW_WARNINGS = _IMP_rmf.IMPRMF_SHOW_WARNINGS
332 import RMF
333 _object_types.append("SaveOptimizerState")
334 
335 
336 def _object_cast_to_SaveOptimizerState(*args):
337  """_object_cast_to_SaveOptimizerState(Object o) -> SaveOptimizerState"""
338  return _IMP_rmf._object_cast_to_SaveOptimizerState(*args)
339 _object_types.append("LoadLink")
340 
341 
342 def _object_cast_to_LoadLink(*args):
343  """_object_cast_to_LoadLink(Object o) -> LoadLink"""
344  return _IMP_rmf._object_cast_to_LoadLink(*args)
345 _object_types.append("SaveLink")
346 
347 
348 def _object_cast_to_SaveLink(*args):
349  """_object_cast_to_SaveLink(Object o) -> SaveLink"""
350  return _IMP_rmf._object_cast_to_SaveLink(*args)
351 _object_types.append("HierarchySaveLink")
352 
353 
354 def _object_cast_to_HierarchySaveLink(*args):
355  """_object_cast_to_HierarchySaveLink(Object o) -> HierarchySaveLink"""
356  return _IMP_rmf._object_cast_to_HierarchySaveLink(*args)
357 _object_types.append("HierarchyLoadLink")
358 
359 
360 def _object_cast_to_HierarchyLoadLink(*args):
361  """_object_cast_to_HierarchyLoadLink(Object o) -> HierarchyLoadLink"""
362  return _IMP_rmf._object_cast_to_HierarchyLoadLink(*args)
363 class LoadLink(IMP.base.Object):
364  """Proxy of C++ IMP::rmf::LoadLink class"""
365  __swig_setmethods__ = {}
366  for _s in [IMP.base.Object]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
367  __setattr__ = lambda self, name, value: _swig_setattr(self, LoadLink, name, value)
368  __swig_getmethods__ = {}
369  for _s in [IMP.base.Object]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
370  __getattr__ = lambda self, name: _swig_getattr(self, LoadLink, name)
371  def do_load(self, *args):
372  """do_load(LoadLink self, FileConstHandle fh)"""
373  return _IMP_rmf.LoadLink_do_load(self, *args)
374 
375  def __init__(self, *args):
376  """__init__(IMP::rmf::LoadLink self, std::string name) -> LoadLink"""
377  if self.__class__ == LoadLink:
378  _self = None
379  else:
380  _self = self
381  this = _IMP_rmf.new_LoadLink(_self, *args)
382  try: self.this.append(this)
383  except: self.this = this
384  if self.__class__ != LoadLink:
385  import IMP.base
386  IMP.base._director_objects.register(self)
387 
388 
389 
390  def load(self, *args):
391  """load(LoadLink self, FileConstHandle fh)"""
392  return _IMP_rmf.LoadLink_load(self, *args)
393 
394  __swig_destroy__ = _IMP_rmf.delete_LoadLink
395  __del__ = lambda self : None;
396  def __str__(self):
397  """__str__(LoadLink self) -> std::string"""
398  return _IMP_rmf.LoadLink___str__(self)
399 
400  def __repr__(self):
401  """__repr__(LoadLink self) -> std::string"""
402  return _IMP_rmf.LoadLink___repr__(self)
403 
404  def get_from(o):
405  return _object_cast_to_LoadLink(o)
406  get_from = staticmethod(get_from)
407 
408  def get_type_name(self):
409  return self.__class__.__name__
410  def do_show(self, out):
411  pass
412  def get_version_info(self):
413  if"IMP::rmf" == "IMP":
414  return VersionInfo("python", "0")
415  else:
416  return IMP.VersionInfo("python", "0")
417  def get_from(o):
418  return _object_cast_to_LoadLink(o)
419  get_from = staticmethod(get_from)
420 
421  def __disown__(self):
422  self.this.disown()
423  _IMP_rmf.disown_LoadLink(self)
424  return weakref_proxy(self)
425 LoadLink_swigregister = _IMP_rmf.LoadLink_swigregister
426 LoadLink_swigregister(LoadLink)
427 
428 class SaveLink(IMP.base.Object):
429  """Proxy of C++ IMP::rmf::SaveLink class"""
430  __swig_setmethods__ = {}
431  for _s in [IMP.base.Object]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
432  __setattr__ = lambda self, name, value: _swig_setattr(self, SaveLink, name, value)
433  __swig_getmethods__ = {}
434  for _s in [IMP.base.Object]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
435  __getattr__ = lambda self, name: _swig_getattr(self, SaveLink, name)
436  def do_save(self, *args):
437  """do_save(SaveLink self, FileHandle hf)"""
438  return _IMP_rmf.SaveLink_do_save(self, *args)
439 
440  def __init__(self, *args):
441  """__init__(IMP::rmf::SaveLink self, std::string name) -> SaveLink"""
442  if self.__class__ == SaveLink:
443  _self = None
444  else:
445  _self = self
446  this = _IMP_rmf.new_SaveLink(_self, *args)
447  try: self.this.append(this)
448  except: self.this = this
449  if self.__class__ != SaveLink:
450  import IMP.base
451  IMP.base._director_objects.register(self)
452 
453 
454 
455  def save(self, *args):
456  """save(SaveLink self, FileHandle fh)"""
457  return _IMP_rmf.SaveLink_save(self, *args)
458 
459  __swig_destroy__ = _IMP_rmf.delete_SaveLink
460  __del__ = lambda self : None;
461  def __str__(self):
462  """__str__(SaveLink self) -> std::string"""
463  return _IMP_rmf.SaveLink___str__(self)
464 
465  def __repr__(self):
466  """__repr__(SaveLink self) -> std::string"""
467  return _IMP_rmf.SaveLink___repr__(self)
468 
469  def get_from(o):
470  return _object_cast_to_SaveLink(o)
471  get_from = staticmethod(get_from)
472 
473  def get_type_name(self):
474  return self.__class__.__name__
475  def do_show(self, out):
476  pass
477  def get_version_info(self):
478  if"IMP::rmf" == "IMP":
479  return VersionInfo("python", "0")
480  else:
481  return IMP.VersionInfo("python", "0")
482  def get_from(o):
483  return _object_cast_to_SaveLink(o)
484  get_from = staticmethod(get_from)
485 
486  def __disown__(self):
487  self.this.disown()
488  _IMP_rmf.disown_SaveLink(self)
489  return weakref_proxy(self)
490 SaveLink_swigregister = _IMP_rmf.SaveLink_swigregister
491 SaveLink_swigregister(SaveLink)
492 
493 
494 def add_hierarchies(*args):
495  """
496  add_hierarchies(FileHandle fh, IMP::atom::Hierarchies const & hs)
497  add_hierarchies(NodeHandle fh, IMP::atom::Hierarchies const & hs)
498  """
499  return _IMP_rmf.add_hierarchies(*args)
500 
501 def add_hierarchy(*args):
502  """add_hierarchy(FileHandle fh, Hierarchy hs)"""
503  return _IMP_rmf.add_hierarchy(*args)
504 
505 def create_hierarchies(*args):
506  """create_hierarchies(FileConstHandle fh, Model m) -> IMP::atom::Hierarchies"""
507  return _IMP_rmf.create_hierarchies(*args)
508 
509 def link_hierarchies(*args):
510  """link_hierarchies(FileConstHandle fh, IMP::atom::Hierarchies const & hs)"""
511  return _IMP_rmf.link_hierarchies(*args)
512 
513 def add_restraints(*args):
514  """
515  add_restraints(FileHandle fh, IMP::kernel::Restraints const & hs)
516  add_restraints(NodeHandle fh, IMP::kernel::Restraints const & hs)
517  """
518  return _IMP_rmf.add_restraints(*args)
519 
520 def add_restraint(*args):
521  """add_restraint(FileHandle fh, Restraint hs)"""
522  return _IMP_rmf.add_restraint(*args)
523 
524 def create_restraints(*args):
525  """create_restraints(FileConstHandle fh, Model m) -> IMP::kernel::Restraints"""
526  return _IMP_rmf.create_restraints(*args)
527 
528 def link_restraints(*args):
529  """link_restraints(FileConstHandle fh, IMP::kernel::Restraints const & hs)"""
530  return _IMP_rmf.link_restraints(*args)
531 
532 def set_maximum_number_of_terms(*args):
533  """set_maximum_number_of_terms(FileHandle fh, unsigned int num)"""
534  return _IMP_rmf.set_maximum_number_of_terms(*args)
535 
536 def add_particles(*args):
537  """
538  add_particles(FileHandle fh, IMP::kernel::ParticlesTemp const & hs)
539  add_particles(NodeHandle fh, IMP::kernel::ParticlesTemp const & hs)
540  """
541  return _IMP_rmf.add_particles(*args)
542 
543 def add_particle(*args):
544  """add_particle(FileHandle fh, Particle hs)"""
545  return _IMP_rmf.add_particle(*args)
546 
547 def create_particles(*args):
548  """create_particles(FileConstHandle fh, Model m) -> IMP::kernel::ParticlesTemp"""
549  return _IMP_rmf.create_particles(*args)
550 
551 def link_particles(*args):
552  """link_particles(FileConstHandle fh, IMP::kernel::ParticlesTemp const & hs)"""
553  return _IMP_rmf.link_particles(*args)
554 
555 def add_geometries(*args):
556  """
557  add_geometries(FileHandle file, IMP::display::GeometriesTemp const & r)
558  add_geometries(NodeHandle parent, IMP::display::GeometriesTemp const & r)
559  """
560  return _IMP_rmf.add_geometries(*args)
561 
562 def add_static_geometries(*args):
563  """add_static_geometries(FileHandle parent, IMP::display::GeometriesTemp const & r)"""
564  return _IMP_rmf.add_static_geometries(*args)
565 
566 def add_geometry(*args):
567  """add_geometry(FileHandle parent, Geometry r)"""
568  return _IMP_rmf.add_geometry(*args)
569 
570 def create_geometries(*args):
571  """create_geometries(FileConstHandle parent) -> IMP::display::Geometries"""
572  return _IMP_rmf.create_geometries(*args)
573 
574 def link_geometries(*args):
575  """link_geometries(FileConstHandle parent, IMP::display::GeometriesTemp const & r)"""
576  return _IMP_rmf.link_geometries(*args)
577 
578 def set_association(*args):
579  """
580  set_association(NodeConstHandle nh, Object o, bool overwrite=False)
581  set_association(NodeConstHandle nh, Object o)
582  """
583  return _IMP_rmf.set_association(*args)
584 
585 def get_node_from_association(*args):
586  """
587  get_node_from_association(FileConstHandle nh, Object oi) -> NodeConstHandle
588  get_node_from_association(FileHandle nh, Object oi) -> NodeHandle
589  """
590  return _IMP_rmf.get_node_from_association(*args)
591 
592 def get_has_associated_node(*args):
593  """get_has_associated_node(FileConstHandle nh, Object oi) -> bool"""
594  return _IMP_rmf.get_has_associated_node(*args)
595 class SaveOptimizerState(IMP.kernel.OptimizerState):
596  """Proxy of C++ IMP::rmf::SaveOptimizerState class"""
597  __swig_setmethods__ = {}
598  for _s in [IMP.kernel.OptimizerState]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
599  __setattr__ = lambda self, name, value: _swig_setattr(self, SaveOptimizerState, name, value)
600  __swig_getmethods__ = {}
601  for _s in [IMP.kernel.OptimizerState]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
602  __getattr__ = lambda self, name: _swig_getattr(self, SaveOptimizerState, name)
603  def __init__(self, *args):
604  """
605  __init__(IMP::rmf::SaveOptimizerState self, Model m, FileHandle fh) -> SaveOptimizerState
606  __init__(IMP::rmf::SaveOptimizerState self, FileHandle fh) -> SaveOptimizerState
607  """
608  this = _IMP_rmf.new_SaveOptimizerState(*args)
609  try: self.this.append(this)
610  except: self.this = this
611  def remove_hierarchy(self, *args):
612  """remove_hierarchy(SaveOptimizerState self, Particle d)"""
613  return _IMP_rmf.SaveOptimizerState_remove_hierarchy(self, *args)
614 
615  def remove_hierarchies(self, *args):
616  """remove_hierarchies(SaveOptimizerState self, IMP::kernel::Particles const & d)"""
617  return _IMP_rmf.SaveOptimizerState_remove_hierarchies(self, *args)
618 
619  def set_hierarchies(self, *args):
620  """set_hierarchies(SaveOptimizerState self, IMP::kernel::Particles const & ps)"""
621  return _IMP_rmf.SaveOptimizerState_set_hierarchies(self, *args)
622 
623  def set_hierarchies_order(self, *args):
624  """set_hierarchies_order(SaveOptimizerState self, IMP::kernel::Particles const & objs)"""
625  return _IMP_rmf.SaveOptimizerState_set_hierarchies_order(self, *args)
626 
627  def add_hierarchy(self, *args):
628  """add_hierarchy(SaveOptimizerState self, Particle obj) -> unsigned int"""
629  return _IMP_rmf.SaveOptimizerState_add_hierarchy(self, *args)
630 
631  def add_hierarchies(self, *args):
632  """add_hierarchies(SaveOptimizerState self, IMP::kernel::Particles const & objs)"""
633  return _IMP_rmf.SaveOptimizerState_add_hierarchies(self, *args)
634 
635  def clear_hierarchies(self):
636  """clear_hierarchies(SaveOptimizerState self)"""
637  return _IMP_rmf.SaveOptimizerState_clear_hierarchies(self)
638 
639  def get_number_of_hierarchies(self):
640  """get_number_of_hierarchies(SaveOptimizerState self) -> unsigned int"""
641  return _IMP_rmf.SaveOptimizerState_get_number_of_hierarchies(self)
642 
643  def get_has_hierarchies(self):
644  """get_has_hierarchies(SaveOptimizerState self) -> bool"""
645  return _IMP_rmf.SaveOptimizerState_get_has_hierarchies(self)
646 
647  def get_hierarchy(self, *args):
648  """get_hierarchy(SaveOptimizerState self, unsigned int i) -> Particle"""
649  return _IMP_rmf.SaveOptimizerState_get_hierarchy(self, *args)
650 
651  def get_hierarchies(self):
652  """get_hierarchies(SaveOptimizerState self) -> IMP::kernel::Particles"""
653  return _IMP_rmf.SaveOptimizerState_get_hierarchies(self)
654 
655  def reserve_hierarchies(self, *args):
656  """reserve_hierarchies(SaveOptimizerState self, unsigned int sz)"""
657  return _IMP_rmf.SaveOptimizerState_reserve_hierarchies(self, *args)
658 
659  def remove_restraint(self, *args):
660  """remove_restraint(SaveOptimizerState self, Restraint d)"""
661  return _IMP_rmf.SaveOptimizerState_remove_restraint(self, *args)
662 
663  def remove_restraints(self, *args):
664  """remove_restraints(SaveOptimizerState self, IMP::kernel::Restraints const & d)"""
665  return _IMP_rmf.SaveOptimizerState_remove_restraints(self, *args)
666 
667  def set_restraints(self, *args):
668  """set_restraints(SaveOptimizerState self, IMP::kernel::Restraints const & ps)"""
669  return _IMP_rmf.SaveOptimizerState_set_restraints(self, *args)
670 
671  def set_restraints_order(self, *args):
672  """set_restraints_order(SaveOptimizerState self, IMP::kernel::Restraints const & objs)"""
673  return _IMP_rmf.SaveOptimizerState_set_restraints_order(self, *args)
674 
675  def add_restraint(self, *args):
676  """add_restraint(SaveOptimizerState self, Restraint obj) -> unsigned int"""
677  return _IMP_rmf.SaveOptimizerState_add_restraint(self, *args)
678 
679  def add_restraints(self, *args):
680  """add_restraints(SaveOptimizerState self, IMP::kernel::Restraints const & objs)"""
681  return _IMP_rmf.SaveOptimizerState_add_restraints(self, *args)
682 
683  def clear_restraints(self):
684  """clear_restraints(SaveOptimizerState self)"""
685  return _IMP_rmf.SaveOptimizerState_clear_restraints(self)
686 
687  def get_number_of_restraints(self):
688  """get_number_of_restraints(SaveOptimizerState self) -> unsigned int"""
689  return _IMP_rmf.SaveOptimizerState_get_number_of_restraints(self)
690 
691  def get_has_restraints(self):
692  """get_has_restraints(SaveOptimizerState self) -> bool"""
693  return _IMP_rmf.SaveOptimizerState_get_has_restraints(self)
694 
695  def get_restraint(self, *args):
696  """get_restraint(SaveOptimizerState self, unsigned int i) -> Restraint"""
697  return _IMP_rmf.SaveOptimizerState_get_restraint(self, *args)
698 
699  def get_restraints(self):
700  """get_restraints(SaveOptimizerState self) -> IMP::kernel::Restraints"""
701  return _IMP_rmf.SaveOptimizerState_get_restraints(self)
702 
703  def reserve_restraints(self, *args):
704  """reserve_restraints(SaveOptimizerState self, unsigned int sz)"""
705  return _IMP_rmf.SaveOptimizerState_reserve_restraints(self, *args)
706 
707  def remove_particle(self, *args):
708  """remove_particle(SaveOptimizerState self, Particle d)"""
709  return _IMP_rmf.SaveOptimizerState_remove_particle(self, *args)
710 
711  def remove_particles(self, *args):
712  """remove_particles(SaveOptimizerState self, IMP::kernel::Particles const & d)"""
713  return _IMP_rmf.SaveOptimizerState_remove_particles(self, *args)
714 
715  def set_particles(self, *args):
716  """set_particles(SaveOptimizerState self, IMP::kernel::Particles const & ps)"""
717  return _IMP_rmf.SaveOptimizerState_set_particles(self, *args)
718 
719  def set_particles_order(self, *args):
720  """set_particles_order(SaveOptimizerState self, IMP::kernel::Particles const & objs)"""
721  return _IMP_rmf.SaveOptimizerState_set_particles_order(self, *args)
722 
723  def add_particle(self, *args):
724  """add_particle(SaveOptimizerState self, Particle obj) -> unsigned int"""
725  return _IMP_rmf.SaveOptimizerState_add_particle(self, *args)
726 
727  def add_particles(self, *args):
728  """add_particles(SaveOptimizerState self, IMP::kernel::Particles const & objs)"""
729  return _IMP_rmf.SaveOptimizerState_add_particles(self, *args)
730 
731  def clear_particles(self):
732  """clear_particles(SaveOptimizerState self)"""
733  return _IMP_rmf.SaveOptimizerState_clear_particles(self)
734 
735  def get_number_of_particles(self):
736  """get_number_of_particles(SaveOptimizerState self) -> unsigned int"""
737  return _IMP_rmf.SaveOptimizerState_get_number_of_particles(self)
738 
739  def get_has_particles(self):
740  """get_has_particles(SaveOptimizerState self) -> bool"""
741  return _IMP_rmf.SaveOptimizerState_get_has_particles(self)
742 
743  def get_particle(self, *args):
744  """get_particle(SaveOptimizerState self, unsigned int i) -> Particle"""
745  return _IMP_rmf.SaveOptimizerState_get_particle(self, *args)
746 
747  def get_particles(self):
748  """get_particles(SaveOptimizerState self) -> IMP::kernel::Particles"""
749  return _IMP_rmf.SaveOptimizerState_get_particles(self)
750 
751  def reserve_particles(self, *args):
752  """reserve_particles(SaveOptimizerState self, unsigned int sz)"""
753  return _IMP_rmf.SaveOptimizerState_reserve_particles(self, *args)
754 
755  def remove_geometry(self, *args):
756  """remove_geometry(SaveOptimizerState self, Geometry d)"""
757  return _IMP_rmf.SaveOptimizerState_remove_geometry(self, *args)
758 
759  def remove_geometries(self, *args):
760  """remove_geometries(SaveOptimizerState self, IMP::display::Geometries const & d)"""
761  return _IMP_rmf.SaveOptimizerState_remove_geometries(self, *args)
762 
763  def set_geometries(self, *args):
764  """set_geometries(SaveOptimizerState self, IMP::display::Geometries const & ps)"""
765  return _IMP_rmf.SaveOptimizerState_set_geometries(self, *args)
766 
767  def set_geometries_order(self, *args):
768  """set_geometries_order(SaveOptimizerState self, IMP::display::Geometries const & objs)"""
769  return _IMP_rmf.SaveOptimizerState_set_geometries_order(self, *args)
770 
771  def add_geometry(self, *args):
772  """add_geometry(SaveOptimizerState self, Geometry obj) -> unsigned int"""
773  return _IMP_rmf.SaveOptimizerState_add_geometry(self, *args)
774 
775  def add_geometries(self, *args):
776  """add_geometries(SaveOptimizerState self, IMP::display::Geometries const & objs)"""
777  return _IMP_rmf.SaveOptimizerState_add_geometries(self, *args)
778 
779  def clear_geometries(self):
780  """clear_geometries(SaveOptimizerState self)"""
781  return _IMP_rmf.SaveOptimizerState_clear_geometries(self)
782 
783  def get_number_of_geometries(self):
784  """get_number_of_geometries(SaveOptimizerState self) -> unsigned int"""
785  return _IMP_rmf.SaveOptimizerState_get_number_of_geometries(self)
786 
787  def get_has_geometries(self):
788  """get_has_geometries(SaveOptimizerState self) -> bool"""
789  return _IMP_rmf.SaveOptimizerState_get_has_geometries(self)
790 
791  def get_geometry(self, *args):
792  """get_geometry(SaveOptimizerState self, unsigned int i) -> Geometry"""
793  return _IMP_rmf.SaveOptimizerState_get_geometry(self, *args)
794 
795  def get_geometries(self):
796  """get_geometries(SaveOptimizerState self) -> IMP::display::Geometries"""
797  return _IMP_rmf.SaveOptimizerState_get_geometries(self)
798 
799  def reserve_geometries(self, *args):
800  """reserve_geometries(SaveOptimizerState self, unsigned int sz)"""
801  return _IMP_rmf.SaveOptimizerState_reserve_geometries(self, *args)
802 
803  def set_simulator(self, *args):
804  """set_simulator(SaveOptimizerState self, Simulator sim)"""
805  return _IMP_rmf.SaveOptimizerState_set_simulator(self, *args)
806 
807  def update_always(self, *args):
808  """
809  update_always(SaveOptimizerState self, std::string name)
810  update_always(SaveOptimizerState self)
811  """
812  return _IMP_rmf.SaveOptimizerState_update_always(self, *args)
813 
814  def do_update(self, *args):
815  """do_update(SaveOptimizerState self, unsigned int call_num)"""
816  return _IMP_rmf.SaveOptimizerState_do_update(self, *args)
817 
818  def get_version_info(self):
819  """get_version_info(SaveOptimizerState self) -> VersionInfo"""
820  return _IMP_rmf.SaveOptimizerState_get_version_info(self)
821 
822  __swig_destroy__ = _IMP_rmf.delete_SaveOptimizerState
823  __del__ = lambda self : None;
824  def __str__(self):
825  """__str__(SaveOptimizerState self) -> std::string"""
826  return _IMP_rmf.SaveOptimizerState___str__(self)
827 
828  def __repr__(self):
829  """__repr__(SaveOptimizerState self) -> std::string"""
830  return _IMP_rmf.SaveOptimizerState___repr__(self)
831 
832  def get_from(o):
833  return _object_cast_to_SaveOptimizerState(o)
834  get_from = staticmethod(get_from)
835 
836 SaveOptimizerState_swigregister = _IMP_rmf.SaveOptimizerState_swigregister
837 SaveOptimizerState_swigregister(SaveOptimizerState)
838 
839 
840 def load_frame(*args):
841  """load_frame(FileConstHandle file, int frame)"""
842  return _IMP_rmf.load_frame(*args)
843 
844 def save_frame(*args):
845  """
846  save_frame(FileHandle file, int frame, std::string name="frame")
847  save_frame(FileHandle file, int frame)
848  """
849  return _IMP_rmf.save_frame(*args)
850 class _ParticleSaveLink(SaveLink):
851  """Proxy of C++ IMP::rmf::SimpleSaveLink<(IMP::kernel::Particle)> class"""
852  __swig_setmethods__ = {}
853  for _s in [SaveLink]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
854  __setattr__ = lambda self, name, value: _swig_setattr(self, _ParticleSaveLink, name, value)
855  __swig_getmethods__ = {}
856  for _s in [SaveLink]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
857  __getattr__ = lambda self, name: _swig_getattr(self, _ParticleSaveLink, name)
858  def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined - class is abstract")
859  __repr__ = _swig_repr
860  def add(self, *args):
861  """add(_ParticleSaveLink self, NodeHandle parent, IMP::base::Vector< IMP::base::Pointer< IMP::kernel::Particle > > const & os)"""
862  return _IMP_rmf._ParticleSaveLink_add(self, *args)
863 
864  __swig_destroy__ = _IMP_rmf.delete__ParticleSaveLink
865  __del__ = lambda self : None;
866 _ParticleSaveLink_swigregister = _IMP_rmf._ParticleSaveLink_swigregister
867 _ParticleSaveLink_swigregister(_ParticleSaveLink)
868 
869 class _ParticleLoadLink(LoadLink):
870  """Proxy of C++ IMP::rmf::SimpleLoadLink<(IMP::kernel::Particle)> class"""
871  __swig_setmethods__ = {}
872  for _s in [LoadLink]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
873  __setattr__ = lambda self, name, value: _swig_setattr(self, _ParticleLoadLink, name, value)
874  __swig_getmethods__ = {}
875  for _s in [LoadLink]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
876  __getattr__ = lambda self, name: _swig_getattr(self, _ParticleLoadLink, name)
877  def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined - class is abstract")
878  __repr__ = _swig_repr
879  def create(self, *args):
880  """
881  create(_ParticleLoadLink self, NodeConstHandle rt) -> IMP::base::Vector< IMP::base::Pointer< IMP::kernel::Particle > >
882  create(_ParticleLoadLink self, NodeConstHandle rt, Model m) -> IMP::base::Vector< IMP::base::Pointer< IMP::kernel::Particle > >
883  """
884  return _IMP_rmf._ParticleLoadLink_create(self, *args)
885 
886  def link(self, *args):
887  """link(_ParticleLoadLink self, NodeConstHandle rt, IMP::base::Vector< IMP::base::Pointer< IMP::kernel::Particle > > const & ps)"""
888  return _IMP_rmf._ParticleLoadLink_link(self, *args)
889 
890  __swig_destroy__ = _IMP_rmf.delete__ParticleLoadLink
891  __del__ = lambda self : None;
892 _ParticleLoadLink_swigregister = _IMP_rmf._ParticleLoadLink_swigregister
893 _ParticleLoadLink_swigregister(_ParticleLoadLink)
894 
895 class HierarchyLoadLink(_ParticleLoadLink):
896  """Proxy of C++ IMP::rmf::HierarchyLoadLink class"""
897  __swig_setmethods__ = {}
898  for _s in [_ParticleLoadLink]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
899  __setattr__ = lambda self, name, value: _swig_setattr(self, HierarchyLoadLink, name, value)
900  __swig_getmethods__ = {}
901  for _s in [_ParticleLoadLink]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
902  __getattr__ = lambda self, name: _swig_getattr(self, HierarchyLoadLink, name)
903  def __init__(self, *args):
904  """__init__(IMP::rmf::HierarchyLoadLink self, FileConstHandle fh) -> HierarchyLoadLink"""
905  this = _IMP_rmf.new_HierarchyLoadLink(*args)
906  try: self.this.append(this)
907  except: self.this = this
908  def get_name():
909  """get_name() -> char const *"""
910  return _IMP_rmf.HierarchyLoadLink_get_name()
911 
912  if _newclass:get_name = staticmethod(get_name)
913  __swig_getmethods__["get_name"] = lambda x: get_name
914  def get_version_info(self):
915  """get_version_info(HierarchyLoadLink self) -> VersionInfo"""
916  return _IMP_rmf.HierarchyLoadLink_get_version_info(self)
917 
918  __swig_destroy__ = _IMP_rmf.delete_HierarchyLoadLink
919  __del__ = lambda self : None;
920  def __str__(self):
921  """__str__(HierarchyLoadLink self) -> std::string"""
922  return _IMP_rmf.HierarchyLoadLink___str__(self)
923 
924  def __repr__(self):
925  """__repr__(HierarchyLoadLink self) -> std::string"""
926  return _IMP_rmf.HierarchyLoadLink___repr__(self)
927 
928  def get_from(o):
929  return _object_cast_to_HierarchyLoadLink(o)
930  get_from = staticmethod(get_from)
931 
932 HierarchyLoadLink_swigregister = _IMP_rmf.HierarchyLoadLink_swigregister
933 HierarchyLoadLink_swigregister(HierarchyLoadLink)
934 
935 def HierarchyLoadLink_get_name():
936  """HierarchyLoadLink_get_name() -> char const *"""
937  return _IMP_rmf.HierarchyLoadLink_get_name()
938 
939 class HierarchySaveLink(_ParticleSaveLink):
940  """Proxy of C++ IMP::rmf::HierarchySaveLink class"""
941  __swig_setmethods__ = {}
942  for _s in [_ParticleSaveLink]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
943  __setattr__ = lambda self, name, value: _swig_setattr(self, HierarchySaveLink, name, value)
944  __swig_getmethods__ = {}
945  for _s in [_ParticleSaveLink]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
946  __getattr__ = lambda self, name: _swig_getattr(self, HierarchySaveLink, name)
947  def __init__(self, *args):
948  """__init__(IMP::rmf::HierarchySaveLink self, FileHandle fh) -> HierarchySaveLink"""
949  this = _IMP_rmf.new_HierarchySaveLink(*args)
950  try: self.this.append(this)
951  except: self.this = this
952  def get_name():
953  """get_name() -> char const *"""
954  return _IMP_rmf.HierarchySaveLink_get_name()
955 
956  if _newclass:get_name = staticmethod(get_name)
957  __swig_getmethods__["get_name"] = lambda x: get_name
958  def get_version_info(self):
959  """get_version_info(HierarchySaveLink self) -> VersionInfo"""
960  return _IMP_rmf.HierarchySaveLink_get_version_info(self)
961 
962  __swig_destroy__ = _IMP_rmf.delete_HierarchySaveLink
963  __del__ = lambda self : None;
964  def __str__(self):
965  """__str__(HierarchySaveLink self) -> std::string"""
966  return _IMP_rmf.HierarchySaveLink___str__(self)
967 
968  def __repr__(self):
969  """__repr__(HierarchySaveLink self) -> std::string"""
970  return _IMP_rmf.HierarchySaveLink___repr__(self)
971 
972  def get_from(o):
973  return _object_cast_to_HierarchySaveLink(o)
974  get_from = staticmethod(get_from)
975 
976 HierarchySaveLink_swigregister = _IMP_rmf.HierarchySaveLink_swigregister
977 HierarchySaveLink_swigregister(HierarchySaveLink)
978 
979 def HierarchySaveLink_get_name():
980  """HierarchySaveLink_get_name() -> char const *"""
981  return _IMP_rmf.HierarchySaveLink_get_name()
982 
983 
984 def get_module_version():
985  """get_module_version() -> std::string const"""
986  return _IMP_rmf.get_module_version()
987 
988 def get_example_path(*args):
989  """get_example_path(std::string fname) -> std::string"""
990  return _IMP_rmf.get_example_path(*args)
991 
992 def get_data_path(*args):
993  """get_data_path(std::string fname) -> std::string"""
994  return _IMP_rmf.get_data_path(*args)
995 import _version_check
996 _version_check.check_version(get_module_version())
997 
998 # This file is compatible with both classic and new-style classes.
999 
1000 
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)
See IMP.container for more information.
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)
See IMP.cgal for more information.
Definition: cgal_config.h:107
void set_check_level(CheckLevel tf)
Control runtime checks in the code.
See IMP.base for more information.
Definition: base/Array.h:20
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)
See IMP.score_functor for more information.
Definition: AddScores.h:14
void save_frame(RMF::FileHandle file, int frame, std::string name="frame")
void add_hierarchy(RMF::FileHandle fh, atom::Hierarchy hs)
std::string get_data_path(std::string file_name)
Return the full path to installed data.
kernel::ParticlesTemp create_particles(RMF::FileConstHandle fh, kernel::Model *m)
void add_particles(RMF::FileHandle fh, const kernel::ParticlesTemp &hs)
See IMP.kernel for more information.
void link_geometries(RMF::FileConstHandle parent, const display::GeometriesTemp &r)
void link_restraints(RMF::FileConstHandle fh, const kernel::Restraints &hs)
std::string get_example_path(std::string file_name)
Return the path to installed example data for this module.
Common base class for heavy weight IMP objects.
void set_maximum_number_of_terms(RMF::FileHandle fh, unsigned int num)
See IMP.core for more information.
See IMP.algebra for more information.
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)
See IMP.display for more information.
Definition: BildWriter.h:20
CheckLevel get_check_level()
Get the current audit mode.
See IMP.atom for more information.
void add_restraint(RMF::FileHandle fh, kernel::Restraint *hs)
void load_frame(RMF::FileConstHandle file, int frame)