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