IMP  2.2.0
The Integrative Modeling Platform
example/__init__.py
1 # This file was automatically generated by SWIG (http://www.swig.org).
2 # Version 2.0.12
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_example', [dirname(__file__)])
19  except ImportError:
20  import _IMP_example
21  return _IMP_example
22  if fp is not None:
23  try:
24  _mod = imp.load_module('_IMP_example', fp, pathname, description)
25  finally:
26  fp.close()
27  return _mod
28  _IMP_example = swig_import_helper()
29  del swig_import_helper
30 else:
31  import _IMP_example
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_EXAMPLE_SwigPyIterator(_object):
80  """Proxy of C++ swig::IMP_EXAMPLE_SwigPyIterator class"""
81  __swig_setmethods__ = {}
82  __setattr__ = lambda self, name, value: _swig_setattr(self, IMP_EXAMPLE_SwigPyIterator, name, value)
83  __swig_getmethods__ = {}
84  __getattr__ = lambda self, name: _swig_getattr(self, IMP_EXAMPLE_SwigPyIterator, name)
85  def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined - class is abstract")
86  __repr__ = _swig_repr
87  __swig_destroy__ = _IMP_example.delete_IMP_EXAMPLE_SwigPyIterator
88  __del__ = lambda self : None;
89  def value(self):
90  """value(IMP_EXAMPLE_SwigPyIterator self) -> PyObject *"""
91  return _IMP_example.IMP_EXAMPLE_SwigPyIterator_value(self)
92 
93  def incr(self, n=1):
94  """
95  incr(IMP_EXAMPLE_SwigPyIterator self, size_t n=1) -> IMP_EXAMPLE_SwigPyIterator
96  incr(IMP_EXAMPLE_SwigPyIterator self) -> IMP_EXAMPLE_SwigPyIterator
97  """
98  return _IMP_example.IMP_EXAMPLE_SwigPyIterator_incr(self, n)
99 
100  def decr(self, n=1):
101  """
102  decr(IMP_EXAMPLE_SwigPyIterator self, size_t n=1) -> IMP_EXAMPLE_SwigPyIterator
103  decr(IMP_EXAMPLE_SwigPyIterator self) -> IMP_EXAMPLE_SwigPyIterator
104  """
105  return _IMP_example.IMP_EXAMPLE_SwigPyIterator_decr(self, n)
106 
107  def distance(self, *args):
108  """distance(IMP_EXAMPLE_SwigPyIterator self, IMP_EXAMPLE_SwigPyIterator x) -> ptrdiff_t"""
109  return _IMP_example.IMP_EXAMPLE_SwigPyIterator_distance(self, *args)
110 
111  def equal(self, *args):
112  """equal(IMP_EXAMPLE_SwigPyIterator self, IMP_EXAMPLE_SwigPyIterator x) -> bool"""
113  return _IMP_example.IMP_EXAMPLE_SwigPyIterator_equal(self, *args)
114 
115  def copy(self):
116  """copy(IMP_EXAMPLE_SwigPyIterator self) -> IMP_EXAMPLE_SwigPyIterator"""
117  return _IMP_example.IMP_EXAMPLE_SwigPyIterator_copy(self)
118 
119  def next(self):
120  """next(IMP_EXAMPLE_SwigPyIterator self) -> PyObject *"""
121  return _IMP_example.IMP_EXAMPLE_SwigPyIterator_next(self)
122 
123  def __next__(self):
124  """__next__(IMP_EXAMPLE_SwigPyIterator self) -> PyObject *"""
125  return _IMP_example.IMP_EXAMPLE_SwigPyIterator___next__(self)
126 
127  def previous(self):
128  """previous(IMP_EXAMPLE_SwigPyIterator self) -> PyObject *"""
129  return _IMP_example.IMP_EXAMPLE_SwigPyIterator_previous(self)
130 
131  def advance(self, *args):
132  """advance(IMP_EXAMPLE_SwigPyIterator self, ptrdiff_t n) -> IMP_EXAMPLE_SwigPyIterator"""
133  return _IMP_example.IMP_EXAMPLE_SwigPyIterator_advance(self, *args)
134 
135  def __eq__(self, *args):
136  """__eq__(IMP_EXAMPLE_SwigPyIterator self, IMP_EXAMPLE_SwigPyIterator x) -> bool"""
137  return _IMP_example.IMP_EXAMPLE_SwigPyIterator___eq__(self, *args)
138 
139  def __ne__(self, *args):
140  """__ne__(IMP_EXAMPLE_SwigPyIterator self, IMP_EXAMPLE_SwigPyIterator x) -> bool"""
141  return _IMP_example.IMP_EXAMPLE_SwigPyIterator___ne__(self, *args)
142 
143  def __iadd__(self, *args):
144  """__iadd__(IMP_EXAMPLE_SwigPyIterator self, ptrdiff_t n) -> IMP_EXAMPLE_SwigPyIterator"""
145  return _IMP_example.IMP_EXAMPLE_SwigPyIterator___iadd__(self, *args)
146 
147  def __isub__(self, *args):
148  """__isub__(IMP_EXAMPLE_SwigPyIterator self, ptrdiff_t n) -> IMP_EXAMPLE_SwigPyIterator"""
149  return _IMP_example.IMP_EXAMPLE_SwigPyIterator___isub__(self, *args)
150 
151  def __add__(self, *args):
152  """__add__(IMP_EXAMPLE_SwigPyIterator self, ptrdiff_t n) -> IMP_EXAMPLE_SwigPyIterator"""
153  return _IMP_example.IMP_EXAMPLE_SwigPyIterator___add__(self, *args)
154 
155  def __sub__(self, *args):
156  """
157  __sub__(IMP_EXAMPLE_SwigPyIterator self, ptrdiff_t n) -> IMP_EXAMPLE_SwigPyIterator
158  __sub__(IMP_EXAMPLE_SwigPyIterator self, IMP_EXAMPLE_SwigPyIterator x) -> ptrdiff_t
159  """
160  return _IMP_example.IMP_EXAMPLE_SwigPyIterator___sub__(self, *args)
161 
162  def __iter__(self): return self
163 IMP_EXAMPLE_SwigPyIterator_swigregister = _IMP_example.IMP_EXAMPLE_SwigPyIterator_swigregister
164 IMP_EXAMPLE_SwigPyIterator_swigregister(IMP_EXAMPLE_SwigPyIterator)
165 
166 _value_types=[]
167 _object_types=[]
168 _raii_types=[]
169 _plural_types=[]
170 
171 IMP_DEBUG = _IMP_example.IMP_DEBUG
172 IMP_RELEASE = _IMP_example.IMP_RELEASE
173 IMP_SILENT = _IMP_example.IMP_SILENT
174 IMP_PROGRESS = _IMP_example.IMP_PROGRESS
175 IMP_TERSE = _IMP_example.IMP_TERSE
176 IMP_VERBOSE = _IMP_example.IMP_VERBOSE
177 IMP_MEMORY = _IMP_example.IMP_MEMORY
178 IMP_NONE = _IMP_example.IMP_NONE
179 IMP_USAGE = _IMP_example.IMP_USAGE
180 IMP_INTERNAL = _IMP_example.IMP_INTERNAL
181 IMP_BASE_HAS_LOG4CXX = _IMP_example.IMP_BASE_HAS_LOG4CXX
182 IMP_COMPILER_HAS_AUTO = _IMP_example.IMP_COMPILER_HAS_AUTO
183 IMP_COMPILER_HAS_DEBUG_VECTOR = _IMP_example.IMP_COMPILER_HAS_DEBUG_VECTOR
184 IMP_BASE_HAS_BOOST_RANDOM = _IMP_example.IMP_BASE_HAS_BOOST_RANDOM
185 IMP_BASE_HAS_GPERFTOOLS = _IMP_example.IMP_BASE_HAS_GPERFTOOLS
186 IMP_BASE_HAS_TCMALLOC_HEAPCHECKER = _IMP_example.IMP_BASE_HAS_TCMALLOC_HEAPCHECKER
187 IMP_BASE_HAS_TCMALLOC_HEAPPROFILER = _IMP_example.IMP_BASE_HAS_TCMALLOC_HEAPPROFILER
188 IMPBASE_SHOW_WARNINGS = _IMP_example.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_example.DEFAULT_CHECK
216 NONE = _IMP_example.NONE
217 USAGE = _IMP_example.USAGE
218 USAGE_AND_INTERNAL = _IMP_example.USAGE_AND_INTERNAL
219 
220 def set_check_level(*args):
221  """set_check_level(IMP::base::CheckLevel tf)"""
222  return _IMP_example.set_check_level(*args)
223 
224 def get_check_level():
225  """get_check_level() -> IMP::base::CheckLevel"""
226  return _IMP_example.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_example._ostream_write(self, *args)
238 
239 _ostream_swigregister = _IMP_example._ostream_swigregister
240 _ostream_swigregister(_ostream)
241 
242 IMP_COMPILER_HAS_OVERRIDE = _IMP_example.IMP_COMPILER_HAS_OVERRIDE
243 IMP_COMPILER_HAS_FINAL = _IMP_example.IMP_COMPILER_HAS_FINAL
244 IMP_HAS_NOEXCEPT = _IMP_example.IMP_HAS_NOEXCEPT
245 import IMP.base
246 IMP_CGAL_HAS_BOOST_FILESYSTEM = _IMP_example.IMP_CGAL_HAS_BOOST_FILESYSTEM
247 IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS = _IMP_example.IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS
248 IMP_CGAL_HAS_BOOST_RANDOM = _IMP_example.IMP_CGAL_HAS_BOOST_RANDOM
249 IMP_CGAL_HAS_BOOST_SYSTEM = _IMP_example.IMP_CGAL_HAS_BOOST_SYSTEM
250 IMPCGAL_SHOW_WARNINGS = _IMP_example.IMPCGAL_SHOW_WARNINGS
251 import IMP.cgal
252 IMP_ALGEBRA_HAS_IMP_CGAL = _IMP_example.IMP_ALGEBRA_HAS_IMP_CGAL
253 IMP_ALGEBRA_HAS_BOOST_FILESYSTEM = _IMP_example.IMP_ALGEBRA_HAS_BOOST_FILESYSTEM
254 IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS = _IMP_example.IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS
255 IMP_ALGEBRA_HAS_BOOST_RANDOM = _IMP_example.IMP_ALGEBRA_HAS_BOOST_RANDOM
256 IMP_ALGEBRA_HAS_BOOST_SYSTEM = _IMP_example.IMP_ALGEBRA_HAS_BOOST_SYSTEM
257 IMP_ALGEBRA_HAS_CGAL = _IMP_example.IMP_ALGEBRA_HAS_CGAL
258 IMP_ALGEBRA_HAS_ANN = _IMP_example.IMP_ALGEBRA_HAS_ANN
259 IMPALGEBRA_SHOW_WARNINGS = _IMP_example.IMPALGEBRA_SHOW_WARNINGS
260 import IMP.algebra
261 IMP_KERNEL_HAS_IMP_CGAL = _IMP_example.IMP_KERNEL_HAS_IMP_CGAL
262 IMP_KERNEL_HAS_BOOST_PROGRAMOPTIONS = _IMP_example.IMP_KERNEL_HAS_BOOST_PROGRAMOPTIONS
263 IMP_KERNEL_HAS_BOOST_RANDOM = _IMP_example.IMP_KERNEL_HAS_BOOST_RANDOM
264 IMP_KERNEL_HAS_BOOST_SYSTEM = _IMP_example.IMP_KERNEL_HAS_BOOST_SYSTEM
265 IMP_KERNEL_HAS_CGAL = _IMP_example.IMP_KERNEL_HAS_CGAL
266 IMPKERNEL_SHOW_WARNINGS = _IMP_example.IMPKERNEL_SHOW_WARNINGS
267 import IMP.kernel
268 IMP_DISPLAY_HAS_IMP_BASE = _IMP_example.IMP_DISPLAY_HAS_IMP_BASE
269 IMP_DISPLAY_HAS_IMP_CGAL = _IMP_example.IMP_DISPLAY_HAS_IMP_CGAL
270 IMP_DISPLAY_HAS_BOOST_FILESYSTEM = _IMP_example.IMP_DISPLAY_HAS_BOOST_FILESYSTEM
271 IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS = _IMP_example.IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS
272 IMP_DISPLAY_HAS_BOOST_RANDOM = _IMP_example.IMP_DISPLAY_HAS_BOOST_RANDOM
273 IMP_DISPLAY_HAS_BOOST_SYSTEM = _IMP_example.IMP_DISPLAY_HAS_BOOST_SYSTEM
274 IMP_DISPLAY_HAS_CGAL = _IMP_example.IMP_DISPLAY_HAS_CGAL
275 IMPDISPLAY_SHOW_WARNINGS = _IMP_example.IMPDISPLAY_SHOW_WARNINGS
276 import IMP.display
277 IMP_SCORE_FUNCTOR_HAS_IMP_CGAL = _IMP_example.IMP_SCORE_FUNCTOR_HAS_IMP_CGAL
278 IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM = _IMP_example.IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM
279 IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS = _IMP_example.IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS
280 IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM = _IMP_example.IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM
281 IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM = _IMP_example.IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM
282 IMP_SCORE_FUNCTOR_HAS_CGAL = _IMP_example.IMP_SCORE_FUNCTOR_HAS_CGAL
283 IMP_SCORE_FUNCTOR_HAS_HDF5 = _IMP_example.IMP_SCORE_FUNCTOR_HAS_HDF5
284 IMPSCOREFUNCTOR_SHOW_WARNINGS = _IMP_example.IMPSCOREFUNCTOR_SHOW_WARNINGS
285 import IMP.score_functor
286 IMP_STATISTICS_HAS_IMP_BASE = _IMP_example.IMP_STATISTICS_HAS_IMP_BASE
287 IMP_STATISTICS_HAS_IMP_CGAL = _IMP_example.IMP_STATISTICS_HAS_IMP_CGAL
288 IMP_STATISTICS_HAS_BOOST_FILESYSTEM = _IMP_example.IMP_STATISTICS_HAS_BOOST_FILESYSTEM
289 IMP_STATISTICS_HAS_BOOST_PROGRAMOPTIONS = _IMP_example.IMP_STATISTICS_HAS_BOOST_PROGRAMOPTIONS
290 IMP_STATISTICS_HAS_BOOST_RANDOM = _IMP_example.IMP_STATISTICS_HAS_BOOST_RANDOM
291 IMP_STATISTICS_HAS_BOOST_SYSTEM = _IMP_example.IMP_STATISTICS_HAS_BOOST_SYSTEM
292 IMP_STATISTICS_HAS_CGAL = _IMP_example.IMP_STATISTICS_HAS_CGAL
293 IMPSTATISTICS_SHOW_WARNINGS = _IMP_example.IMPSTATISTICS_SHOW_WARNINGS
294 import IMP.statistics
295 IMP_CORE_HAS_IMP_BASE = _IMP_example.IMP_CORE_HAS_IMP_BASE
296 IMP_CORE_HAS_IMP_CGAL = _IMP_example.IMP_CORE_HAS_IMP_CGAL
297 IMP_CORE_HAS_IMP_KERNEL = _IMP_example.IMP_CORE_HAS_IMP_KERNEL
298 IMP_CORE_HAS_BOOST_FILESYSTEM = _IMP_example.IMP_CORE_HAS_BOOST_FILESYSTEM
299 IMP_CORE_HAS_BOOST_PROGRAMOPTIONS = _IMP_example.IMP_CORE_HAS_BOOST_PROGRAMOPTIONS
300 IMP_CORE_HAS_BOOST_RANDOM = _IMP_example.IMP_CORE_HAS_BOOST_RANDOM
301 IMP_CORE_HAS_BOOST_SYSTEM = _IMP_example.IMP_CORE_HAS_BOOST_SYSTEM
302 IMP_CORE_HAS_CGAL = _IMP_example.IMP_CORE_HAS_CGAL
303 IMP_CORE_HAS_HDF5 = _IMP_example.IMP_CORE_HAS_HDF5
304 IMPCORE_SHOW_WARNINGS = _IMP_example.IMPCORE_SHOW_WARNINGS
305 import IMP.core
306 IMP_CONTAINER_HAS_IMP_ALGEBRA = _IMP_example.IMP_CONTAINER_HAS_IMP_ALGEBRA
307 IMP_CONTAINER_HAS_IMP_BASE = _IMP_example.IMP_CONTAINER_HAS_IMP_BASE
308 IMP_CONTAINER_HAS_IMP_CGAL = _IMP_example.IMP_CONTAINER_HAS_IMP_CGAL
309 IMP_CONTAINER_HAS_IMP_DISPLAY = _IMP_example.IMP_CONTAINER_HAS_IMP_DISPLAY
310 IMP_CONTAINER_HAS_IMP_KERNEL = _IMP_example.IMP_CONTAINER_HAS_IMP_KERNEL
311 IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR = _IMP_example.IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR
312 IMP_CONTAINER_HAS_BOOST_FILESYSTEM = _IMP_example.IMP_CONTAINER_HAS_BOOST_FILESYSTEM
313 IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS = _IMP_example.IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS
314 IMP_CONTAINER_HAS_BOOST_RANDOM = _IMP_example.IMP_CONTAINER_HAS_BOOST_RANDOM
315 IMP_CONTAINER_HAS_BOOST_SYSTEM = _IMP_example.IMP_CONTAINER_HAS_BOOST_SYSTEM
316 IMP_CONTAINER_HAS_CGAL = _IMP_example.IMP_CONTAINER_HAS_CGAL
317 IMP_CONTAINER_HAS_HDF5 = _IMP_example.IMP_CONTAINER_HAS_HDF5
318 IMPCONTAINER_SHOW_WARNINGS = _IMP_example.IMPCONTAINER_SHOW_WARNINGS
319 import IMP.container
320 IMP_ATOM_HAS_IMP_BASE = _IMP_example.IMP_ATOM_HAS_IMP_BASE
321 IMP_ATOM_HAS_IMP_CGAL = _IMP_example.IMP_ATOM_HAS_IMP_CGAL
322 IMP_ATOM_HAS_IMP_KERNEL = _IMP_example.IMP_ATOM_HAS_IMP_KERNEL
323 IMP_ATOM_HAS_IMP_SCORE_FUNCTOR = _IMP_example.IMP_ATOM_HAS_IMP_SCORE_FUNCTOR
324 IMP_ATOM_HAS_BOOST_PROGRAMOPTIONS = _IMP_example.IMP_ATOM_HAS_BOOST_PROGRAMOPTIONS
325 IMP_ATOM_HAS_BOOST_RANDOM = _IMP_example.IMP_ATOM_HAS_BOOST_RANDOM
326 IMP_ATOM_HAS_BOOST_REGEX = _IMP_example.IMP_ATOM_HAS_BOOST_REGEX
327 IMP_ATOM_HAS_BOOST_SYSTEM = _IMP_example.IMP_ATOM_HAS_BOOST_SYSTEM
328 IMP_ATOM_HAS_CGAL = _IMP_example.IMP_ATOM_HAS_CGAL
329 IMP_ATOM_HAS_HDF5 = _IMP_example.IMP_ATOM_HAS_HDF5
330 IMPATOM_SHOW_WARNINGS = _IMP_example.IMPATOM_SHOW_WARNINGS
331 IMP_ATOM_TYPE_INDEX = _IMP_example.IMP_ATOM_TYPE_INDEX
332 IMP_RESIDUE_TYPE_INDEX = _IMP_example.IMP_RESIDUE_TYPE_INDEX
333 IMP_HIERARCHY_TYPE_INDEX = _IMP_example.IMP_HIERARCHY_TYPE_INDEX
334 import IMP.atom
335 IMP_RMF_HAS_IMP_BASE = _IMP_example.IMP_RMF_HAS_IMP_BASE
336 IMP_RMF_HAS_IMP_CGAL = _IMP_example.IMP_RMF_HAS_IMP_CGAL
337 IMP_RMF_HAS_IMP_SCORE_FUNCTOR = _IMP_example.IMP_RMF_HAS_IMP_SCORE_FUNCTOR
338 IMP_RMF_HAS_BOOST_FILESYSTEM = _IMP_example.IMP_RMF_HAS_BOOST_FILESYSTEM
339 IMP_RMF_HAS_BOOST_PROGRAMOPTIONS = _IMP_example.IMP_RMF_HAS_BOOST_PROGRAMOPTIONS
340 IMP_RMF_HAS_BOOST_RANDOM = _IMP_example.IMP_RMF_HAS_BOOST_RANDOM
341 IMP_RMF_HAS_BOOST_REGEX = _IMP_example.IMP_RMF_HAS_BOOST_REGEX
342 IMP_RMF_HAS_BOOST_SYSTEM = _IMP_example.IMP_RMF_HAS_BOOST_SYSTEM
343 IMP_RMF_HAS_CGAL = _IMP_example.IMP_RMF_HAS_CGAL
344 IMP_RMF_HAS_HDF5 = _IMP_example.IMP_RMF_HAS_HDF5
345 IMPRMF_SHOW_WARNINGS = _IMP_example.IMPRMF_SHOW_WARNINGS
346 import IMP.rmf
347 import RMF
348 IMP_DOMINO_HAS_IMP_ATOM = _IMP_example.IMP_DOMINO_HAS_IMP_ATOM
349 IMP_DOMINO_HAS_IMP_BASE = _IMP_example.IMP_DOMINO_HAS_IMP_BASE
350 IMP_DOMINO_HAS_IMP_CGAL = _IMP_example.IMP_DOMINO_HAS_IMP_CGAL
351 IMP_DOMINO_HAS_IMP_KERNEL = _IMP_example.IMP_DOMINO_HAS_IMP_KERNEL
352 IMP_DOMINO_HAS_IMP_RMF = _IMP_example.IMP_DOMINO_HAS_IMP_RMF
353 IMP_DOMINO_HAS_IMP_SCORE_FUNCTOR = _IMP_example.IMP_DOMINO_HAS_IMP_SCORE_FUNCTOR
354 IMP_DOMINO_HAS_BOOST_FILESYSTEM = _IMP_example.IMP_DOMINO_HAS_BOOST_FILESYSTEM
355 IMP_DOMINO_HAS_BOOST_PROGRAMOPTIONS = _IMP_example.IMP_DOMINO_HAS_BOOST_PROGRAMOPTIONS
356 IMP_DOMINO_HAS_BOOST_RANDOM = _IMP_example.IMP_DOMINO_HAS_BOOST_RANDOM
357 IMP_DOMINO_HAS_BOOST_REGEX = _IMP_example.IMP_DOMINO_HAS_BOOST_REGEX
358 IMP_DOMINO_HAS_BOOST_SYSTEM = _IMP_example.IMP_DOMINO_HAS_BOOST_SYSTEM
359 IMP_DOMINO_HAS_CGAL = _IMP_example.IMP_DOMINO_HAS_CGAL
360 IMP_DOMINO_HAS_HDF5 = _IMP_example.IMP_DOMINO_HAS_HDF5
361 IMP_DOMINO_HAS_RMF = _IMP_example.IMP_DOMINO_HAS_RMF
362 IMPDOMINO_SHOW_WARNINGS = _IMP_example.IMPDOMINO_SHOW_WARNINGS
363 import RMF_HDF5
364 import IMP.domino
365 IMP_EXAMPLE_HAS_IMP_ALGEBRA = _IMP_example.IMP_EXAMPLE_HAS_IMP_ALGEBRA
366 IMP_EXAMPLE_HAS_IMP_BASE = _IMP_example.IMP_EXAMPLE_HAS_IMP_BASE
367 IMP_EXAMPLE_HAS_IMP_CGAL = _IMP_example.IMP_EXAMPLE_HAS_IMP_CGAL
368 IMP_EXAMPLE_HAS_IMP_DISPLAY = _IMP_example.IMP_EXAMPLE_HAS_IMP_DISPLAY
369 IMP_EXAMPLE_HAS_IMP_KERNEL = _IMP_example.IMP_EXAMPLE_HAS_IMP_KERNEL
370 IMP_EXAMPLE_HAS_IMP_RMF = _IMP_example.IMP_EXAMPLE_HAS_IMP_RMF
371 IMP_EXAMPLE_HAS_IMP_SCORE_FUNCTOR = _IMP_example.IMP_EXAMPLE_HAS_IMP_SCORE_FUNCTOR
372 IMP_EXAMPLE_HAS_IMP_STATISTICS = _IMP_example.IMP_EXAMPLE_HAS_IMP_STATISTICS
373 IMP_EXAMPLE_HAS_BOOST_FILESYSTEM = _IMP_example.IMP_EXAMPLE_HAS_BOOST_FILESYSTEM
374 IMP_EXAMPLE_HAS_BOOST_GRAPH = _IMP_example.IMP_EXAMPLE_HAS_BOOST_GRAPH
375 IMP_EXAMPLE_HAS_BOOST_PROGRAMOPTIONS = _IMP_example.IMP_EXAMPLE_HAS_BOOST_PROGRAMOPTIONS
376 IMP_EXAMPLE_HAS_BOOST_RANDOM = _IMP_example.IMP_EXAMPLE_HAS_BOOST_RANDOM
377 IMP_EXAMPLE_HAS_BOOST_REGEX = _IMP_example.IMP_EXAMPLE_HAS_BOOST_REGEX
378 IMP_EXAMPLE_HAS_BOOST_SYSTEM = _IMP_example.IMP_EXAMPLE_HAS_BOOST_SYSTEM
379 IMP_EXAMPLE_HAS_CGAL = _IMP_example.IMP_EXAMPLE_HAS_CGAL
380 IMP_EXAMPLE_HAS_HDF5 = _IMP_example.IMP_EXAMPLE_HAS_HDF5
381 IMP_EXAMPLE_HAS_RMF = _IMP_example.IMP_EXAMPLE_HAS_RMF
382 IMP_EXAMPLE_HAS_EXAMPLEDEPENDENCY = _IMP_example.IMP_EXAMPLE_HAS_EXAMPLEDEPENDENCY
383 IMPEXAMPLE_SHOW_WARNINGS = _IMP_example.IMPEXAMPLE_SHOW_WARNINGS
384 _object_types.append("ExampleRestraint")
385 
386 
387 def _object_cast_to_ExampleRestraint(*args):
388  """_object_cast_to_ExampleRestraint(Object o) -> ExampleRestraint"""
389  return _IMP_example._object_cast_to_ExampleRestraint(*args)
390 def ExampleDecorators(l=[]):
391  return [ExampleDecorator(x) for x in l]
392 _plural_types.append("ExampleDecorators")
393 
394 _value_types.append("ExampleDecorator")
395 
396 _object_types.append("ExampleUnaryFunction")
397 
398 
399 def _object_cast_to_ExampleUnaryFunction(*args):
400  """_object_cast_to_ExampleUnaryFunction(Object o) -> ExampleUnaryFunction"""
401  return _IMP_example._object_cast_to_ExampleUnaryFunction(*args)
402 _object_types.append("ExampleSingletonModifier")
403 
404 
405 def _object_cast_to_ExampleSingletonModifier(*args):
406  """_object_cast_to_ExampleSingletonModifier(Object o) -> ExampleSingletonModifier"""
407  return _IMP_example._object_cast_to_ExampleSingletonModifier(*args)
408 _object_types.append("ExamplePairScore")
409 
410 
411 def _object_cast_to_ExamplePairScore(*args):
412  """_object_cast_to_ExamplePairScore(Object o) -> ExamplePairScore"""
413  return _IMP_example._object_cast_to_ExamplePairScore(*args)
414 _object_types.append("ExampleSubsetFilterTable")
415 
416 
417 def _object_cast_to_ExampleSubsetFilterTable(*args):
418  """_object_cast_to_ExampleSubsetFilterTable(Object o) -> ExampleSubsetFilterTable"""
419  return _IMP_example._object_cast_to_ExampleSubsetFilterTable(*args)
420 _object_types.append("ExampleConstraint")
421 
422 
423 def _object_cast_to_ExampleConstraint(*args):
424  """_object_cast_to_ExampleConstraint(Object o) -> ExampleConstraint"""
425  return _IMP_example._object_cast_to_ExampleConstraint(*args)
426 _object_types.append("ExampleObject")
427 
428 
429 def _object_cast_to_ExampleObject(*args):
430  """_object_cast_to_ExampleObject(Object o) -> ExampleObject"""
431  return _IMP_example._object_cast_to_ExampleObject(*args)
432 ExampleTemplateClass3Ds=list
433 _plural_types.append("ExampleTemplateClass3Ds")
434 _value_types.append("ExampleTemplateClass3D")
435 
436 def create_model_and_particles():
437  m= IMP.Model()
440  IMP.algebra.Vector3D(10,10,10))
441  for i in range(0,100):
442  p= IMP.Particle(m)
443  sc.add_particle(p)
445  d.set_coordinates_are_optimized(True)
446  return (m, sc)
447 
448 class ExampleRestraint(IMP.kernel.Restraint):
449  """Proxy of C++ IMP::example::ExampleRestraint class"""
450  __swig_setmethods__ = {}
451  for _s in [IMP.kernel.Restraint]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
452  __setattr__ = lambda self, name, value: _swig_setattr(self, ExampleRestraint, name, value)
453  __swig_getmethods__ = {}
454  for _s in [IMP.kernel.Restraint]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
455  __getattr__ = lambda self, name: _swig_getattr(self, ExampleRestraint, name)
456  def __init__(self, *args):
457  """__init__(IMP::example::ExampleRestraint self, Model m, IMP::kernel::ParticleIndex p, double k) -> ExampleRestraint"""
458  this = _IMP_example.new_ExampleRestraint(*args)
459  try: self.this.append(this)
460  except: self.this = this
461  def do_add_score_and_derivatives(self, *args):
462  """do_add_score_and_derivatives(ExampleRestraint self, ScoreAccumulator sa)"""
463  return _IMP_example.ExampleRestraint_do_add_score_and_derivatives(self, *args)
464 
465  def do_get_inputs(self):
466  """do_get_inputs(ExampleRestraint self) -> IMP::kernel::ModelObjectsTemp"""
467  return _IMP_example.ExampleRestraint_do_get_inputs(self)
468 
469  def get_version_info(self):
470  """get_version_info(ExampleRestraint self) -> VersionInfo"""
471  return _IMP_example.ExampleRestraint_get_version_info(self)
472 
473  def __str__(self):
474  """__str__(ExampleRestraint self) -> std::string"""
475  return _IMP_example.ExampleRestraint___str__(self)
476 
477  def __repr__(self):
478  """__repr__(ExampleRestraint self) -> std::string"""
479  return _IMP_example.ExampleRestraint___repr__(self)
480 
481  def get_from(o):
482  return _object_cast_to_ExampleRestraint(o)
483  get_from = staticmethod(get_from)
484 
485 ExampleRestraint_swigregister = _IMP_example.ExampleRestraint_swigregister
486 ExampleRestraint_swigregister(ExampleRestraint)
487 
488 class ExampleDecorator(IMP.kernel.Decorator):
489  """Proxy of C++ IMP::example::ExampleDecorator class"""
490  __swig_setmethods__ = {}
491  for _s in [IMP.kernel.Decorator]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
492  __setattr__ = lambda self, name, value: _swig_setattr(self, ExampleDecorator, name, value)
493  __swig_getmethods__ = {}
494  for _s in [IMP.kernel.Decorator]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
495  __getattr__ = lambda self, name: _swig_getattr(self, ExampleDecorator, name)
496  def get_decorator_name(self):
497  """get_decorator_name(ExampleDecorator self) -> std::string"""
498  return _IMP_example.ExampleDecorator_get_decorator_name(self)
499 
500  def set_decorator_name(self, *args):
501  """set_decorator_name(ExampleDecorator self, std::string nm)"""
502  return _IMP_example.ExampleDecorator_set_decorator_name(self, *args)
503 
504  def __init__(self, *args):
505  """
506  __init__(IMP::example::ExampleDecorator self) -> ExampleDecorator
507  __init__(IMP::example::ExampleDecorator self, Model m, ::IMP::kernel::ParticleIndex id) -> ExampleDecorator
508  __init__(IMP::example::ExampleDecorator self, _ParticleAdaptor d) -> ExampleDecorator
509  """
510  this = _IMP_example.new_ExampleDecorator(*args)
511  try: self.this.append(this)
512  except: self.this = this
513  def decorate_particle(*args):
514  """decorate_particle(Particle p) -> ExampleDecorator"""
515  return _IMP_example.ExampleDecorator_decorate_particle(*args)
516 
517  if _newclass:decorate_particle = staticmethod(decorate_particle)
518  __swig_getmethods__["decorate_particle"] = lambda x: decorate_particle
519  def get_is_setup(*args):
520  """
521  get_is_setup(Model m, IMP::kernel::ParticleIndex pi) -> bool
522  get_is_setup(_ParticleAdaptor p) -> bool
523  """
524  return _IMP_example.ExampleDecorator_get_is_setup(*args)
525 
526  if _newclass:get_is_setup = staticmethod(get_is_setup)
527  __swig_getmethods__["get_is_setup"] = lambda x: get_is_setup
528  def show(self, *args):
529  """
530  show(ExampleDecorator self, _ostream out=std::cout)
531  show(ExampleDecorator self)
532  """
533  return _IMP_example.ExampleDecorator_show(self, *args)
534 
535  def setup_particle(*args):
536  """
537  setup_particle(Model m, IMP::kernel::ParticleIndex pi, std::string name) -> ExampleDecorator
538  setup_particle(_ParticleAdaptor decorator, std::string name) -> ExampleDecorator
539  """
540  return _IMP_example.ExampleDecorator_setup_particle(*args)
541 
542  if _newclass:setup_particle = staticmethod(setup_particle)
543  __swig_getmethods__["setup_particle"] = lambda x: setup_particle
544  def add_attribute(self, *args):
545  """
546  add_attribute(ExampleDecorator self, FloatKey k, IMP::Float v, bool opt)
547  add_attribute(ExampleDecorator self, FloatKey a0, IMP::Float a1)
548  add_attribute(ExampleDecorator self, IntKey a0, IMP::Int a1)
549  add_attribute(ExampleDecorator self, StringKey a0, IMP::String a1)
550  add_attribute(ExampleDecorator self, ParticleIndexKey a0, Particle a1)
551  add_attribute(ExampleDecorator self, ObjectKey a0, Object a1)
552  """
553  return _IMP_example.ExampleDecorator_add_attribute(self, *args)
554 
555  def get_value(self, *args):
556  """
557  get_value(ExampleDecorator self, FloatKey a0) -> IMP::Float
558  get_value(ExampleDecorator self, IntKey a0) -> IMP::Int
559  get_value(ExampleDecorator self, StringKey a0) -> IMP::String
560  get_value(ExampleDecorator self, ParticleIndexKey a0) -> Particle
561  get_value(ExampleDecorator self, ObjectKey a0) -> Object
562  """
563  return _IMP_example.ExampleDecorator_get_value(self, *args)
564 
565  def set_value(self, *args):
566  """
567  set_value(ExampleDecorator self, FloatKey a0, IMP::Float a1)
568  set_value(ExampleDecorator self, IntKey a0, IMP::Int a1)
569  set_value(ExampleDecorator self, StringKey a0, IMP::String a1)
570  set_value(ExampleDecorator self, ParticleIndexKey a0, Particle a1)
571  set_value(ExampleDecorator self, ObjectKey a0, Object a1)
572  """
573  return _IMP_example.ExampleDecorator_set_value(self, *args)
574 
575  def remove_attribute(self, *args):
576  """
577  remove_attribute(ExampleDecorator self, FloatKey a0)
578  remove_attribute(ExampleDecorator self, IntKey a0)
579  remove_attribute(ExampleDecorator self, StringKey a0)
580  remove_attribute(ExampleDecorator self, ParticleIndexKey a0)
581  remove_attribute(ExampleDecorator self, ObjectKey a0)
582  """
583  return _IMP_example.ExampleDecorator_remove_attribute(self, *args)
584 
585  def has_attribute(self, *args):
586  """
587  has_attribute(ExampleDecorator self, FloatKey a0) -> bool
588  has_attribute(ExampleDecorator self, IntKey a0) -> bool
589  has_attribute(ExampleDecorator self, StringKey a0) -> bool
590  has_attribute(ExampleDecorator self, ParticleIndexKey a0) -> bool
591  has_attribute(ExampleDecorator self, ObjectKey a0) -> bool
592  """
593  return _IMP_example.ExampleDecorator_has_attribute(self, *args)
594 
595  def get_derivative(self, *args):
596  """get_derivative(ExampleDecorator self, FloatKey a0) -> double"""
597  return _IMP_example.ExampleDecorator_get_derivative(self, *args)
598 
599  def get_name(self):
600  """get_name(ExampleDecorator self) -> std::string"""
601  return _IMP_example.ExampleDecorator_get_name(self)
602 
603  def clear_caches(self):
604  """clear_caches(ExampleDecorator self)"""
605  return _IMP_example.ExampleDecorator_clear_caches(self)
606 
607  def set_name(self, *args):
608  """set_name(ExampleDecorator self, std::string a0)"""
609  return _IMP_example.ExampleDecorator_set_name(self, *args)
610 
611  def set_check_level(self, *args):
612  """set_check_level(ExampleDecorator self, IMP::base::CheckLevel a0)"""
613  return _IMP_example.ExampleDecorator_set_check_level(self, *args)
614 
615  def add_to_derivative(self, *args):
616  """add_to_derivative(ExampleDecorator self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
617  return _IMP_example.ExampleDecorator_add_to_derivative(self, *args)
618 
619  def set_is_optimized(self, *args):
620  """set_is_optimized(ExampleDecorator self, FloatKey a0, bool a1)"""
621  return _IMP_example.ExampleDecorator_set_is_optimized(self, *args)
622 
623  def get_is_optimized(self, *args):
624  """get_is_optimized(ExampleDecorator self, FloatKey a0) -> bool"""
625  return _IMP_example.ExampleDecorator_get_is_optimized(self, *args)
626 
627  def get_check_level(self):
628  """get_check_level(ExampleDecorator self) -> IMP::base::CheckLevel"""
629  return _IMP_example.ExampleDecorator_get_check_level(self)
630 
631  def __eq__(self, *args):
632  """
633  __eq__(ExampleDecorator self, ExampleDecorator o) -> bool
634  __eq__(ExampleDecorator self, Particle d) -> bool
635  """
636  return _IMP_example.ExampleDecorator___eq__(self, *args)
637 
638  def __ne__(self, *args):
639  """
640  __ne__(ExampleDecorator self, ExampleDecorator o) -> bool
641  __ne__(ExampleDecorator self, Particle d) -> bool
642  """
643  return _IMP_example.ExampleDecorator___ne__(self, *args)
644 
645  def __le__(self, *args):
646  """
647  __le__(ExampleDecorator self, ExampleDecorator o) -> bool
648  __le__(ExampleDecorator self, Particle d) -> bool
649  """
650  return _IMP_example.ExampleDecorator___le__(self, *args)
651 
652  def __lt__(self, *args):
653  """
654  __lt__(ExampleDecorator self, ExampleDecorator o) -> bool
655  __lt__(ExampleDecorator self, Particle d) -> bool
656  """
657  return _IMP_example.ExampleDecorator___lt__(self, *args)
658 
659  def __ge__(self, *args):
660  """
661  __ge__(ExampleDecorator self, ExampleDecorator o) -> bool
662  __ge__(ExampleDecorator self, Particle d) -> bool
663  """
664  return _IMP_example.ExampleDecorator___ge__(self, *args)
665 
666  def __gt__(self, *args):
667  """
668  __gt__(ExampleDecorator self, ExampleDecorator o) -> bool
669  __gt__(ExampleDecorator self, Particle d) -> bool
670  """
671  return _IMP_example.ExampleDecorator___gt__(self, *args)
672 
673  def __str__(self):
674  """__str__(ExampleDecorator self) -> std::string"""
675  return _IMP_example.ExampleDecorator___str__(self)
676 
677  def __repr__(self):
678  """__repr__(ExampleDecorator self) -> std::string"""
679  return _IMP_example.ExampleDecorator___repr__(self)
680 
681  __swig_destroy__ = _IMP_example.delete_ExampleDecorator
682  __del__ = lambda self : None;
683 ExampleDecorator_swigregister = _IMP_example.ExampleDecorator_swigregister
684 ExampleDecorator_swigregister(ExampleDecorator)
685 
686 def ExampleDecorator_decorate_particle(*args):
687  """ExampleDecorator_decorate_particle(Particle p) -> ExampleDecorator"""
688  return _IMP_example.ExampleDecorator_decorate_particle(*args)
689 
690 def ExampleDecorator_get_is_setup(*args):
691  """
692  get_is_setup(Model m, IMP::kernel::ParticleIndex pi) -> bool
693  ExampleDecorator_get_is_setup(_ParticleAdaptor p) -> bool
694  """
695  return _IMP_example.ExampleDecorator_get_is_setup(*args)
696 
697 def ExampleDecorator_setup_particle(*args):
698  """
699  setup_particle(Model m, IMP::kernel::ParticleIndex pi, std::string name) -> ExampleDecorator
700  ExampleDecorator_setup_particle(_ParticleAdaptor decorator, std::string name) -> ExampleDecorator
701  """
702  return _IMP_example.ExampleDecorator_setup_particle(*args)
703 
704 
705 def __lshift__(*args):
706  """__lshift__(_ostream out, ExampleDecorator n) -> _ostream"""
707  return _IMP_example.__lshift__(*args)
708 class ExampleUnaryFunction(IMP.kernel.UnaryFunction):
709  """Proxy of C++ IMP::example::ExampleUnaryFunction class"""
710  __swig_setmethods__ = {}
711  for _s in [IMP.kernel.UnaryFunction]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
712  __setattr__ = lambda self, name, value: _swig_setattr(self, ExampleUnaryFunction, name, value)
713  __swig_getmethods__ = {}
714  for _s in [IMP.kernel.UnaryFunction]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
715  __getattr__ = lambda self, name: _swig_getattr(self, ExampleUnaryFunction, name)
716  def __init__(self, *args):
717  """__init__(IMP::example::ExampleUnaryFunction self, IMP::Float center, IMP::Float k) -> ExampleUnaryFunction"""
718  this = _IMP_example.new_ExampleUnaryFunction(*args)
719  try: self.this.append(this)
720  except: self.this = this
721  def get_version_info(self):
722  """get_version_info(ExampleUnaryFunction self) -> VersionInfo"""
723  return _IMP_example.ExampleUnaryFunction_get_version_info(self)
724 
725  def __str__(self):
726  """__str__(ExampleUnaryFunction self) -> std::string"""
727  return _IMP_example.ExampleUnaryFunction___str__(self)
728 
729  def __repr__(self):
730  """__repr__(ExampleUnaryFunction self) -> std::string"""
731  return _IMP_example.ExampleUnaryFunction___repr__(self)
732 
733  def get_from(o):
734  return _object_cast_to_ExampleUnaryFunction(o)
735  get_from = staticmethod(get_from)
736 
737 ExampleUnaryFunction_swigregister = _IMP_example.ExampleUnaryFunction_swigregister
738 ExampleUnaryFunction_swigregister(ExampleUnaryFunction)
739 
740 class ExampleObject(IMP.base.Object):
741  """Proxy of C++ IMP::example::ExampleObject class"""
742  __swig_setmethods__ = {}
743  for _s in [IMP.base.Object]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
744  __setattr__ = lambda self, name, value: _swig_setattr(self, ExampleObject, name, value)
745  __swig_getmethods__ = {}
746  for _s in [IMP.base.Object]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
747  __getattr__ = lambda self, name: _swig_getattr(self, ExampleObject, name)
748  def __init__(self, *args):
749  """__init__(IMP::example::ExampleObject self, IMP::Floats const & data) -> ExampleObject"""
750  this = _IMP_example.new_ExampleObject(*args)
751  try: self.this.append(this)
752  except: self.this = this
753  def get_data(self, *args):
754  """get_data(ExampleObject self, unsigned int i) -> double"""
755  return _IMP_example.ExampleObject_get_data(self, *args)
756 
757  def get_version_info(self):
758  """get_version_info(ExampleObject self) -> VersionInfo"""
759  return _IMP_example.ExampleObject_get_version_info(self)
760 
761  def __str__(self):
762  """__str__(ExampleObject self) -> std::string"""
763  return _IMP_example.ExampleObject___str__(self)
764 
765  def __repr__(self):
766  """__repr__(ExampleObject self) -> std::string"""
767  return _IMP_example.ExampleObject___repr__(self)
768 
769  def get_from(o):
770  return _object_cast_to_ExampleObject(o)
771  get_from = staticmethod(get_from)
772 
773 ExampleObject_swigregister = _IMP_example.ExampleObject_swigregister
774 ExampleObject_swigregister(ExampleObject)
775 
776 class ExampleSingletonModifier(IMP.kernel.SingletonModifier):
777  """Proxy of C++ IMP::example::ExampleSingletonModifier class"""
778  __swig_setmethods__ = {}
779  for _s in [IMP.kernel.SingletonModifier]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
780  __setattr__ = lambda self, name, value: _swig_setattr(self, ExampleSingletonModifier, name, value)
781  __swig_getmethods__ = {}
782  for _s in [IMP.kernel.SingletonModifier]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
783  __getattr__ = lambda self, name: _swig_getattr(self, ExampleSingletonModifier, name)
784  def __init__(self, *args):
785  """__init__(IMP::example::ExampleSingletonModifier self, BoundingBox3D bb) -> ExampleSingletonModifier"""
786  this = _IMP_example.new_ExampleSingletonModifier(*args)
787  try: self.this.append(this)
788  except: self.this = this
789  def do_get_inputs(self, *args):
790  """do_get_inputs(ExampleSingletonModifier self, Model m, IMP::kernel::ParticleIndexes const & pis) -> IMP::kernel::ModelObjectsTemp"""
791  return _IMP_example.ExampleSingletonModifier_do_get_inputs(self, *args)
792 
793  def do_get_outputs(self, *args):
794  """do_get_outputs(ExampleSingletonModifier self, Model m, IMP::kernel::ParticleIndexes const & pis) -> IMP::kernel::ModelObjectsTemp"""
795  return _IMP_example.ExampleSingletonModifier_do_get_outputs(self, *args)
796 
797  def get_version_info(self):
798  """get_version_info(ExampleSingletonModifier self) -> VersionInfo"""
799  return _IMP_example.ExampleSingletonModifier_get_version_info(self)
800 
801  def __str__(self):
802  """__str__(ExampleSingletonModifier self) -> std::string"""
803  return _IMP_example.ExampleSingletonModifier___str__(self)
804 
805  def __repr__(self):
806  """__repr__(ExampleSingletonModifier self) -> std::string"""
807  return _IMP_example.ExampleSingletonModifier___repr__(self)
808 
809  def get_from(o):
810  return _object_cast_to_ExampleSingletonModifier(o)
811  get_from = staticmethod(get_from)
812 
813 ExampleSingletonModifier_swigregister = _IMP_example.ExampleSingletonModifier_swigregister
814 ExampleSingletonModifier_swigregister(ExampleSingletonModifier)
815 
816 class ExamplePairScore(IMP.kernel.PairScore):
817  """Proxy of C++ IMP::example::ExamplePairScore class"""
818  __swig_setmethods__ = {}
819  for _s in [IMP.kernel.PairScore]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
820  __setattr__ = lambda self, name, value: _swig_setattr(self, ExamplePairScore, name, value)
821  __swig_getmethods__ = {}
822  for _s in [IMP.kernel.PairScore]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
823  __getattr__ = lambda self, name: _swig_getattr(self, ExamplePairScore, name)
824  def __init__(self, *args):
825  """__init__(IMP::example::ExamplePairScore self, double x0, double k) -> ExamplePairScore"""
826  this = _IMP_example.new_ExamplePairScore(*args)
827  try: self.this.append(this)
828  except: self.this = this
829  def do_get_inputs(self, *args):
830  """do_get_inputs(ExamplePairScore self, Model m, IMP::kernel::ParticleIndexes const & pis) -> IMP::kernel::ModelObjectsTemp"""
831  return _IMP_example.ExamplePairScore_do_get_inputs(self, *args)
832 
833  def get_version_info(self):
834  """get_version_info(ExamplePairScore self) -> VersionInfo"""
835  return _IMP_example.ExamplePairScore_get_version_info(self)
836 
837  def __str__(self):
838  """__str__(ExamplePairScore self) -> std::string"""
839  return _IMP_example.ExamplePairScore___str__(self)
840 
841  def __repr__(self):
842  """__repr__(ExamplePairScore self) -> std::string"""
843  return _IMP_example.ExamplePairScore___repr__(self)
844 
845  def get_from(o):
846  return _object_cast_to_ExamplePairScore(o)
847  get_from = staticmethod(get_from)
848 
849 ExamplePairScore_swigregister = _IMP_example.ExamplePairScore_swigregister
850 ExamplePairScore_swigregister(ExamplePairScore)
851 
852 class ExampleSubsetFilterTable(IMP.domino.SubsetFilterTable):
853  """Proxy of C++ IMP::example::ExampleSubsetFilterTable class"""
854  __swig_setmethods__ = {}
855  for _s in [IMP.domino.SubsetFilterTable]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
856  __setattr__ = lambda self, name, value: _swig_setattr(self, ExampleSubsetFilterTable, name, value)
857  __swig_getmethods__ = {}
858  for _s in [IMP.domino.SubsetFilterTable]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
859  __getattr__ = lambda self, name: _swig_getattr(self, ExampleSubsetFilterTable, name)
860  def __init__(self, *args):
861  """__init__(IMP::example::ExampleSubsetFilterTable self, unsigned int max_diff, IMP::kernel::ParticlesTemp const & pt) -> ExampleSubsetFilterTable"""
862  this = _IMP_example.new_ExampleSubsetFilterTable(*args)
863  try: self.this.append(this)
864  except: self.this = this
865  def get_version_info(self):
866  """get_version_info(ExampleSubsetFilterTable self) -> VersionInfo"""
867  return _IMP_example.ExampleSubsetFilterTable_get_version_info(self)
868 
869  def __str__(self):
870  """__str__(ExampleSubsetFilterTable self) -> std::string"""
871  return _IMP_example.ExampleSubsetFilterTable___str__(self)
872 
873  def __repr__(self):
874  """__repr__(ExampleSubsetFilterTable self) -> std::string"""
875  return _IMP_example.ExampleSubsetFilterTable___repr__(self)
876 
877  def get_from(o):
878  return _object_cast_to_ExampleSubsetFilterTable(o)
879  get_from = staticmethod(get_from)
880 
881 ExampleSubsetFilterTable_swigregister = _IMP_example.ExampleSubsetFilterTable_swigregister
882 ExampleSubsetFilterTable_swigregister(ExampleSubsetFilterTable)
883 
884 class ExampleConstraint(IMP.kernel.Constraint):
885  """Proxy of C++ IMP::example::ExampleConstraint class"""
886  __swig_setmethods__ = {}
887  for _s in [IMP.kernel.Constraint]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
888  __setattr__ = lambda self, name, value: _swig_setattr(self, ExampleConstraint, name, value)
889  __swig_getmethods__ = {}
890  for _s in [IMP.kernel.Constraint]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
891  __getattr__ = lambda self, name: _swig_getattr(self, ExampleConstraint, name)
892  def __init__(self, *args):
893  """__init__(IMP::example::ExampleConstraint self, Particle p) -> ExampleConstraint"""
894  this = _IMP_example.new_ExampleConstraint(*args)
895  try: self.this.append(this)
896  except: self.this = this
897  def do_get_inputs(self):
898  """do_get_inputs(ExampleConstraint self) -> IMP::kernel::ModelObjectsTemp"""
899  return _IMP_example.ExampleConstraint_do_get_inputs(self)
900 
901  def do_get_outputs(self):
902  """do_get_outputs(ExampleConstraint self) -> IMP::kernel::ModelObjectsTemp"""
903  return _IMP_example.ExampleConstraint_do_get_outputs(self)
904 
905  def get_version_info(self):
906  """get_version_info(ExampleConstraint self) -> VersionInfo"""
907  return _IMP_example.ExampleConstraint_get_version_info(self)
908 
909  def __str__(self):
910  """__str__(ExampleConstraint self) -> std::string"""
911  return _IMP_example.ExampleConstraint___str__(self)
912 
913  def __repr__(self):
914  """__repr__(ExampleConstraint self) -> std::string"""
915  return _IMP_example.ExampleConstraint___repr__(self)
916 
917  def get_from(o):
918  return _object_cast_to_ExampleConstraint(o)
919  get_from = staticmethod(get_from)
920 
921 ExampleConstraint_swigregister = _IMP_example.ExampleConstraint_swigregister
922 ExampleConstraint_swigregister(ExampleConstraint)
923 
924 
925 def create_serial_mover(*args):
926  """create_serial_mover(IMP::kernel::ParticlesTemp const & ps) -> MonteCarloMover"""
927  return _IMP_example.create_serial_mover(*args)
928 
929 def optimize_balls(*args):
930  """
931  optimize_balls(IMP::kernel::ParticlesTemp const & ps, IMP::kernel::RestraintsTemp const & rs=IMP::kernel::RestraintsTemp(),
932  IMP::kernel::PairPredicates const & excluded=IMP::kernel::PairPredicates(),
933  IMP::kernel::OptimizerStates const & opt_states=IMP::kernel::OptimizerStates(),
934  IMP::base::LogLevel ll=DEFAULT)
935  optimize_balls(IMP::kernel::ParticlesTemp const & ps, IMP::kernel::RestraintsTemp const & rs=IMP::kernel::RestraintsTemp(),
936  IMP::kernel::PairPredicates const & excluded=IMP::kernel::PairPredicates(),
937  IMP::kernel::OptimizerStates const & opt_states=IMP::kernel::OptimizerStates())
938  optimize_balls(IMP::kernel::ParticlesTemp const & ps, IMP::kernel::RestraintsTemp const & rs=IMP::kernel::RestraintsTemp(),
939  IMP::kernel::PairPredicates const & excluded=IMP::kernel::PairPredicates())
940  optimize_balls(IMP::kernel::ParticlesTemp const & ps, IMP::kernel::RestraintsTemp const & rs=IMP::kernel::RestraintsTemp())
941  optimize_balls(IMP::kernel::ParticlesTemp const & ps)
942  """
943  return _IMP_example.optimize_balls(*args)
944 
945 def optimize_assembly(*args):
946  """
947  optimize_assembly(Model m, IMP::kernel::ParticlesTemp const & components, IMP::kernel::RestraintsTemp const & interactions,
948  IMP::kernel::RestraintsTemp const & other_restraints,
949  BoundingBox3D bb, PairScore ev, double cutoff, IMP::kernel::PairPredicates const & excluded=IMP::kernel::PairPredicates())
950  optimize_assembly(Model m, IMP::kernel::ParticlesTemp const & components, IMP::kernel::RestraintsTemp const & interactions,
951  IMP::kernel::RestraintsTemp const & other_restraints,
952  BoundingBox3D bb, PairScore ev, double cutoff)
953  """
954  return _IMP_example.optimize_assembly(*args)
955 
956 def get_number_of_incidences(*args):
957  """get_number_of_incidences(IMP::kernel::ParticlesTemp const & psa, IMP::kernel::ParticlesTemp const & psb, double point_distance) -> unsigned int"""
958  return _IMP_example.get_number_of_incidences(*args)
959 
960 def create_chain_restraint(*args):
961  """create_chain_restraint(IMP::kernel::ParticlesTemp const & ps, double length_factor, double k, std::string name) -> Restraint"""
962  return _IMP_example.create_chain_restraint(*args)
963 
964 def create_excluded_volume(*args):
965  """create_excluded_volume(IMP::kernel::ParticlesTemp const & ps, double k, std::string name) -> ClosePairContainer"""
966  return _IMP_example.create_excluded_volume(*args)
967 class ExampleTemplateClass3D(_object):
968  """Proxy of C++ IMP::example::ExampleTemplateClassD<(3)> class"""
969  __swig_setmethods__ = {}
970  __setattr__ = lambda self, name, value: _swig_setattr(self, ExampleTemplateClass3D, name, value)
971  __swig_getmethods__ = {}
972  __getattr__ = lambda self, name: _swig_getattr(self, ExampleTemplateClass3D, name)
973  def __init__(self, *args):
974  """
975  __init__(IMP::example::ExampleTemplateClassD<(3)> self) -> ExampleTemplateClass3D
976  __init__(IMP::example::ExampleTemplateClassD<(3)> self, Vector3D a, Vector3D b) -> ExampleTemplateClass3D
977  """
978  this = _IMP_example.new_ExampleTemplateClass3D(*args)
979  try: self.this.append(this)
980  except: self.this = this
981  def get_point(self, *args):
982  """get_point(ExampleTemplateClass3D self, unsigned int i) -> Vector3D"""
983  return _IMP_example.ExampleTemplateClass3D_get_point(self, *args)
984 
985  def show(self, *args):
986  """
987  show(ExampleTemplateClass3D self, _ostream out=std::cout)
988  show(ExampleTemplateClass3D self)
989  """
990  return _IMP_example.ExampleTemplateClass3D_show(self, *args)
991 
992  def __str__(self):
993  """__str__(ExampleTemplateClass3D self) -> std::string"""
994  return _IMP_example.ExampleTemplateClass3D___str__(self)
995 
996  def __repr__(self):
997  """__repr__(ExampleTemplateClass3D self) -> std::string"""
998  return _IMP_example.ExampleTemplateClass3D___repr__(self)
999 
1000  __swig_destroy__ = _IMP_example.delete_ExampleTemplateClass3D
1001  __del__ = lambda self : None;
1002 ExampleTemplateClass3D_swigregister = _IMP_example.ExampleTemplateClass3D_swigregister
1003 ExampleTemplateClass3D_swigregister(ExampleTemplateClass3D)
1004 
1005 from _randomize import *
1006 
1007 
1008 def get_module_version():
1009  """get_module_version() -> std::string const"""
1010  return _IMP_example.get_module_version()
1011 
1012 def get_example_path(*args):
1013  """get_example_path(std::string fname) -> std::string"""
1014  return _IMP_example.get_example_path(*args)
1015 
1016 def get_data_path(*args):
1017  """get_data_path(std::string fname) -> std::string"""
1018  return _IMP_example.get_data_path(*args)
1019 import _version_check
1020 _version_check.check_version(get_module_version())
1021 
1022 # This file is compatible with both classic and new-style classes.
1023 
1024 
See IMP.container for more information.
void optimize_assembly(kernel::Model *m, const kernel::ParticlesTemp &components, const kernel::RestraintsTemp &interactions, const kernel::RestraintsTemp &other_restraints, const algebra::BoundingBox3D &bb, PairScore *ev, double cutoff, const PairPredicates &excluded=PairPredicates())
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
std::string get_data_path(std::string file_name)
Return the full path to installed data.
void optimize_balls(const kernel::ParticlesTemp &ps, const kernel::RestraintsTemp &rs=kernel::RestraintsTemp(), const PairPredicates &excluded=PairPredicates(), const OptimizerStates &opt_states=OptimizerStates(), base::LogLevel ll=base::DEFAULT)
Abstract single variable functor class for score functions.
See IMP.score_functor for more information.
Definition: AddScores.h:14
Vector3D get_random_vector_in(const Cylinder3D &c)
Generate a random vector in a cylinder with uniform density.
A base class for modifiers of kernel::ParticlesTemp.
See IMP.statistics for more information.
kernel::Restraint * create_chain_restraint(const kernel::ParticlesTemp &ps, double length_factor, double k, std::string name)
unsigned int get_number_of_incidences(const kernel::ParticlesTemp &psa, const kernel::ParticlesTemp &psb, double point_distance)
Definition: counting.h:23
Abstract score function.
static XYZR setup_particle(kernel::Model *m, ParticleIndex pi)
Definition: XYZR.h:48
Store a kernel::ParticleIndexes.
See IMP.kernel for more information.
A restraint is a term in an IMP ScoringFunction.
Class to handle individual model particles.
Common base class for heavy weight IMP objects.
Definition: base/Object.h:106
std::string get_example_path(std::string file_name)
Return the path to installed example data for this module.
container::ClosePairContainer * create_excluded_volume(const kernel::ParticlesTemp &ps, double k, std::string name)
See IMP.core for more information.
See IMP.algebra for more information.
void show(Hierarchy h, std::ostream &out=std::cout)
Print out a molecular hierarchy.
core::MonteCarloMover * create_serial_mover(const kernel::ParticlesTemp &ps)
VectorD< 3 > Vector3D
Definition: VectorD.h:395
Implement a constraint on the Model.
See IMP.display for more information.
Definition: ChimeraWriter.h:17
CheckLevel get_check_level()
Get the current audit mode.
See IMP.atom for more information.
See IMP.rmf for more information.
Definition: associations.h:20
See IMP.domino for more information.
Definition: analysis.h:15
Class for storing model, its restraints, constraints, and particles.
Definition: kernel/Model.h:72