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