9 from sys
import version_info
10 if version_info >= (2,6,0):
11 def swig_import_helper():
12 from os.path
import dirname
16 fp, pathname, description = imp.find_module(
'_IMP_example', [dirname(__file__)])
22 _mod = imp.load_module(
'_IMP_example', fp, pathname, description)
26 _IMP_example = swig_import_helper()
27 del swig_import_helper
32 _swig_property = property
35 def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
36 if (name ==
"thisown"):
return self.this.own(value)
38 if type(value).__name__ ==
'SwigPyObject':
39 self.__dict__[name] = value
41 method = class_type.__swig_setmethods__.get(name,
None)
42 if method:
return method(self,value)
44 self.__dict__[name] = value
46 raise AttributeError(
"You cannot add attributes to %s" % self)
48 def _swig_setattr(self,class_type,name,value):
49 return _swig_setattr_nondynamic(self,class_type,name,value,0)
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)
58 try: strthis =
"proxy of " + self.this.__repr__()
60 return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
65 except AttributeError:
72 weakref_proxy = weakref.proxy
74 weakref_proxy =
lambda x: x
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")
85 __swig_destroy__ = _IMP_example.delete_IMP_EXAMPLE_SwigPyIterator
86 __del__ =
lambda self :
None;
88 """value(IMP_EXAMPLE_SwigPyIterator self) -> PyObject *"""
89 return _IMP_example.IMP_EXAMPLE_SwigPyIterator_value(self)
93 incr(IMP_EXAMPLE_SwigPyIterator self, size_t n=1) -> IMP_EXAMPLE_SwigPyIterator
94 incr(IMP_EXAMPLE_SwigPyIterator self) -> IMP_EXAMPLE_SwigPyIterator
96 return _IMP_example.IMP_EXAMPLE_SwigPyIterator_incr(self, n)
100 decr(IMP_EXAMPLE_SwigPyIterator self, size_t n=1) -> IMP_EXAMPLE_SwigPyIterator
101 decr(IMP_EXAMPLE_SwigPyIterator self) -> IMP_EXAMPLE_SwigPyIterator
103 return _IMP_example.IMP_EXAMPLE_SwigPyIterator_decr(self, n)
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)
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)
114 """copy(IMP_EXAMPLE_SwigPyIterator self) -> IMP_EXAMPLE_SwigPyIterator"""
115 return _IMP_example.IMP_EXAMPLE_SwigPyIterator_copy(self)
118 """next(IMP_EXAMPLE_SwigPyIterator self) -> PyObject *"""
119 return _IMP_example.IMP_EXAMPLE_SwigPyIterator_next(self)
122 """__next__(IMP_EXAMPLE_SwigPyIterator self) -> PyObject *"""
123 return _IMP_example.IMP_EXAMPLE_SwigPyIterator___next__(self)
126 """previous(IMP_EXAMPLE_SwigPyIterator self) -> PyObject *"""
127 return _IMP_example.IMP_EXAMPLE_SwigPyIterator_previous(self)
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)
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)
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)
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)
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)
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)
153 def __sub__(self, *args):
155 __sub__(IMP_EXAMPLE_SwigPyIterator self, ptrdiff_t n) -> IMP_EXAMPLE_SwigPyIterator
156 __sub__(IMP_EXAMPLE_SwigPyIterator self, IMP_EXAMPLE_SwigPyIterator x) -> ptrdiff_t
158 return _IMP_example.IMP_EXAMPLE_SwigPyIterator___sub__(self, *args)
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)
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
188 class _DirectorObjects(object):
189 """@internal Simple class to keep references to director objects
190 to prevent premature deletion."""
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)
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]
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()
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
219 """set_check_level(IMP::base::CheckLevel tf)"""
220 return _IMP_example.set_check_level(*args)
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)
237 _ostream_swigregister = _IMP_example._ostream_swigregister
238 _ostream_swigregister(_ostream)
240 IMP_COMPILER_HAS_OVERRIDE = _IMP_example.IMP_COMPILER_HAS_OVERRIDE
241 IMP_COMPILER_HAS_FINAL = _IMP_example.IMP_COMPILER_HAS_FINAL
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
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
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
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
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
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
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
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
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
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
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
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")
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")
374 _value_types.append(
"ExampleDecorator")
376 _object_types.append(
"ExampleUnaryFunction")
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")
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")
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")
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")
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")
410 def create_model_and_particles():
415 for i
in range(0,100):
419 d.set_coordinates_are_optimized(
True)
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)
439 def do_get_inputs(self):
440 """do_get_inputs(ExampleRestraint self) -> IMP::ModelObjectsTemp"""
441 return _IMP_example.ExampleRestraint_do_get_inputs(self)
443 def get_version_info(self):
444 """get_version_info(ExampleRestraint self) -> VersionInfo"""
445 return _IMP_example.ExampleRestraint_get_version_info(self)
447 __swig_destroy__ = _IMP_example.delete_ExampleRestraint
448 __del__ =
lambda self :
None;
450 """__str__(ExampleRestraint self) -> std::string"""
451 return _IMP_example.ExampleRestraint___str__(self)
454 """__repr__(ExampleRestraint self) -> std::string"""
455 return _IMP_example.ExampleRestraint___repr__(self)
458 return _object_cast_to_ExampleRestraint(o)
459 get_from = staticmethod(get_from)
461 ExampleRestraint_swigregister = _IMP_example.ExampleRestraint_swigregister
462 ExampleRestraint_swigregister(ExampleRestraint)
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)
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)
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)
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)
492 def __init__(self, *args):
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
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)
505 if _newclass:decorate_particle = staticmethod(decorate_particle)
506 __swig_getmethods__[
"decorate_particle"] =
lambda x: decorate_particle
507 def show(self, *args):
509 show(ExampleDecorator self, _ostream out=std::cout)
510 show(ExampleDecorator self)
512 return _IMP_example.ExampleDecorator_show(self, *args)
514 def add_attribute(self, *args):
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)
523 return _IMP_example.ExampleDecorator_add_attribute(self, *args)
525 def get_value(self, *args):
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 *
533 return _IMP_example.ExampleDecorator_get_value(self, *args)
535 def set_value(self, *args):
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)
543 return _IMP_example.ExampleDecorator_set_value(self, *args)
545 def remove_attribute(self, *args):
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)
553 return _IMP_example.ExampleDecorator_remove_attribute(self, *args)
555 def has_attribute(self, *args):
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
563 return _IMP_example.ExampleDecorator_has_attribute(self, *args)
565 def get_derivative(self, *args):
566 """get_derivative(ExampleDecorator self, FloatKey a0) -> double"""
567 return _IMP_example.ExampleDecorator_get_derivative(self, *args)
570 """get_name(ExampleDecorator self) -> std::string"""
571 return _IMP_example.ExampleDecorator_get_name(self)
573 def clear_caches(self):
574 """clear_caches(ExampleDecorator self)"""
575 return _IMP_example.ExampleDecorator_clear_caches(self)
577 def set_name(self, *args):
578 """set_name(ExampleDecorator self, std::string a0)"""
579 return _IMP_example.ExampleDecorator_set_name(self, *args)
582 """set_check_level(ExampleDecorator self, IMP::base::CheckLevel a0)"""
583 return _IMP_example.ExampleDecorator_set_check_level(self, *args)
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)
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)
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)
598 """get_check_level(ExampleDecorator self) -> IMP::base::CheckLevel"""
599 return _IMP_example.ExampleDecorator_get_check_level(self)
601 def __eq__(self, *args):
603 __eq__(ExampleDecorator self, ExampleDecorator o) -> bool
604 __eq__(ExampleDecorator self, Particle d) -> bool
606 return _IMP_example.ExampleDecorator___eq__(self, *args)
608 def __ne__(self, *args):
610 __ne__(ExampleDecorator self, ExampleDecorator o) -> bool
611 __ne__(ExampleDecorator self, Particle d) -> bool
613 return _IMP_example.ExampleDecorator___ne__(self, *args)
615 def __le__(self, *args):
617 __le__(ExampleDecorator self, ExampleDecorator o) -> bool
618 __le__(ExampleDecorator self, Particle d) -> bool
620 return _IMP_example.ExampleDecorator___le__(self, *args)
622 def __lt__(self, *args):
624 __lt__(ExampleDecorator self, ExampleDecorator o) -> bool
625 __lt__(ExampleDecorator self, Particle d) -> bool
627 return _IMP_example.ExampleDecorator___lt__(self, *args)
629 def __ge__(self, *args):
631 __ge__(ExampleDecorator self, ExampleDecorator o) -> bool
632 __ge__(ExampleDecorator self, Particle d) -> bool
634 return _IMP_example.ExampleDecorator___ge__(self, *args)
636 def __gt__(self, *args):
638 __gt__(ExampleDecorator self, ExampleDecorator o) -> bool
639 __gt__(ExampleDecorator self, Particle d) -> bool
641 return _IMP_example.ExampleDecorator___gt__(self, *args)
644 """__str__(ExampleDecorator self) -> std::string"""
645 return _IMP_example.ExampleDecorator___str__(self)
648 """__repr__(ExampleDecorator self) -> std::string"""
649 return _IMP_example.ExampleDecorator___repr__(self)
651 __swig_destroy__ = _IMP_example.delete_ExampleDecorator
652 __del__ =
lambda self :
None;
653 ExampleDecorator_swigregister = _IMP_example.ExampleDecorator_swigregister
654 ExampleDecorator_swigregister(ExampleDecorator)
656 def ExampleDecorator_setup_particle(*args):
657 """ExampleDecorator_setup_particle(Particle p, std::string name) -> ExampleDecorator"""
658 return _IMP_example.ExampleDecorator_setup_particle(*args)
660 def ExampleDecorator_particle_is_instance(*args):
661 """ExampleDecorator_particle_is_instance(Particle p) -> bool"""
662 return _IMP_example.ExampleDecorator_particle_is_instance(*args)
664 def ExampleDecorator_decorate_particle(*args):
665 """ExampleDecorator_decorate_particle(Particle p) -> ExampleDecorator"""
666 return _IMP_example.ExampleDecorator_decorate_particle(*args)
669 def __lshift__(*args):
670 """__lshift__(_ostream out, ExampleDecorator n) -> _ostream"""
671 return _IMP_example.__lshift__(*args)
673 """Proxy of C++ IMP::example::ExampleUnaryFunction class"""
674 __swig_setmethods__ = {}
676 __setattr__ =
lambda self, name, value: _swig_setattr(self, ExampleUnaryFunction, name, value)
677 __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)
689 __swig_destroy__ = _IMP_example.delete_ExampleUnaryFunction
690 __del__ =
lambda self :
None;
692 """__str__(ExampleUnaryFunction self) -> std::string"""
693 return _IMP_example.ExampleUnaryFunction___str__(self)
696 """__repr__(ExampleUnaryFunction self) -> std::string"""
697 return _IMP_example.ExampleUnaryFunction___repr__(self)
700 return _object_cast_to_ExampleUnaryFunction(o)
701 get_from = staticmethod(get_from)
703 ExampleUnaryFunction_swigregister = _IMP_example.ExampleUnaryFunction_swigregister
704 ExampleUnaryFunction_swigregister(ExampleUnaryFunction)
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)
724 def show(self, *args):
726 show(ExampleRefCounted self, _ostream out=std::cout)
727 show(ExampleRefCounted self)
729 return _IMP_example.ExampleRefCounted_show(self, *args)
731 __swig_destroy__ = _IMP_example.delete_ExampleRefCounted
732 __del__ =
lambda self :
None;
733 ExampleRefCounted_swigregister = _IMP_example.ExampleRefCounted_swigregister
734 ExampleRefCounted_swigregister(ExampleRefCounted)
737 """Proxy of C++ IMP::example::ExampleSingletonModifier class"""
738 __swig_setmethods__ = {}
740 __setattr__ =
lambda self, name, value: _swig_setattr(self, ExampleSingletonModifier, name, value)
741 __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
750 """get_input_particles(ExampleSingletonModifier self, Particle arg2) -> IMP::kernel::ParticlesTemp"""
751 return _IMP_example.ExampleSingletonModifier_get_input_particles(self, *args)
754 """get_input_containers(ExampleSingletonModifier self, Particle arg2) -> IMP::kernel::ContainersTemp"""
755 return _IMP_example.ExampleSingletonModifier_get_input_containers(self, *args)
758 """get_output_particles(ExampleSingletonModifier self, Particle arg2) -> IMP::kernel::ParticlesTemp"""
759 return _IMP_example.ExampleSingletonModifier_get_output_particles(self, *args)
762 """get_output_containers(ExampleSingletonModifier self, Particle arg2) -> IMP::kernel::ContainersTemp"""
763 return _IMP_example.ExampleSingletonModifier_get_output_containers(self, *args)
765 def get_version_info(self):
766 """get_version_info(ExampleSingletonModifier self) -> VersionInfo"""
767 return _IMP_example.ExampleSingletonModifier_get_version_info(self)
769 def do_show(self, *args):
770 """do_show(ExampleSingletonModifier self, _ostream out)"""
771 return _IMP_example.ExampleSingletonModifier_do_show(self, *args)
773 __swig_destroy__ = _IMP_example.delete_ExampleSingletonModifier
774 __del__ =
lambda self :
None;
776 """__str__(ExampleSingletonModifier self) -> std::string"""
777 return _IMP_example.ExampleSingletonModifier___str__(self)
780 """__repr__(ExampleSingletonModifier self) -> std::string"""
781 return _IMP_example.ExampleSingletonModifier___repr__(self)
784 return _object_cast_to_ExampleSingletonModifier(o)
785 get_from = staticmethod(get_from)
787 ExampleSingletonModifier_swigregister = _IMP_example.ExampleSingletonModifier_swigregister
788 ExampleSingletonModifier_swigregister(ExampleSingletonModifier)
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
804 """get_input_particles(ExamplePairScore self, Particle arg2) -> IMP::kernel::ParticlesTemp"""
805 return _IMP_example.ExamplePairScore_get_input_particles(self, *args)
808 """get_input_containers(ExamplePairScore self, Particle arg2) -> IMP::kernel::ContainersTemp"""
809 return _IMP_example.ExamplePairScore_get_input_containers(self, *args)
811 def get_version_info(self):
812 """get_version_info(ExamplePairScore self) -> VersionInfo"""
813 return _IMP_example.ExamplePairScore_get_version_info(self)
815 def do_show(self, *args):
816 """do_show(ExamplePairScore self, _ostream out)"""
817 return _IMP_example.ExamplePairScore_do_show(self, *args)
819 __swig_destroy__ = _IMP_example.delete_ExamplePairScore
820 __del__ =
lambda self :
None;
822 """__str__(ExamplePairScore self) -> std::string"""
823 return _IMP_example.ExamplePairScore___str__(self)
826 """__repr__(ExamplePairScore self) -> std::string"""
827 return _IMP_example.ExamplePairScore___repr__(self)
830 return _object_cast_to_ExamplePairScore(o)
831 get_from = staticmethod(get_from)
833 ExamplePairScore_swigregister = _IMP_example.ExamplePairScore_swigregister
834 ExamplePairScore_swigregister(ExamplePairScore)
837 """Proxy of C++ IMP::example::ExampleSubsetFilterTable class"""
838 __swig_setmethods__ = {}
840 __setattr__ =
lambda self, name, value: _swig_setattr(self, ExampleSubsetFilterTable, name, value)
841 __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)
853 def do_show(self, *args):
854 """do_show(ExampleSubsetFilterTable self, _ostream out)"""
855 return _IMP_example.ExampleSubsetFilterTable_do_show(self, *args)
857 __swig_destroy__ = _IMP_example.delete_ExampleSubsetFilterTable
858 __del__ =
lambda self :
None;
860 """__str__(ExampleSubsetFilterTable self) -> std::string"""
861 return _IMP_example.ExampleSubsetFilterTable___str__(self)
864 """__repr__(ExampleSubsetFilterTable self) -> std::string"""
865 return _IMP_example.ExampleSubsetFilterTable___repr__(self)
868 return _object_cast_to_ExampleSubsetFilterTable(o)
869 get_from = staticmethod(get_from)
871 ExampleSubsetFilterTable_swigregister = _IMP_example.ExampleSubsetFilterTable_swigregister
872 ExampleSubsetFilterTable_swigregister(ExampleSubsetFilterTable)
875 """Proxy of C++ IMP::example::ExampleConstraint class"""
876 __swig_setmethods__ = {}
878 __setattr__ =
lambda self, name, value: _swig_setattr(self, ExampleConstraint, name, value)
879 __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
888 """get_input_particles(ExampleConstraint self) -> IMP::kernel::ParticlesTemp"""
889 return _IMP_example.ExampleConstraint_get_input_particles(self)
892 """get_input_containers(ExampleConstraint self) -> IMP::kernel::ContainersTemp"""
893 return _IMP_example.ExampleConstraint_get_input_containers(self)
895 def do_get_inputs(self):
896 """do_get_inputs(ExampleConstraint self) -> IMP::kernel::ModelObjectsTemp"""
897 return _IMP_example.ExampleConstraint_do_get_inputs(self)
900 """get_output_particles(ExampleConstraint self) -> IMP::kernel::ParticlesTemp"""
901 return _IMP_example.ExampleConstraint_get_output_particles(self)
904 """get_output_containers(ExampleConstraint self) -> IMP::kernel::ContainersTemp"""
905 return _IMP_example.ExampleConstraint_get_output_containers(self)
907 def do_get_outputs(self):
908 """do_get_outputs(ExampleConstraint self) -> IMP::kernel::ModelObjectsTemp"""
909 return _IMP_example.ExampleConstraint_do_get_outputs(self)
911 def get_version_info(self):
912 """get_version_info(ExampleConstraint self) -> VersionInfo"""
913 return _IMP_example.ExampleConstraint_get_version_info(self)
915 def do_show(self, *args):
916 """do_show(ExampleConstraint self, _ostream out)"""
917 return _IMP_example.ExampleConstraint_do_show(self, *args)
919 __swig_destroy__ = _IMP_example.delete_ExampleConstraint
920 __del__ =
lambda self :
None;
922 """__str__(ExampleConstraint self) -> std::string"""
923 return _IMP_example.ExampleConstraint___str__(self)
926 """__repr__(ExampleConstraint self) -> std::string"""
927 return _IMP_example.ExampleConstraint___repr__(self)
930 return _object_cast_to_ExampleConstraint(o)
931 get_from = staticmethod(get_from)
933 ExampleConstraint_swigregister = _IMP_example.ExampleConstraint_swigregister
934 ExampleConstraint_swigregister(ExampleConstraint)
938 """create_serial_mover(IMP::kernel::ParticlesTemp const & ps) -> MonteCarloMover"""
939 return _IMP_example.create_serial_mover(*args)
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)
955 return _IMP_example.optimize_balls(*args)
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)
966 return _IMP_example.optimize_assembly(*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)
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)
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):
987 __init__(IMP::example::ExampleTemplateClassD<(3)> self) -> ExampleTemplateClass3D
988 __init__(IMP::example::ExampleTemplateClassD<(3)> self, Vector3D a, Vector3D b) -> ExampleTemplateClass3D
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)
997 def show(self, *args):
999 show(ExampleTemplateClass3D self, _ostream out=std::cout)
1000 show(ExampleTemplateClass3D self)
1002 return _IMP_example.ExampleTemplateClass3D_show(self, *args)
1005 """__str__(ExampleTemplateClass3D self) -> std::string"""
1006 return _IMP_example.ExampleTemplateClass3D___str__(self)
1009 """__repr__(ExampleTemplateClass3D self) -> std::string"""
1010 return _IMP_example.ExampleTemplateClass3D___repr__(self)
1012 __swig_destroy__ = _IMP_example.delete_ExampleTemplateClass3D
1013 __del__ =
lambda self :
None;
1014 ExampleTemplateClass3D_swigregister = _IMP_example.ExampleTemplateClass3D_swigregister
1015 ExampleTemplateClass3D_swigregister(ExampleTemplateClass3D)
1017 from _randomize
import *
1020 def get_module_version():
1021 """get_module_version() -> std::string const"""
1022 return _IMP_example.get_module_version()
1025 """get_example_path(std::string fname) -> std::string"""
1026 return _IMP_example.get_example_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())