IMP  2.4.0
The Integrative Modeling Platform
example/__init__.py
1 # This file was automatically generated by SWIG (http://www.swig.org).
2 # Version 3.0.2
3 #
4 # Do not make changes to this file unless you know what you are doing--modify
5 # the SWIG interface file instead.
6 
7 
8 
9 
10 
11 from sys import version_info
12 if version_info >= (2,6,0):
13  def swig_import_helper():
14  from os.path import dirname
15  import imp
16  fp = None
17  try:
18  fp, pathname, description = imp.find_module('_IMP_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 def _swig_setattr_nondynamic_method(set):
73  def set_attr(self,name,value):
74  if (name == "thisown"): return self.this.own(value)
75  if hasattr(self,name) or (name == "this"):
76  set(self,name,value)
77  else:
78  raise AttributeError("You cannot add attributes to %s" % self)
79  return set_attr
80 
81 
82 try:
83  import weakref
84  weakref_proxy = weakref.proxy
85 except:
86  weakref_proxy = lambda x: x
87 
88 
89 class IMP_EXAMPLE_SwigPyIterator(object):
90  """Proxy of C++ swig::IMP_EXAMPLE_SwigPyIterator class"""
91  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
92  def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined - class is abstract")
93  __repr__ = _swig_repr
94  __swig_destroy__ = _IMP_example.delete_IMP_EXAMPLE_SwigPyIterator
95  __del__ = lambda self : None;
96  def value(self):
97  """value(IMP_EXAMPLE_SwigPyIterator self) -> PyObject *"""
98  return _IMP_example.IMP_EXAMPLE_SwigPyIterator_value(self)
99 
100  def incr(self, n=1):
101  """
102  incr(IMP_EXAMPLE_SwigPyIterator self, size_t n=1) -> IMP_EXAMPLE_SwigPyIterator
103  incr(IMP_EXAMPLE_SwigPyIterator self) -> IMP_EXAMPLE_SwigPyIterator
104  """
105  return _IMP_example.IMP_EXAMPLE_SwigPyIterator_incr(self, n)
106 
107  def decr(self, n=1):
108  """
109  decr(IMP_EXAMPLE_SwigPyIterator self, size_t n=1) -> IMP_EXAMPLE_SwigPyIterator
110  decr(IMP_EXAMPLE_SwigPyIterator self) -> IMP_EXAMPLE_SwigPyIterator
111  """
112  return _IMP_example.IMP_EXAMPLE_SwigPyIterator_decr(self, n)
113 
114  def distance(self, *args):
115  """distance(IMP_EXAMPLE_SwigPyIterator self, IMP_EXAMPLE_SwigPyIterator x) -> ptrdiff_t"""
116  return _IMP_example.IMP_EXAMPLE_SwigPyIterator_distance(self, *args)
117 
118  def equal(self, *args):
119  """equal(IMP_EXAMPLE_SwigPyIterator self, IMP_EXAMPLE_SwigPyIterator x) -> bool"""
120  return _IMP_example.IMP_EXAMPLE_SwigPyIterator_equal(self, *args)
121 
122  def copy(self):
123  """copy(IMP_EXAMPLE_SwigPyIterator self) -> IMP_EXAMPLE_SwigPyIterator"""
124  return _IMP_example.IMP_EXAMPLE_SwigPyIterator_copy(self)
125 
126  def next(self):
127  """next(IMP_EXAMPLE_SwigPyIterator self) -> PyObject *"""
128  return _IMP_example.IMP_EXAMPLE_SwigPyIterator_next(self)
129 
130  def __next__(self):
131  """__next__(IMP_EXAMPLE_SwigPyIterator self) -> PyObject *"""
132  return _IMP_example.IMP_EXAMPLE_SwigPyIterator___next__(self)
133 
134  def previous(self):
135  """previous(IMP_EXAMPLE_SwigPyIterator self) -> PyObject *"""
136  return _IMP_example.IMP_EXAMPLE_SwigPyIterator_previous(self)
137 
138  def advance(self, *args):
139  """advance(IMP_EXAMPLE_SwigPyIterator self, ptrdiff_t n) -> IMP_EXAMPLE_SwigPyIterator"""
140  return _IMP_example.IMP_EXAMPLE_SwigPyIterator_advance(self, *args)
141 
142  def __eq__(self, *args):
143  """__eq__(IMP_EXAMPLE_SwigPyIterator self, IMP_EXAMPLE_SwigPyIterator x) -> bool"""
144  return _IMP_example.IMP_EXAMPLE_SwigPyIterator___eq__(self, *args)
145 
146  def __ne__(self, *args):
147  """__ne__(IMP_EXAMPLE_SwigPyIterator self, IMP_EXAMPLE_SwigPyIterator x) -> bool"""
148  return _IMP_example.IMP_EXAMPLE_SwigPyIterator___ne__(self, *args)
149 
150  def __iadd__(self, *args):
151  """__iadd__(IMP_EXAMPLE_SwigPyIterator self, ptrdiff_t n) -> IMP_EXAMPLE_SwigPyIterator"""
152  return _IMP_example.IMP_EXAMPLE_SwigPyIterator___iadd__(self, *args)
153 
154  def __isub__(self, *args):
155  """__isub__(IMP_EXAMPLE_SwigPyIterator self, ptrdiff_t n) -> IMP_EXAMPLE_SwigPyIterator"""
156  return _IMP_example.IMP_EXAMPLE_SwigPyIterator___isub__(self, *args)
157 
158  def __add__(self, *args):
159  """__add__(IMP_EXAMPLE_SwigPyIterator self, ptrdiff_t n) -> IMP_EXAMPLE_SwigPyIterator"""
160  return _IMP_example.IMP_EXAMPLE_SwigPyIterator___add__(self, *args)
161 
162  def __sub__(self, *args):
163  """
164  __sub__(IMP_EXAMPLE_SwigPyIterator self, ptrdiff_t n) -> IMP_EXAMPLE_SwigPyIterator
165  __sub__(IMP_EXAMPLE_SwigPyIterator self, IMP_EXAMPLE_SwigPyIterator x) -> ptrdiff_t
166  """
167  return _IMP_example.IMP_EXAMPLE_SwigPyIterator___sub__(self, *args)
168 
169  def __iter__(self): return self
170 IMP_EXAMPLE_SwigPyIterator_swigregister = _IMP_example.IMP_EXAMPLE_SwigPyIterator_swigregister
171 IMP_EXAMPLE_SwigPyIterator_swigregister(IMP_EXAMPLE_SwigPyIterator)
172 
173 _value_types=[]
174 _object_types=[]
175 _raii_types=[]
176 _plural_types=[]
177 
178 IMP_DEBUG = _IMP_example.IMP_DEBUG
179 IMP_RELEASE = _IMP_example.IMP_RELEASE
180 IMP_SILENT = _IMP_example.IMP_SILENT
181 IMP_PROGRESS = _IMP_example.IMP_PROGRESS
182 IMP_TERSE = _IMP_example.IMP_TERSE
183 IMP_VERBOSE = _IMP_example.IMP_VERBOSE
184 IMP_MEMORY = _IMP_example.IMP_MEMORY
185 IMP_NONE = _IMP_example.IMP_NONE
186 IMP_USAGE = _IMP_example.IMP_USAGE
187 IMP_INTERNAL = _IMP_example.IMP_INTERNAL
188 IMP_BASE_HAS_LOG4CXX = _IMP_example.IMP_BASE_HAS_LOG4CXX
189 IMP_COMPILER_HAS_AUTO = _IMP_example.IMP_COMPILER_HAS_AUTO
190 IMP_COMPILER_HAS_DEBUG_VECTOR = _IMP_example.IMP_COMPILER_HAS_DEBUG_VECTOR
191 IMP_BASE_HAS_BOOST_RANDOM = _IMP_example.IMP_BASE_HAS_BOOST_RANDOM
192 IMP_BASE_HAS_GPERFTOOLS = _IMP_example.IMP_BASE_HAS_GPERFTOOLS
193 IMP_BASE_HAS_TCMALLOC_HEAPCHECKER = _IMP_example.IMP_BASE_HAS_TCMALLOC_HEAPCHECKER
194 IMP_BASE_HAS_TCMALLOC_HEAPPROFILER = _IMP_example.IMP_BASE_HAS_TCMALLOC_HEAPPROFILER
195 IMPBASE_SHOW_WARNINGS = _IMP_example.IMPBASE_SHOW_WARNINGS
196 import sys
197 class _DirectorObjects(object):
198  """@internal Simple class to keep references to director objects
199  to prevent premature deletion."""
200  def __init__(self):
201  self._objects = []
202  def register(self, obj):
203  """Take a reference to a director object; will only work for
204  refcounted C++ classes"""
205  if hasattr(obj, 'get_ref_count'):
206  self._objects.append(obj)
207  def cleanup(self):
208  """Only drop our reference and allow cleanup by Python if no other
209  Python references exist (we hold 3 references: one in self._objects,
210  one in x, and one in the argument list for getrefcount) *and* no
211  other C++ references exist (the Python object always holds one)"""
212  objs = [x for x in self._objects if sys.getrefcount(x) > 3 \
213  or x.get_ref_count() > 1]
214  # Do in two steps so the references are kept until the end of the
215  # function (deleting references may trigger a fresh call to this method)
216  self._objects = objs
217  def get_object_count(self):
218  """Get number of director objects (useful for testing only)"""
219  return len(self._objects)
220 _director_objects = _DirectorObjects()
221 
222 class _ostream(object):
223  """Proxy of C++ std::ostream class"""
224  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
225  def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined")
226  __repr__ = _swig_repr
227  def write(self, *args):
228  """write(_ostream self, char const * osa_buf)"""
229  return _IMP_example._ostream_write(self, *args)
230 
231 _ostream_swigregister = _IMP_example._ostream_swigregister
232 _ostream_swigregister(_ostream)
233 
234 IMP_COMPILER_HAS_OVERRIDE = _IMP_example.IMP_COMPILER_HAS_OVERRIDE
235 IMP_COMPILER_HAS_FINAL = _IMP_example.IMP_COMPILER_HAS_FINAL
236 IMP_HAS_NOEXCEPT = _IMP_example.IMP_HAS_NOEXCEPT
237 import IMP.base
238 IMP_CGAL_HAS_BOOST_FILESYSTEM = _IMP_example.IMP_CGAL_HAS_BOOST_FILESYSTEM
239 IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS = _IMP_example.IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS
240 IMP_CGAL_HAS_BOOST_RANDOM = _IMP_example.IMP_CGAL_HAS_BOOST_RANDOM
241 IMP_CGAL_HAS_BOOST_SYSTEM = _IMP_example.IMP_CGAL_HAS_BOOST_SYSTEM
242 IMPCGAL_SHOW_WARNINGS = _IMP_example.IMPCGAL_SHOW_WARNINGS
243 import IMP.cgal
244 IMP_ALGEBRA_HAS_IMP_CGAL = _IMP_example.IMP_ALGEBRA_HAS_IMP_CGAL
245 IMP_ALGEBRA_HAS_BOOST_FILESYSTEM = _IMP_example.IMP_ALGEBRA_HAS_BOOST_FILESYSTEM
246 IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS = _IMP_example.IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS
247 IMP_ALGEBRA_HAS_BOOST_RANDOM = _IMP_example.IMP_ALGEBRA_HAS_BOOST_RANDOM
248 IMP_ALGEBRA_HAS_BOOST_SYSTEM = _IMP_example.IMP_ALGEBRA_HAS_BOOST_SYSTEM
249 IMP_ALGEBRA_HAS_CGAL = _IMP_example.IMP_ALGEBRA_HAS_CGAL
250 IMP_ALGEBRA_HAS_ANN = _IMP_example.IMP_ALGEBRA_HAS_ANN
251 IMPALGEBRA_SHOW_WARNINGS = _IMP_example.IMPALGEBRA_SHOW_WARNINGS
252 import IMP.algebra
253 IMP_KERNEL_HAS_IMP_CGAL = _IMP_example.IMP_KERNEL_HAS_IMP_CGAL
254 IMP_KERNEL_HAS_BOOST_PROGRAMOPTIONS = _IMP_example.IMP_KERNEL_HAS_BOOST_PROGRAMOPTIONS
255 IMP_KERNEL_HAS_BOOST_RANDOM = _IMP_example.IMP_KERNEL_HAS_BOOST_RANDOM
256 IMP_KERNEL_HAS_BOOST_SYSTEM = _IMP_example.IMP_KERNEL_HAS_BOOST_SYSTEM
257 IMP_KERNEL_HAS_CGAL = _IMP_example.IMP_KERNEL_HAS_CGAL
258 IMPKERNEL_SHOW_WARNINGS = _IMP_example.IMPKERNEL_SHOW_WARNINGS
259 import IMP.kernel
260 IMP_DISPLAY_HAS_IMP_BASE = _IMP_example.IMP_DISPLAY_HAS_IMP_BASE
261 IMP_DISPLAY_HAS_IMP_CGAL = _IMP_example.IMP_DISPLAY_HAS_IMP_CGAL
262 IMP_DISPLAY_HAS_BOOST_FILESYSTEM = _IMP_example.IMP_DISPLAY_HAS_BOOST_FILESYSTEM
263 IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS = _IMP_example.IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS
264 IMP_DISPLAY_HAS_BOOST_RANDOM = _IMP_example.IMP_DISPLAY_HAS_BOOST_RANDOM
265 IMP_DISPLAY_HAS_BOOST_SYSTEM = _IMP_example.IMP_DISPLAY_HAS_BOOST_SYSTEM
266 IMP_DISPLAY_HAS_CGAL = _IMP_example.IMP_DISPLAY_HAS_CGAL
267 IMPDISPLAY_SHOW_WARNINGS = _IMP_example.IMPDISPLAY_SHOW_WARNINGS
268 import IMP.display
269 IMP_SCORE_FUNCTOR_HAS_IMP_CGAL = _IMP_example.IMP_SCORE_FUNCTOR_HAS_IMP_CGAL
270 IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM = _IMP_example.IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM
271 IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS = _IMP_example.IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS
272 IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM = _IMP_example.IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM
273 IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM = _IMP_example.IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM
274 IMP_SCORE_FUNCTOR_HAS_CGAL = _IMP_example.IMP_SCORE_FUNCTOR_HAS_CGAL
275 IMP_SCORE_FUNCTOR_HAS_HDF5 = _IMP_example.IMP_SCORE_FUNCTOR_HAS_HDF5
276 IMPSCOREFUNCTOR_SHOW_WARNINGS = _IMP_example.IMPSCOREFUNCTOR_SHOW_WARNINGS
277 import IMP.score_functor
278 IMP_STATISTICS_HAS_IMP_BASE = _IMP_example.IMP_STATISTICS_HAS_IMP_BASE
279 IMP_STATISTICS_HAS_IMP_CGAL = _IMP_example.IMP_STATISTICS_HAS_IMP_CGAL
280 IMP_STATISTICS_HAS_BOOST_FILESYSTEM = _IMP_example.IMP_STATISTICS_HAS_BOOST_FILESYSTEM
281 IMP_STATISTICS_HAS_BOOST_PROGRAMOPTIONS = _IMP_example.IMP_STATISTICS_HAS_BOOST_PROGRAMOPTIONS
282 IMP_STATISTICS_HAS_BOOST_RANDOM = _IMP_example.IMP_STATISTICS_HAS_BOOST_RANDOM
283 IMP_STATISTICS_HAS_BOOST_SYSTEM = _IMP_example.IMP_STATISTICS_HAS_BOOST_SYSTEM
284 IMP_STATISTICS_HAS_CGAL = _IMP_example.IMP_STATISTICS_HAS_CGAL
285 IMPSTATISTICS_SHOW_WARNINGS = _IMP_example.IMPSTATISTICS_SHOW_WARNINGS
286 import IMP.statistics
287 IMP_CORE_HAS_IMP_BASE = _IMP_example.IMP_CORE_HAS_IMP_BASE
288 IMP_CORE_HAS_IMP_CGAL = _IMP_example.IMP_CORE_HAS_IMP_CGAL
289 IMP_CORE_HAS_IMP_KERNEL = _IMP_example.IMP_CORE_HAS_IMP_KERNEL
290 IMP_CORE_HAS_BOOST_FILESYSTEM = _IMP_example.IMP_CORE_HAS_BOOST_FILESYSTEM
291 IMP_CORE_HAS_BOOST_PROGRAMOPTIONS = _IMP_example.IMP_CORE_HAS_BOOST_PROGRAMOPTIONS
292 IMP_CORE_HAS_BOOST_RANDOM = _IMP_example.IMP_CORE_HAS_BOOST_RANDOM
293 IMP_CORE_HAS_BOOST_SYSTEM = _IMP_example.IMP_CORE_HAS_BOOST_SYSTEM
294 IMP_CORE_HAS_CGAL = _IMP_example.IMP_CORE_HAS_CGAL
295 IMP_CORE_HAS_HDF5 = _IMP_example.IMP_CORE_HAS_HDF5
296 IMPCORE_SHOW_WARNINGS = _IMP_example.IMPCORE_SHOW_WARNINGS
297 import IMP.core
298 IMP_CONTAINER_HAS_IMP_ALGEBRA = _IMP_example.IMP_CONTAINER_HAS_IMP_ALGEBRA
299 IMP_CONTAINER_HAS_IMP_BASE = _IMP_example.IMP_CONTAINER_HAS_IMP_BASE
300 IMP_CONTAINER_HAS_IMP_CGAL = _IMP_example.IMP_CONTAINER_HAS_IMP_CGAL
301 IMP_CONTAINER_HAS_IMP_DISPLAY = _IMP_example.IMP_CONTAINER_HAS_IMP_DISPLAY
302 IMP_CONTAINER_HAS_IMP_KERNEL = _IMP_example.IMP_CONTAINER_HAS_IMP_KERNEL
303 IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR = _IMP_example.IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR
304 IMP_CONTAINER_HAS_BOOST_FILESYSTEM = _IMP_example.IMP_CONTAINER_HAS_BOOST_FILESYSTEM
305 IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS = _IMP_example.IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS
306 IMP_CONTAINER_HAS_BOOST_RANDOM = _IMP_example.IMP_CONTAINER_HAS_BOOST_RANDOM
307 IMP_CONTAINER_HAS_BOOST_SYSTEM = _IMP_example.IMP_CONTAINER_HAS_BOOST_SYSTEM
308 IMP_CONTAINER_HAS_CGAL = _IMP_example.IMP_CONTAINER_HAS_CGAL
309 IMP_CONTAINER_HAS_HDF5 = _IMP_example.IMP_CONTAINER_HAS_HDF5
310 IMPCONTAINER_SHOW_WARNINGS = _IMP_example.IMPCONTAINER_SHOW_WARNINGS
311 import IMP.container
312 IMP_ATOM_HAS_IMP_BASE = _IMP_example.IMP_ATOM_HAS_IMP_BASE
313 IMP_ATOM_HAS_IMP_CGAL = _IMP_example.IMP_ATOM_HAS_IMP_CGAL
314 IMP_ATOM_HAS_IMP_KERNEL = _IMP_example.IMP_ATOM_HAS_IMP_KERNEL
315 IMP_ATOM_HAS_IMP_SCORE_FUNCTOR = _IMP_example.IMP_ATOM_HAS_IMP_SCORE_FUNCTOR
316 IMP_ATOM_HAS_BOOST_PROGRAMOPTIONS = _IMP_example.IMP_ATOM_HAS_BOOST_PROGRAMOPTIONS
317 IMP_ATOM_HAS_BOOST_RANDOM = _IMP_example.IMP_ATOM_HAS_BOOST_RANDOM
318 IMP_ATOM_HAS_BOOST_REGEX = _IMP_example.IMP_ATOM_HAS_BOOST_REGEX
319 IMP_ATOM_HAS_BOOST_SYSTEM = _IMP_example.IMP_ATOM_HAS_BOOST_SYSTEM
320 IMP_ATOM_HAS_CGAL = _IMP_example.IMP_ATOM_HAS_CGAL
321 IMP_ATOM_HAS_HDF5 = _IMP_example.IMP_ATOM_HAS_HDF5
322 IMPATOM_SHOW_WARNINGS = _IMP_example.IMPATOM_SHOW_WARNINGS
323 IMP_ATOM_TYPE_INDEX = _IMP_example.IMP_ATOM_TYPE_INDEX
324 IMP_RESIDUE_TYPE_INDEX = _IMP_example.IMP_RESIDUE_TYPE_INDEX
325 IMP_HIERARCHY_TYPE_INDEX = _IMP_example.IMP_HIERARCHY_TYPE_INDEX
326 import IMP.atom
327 IMP_RMF_HAS_IMP_BASE = _IMP_example.IMP_RMF_HAS_IMP_BASE
328 IMP_RMF_HAS_IMP_CGAL = _IMP_example.IMP_RMF_HAS_IMP_CGAL
329 IMP_RMF_HAS_IMP_SCORE_FUNCTOR = _IMP_example.IMP_RMF_HAS_IMP_SCORE_FUNCTOR
330 IMP_RMF_HAS_BOOST_FILESYSTEM = _IMP_example.IMP_RMF_HAS_BOOST_FILESYSTEM
331 IMP_RMF_HAS_BOOST_PROGRAMOPTIONS = _IMP_example.IMP_RMF_HAS_BOOST_PROGRAMOPTIONS
332 IMP_RMF_HAS_BOOST_RANDOM = _IMP_example.IMP_RMF_HAS_BOOST_RANDOM
333 IMP_RMF_HAS_BOOST_REGEX = _IMP_example.IMP_RMF_HAS_BOOST_REGEX
334 IMP_RMF_HAS_BOOST_SYSTEM = _IMP_example.IMP_RMF_HAS_BOOST_SYSTEM
335 IMP_RMF_HAS_CGAL = _IMP_example.IMP_RMF_HAS_CGAL
336 IMP_RMF_HAS_HDF5 = _IMP_example.IMP_RMF_HAS_HDF5
337 IMPRMF_SHOW_WARNINGS = _IMP_example.IMPRMF_SHOW_WARNINGS
338 import IMP.rmf
339 import RMF
340 IMP_DOMINO_HAS_IMP_ATOM = _IMP_example.IMP_DOMINO_HAS_IMP_ATOM
341 IMP_DOMINO_HAS_IMP_BASE = _IMP_example.IMP_DOMINO_HAS_IMP_BASE
342 IMP_DOMINO_HAS_IMP_CGAL = _IMP_example.IMP_DOMINO_HAS_IMP_CGAL
343 IMP_DOMINO_HAS_IMP_KERNEL = _IMP_example.IMP_DOMINO_HAS_IMP_KERNEL
344 IMP_DOMINO_HAS_IMP_RMF = _IMP_example.IMP_DOMINO_HAS_IMP_RMF
345 IMP_DOMINO_HAS_IMP_SCORE_FUNCTOR = _IMP_example.IMP_DOMINO_HAS_IMP_SCORE_FUNCTOR
346 IMP_DOMINO_HAS_BOOST_FILESYSTEM = _IMP_example.IMP_DOMINO_HAS_BOOST_FILESYSTEM
347 IMP_DOMINO_HAS_BOOST_PROGRAMOPTIONS = _IMP_example.IMP_DOMINO_HAS_BOOST_PROGRAMOPTIONS
348 IMP_DOMINO_HAS_BOOST_RANDOM = _IMP_example.IMP_DOMINO_HAS_BOOST_RANDOM
349 IMP_DOMINO_HAS_BOOST_REGEX = _IMP_example.IMP_DOMINO_HAS_BOOST_REGEX
350 IMP_DOMINO_HAS_BOOST_SYSTEM = _IMP_example.IMP_DOMINO_HAS_BOOST_SYSTEM
351 IMP_DOMINO_HAS_CGAL = _IMP_example.IMP_DOMINO_HAS_CGAL
352 IMP_DOMINO_HAS_HDF5 = _IMP_example.IMP_DOMINO_HAS_HDF5
353 IMP_DOMINO_HAS_RMF = _IMP_example.IMP_DOMINO_HAS_RMF
354 IMPDOMINO_SHOW_WARNINGS = _IMP_example.IMPDOMINO_SHOW_WARNINGS
355 import RMF_HDF5
356 import IMP.domino
357 IMP_EXAMPLE_HAS_IMP_ALGEBRA = _IMP_example.IMP_EXAMPLE_HAS_IMP_ALGEBRA
358 IMP_EXAMPLE_HAS_IMP_BASE = _IMP_example.IMP_EXAMPLE_HAS_IMP_BASE
359 IMP_EXAMPLE_HAS_IMP_CGAL = _IMP_example.IMP_EXAMPLE_HAS_IMP_CGAL
360 IMP_EXAMPLE_HAS_IMP_DISPLAY = _IMP_example.IMP_EXAMPLE_HAS_IMP_DISPLAY
361 IMP_EXAMPLE_HAS_IMP_KERNEL = _IMP_example.IMP_EXAMPLE_HAS_IMP_KERNEL
362 IMP_EXAMPLE_HAS_IMP_RMF = _IMP_example.IMP_EXAMPLE_HAS_IMP_RMF
363 IMP_EXAMPLE_HAS_IMP_SCORE_FUNCTOR = _IMP_example.IMP_EXAMPLE_HAS_IMP_SCORE_FUNCTOR
364 IMP_EXAMPLE_HAS_IMP_STATISTICS = _IMP_example.IMP_EXAMPLE_HAS_IMP_STATISTICS
365 IMP_EXAMPLE_HAS_BOOST_FILESYSTEM = _IMP_example.IMP_EXAMPLE_HAS_BOOST_FILESYSTEM
366 IMP_EXAMPLE_HAS_BOOST_GRAPH = _IMP_example.IMP_EXAMPLE_HAS_BOOST_GRAPH
367 IMP_EXAMPLE_HAS_BOOST_PROGRAMOPTIONS = _IMP_example.IMP_EXAMPLE_HAS_BOOST_PROGRAMOPTIONS
368 IMP_EXAMPLE_HAS_BOOST_RANDOM = _IMP_example.IMP_EXAMPLE_HAS_BOOST_RANDOM
369 IMP_EXAMPLE_HAS_BOOST_REGEX = _IMP_example.IMP_EXAMPLE_HAS_BOOST_REGEX
370 IMP_EXAMPLE_HAS_BOOST_SYSTEM = _IMP_example.IMP_EXAMPLE_HAS_BOOST_SYSTEM
371 IMP_EXAMPLE_HAS_CGAL = _IMP_example.IMP_EXAMPLE_HAS_CGAL
372 IMP_EXAMPLE_HAS_HDF5 = _IMP_example.IMP_EXAMPLE_HAS_HDF5
373 IMP_EXAMPLE_HAS_RMF = _IMP_example.IMP_EXAMPLE_HAS_RMF
374 IMP_EXAMPLE_HAS_EXAMPLEDEPENDENCY = _IMP_example.IMP_EXAMPLE_HAS_EXAMPLEDEPENDENCY
375 IMPEXAMPLE_SHOW_WARNINGS = _IMP_example.IMPEXAMPLE_SHOW_WARNINGS
376 _object_types.append("ExampleRestraint")
377 
378 
379 def _object_cast_to_ExampleRestraint(*args):
380  """_object_cast_to_ExampleRestraint(Object o) -> ExampleRestraint"""
381  return _IMP_example._object_cast_to_ExampleRestraint(*args)
382 def ExampleDecorators(l=[]):
383  return [ExampleDecorator(x) for x in l]
384 _plural_types.append("ExampleDecorators")
385 
386 _value_types.append("ExampleDecorator")
387 
388 _object_types.append("ExampleUnaryFunction")
389 
390 
391 def _object_cast_to_ExampleUnaryFunction(*args):
392  """_object_cast_to_ExampleUnaryFunction(Object o) -> ExampleUnaryFunction"""
393  return _IMP_example._object_cast_to_ExampleUnaryFunction(*args)
394 _object_types.append("ExampleSingletonModifier")
395 
396 
397 def _object_cast_to_ExampleSingletonModifier(*args):
398  """_object_cast_to_ExampleSingletonModifier(Object o) -> ExampleSingletonModifier"""
399  return _IMP_example._object_cast_to_ExampleSingletonModifier(*args)
400 _object_types.append("ExamplePairScore")
401 
402 
403 def _object_cast_to_ExamplePairScore(*args):
404  """_object_cast_to_ExamplePairScore(Object o) -> ExamplePairScore"""
405  return _IMP_example._object_cast_to_ExamplePairScore(*args)
406 _object_types.append("ExampleSubsetFilterTable")
407 
408 
409 def _object_cast_to_ExampleSubsetFilterTable(*args):
410  """_object_cast_to_ExampleSubsetFilterTable(Object o) -> ExampleSubsetFilterTable"""
411  return _IMP_example._object_cast_to_ExampleSubsetFilterTable(*args)
412 _object_types.append("ExampleConstraint")
413 
414 
415 def _object_cast_to_ExampleConstraint(*args):
416  """_object_cast_to_ExampleConstraint(Object o) -> ExampleConstraint"""
417  return _IMP_example._object_cast_to_ExampleConstraint(*args)
418 _object_types.append("ExampleObject")
419 
420 
421 def _object_cast_to_ExampleObject(*args):
422  """_object_cast_to_ExampleObject(Object o) -> ExampleObject"""
423  return _IMP_example._object_cast_to_ExampleObject(*args)
424 ExampleTemplateClass3Ds=list
425 _plural_types.append("ExampleTemplateClass3Ds")
426 _value_types.append("ExampleTemplateClass3D")
427 
428 def create_model_and_particles():
429  m= IMP.Model()
432  IMP.algebra.Vector3D(10,10,10))
433  for i in range(0,100):
434  p= IMP.Particle(m)
435  sc.add_particle(p)
437  d.set_coordinates_are_optimized(True)
438  return (m, sc)
439 
440 class ExampleRestraint(IMP.kernel.Restraint):
441  """Proxy of C++ IMP::example::ExampleRestraint class"""
442  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
443  def __init__(self, *args):
444  """__init__(IMP::example::ExampleRestraint self, Model m, IMP::kernel::ParticleIndex p, double k) -> ExampleRestraint"""
445  this = _IMP_example.new_ExampleRestraint(*args)
446  try: self.this.append(this)
447  except: self.this = this
448  def do_add_score_and_derivatives(self, *args):
449  """do_add_score_and_derivatives(ExampleRestraint self, ScoreAccumulator sa)"""
450  return _IMP_example.ExampleRestraint_do_add_score_and_derivatives(self, *args)
451 
452  def do_get_inputs(self):
453  """do_get_inputs(ExampleRestraint self) -> IMP::kernel::ModelObjectsTemp"""
454  return _IMP_example.ExampleRestraint_do_get_inputs(self)
455 
456  def get_version_info(self):
457  """get_version_info(ExampleRestraint self) -> VersionInfo"""
458  return _IMP_example.ExampleRestraint_get_version_info(self)
459 
460  def __str__(self):
461  """__str__(ExampleRestraint self) -> std::string"""
462  return _IMP_example.ExampleRestraint___str__(self)
463 
464  def __repr__(self):
465  """__repr__(ExampleRestraint self) -> std::string"""
466  return _IMP_example.ExampleRestraint___repr__(self)
467 
468  def get_from(o):
469  return _object_cast_to_ExampleRestraint(o)
470  get_from = staticmethod(get_from)
471 
472 ExampleRestraint_swigregister = _IMP_example.ExampleRestraint_swigregister
473 ExampleRestraint_swigregister(ExampleRestraint)
474 
475 class ExampleDecorator(IMP.kernel.Decorator):
476  """Proxy of C++ IMP::example::ExampleDecorator class"""
477  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
478  def get_decorator_name(self):
479  """get_decorator_name(ExampleDecorator self) -> std::string"""
480  return _IMP_example.ExampleDecorator_get_decorator_name(self)
481 
482  def set_decorator_name(self, *args):
483  """set_decorator_name(ExampleDecorator self, std::string nm)"""
484  return _IMP_example.ExampleDecorator_set_decorator_name(self, *args)
485 
486  def __init__(self, *args):
487  """
488  __init__(IMP::example::ExampleDecorator self) -> ExampleDecorator
489  __init__(IMP::example::ExampleDecorator self, Model m, ::IMP::kernel::ParticleIndex id) -> ExampleDecorator
490  __init__(IMP::example::ExampleDecorator self, _ParticleAdaptor d) -> ExampleDecorator
491  """
492  this = _IMP_example.new_ExampleDecorator(*args)
493  try: self.this.append(this)
494  except: self.this = this
495  def get_is_setup(*args):
496  """
497  get_is_setup(Model m, IMP::kernel::ParticleIndex pi) -> bool
498  get_is_setup(_ParticleAdaptor p) -> bool
499  """
500  return _IMP_example.ExampleDecorator_get_is_setup(*args)
501 
502  get_is_setup = staticmethod(get_is_setup)
503  def show(self, *args):
504  """
505  show(ExampleDecorator self, _ostream out=std::cout)
506  show(ExampleDecorator self)
507  """
508  return _IMP_example.ExampleDecorator_show(self, *args)
509 
510  def setup_particle(*args):
511  """
512  setup_particle(Model m, IMP::kernel::ParticleIndex pi, std::string name) -> ExampleDecorator
513  setup_particle(_ParticleAdaptor decorator, std::string name) -> ExampleDecorator
514  """
515  return _IMP_example.ExampleDecorator_setup_particle(*args)
516 
517  setup_particle = staticmethod(setup_particle)
518  def add_attribute(self, *args):
519  """
520  add_attribute(ExampleDecorator self, FloatKey k, IMP::Float v, bool opt)
521  add_attribute(ExampleDecorator self, FloatKey a0, IMP::Float a1)
522  add_attribute(ExampleDecorator self, IntKey a0, IMP::Int a1)
523  add_attribute(ExampleDecorator self, StringKey a0, IMP::String a1)
524  add_attribute(ExampleDecorator self, ParticleIndexKey a0, Particle a1)
525  add_attribute(ExampleDecorator self, ObjectKey a0, Object a1)
526  """
527  return _IMP_example.ExampleDecorator_add_attribute(self, *args)
528 
529  def get_value(self, *args):
530  """
531  get_value(ExampleDecorator self, FloatKey a0) -> IMP::Float
532  get_value(ExampleDecorator self, IntKey a0) -> IMP::Int
533  get_value(ExampleDecorator self, StringKey a0) -> IMP::String
534  get_value(ExampleDecorator self, ParticleIndexKey a0) -> Particle
535  get_value(ExampleDecorator self, ObjectKey a0) -> Object
536  """
537  return _IMP_example.ExampleDecorator_get_value(self, *args)
538 
539  def set_value(self, *args):
540  """
541  set_value(ExampleDecorator self, FloatKey a0, IMP::Float a1)
542  set_value(ExampleDecorator self, IntKey a0, IMP::Int a1)
543  set_value(ExampleDecorator self, StringKey a0, IMP::String a1)
544  set_value(ExampleDecorator self, ParticleIndexKey a0, Particle a1)
545  set_value(ExampleDecorator self, ObjectKey a0, Object a1)
546  """
547  return _IMP_example.ExampleDecorator_set_value(self, *args)
548 
549  def remove_attribute(self, *args):
550  """
551  remove_attribute(ExampleDecorator self, FloatKey a0)
552  remove_attribute(ExampleDecorator self, IntKey a0)
553  remove_attribute(ExampleDecorator self, StringKey a0)
554  remove_attribute(ExampleDecorator self, ParticleIndexKey a0)
555  remove_attribute(ExampleDecorator self, ObjectKey a0)
556  """
557  return _IMP_example.ExampleDecorator_remove_attribute(self, *args)
558 
559  def has_attribute(self, *args):
560  """
561  has_attribute(ExampleDecorator self, FloatKey a0) -> bool
562  has_attribute(ExampleDecorator self, IntKey a0) -> bool
563  has_attribute(ExampleDecorator self, StringKey a0) -> bool
564  has_attribute(ExampleDecorator self, ParticleIndexKey a0) -> bool
565  has_attribute(ExampleDecorator self, ObjectKey a0) -> bool
566  """
567  return _IMP_example.ExampleDecorator_has_attribute(self, *args)
568 
569  def get_derivative(self, *args):
570  """get_derivative(ExampleDecorator self, FloatKey a0) -> double"""
571  return _IMP_example.ExampleDecorator_get_derivative(self, *args)
572 
573  def get_name(self):
574  """get_name(ExampleDecorator self) -> std::string"""
575  return _IMP_example.ExampleDecorator_get_name(self)
576 
577  def clear_caches(self):
578  """clear_caches(ExampleDecorator self)"""
579  return _IMP_example.ExampleDecorator_clear_caches(self)
580 
581  def set_name(self, *args):
582  """set_name(ExampleDecorator self, std::string a0)"""
583  return _IMP_example.ExampleDecorator_set_name(self, *args)
584 
585  def set_check_level(self, *args):
586  """set_check_level(ExampleDecorator self, IMP::base::CheckLevel a0)"""
587  return _IMP_example.ExampleDecorator_set_check_level(self, *args)
588 
589  def add_to_derivative(self, *args):
590  """add_to_derivative(ExampleDecorator self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
591  return _IMP_example.ExampleDecorator_add_to_derivative(self, *args)
592 
593  def set_is_optimized(self, *args):
594  """set_is_optimized(ExampleDecorator self, FloatKey a0, bool a1)"""
595  return _IMP_example.ExampleDecorator_set_is_optimized(self, *args)
596 
597  def get_is_optimized(self, *args):
598  """get_is_optimized(ExampleDecorator self, FloatKey a0) -> bool"""
599  return _IMP_example.ExampleDecorator_get_is_optimized(self, *args)
600 
601  def get_check_level(self):
602  """get_check_level(ExampleDecorator self) -> IMP::base::CheckLevel"""
603  return _IMP_example.ExampleDecorator_get_check_level(self)
604 
605  def __eq__(self, *args):
606  """
607  __eq__(ExampleDecorator self, ExampleDecorator o) -> bool
608  __eq__(ExampleDecorator self, Particle d) -> bool
609  """
610  return _IMP_example.ExampleDecorator___eq__(self, *args)
611 
612  def __ne__(self, *args):
613  """
614  __ne__(ExampleDecorator self, ExampleDecorator o) -> bool
615  __ne__(ExampleDecorator self, Particle d) -> bool
616  """
617  return _IMP_example.ExampleDecorator___ne__(self, *args)
618 
619  def __le__(self, *args):
620  """
621  __le__(ExampleDecorator self, ExampleDecorator o) -> bool
622  __le__(ExampleDecorator self, Particle d) -> bool
623  """
624  return _IMP_example.ExampleDecorator___le__(self, *args)
625 
626  def __lt__(self, *args):
627  """
628  __lt__(ExampleDecorator self, ExampleDecorator o) -> bool
629  __lt__(ExampleDecorator self, Particle d) -> bool
630  """
631  return _IMP_example.ExampleDecorator___lt__(self, *args)
632 
633  def __ge__(self, *args):
634  """
635  __ge__(ExampleDecorator self, ExampleDecorator o) -> bool
636  __ge__(ExampleDecorator self, Particle d) -> bool
637  """
638  return _IMP_example.ExampleDecorator___ge__(self, *args)
639 
640  def __gt__(self, *args):
641  """
642  __gt__(ExampleDecorator self, ExampleDecorator o) -> bool
643  __gt__(ExampleDecorator self, Particle d) -> bool
644  """
645  return _IMP_example.ExampleDecorator___gt__(self, *args)
646 
647  def __hash__(self):
648  """__hash__(ExampleDecorator self) -> std::size_t"""
649  return _IMP_example.ExampleDecorator___hash__(self)
650 
651  def __str__(self):
652  """__str__(ExampleDecorator self) -> std::string"""
653  return _IMP_example.ExampleDecorator___str__(self)
654 
655  def __repr__(self):
656  """__repr__(ExampleDecorator self) -> std::string"""
657  return _IMP_example.ExampleDecorator___repr__(self)
658 
659  __swig_destroy__ = _IMP_example.delete_ExampleDecorator
660  __del__ = lambda self : None;
661 ExampleDecorator_swigregister = _IMP_example.ExampleDecorator_swigregister
662 ExampleDecorator_swigregister(ExampleDecorator)
663 
664 def ExampleDecorator_get_is_setup(*args):
665  """
666  get_is_setup(Model m, IMP::kernel::ParticleIndex pi) -> bool
667  ExampleDecorator_get_is_setup(_ParticleAdaptor p) -> bool
668  """
669  return _IMP_example.ExampleDecorator_get_is_setup(*args)
670 
671 def ExampleDecorator_setup_particle(*args):
672  """
673  setup_particle(Model m, IMP::kernel::ParticleIndex pi, std::string name) -> ExampleDecorator
674  ExampleDecorator_setup_particle(_ParticleAdaptor decorator, std::string name) -> ExampleDecorator
675  """
676  return _IMP_example.ExampleDecorator_setup_particle(*args)
677 
678 
679 def __lshift__(*args):
680  """__lshift__(_ostream out, ExampleDecorator n) -> _ostream"""
681  return _IMP_example.__lshift__(*args)
682 class ExampleUnaryFunction(IMP.kernel.UnaryFunction):
683  """Proxy of C++ IMP::example::ExampleUnaryFunction class"""
684  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
685  def __init__(self, *args):
686  """__init__(IMP::example::ExampleUnaryFunction self, IMP::Float center, IMP::Float k) -> ExampleUnaryFunction"""
687  this = _IMP_example.new_ExampleUnaryFunction(*args)
688  try: self.this.append(this)
689  except: self.this = this
690  def get_version_info(self):
691  """get_version_info(ExampleUnaryFunction self) -> VersionInfo"""
692  return _IMP_example.ExampleUnaryFunction_get_version_info(self)
693 
694  def __str__(self):
695  """__str__(ExampleUnaryFunction self) -> std::string"""
696  return _IMP_example.ExampleUnaryFunction___str__(self)
697 
698  def __repr__(self):
699  """__repr__(ExampleUnaryFunction self) -> std::string"""
700  return _IMP_example.ExampleUnaryFunction___repr__(self)
701 
702  def get_from(o):
703  return _object_cast_to_ExampleUnaryFunction(o)
704  get_from = staticmethod(get_from)
705 
706 ExampleUnaryFunction_swigregister = _IMP_example.ExampleUnaryFunction_swigregister
707 ExampleUnaryFunction_swigregister(ExampleUnaryFunction)
708 
709 class ExampleObject(IMP.base.Object):
710  """Proxy of C++ IMP::example::ExampleObject class"""
711  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
712  def __init__(self, *args):
713  """__init__(IMP::example::ExampleObject self, IMP::Floats const & data) -> ExampleObject"""
714  this = _IMP_example.new_ExampleObject(*args)
715  try: self.this.append(this)
716  except: self.this = this
717  def get_data(self, *args):
718  """get_data(ExampleObject self, unsigned int i) -> double"""
719  return _IMP_example.ExampleObject_get_data(self, *args)
720 
721  def get_version_info(self):
722  """get_version_info(ExampleObject self) -> VersionInfo"""
723  return _IMP_example.ExampleObject_get_version_info(self)
724 
725  def __str__(self):
726  """__str__(ExampleObject self) -> std::string"""
727  return _IMP_example.ExampleObject___str__(self)
728 
729  def __repr__(self):
730  """__repr__(ExampleObject self) -> std::string"""
731  return _IMP_example.ExampleObject___repr__(self)
732 
733  def get_from(o):
734  return _object_cast_to_ExampleObject(o)
735  get_from = staticmethod(get_from)
736 
737 ExampleObject_swigregister = _IMP_example.ExampleObject_swigregister
738 ExampleObject_swigregister(ExampleObject)
739 
740 class ExampleSingletonModifier(IMP.kernel.SingletonModifier):
741  """Proxy of C++ IMP::example::ExampleSingletonModifier class"""
742  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
743  def __init__(self, *args):
744  """__init__(IMP::example::ExampleSingletonModifier self, BoundingBox3D bb) -> ExampleSingletonModifier"""
745  this = _IMP_example.new_ExampleSingletonModifier(*args)
746  try: self.this.append(this)
747  except: self.this = this
748  def do_get_inputs(self, *args):
749  """do_get_inputs(ExampleSingletonModifier self, Model m, IMP::kernel::ParticleIndexes const & pis) -> IMP::kernel::ModelObjectsTemp"""
750  return _IMP_example.ExampleSingletonModifier_do_get_inputs(self, *args)
751 
752  def do_get_outputs(self, *args):
753  """do_get_outputs(ExampleSingletonModifier self, Model m, IMP::kernel::ParticleIndexes const & pis) -> IMP::kernel::ModelObjectsTemp"""
754  return _IMP_example.ExampleSingletonModifier_do_get_outputs(self, *args)
755 
756  def get_version_info(self):
757  """get_version_info(ExampleSingletonModifier self) -> VersionInfo"""
758  return _IMP_example.ExampleSingletonModifier_get_version_info(self)
759 
760  def __str__(self):
761  """__str__(ExampleSingletonModifier self) -> std::string"""
762  return _IMP_example.ExampleSingletonModifier___str__(self)
763 
764  def __repr__(self):
765  """__repr__(ExampleSingletonModifier self) -> std::string"""
766  return _IMP_example.ExampleSingletonModifier___repr__(self)
767 
768  def get_from(o):
769  return _object_cast_to_ExampleSingletonModifier(o)
770  get_from = staticmethod(get_from)
771 
772 ExampleSingletonModifier_swigregister = _IMP_example.ExampleSingletonModifier_swigregister
773 ExampleSingletonModifier_swigregister(ExampleSingletonModifier)
774 
775 class ExamplePairScore(IMP.kernel.PairScore):
776  """Proxy of C++ IMP::example::ExamplePairScore class"""
777  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
778  def __init__(self, *args):
779  """__init__(IMP::example::ExamplePairScore self, double x0, double k) -> ExamplePairScore"""
780  this = _IMP_example.new_ExamplePairScore(*args)
781  try: self.this.append(this)
782  except: self.this = this
783  def do_get_inputs(self, *args):
784  """do_get_inputs(ExamplePairScore self, Model m, IMP::kernel::ParticleIndexes const & pis) -> IMP::kernel::ModelObjectsTemp"""
785  return _IMP_example.ExamplePairScore_do_get_inputs(self, *args)
786 
787  def get_version_info(self):
788  """get_version_info(ExamplePairScore self) -> VersionInfo"""
789  return _IMP_example.ExamplePairScore_get_version_info(self)
790 
791  def __str__(self):
792  """__str__(ExamplePairScore self) -> std::string"""
793  return _IMP_example.ExamplePairScore___str__(self)
794 
795  def __repr__(self):
796  """__repr__(ExamplePairScore self) -> std::string"""
797  return _IMP_example.ExamplePairScore___repr__(self)
798 
799  def get_from(o):
800  return _object_cast_to_ExamplePairScore(o)
801  get_from = staticmethod(get_from)
802 
803 ExamplePairScore_swigregister = _IMP_example.ExamplePairScore_swigregister
804 ExamplePairScore_swigregister(ExamplePairScore)
805 
806 class ExampleSubsetFilterTable(IMP.domino.SubsetFilterTable):
807  """Proxy of C++ IMP::example::ExampleSubsetFilterTable class"""
808  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
809  def __init__(self, *args):
810  """__init__(IMP::example::ExampleSubsetFilterTable self, unsigned int max_diff, IMP::kernel::ParticlesTemp const & pt) -> ExampleSubsetFilterTable"""
811  this = _IMP_example.new_ExampleSubsetFilterTable(*args)
812  try: self.this.append(this)
813  except: self.this = this
814  def get_version_info(self):
815  """get_version_info(ExampleSubsetFilterTable self) -> VersionInfo"""
816  return _IMP_example.ExampleSubsetFilterTable_get_version_info(self)
817 
818  def __str__(self):
819  """__str__(ExampleSubsetFilterTable self) -> std::string"""
820  return _IMP_example.ExampleSubsetFilterTable___str__(self)
821 
822  def __repr__(self):
823  """__repr__(ExampleSubsetFilterTable self) -> std::string"""
824  return _IMP_example.ExampleSubsetFilterTable___repr__(self)
825 
826  def get_from(o):
827  return _object_cast_to_ExampleSubsetFilterTable(o)
828  get_from = staticmethod(get_from)
829 
830 ExampleSubsetFilterTable_swigregister = _IMP_example.ExampleSubsetFilterTable_swigregister
831 ExampleSubsetFilterTable_swigregister(ExampleSubsetFilterTable)
832 
833 class ExampleConstraint(IMP.kernel.Constraint):
834  """Proxy of C++ IMP::example::ExampleConstraint class"""
835  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
836  def __init__(self, *args):
837  """__init__(IMP::example::ExampleConstraint self, Particle p) -> ExampleConstraint"""
838  this = _IMP_example.new_ExampleConstraint(*args)
839  try: self.this.append(this)
840  except: self.this = this
841  def do_get_inputs(self):
842  """do_get_inputs(ExampleConstraint self) -> IMP::kernel::ModelObjectsTemp"""
843  return _IMP_example.ExampleConstraint_do_get_inputs(self)
844 
845  def do_get_outputs(self):
846  """do_get_outputs(ExampleConstraint self) -> IMP::kernel::ModelObjectsTemp"""
847  return _IMP_example.ExampleConstraint_do_get_outputs(self)
848 
849  def get_version_info(self):
850  """get_version_info(ExampleConstraint self) -> VersionInfo"""
851  return _IMP_example.ExampleConstraint_get_version_info(self)
852 
853  def __str__(self):
854  """__str__(ExampleConstraint self) -> std::string"""
855  return _IMP_example.ExampleConstraint___str__(self)
856 
857  def __repr__(self):
858  """__repr__(ExampleConstraint self) -> std::string"""
859  return _IMP_example.ExampleConstraint___repr__(self)
860 
861  def get_from(o):
862  return _object_cast_to_ExampleConstraint(o)
863  get_from = staticmethod(get_from)
864 
865 ExampleConstraint_swigregister = _IMP_example.ExampleConstraint_swigregister
866 ExampleConstraint_swigregister(ExampleConstraint)
867 
868 
869 def create_serial_mover(*args):
870  """create_serial_mover(IMP::kernel::ParticlesTemp const & ps) -> MonteCarloMover"""
871  return _IMP_example.create_serial_mover(*args)
872 
873 def optimize_balls(*args):
874  """
875  optimize_balls(IMP::kernel::ParticlesTemp const & ps, IMP::kernel::RestraintsTemp const & rs=IMP::kernel::RestraintsTemp(),
876  IMP::kernel::PairPredicates const & excluded=IMP::kernel::PairPredicates(),
877  IMP::kernel::OptimizerStates const & opt_states=IMP::kernel::OptimizerStates(),
878  IMP::base::LogLevel ll=DEFAULT)
879  optimize_balls(IMP::kernel::ParticlesTemp const & ps, IMP::kernel::RestraintsTemp const & rs=IMP::kernel::RestraintsTemp(),
880  IMP::kernel::PairPredicates const & excluded=IMP::kernel::PairPredicates(),
881  IMP::kernel::OptimizerStates const & opt_states=IMP::kernel::OptimizerStates())
882  optimize_balls(IMP::kernel::ParticlesTemp const & ps, IMP::kernel::RestraintsTemp const & rs=IMP::kernel::RestraintsTemp(),
883  IMP::kernel::PairPredicates const & excluded=IMP::kernel::PairPredicates())
884  optimize_balls(IMP::kernel::ParticlesTemp const & ps, IMP::kernel::RestraintsTemp const & rs=IMP::kernel::RestraintsTemp())
885  optimize_balls(IMP::kernel::ParticlesTemp const & ps)
886  """
887  return _IMP_example.optimize_balls(*args)
888 
889 def optimize_assembly(*args):
890  """
891  optimize_assembly(Model m, IMP::kernel::ParticlesTemp const & components, IMP::kernel::RestraintsTemp const & interactions,
892  IMP::kernel::RestraintsTemp const & other_restraints,
893  BoundingBox3D bb, PairScore ev, double cutoff, IMP::kernel::PairPredicates const & excluded=IMP::kernel::PairPredicates())
894  optimize_assembly(Model m, IMP::kernel::ParticlesTemp const & components, IMP::kernel::RestraintsTemp const & interactions,
895  IMP::kernel::RestraintsTemp const & other_restraints,
896  BoundingBox3D bb, PairScore ev, double cutoff)
897  """
898  return _IMP_example.optimize_assembly(*args)
899 
900 def get_number_of_incidences(*args):
901  """get_number_of_incidences(IMP::kernel::ParticlesTemp const & psa, IMP::kernel::ParticlesTemp const & psb, double point_distance) -> unsigned int"""
902  return _IMP_example.get_number_of_incidences(*args)
903 
904 def create_chain_restraint(*args):
905  """create_chain_restraint(IMP::kernel::ParticlesTemp const & ps, double length_factor, double k, std::string name) -> Restraint"""
906  return _IMP_example.create_chain_restraint(*args)
907 
908 def create_excluded_volume(*args):
909  """create_excluded_volume(IMP::kernel::ParticlesTemp const & ps, double k, std::string name) -> ClosePairContainer"""
910  return _IMP_example.create_excluded_volume(*args)
911 class ExampleTemplateClass3D(object):
912  """Proxy of C++ IMP::example::ExampleTemplateClassD<(3)> class"""
913  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
914  def __init__(self, *args):
915  """
916  __init__(IMP::example::ExampleTemplateClassD<(3)> self) -> ExampleTemplateClass3D
917  __init__(IMP::example::ExampleTemplateClassD<(3)> self, Vector3D a, Vector3D b) -> ExampleTemplateClass3D
918  """
919  this = _IMP_example.new_ExampleTemplateClass3D(*args)
920  try: self.this.append(this)
921  except: self.this = this
922  def get_point(self, *args):
923  """get_point(ExampleTemplateClass3D self, unsigned int i) -> Vector3D"""
924  return _IMP_example.ExampleTemplateClass3D_get_point(self, *args)
925 
926  def show(self, *args):
927  """
928  show(ExampleTemplateClass3D self, _ostream out=std::cout)
929  show(ExampleTemplateClass3D self)
930  """
931  return _IMP_example.ExampleTemplateClass3D_show(self, *args)
932 
933  def __str__(self):
934  """__str__(ExampleTemplateClass3D self) -> std::string"""
935  return _IMP_example.ExampleTemplateClass3D___str__(self)
936 
937  def __repr__(self):
938  """__repr__(ExampleTemplateClass3D self) -> std::string"""
939  return _IMP_example.ExampleTemplateClass3D___repr__(self)
940 
941  __swig_destroy__ = _IMP_example.delete_ExampleTemplateClass3D
942  __del__ = lambda self : None;
943 ExampleTemplateClass3D_swigregister = _IMP_example.ExampleTemplateClass3D_swigregister
944 ExampleTemplateClass3D_swigregister(ExampleTemplateClass3D)
945 
946 from ._randomize import *
947 
948 
949 def get_module_version():
950  """get_module_version() -> std::string const"""
951  return _IMP_example.get_module_version()
952 
953 def get_example_path(*args):
954  """get_example_path(std::string fname) -> std::string"""
955  return _IMP_example.get_example_path(*args)
956 
957 def get_data_path(*args):
958  """get_data_path(std::string fname) -> std::string"""
959  return _IMP_example.get_data_path(*args)
960 from . import _version_check
961 _version_check.check_version(get_module_version())
962 
963 
964 
Various classes to hold sets of particles.
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())
Make CGAL functionality available to IMP.
void set_check_level(CheckLevel tf)
Control runtime checks in the code.
Definition: exception.h:73
Low level functionality (logging, error handling, profiling, command line flags etc) that is used by ...
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.
Composable functors to implement scores via compile-time composition.
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.
Code to compute statistical measures.
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 class for scoring object(s) of type ParticlePair.
static XYZR setup_particle(kernel::Model *m, ParticleIndex pi)
Definition: XYZR.h:48
Store a kernel::ParticleIndexes.
Base functionality and abstract base classes for representation, scoring and sampling.
A restraint is a term in an IMP ScoringFunction.
Class to handle individual model particles.
Common base class for heavy weight IMP objects.
Definition: 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)
Basic functionality that is expected to be used by a wide variety of IMP users.
General purpose algebraic and geometric methods that are expected to be used by a wide variety of IMP...
void 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.
CheckLevel get_check_level()
Get the current audit mode.
Definition: exception.h:81
Output IMP model data in various file formats.
Functionality for loading, creating, manipulating and scoring atomic structures.
Support for the RMF file format for storing hierarchical molecular data and markup.
Divide-and-conquer inferential optimization in discrete space.
Class for storing model, its restraints, constraints, and particles.
Definition: kernel/Model.h:73