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_base', [dirname(__file__)])
22 _mod = imp.load_module(
'_IMP_base', fp, pathname, description)
26 _IMP_base = 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_BASE_SwigPyIterator(_object):
78 """Proxy of C++ swig::IMP_BASE_SwigPyIterator class"""
79 __swig_setmethods__ = {}
80 __setattr__ =
lambda self, name, value: _swig_setattr(self, IMP_BASE_SwigPyIterator, name, value)
81 __swig_getmethods__ = {}
82 __getattr__ =
lambda self, name: _swig_getattr(self, IMP_BASE_SwigPyIterator, name)
83 def __init__(self, *args, **kwargs):
raise AttributeError(
"No constructor defined - class is abstract")
85 __swig_destroy__ = _IMP_base.delete_IMP_BASE_SwigPyIterator
86 __del__ =
lambda self :
None;
88 """value(IMP_BASE_SwigPyIterator self) -> PyObject *"""
89 return _IMP_base.IMP_BASE_SwigPyIterator_value(self)
93 incr(IMP_BASE_SwigPyIterator self, size_t n=1) -> IMP_BASE_SwigPyIterator
94 incr(IMP_BASE_SwigPyIterator self) -> IMP_BASE_SwigPyIterator
96 return _IMP_base.IMP_BASE_SwigPyIterator_incr(self, n)
100 decr(IMP_BASE_SwigPyIterator self, size_t n=1) -> IMP_BASE_SwigPyIterator
101 decr(IMP_BASE_SwigPyIterator self) -> IMP_BASE_SwigPyIterator
103 return _IMP_base.IMP_BASE_SwigPyIterator_decr(self, n)
105 def distance(self, *args):
106 """distance(IMP_BASE_SwigPyIterator self, IMP_BASE_SwigPyIterator x) -> ptrdiff_t"""
107 return _IMP_base.IMP_BASE_SwigPyIterator_distance(self, *args)
109 def equal(self, *args):
110 """equal(IMP_BASE_SwigPyIterator self, IMP_BASE_SwigPyIterator x) -> bool"""
111 return _IMP_base.IMP_BASE_SwigPyIterator_equal(self, *args)
114 """copy(IMP_BASE_SwigPyIterator self) -> IMP_BASE_SwigPyIterator"""
115 return _IMP_base.IMP_BASE_SwigPyIterator_copy(self)
118 """next(IMP_BASE_SwigPyIterator self) -> PyObject *"""
119 return _IMP_base.IMP_BASE_SwigPyIterator_next(self)
122 """__next__(IMP_BASE_SwigPyIterator self) -> PyObject *"""
123 return _IMP_base.IMP_BASE_SwigPyIterator___next__(self)
126 """previous(IMP_BASE_SwigPyIterator self) -> PyObject *"""
127 return _IMP_base.IMP_BASE_SwigPyIterator_previous(self)
129 def advance(self, *args):
130 """advance(IMP_BASE_SwigPyIterator self, ptrdiff_t n) -> IMP_BASE_SwigPyIterator"""
131 return _IMP_base.IMP_BASE_SwigPyIterator_advance(self, *args)
133 def __eq__(self, *args):
134 """__eq__(IMP_BASE_SwigPyIterator self, IMP_BASE_SwigPyIterator x) -> bool"""
135 return _IMP_base.IMP_BASE_SwigPyIterator___eq__(self, *args)
137 def __ne__(self, *args):
138 """__ne__(IMP_BASE_SwigPyIterator self, IMP_BASE_SwigPyIterator x) -> bool"""
139 return _IMP_base.IMP_BASE_SwigPyIterator___ne__(self, *args)
141 def __iadd__(self, *args):
142 """__iadd__(IMP_BASE_SwigPyIterator self, ptrdiff_t n) -> IMP_BASE_SwigPyIterator"""
143 return _IMP_base.IMP_BASE_SwigPyIterator___iadd__(self, *args)
145 def __isub__(self, *args):
146 """__isub__(IMP_BASE_SwigPyIterator self, ptrdiff_t n) -> IMP_BASE_SwigPyIterator"""
147 return _IMP_base.IMP_BASE_SwigPyIterator___isub__(self, *args)
149 def __add__(self, *args):
150 """__add__(IMP_BASE_SwigPyIterator self, ptrdiff_t n) -> IMP_BASE_SwigPyIterator"""
151 return _IMP_base.IMP_BASE_SwigPyIterator___add__(self, *args)
153 def __sub__(self, *args):
155 __sub__(IMP_BASE_SwigPyIterator self, ptrdiff_t n) -> IMP_BASE_SwigPyIterator
156 __sub__(IMP_BASE_SwigPyIterator self, IMP_BASE_SwigPyIterator x) -> ptrdiff_t
158 return _IMP_base.IMP_BASE_SwigPyIterator___sub__(self, *args)
160 def __iter__(self):
return self
161 IMP_BASE_SwigPyIterator_swigregister = _IMP_base.IMP_BASE_SwigPyIterator_swigregister
162 IMP_BASE_SwigPyIterator_swigregister(IMP_BASE_SwigPyIterator)
169 IMP_HAS_DEPRECATED = _IMP_base.IMP_HAS_DEPRECATED
170 IMP_DEBUG = _IMP_base.IMP_DEBUG
171 IMP_RELEASE = _IMP_base.IMP_RELEASE
172 IMP_SILENT = _IMP_base.IMP_SILENT
173 IMP_PROGRESS = _IMP_base.IMP_PROGRESS
174 IMP_TERSE = _IMP_base.IMP_TERSE
175 IMP_VERBOSE = _IMP_base.IMP_VERBOSE
176 IMP_NONE = _IMP_base.IMP_NONE
177 IMP_USAGE = _IMP_base.IMP_USAGE
178 IMP_INTERNAL = _IMP_base.IMP_INTERNAL
179 IMP_COMPILER_HAS_AUTO = _IMP_base.IMP_COMPILER_HAS_AUTO
180 IMP_COMPILER_HAS_DEBUG_VECTOR = _IMP_base.IMP_COMPILER_HAS_DEBUG_VECTOR
181 IMP_COMPILER_HAS_NULLPTR = _IMP_base.IMP_COMPILER_HAS_NULLPTR
182 IMP_BASE_HAS_BOOST_RANDOM = _IMP_base.IMP_BASE_HAS_BOOST_RANDOM
183 IMP_BASE_HAS_GPERFTOOLS = _IMP_base.IMP_BASE_HAS_GPERFTOOLS
184 IMP_BASE_HAS_LOG4CXX = _IMP_base.IMP_BASE_HAS_LOG4CXX
185 IMP_BASE_HAS_TCMALLOC_HEAPCHECKER = _IMP_base.IMP_BASE_HAS_TCMALLOC_HEAPCHECKER
186 IMP_BASE_HAS_TCMALLOC_HEAPPROFILER = _IMP_base.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_base.DEFAULT_CHECK
214 NONE = _IMP_base.NONE
215 USAGE = _IMP_base.USAGE
216 USAGE_AND_INTERNAL = _IMP_base.USAGE_AND_INTERNAL
219 """set_check_level(IMP::base::CheckLevel tf)"""
220 return _IMP_base.set_check_level(*args)
223 """get_check_level() -> IMP::base::CheckLevel"""
224 return _IMP_base.get_check_level()
225 from _IMP_base
import Exception, InternalException, ModelException, EventException
226 from _IMP_base
import UsageException, IndexException, IOException, ValueException
229 if sys.version_info[:2] < (2,5):
230 IndexException.__bases__ += (IndexError,)
231 IOException.__bases__ += (IOError,)
232 ValueException.__bases__ += (ValueError,)
234 class _ostream(_object):
235 """Proxy of C++ std::ostream class"""
236 __swig_setmethods__ = {}
237 __setattr__ =
lambda self, name, value: _swig_setattr(self, _ostream, name, value)
238 __swig_getmethods__ = {}
239 __getattr__ =
lambda self, name: _swig_getattr(self, _ostream, name)
240 def __init__(self, *args, **kwargs):
raise AttributeError(
"No constructor defined")
241 __repr__ = _swig_repr
242 def write(self, *args):
243 """write(_ostream self, char const * osa_buf)"""
244 return _IMP_base._ostream_write(self, *args)
246 _ostream_swigregister = _IMP_base._ostream_swigregister
247 _ostream_swigregister(_ostream)
249 IMP_COMPILER_HAS_OVERRIDE = _IMP_base.IMP_COMPILER_HAS_OVERRIDE
250 IMP_COMPILER_HAS_FINAL = _IMP_base.IMP_COMPILER_HAS_FINAL
251 class RandomNumberGenerator(_object):
252 """Proxy of C++ IMP::base::RandomNumberGenerator class"""
253 __swig_setmethods__ = {}
254 __setattr__ =
lambda self, name, value: _swig_setattr(self, RandomNumberGenerator, name, value)
255 __swig_getmethods__ = {}
256 __getattr__ =
lambda self, name: _swig_getattr(self, RandomNumberGenerator, name)
257 __repr__ = _swig_repr
258 def seed(self, *args):
259 """seed(RandomNumberGenerator self, ::boost::int32_t x)"""
260 return _IMP_base.RandomNumberGenerator_seed(self, *args)
263 """__call__(RandomNumberGenerator self) -> int"""
264 return _IMP_base.RandomNumberGenerator___call__(self)
267 """__init__(IMP::base::RandomNumberGenerator self) -> RandomNumberGenerator"""
268 this = _IMP_base.new_RandomNumberGenerator()
269 try: self.this.append(this)
270 except: self.this = this
271 __swig_destroy__ = _IMP_base.delete_RandomNumberGenerator
272 __del__ =
lambda self :
None;
273 RandomNumberGenerator_swigregister = _IMP_base.RandomNumberGenerator_swigregister
274 RandomNumberGenerator_swigregister(RandomNumberGenerator)
276 _raii_types.append(
"SetLogState")
278 _raii_types.append(
"SetNumberOfThreads")
280 _raii_types.append(
"SetCheckState")
282 _object_types.append(
"Object")
285 def _object_cast_to_Object(*args):
286 """_object_cast_to_Object(Object * o) -> Object"""
287 return _IMP_base._object_cast_to_Object(*args)
288 _object_types.append(
"_TestObject")
291 def _object_cast_to__TestObject(*args):
292 """_object_cast_to__TestObject(Object * o) -> _TestObject"""
293 return _IMP_base._object_cast_to__TestObject(*args)
295 _plural_types.append(
"VersionInfos")
296 _value_types.append(
"VersionInfo")
298 _raii_types.append(
"CreateLogContext")
300 _raii_types.append(
"WarningContext")
302 _raii_types.append(
"SetLogTarget")
305 _plural_types.append(
"_TestValues")
306 _value_types.append(
"_TestValue")
309 _plural_types.append(
"Floats")
310 _value_types.append(
"Float")
313 _plural_types.append(
"Ints")
314 _value_types.append(
"Int")
317 _plural_types.append(
"Strings")
318 _value_types.append(
"String")
321 _plural_types.append(
"_Protections")
322 _value_types.append(
"_Protection")
324 class _InputAdaptor(_object):
325 """Proxy of C++ IMP::base::InputAdaptor class"""
326 __swig_setmethods__ = {}
327 __setattr__ =
lambda self, name, value: _swig_setattr(self, _InputAdaptor, name, value)
328 __swig_getmethods__ = {}
329 __getattr__ =
lambda self, name: _swig_getattr(self, _InputAdaptor, name)
330 def __init__(self, *args, **kwargs):
raise AttributeError(
"No constructor defined")
331 __repr__ = _swig_repr
332 __swig_destroy__ = _IMP_base.delete__InputAdaptor
333 __del__ =
lambda self :
None;
334 _InputAdaptor_swigregister = _IMP_base._InputAdaptor_swigregister
335 _InputAdaptor_swigregister(_InputAdaptor)
336 cvar = _IMP_base.cvar
337 random_number_generator = cvar.random_number_generator
339 class _NonCopyable(_object):
340 """Proxy of C++ IMP::base::NonCopyable class"""
341 __swig_setmethods__ = {}
342 __setattr__ =
lambda self, name, value: _swig_setattr(self, _NonCopyable, name, value)
343 __swig_getmethods__ = {}
344 __getattr__ =
lambda self, name: _swig_getattr(self, _NonCopyable, name)
345 def __init__(self, *args, **kwargs):
raise AttributeError(
"No constructor defined")
346 __repr__ = _swig_repr
347 __swig_destroy__ = _IMP_base.delete__NonCopyable
348 __del__ =
lambda self :
None;
349 _NonCopyable_swigregister = _IMP_base._NonCopyable_swigregister
350 _NonCopyable_swigregister(_NonCopyable)
352 class _RAII(_NonCopyable):
353 """Proxy of C++ IMP::base::RAII class"""
354 __swig_setmethods__ = {}
355 for _s
in [_NonCopyable]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
356 __setattr__ =
lambda self, name, value: _swig_setattr(self, _RAII, name, value)
357 __swig_getmethods__ = {}
358 for _s
in [_NonCopyable]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
359 __getattr__ =
lambda self, name: _swig_getattr(self, _RAII, name)
360 def __init__(self, *args, **kwargs):
raise AttributeError(
"No constructor defined")
361 __repr__ = _swig_repr
362 __swig_destroy__ = _IMP_base.delete__RAII
363 __del__ =
lambda self :
None;
364 _RAII_swigregister = _IMP_base._RAII_swigregister
365 _RAII_swigregister(_RAII)
367 class _Value(_object):
368 """Proxy of C++ IMP::base::Value class"""
369 __swig_setmethods__ = {}
370 __setattr__ =
lambda self, name, value: _swig_setattr(self, _Value, name, value)
371 __swig_getmethods__ = {}
372 __getattr__ =
lambda self, name: _swig_getattr(self, _Value, name)
373 def __init__(self, *args, **kwargs):
raise AttributeError(
"No constructor defined")
374 __repr__ = _swig_repr
375 __swig_destroy__ = _IMP_base.delete__Value
376 __del__ =
lambda self :
None;
377 _Value_swigregister = _IMP_base._Value_swigregister
378 _Value_swigregister(_Value)
382 """get_executable_name() -> std::string"""
383 return _IMP_base.get_executable_name()
387 setup_from_argv(IMP::Strings const & argv, std::string description)
388 setup_from_argv(IMP::Strings const & argv, std::string description, std::string positional_description,
389 int num_positional) -> IMP::Strings
391 return _IMP_base.setup_from_argv(*args)
394 """add_string_flag(std::string name, std::string default_value, std::string description)"""
395 return _IMP_base.add_string_flag(*args)
398 """get_string_flag(std::string name) -> std::string"""
399 return _IMP_base.get_string_flag(*args)
402 """add_int_flag(std::string name, size_t default_value, std::string description)"""
403 return _IMP_base.add_int_flag(*args)
406 """get_int_flag(std::string name) -> size_t"""
407 return _IMP_base.get_int_flag(*args)
410 """add_bool_flag(std::string name, std::string description)"""
411 return _IMP_base.add_bool_flag(*args)
414 """get_bool_flag(std::string name) -> bool"""
415 return _IMP_base.get_bool_flag(*args)
418 """add_float_flag(std::string name, double default_value, std::string description)"""
419 return _IMP_base.add_float_flag(*args)
422 """get_float_flag(std::string name) -> double"""
423 return _IMP_base.get_float_flag(*args)
427 write_help(_ostream out=std::cerr)
430 return _IMP_base.write_help(*args)
431 DEFAULT = _IMP_base.DEFAULT
432 SILENT = _IMP_base.SILENT
433 WARNING = _IMP_base.WARNING
434 PROGRESS = _IMP_base.PROGRESS
435 TERSE = _IMP_base.TERSE
436 VERBOSE = _IMP_base.VERBOSE
437 MEMORY = _IMP_base.MEMORY
438 ALL_LOG = _IMP_base.ALL_LOG
439 class VersionInfo(_Value):
440 """Proxy of C++ IMP::base::VersionInfo class"""
441 __swig_setmethods__ = {}
442 for _s
in [_Value]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
443 __setattr__ =
lambda self, name, value: _swig_setattr(self, VersionInfo, name, value)
444 __swig_getmethods__ = {}
445 for _s
in [_Value]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
446 __getattr__ =
lambda self, name: _swig_getattr(self, VersionInfo, name)
447 def __init__(self, *args):
449 __init__(IMP::base::VersionInfo self, std::string module, std::string version) -> VersionInfo
450 __init__(IMP::base::VersionInfo self) -> VersionInfo
452 this = _IMP_base.new_VersionInfo(*args)
453 try: self.this.append(this)
454 except: self.this = this
455 def get_module(self):
456 """get_module(VersionInfo self) -> std::string"""
457 return _IMP_base.VersionInfo_get_module(self)
459 def get_version(self):
460 """get_version(VersionInfo self) -> std::string"""
461 return _IMP_base.VersionInfo_get_version(self)
463 def show(self, *args):
465 show(VersionInfo self, _ostream out=std::cout)
466 show(VersionInfo self)
468 return _IMP_base.VersionInfo_show(self, *args)
470 def __eq__(self, *args):
471 """__eq__(VersionInfo self, VersionInfo o) -> bool"""
472 return _IMP_base.VersionInfo___eq__(self, *args)
474 def __ne__(self, *args):
475 """__ne__(VersionInfo self, VersionInfo o) -> bool"""
476 return _IMP_base.VersionInfo___ne__(self, *args)
478 def __lt__(self, *args):
479 """__lt__(VersionInfo self, VersionInfo o) -> bool"""
480 return _IMP_base.VersionInfo___lt__(self, *args)
482 def __gt__(self, *args):
483 """__gt__(VersionInfo self, VersionInfo o) -> bool"""
484 return _IMP_base.VersionInfo___gt__(self, *args)
486 def __ge__(self, *args):
487 """__ge__(VersionInfo self, VersionInfo o) -> bool"""
488 return _IMP_base.VersionInfo___ge__(self, *args)
490 def __le__(self, *args):
491 """__le__(VersionInfo self, VersionInfo o) -> bool"""
492 return _IMP_base.VersionInfo___le__(self, *args)
495 """__str__(VersionInfo self) -> std::string"""
496 return _IMP_base.VersionInfo___str__(self)
499 """__repr__(VersionInfo self) -> std::string"""
500 return _IMP_base.VersionInfo___repr__(self)
502 __swig_destroy__ = _IMP_base.delete_VersionInfo
503 __del__ =
lambda self :
None;
504 VersionInfo_swigregister = _IMP_base.VersionInfo_swigregister
505 VersionInfo_swigregister(VersionInfo)
507 class RefCounted(_NonCopyable):
508 """Proxy of C++ IMP::base::RefCounted class"""
509 __swig_setmethods__ = {}
510 for _s
in [_NonCopyable]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
511 __setattr__ =
lambda self, name, value: _swig_setattr(self, RefCounted, name, value)
512 __swig_getmethods__ = {}
513 for _s
in [_NonCopyable]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
514 __getattr__ =
lambda self, name: _swig_getattr(self, RefCounted, name)
515 def __init__(self, *args, **kwargs):
raise AttributeError(
"No constructor defined")
516 __repr__ = _swig_repr
517 __swig_destroy__ = _IMP_base.delete_RefCounted
518 __del__ =
lambda self :
None;
519 def get_is_valid(self):
520 """get_is_valid(RefCounted self) -> bool"""
521 return _IMP_base.RefCounted_get_is_valid(self)
523 def show(self, *args):
524 """show(RefCounted self, _ostream arg2)"""
525 return _IMP_base.RefCounted_show(self, *args)
528 """get_name(RefCounted self) -> std::string"""
529 return _IMP_base.RefCounted_get_name(self)
531 def get_ref_count(self):
532 """get_ref_count(RefCounted self) -> unsigned int"""
533 return _IMP_base.RefCounted_get_ref_count(self)
535 def get_number_of_live_objects():
536 """get_number_of_live_objects() -> unsigned int"""
537 return _IMP_base.RefCounted_get_number_of_live_objects()
539 if _newclass:get_number_of_live_objects = staticmethod(get_number_of_live_objects)
540 __swig_getmethods__[
"get_number_of_live_objects"] =
lambda x: get_number_of_live_objects
541 def get_is_shared(self):
542 """get_is_shared(RefCounted self) -> bool"""
543 return _IMP_base.RefCounted_get_is_shared(self)
545 RefCounted_swigregister = _IMP_base.RefCounted_swigregister
546 RefCounted_swigregister(RefCounted)
548 def RefCounted_get_number_of_live_objects():
549 """RefCounted_get_number_of_live_objects() -> unsigned int"""
550 return _IMP_base.RefCounted_get_number_of_live_objects()
552 class TextOutput(_InputAdaptor):
553 """Proxy of C++ IMP::base::TextOutput class"""
554 __swig_setmethods__ = {}
555 for _s
in [_InputAdaptor]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
556 __setattr__ =
lambda self, name, value: _swig_setattr(self, TextOutput, name, value)
557 __swig_getmethods__ = {}
558 for _s
in [_InputAdaptor]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
559 __getattr__ =
lambda self, name: _swig_getattr(self, TextOutput, name)
560 __repr__ = _swig_repr
561 def __init__(self, *args):
563 __init__(IMP::base::TextOutput self, int arg2) -> TextOutput
564 __init__(IMP::base::TextOutput self, double arg2) -> TextOutput
565 __init__(IMP::base::TextOutput self, char const * c, bool append=False) -> TextOutput
566 __init__(IMP::base::TextOutput self, char const * c) -> TextOutput
567 __init__(IMP::base::TextOutput self, IMP::base::TextProxy< std::ostream > p) -> TextOutput
568 __init__(IMP::base::TextOutput self) -> TextOutput
569 __init__(IMP::base::TextOutput self, std::string file_name, bool append=False) -> TextOutput
570 __init__(IMP::base::TextOutput self, std::string file_name) -> TextOutput
572 this = _IMP_base.new_TextOutput(*args)
573 try: self.this.append(this)
574 except: self.this = this
575 def show(self, *args):
577 show(TextOutput self, _ostream out=std::cout)
578 show(TextOutput self)
580 return _IMP_base.TextOutput_show(self, *args)
583 """get_name(TextOutput self) -> std::string"""
584 return _IMP_base.TextOutput_get_name(self)
586 __swig_destroy__ = _IMP_base.delete_TextOutput
587 __del__ =
lambda self :
None;
588 TextOutput_swigregister = _IMP_base.TextOutput_swigregister
589 TextOutput_swigregister(TextOutput)
591 class TextInput(_InputAdaptor):
592 """Proxy of C++ IMP::base::TextInput class"""
593 __swig_setmethods__ = {}
594 for _s
in [_InputAdaptor]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
595 __setattr__ =
lambda self, name, value: _swig_setattr(self, TextInput, name, value)
596 __swig_getmethods__ = {}
597 for _s
in [_InputAdaptor]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
598 __getattr__ =
lambda self, name: _swig_getattr(self, TextInput, name)
599 __repr__ = _swig_repr
600 def __init__(self, *args):
602 __init__(IMP::base::TextInput self, int arg2) -> TextInput
603 __init__(IMP::base::TextInput self, double arg2) -> TextInput
604 __init__(IMP::base::TextInput self, char const * c) -> TextInput
605 __init__(IMP::base::TextInput self, IMP::base::TextProxy< std::istream > p) -> TextInput
606 __init__(IMP::base::TextInput self) -> TextInput
607 __init__(IMP::base::TextInput self, std::string file_name) -> TextInput
609 this = _IMP_base.new_TextInput(*args)
610 try: self.this.append(this)
611 except: self.this = this
612 def show(self, *args):
614 show(TextInput self, _ostream out=std::cout)
617 return _IMP_base.TextInput_show(self, *args)
620 """get_name(TextInput self) -> std::string"""
621 return _IMP_base.TextInput_get_name(self)
623 __swig_destroy__ = _IMP_base.delete_TextInput
624 __del__ =
lambda self :
None;
625 TextInput_swigregister = _IMP_base.TextInput_swigregister
626 TextInput_swigregister(TextInput)
628 class SetLogTarget(_RAII):
629 """Proxy of C++ IMP::base::SetLogTarget class"""
630 __swig_setmethods__ = {}
631 for _s
in [_RAII]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
632 __setattr__ =
lambda self, name, value: _swig_setattr(self, SetLogTarget, name, value)
633 __swig_getmethods__ = {}
634 for _s
in [_RAII]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
635 __getattr__ =
lambda self, name: _swig_getattr(self, SetLogTarget, name)
636 def __init__(self, *args):
638 __init__(IMP::base::SetLogTarget self) -> SetLogTarget
639 __init__(IMP::base::SetLogTarget self, TextOutput to) -> SetLogTarget
641 this = _IMP_base.new_SetLogTarget(*args)
642 try: self.this.append(this)
643 except: self.this = this
644 def set(self, *args):
645 """set(SetLogTarget self, TextOutput to)"""
646 return _IMP_base.SetLogTarget_set(self, *args)
649 """reset(SetLogTarget self)"""
650 return _IMP_base.SetLogTarget_reset(self)
652 __swig_destroy__ = _IMP_base.delete_SetLogTarget
653 __del__ =
lambda self :
None;
654 def show(self, *args):
656 show(SetLogTarget self, _ostream out=std::cout)
657 show(SetLogTarget self)
659 return _IMP_base.SetLogTarget_show(self, *args)
662 """__str__(SetLogTarget self) -> std::string"""
663 return _IMP_base.SetLogTarget___str__(self)
666 """__repr__(SetLogTarget self) -> std::string"""
667 return _IMP_base.SetLogTarget___repr__(self)
669 SetLogTarget_swigregister = _IMP_base.SetLogTarget_swigregister
670 SetLogTarget_swigregister(SetLogTarget)
675 create_temporary_file(std::string prefix="imp_temp", std::string suffix="") -> TextOutput
676 create_temporary_file(std::string prefix="imp_temp") -> TextOutput
677 create_temporary_file() -> TextOutput
679 return _IMP_base.create_temporary_file(prefix, suffix)
683 create_temporary_file_name(std::string prefix="imp_temp", std::string suffix="") -> std::string
684 create_temporary_file_name(std::string prefix="imp_temp") -> std::string
685 create_temporary_file_name() -> std::string
687 return _IMP_base.create_temporary_file_name(prefix, suffix)
690 """get_relative_path(std::string base, std::string relative) -> std::string"""
691 return _IMP_base.get_relative_path(*args)
693 def push_log_context(*args):
694 """push_log_context(char const * functionname, void const * object)"""
695 return _IMP_base.push_log_context(*args)
697 def pop_log_context():
698 """pop_log_context()"""
699 return _IMP_base.pop_log_context()
703 add_to_log(std::string to_write)
704 add_to_log(IMP::base::LogLevel level, std::string to_write)
706 return _IMP_base.add_to_log(*args)
709 """set_log_level(IMP::base::LogLevel l)"""
710 return _IMP_base.set_log_level(*args)
713 """set_log_timer(bool tb)"""
714 return _IMP_base.set_log_timer(*args)
717 """reset_log_timer()"""
718 return _IMP_base.reset_log_timer()
721 """get_log_level() -> IMP::base::LogLevel"""
722 return _IMP_base.get_log_level()
725 """set_progress_display(std::string description, unsigned int steps)"""
726 return _IMP_base.set_progress_display(*args)
730 add_to_progress_display(unsigned int step=1)
731 add_to_progress_display()
733 return _IMP_base.add_to_progress_display(step)
734 class Object(RefCounted):
735 """Proxy of C++ IMP::base::Object class"""
736 __swig_setmethods__ = {}
737 for _s
in [RefCounted]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
738 __setattr__ =
lambda self, name, value: _swig_setattr(self, Object, name, value)
739 __swig_getmethods__ = {}
740 for _s
in [RefCounted]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
741 __getattr__ =
lambda self, name: _swig_getattr(self, Object, name)
742 __swig_destroy__ = _IMP_base.delete_Object
743 __del__ =
lambda self :
None;
744 def __init__(self, *args):
745 """__init__(IMP::base::Object self, std::string name) -> Object"""
746 if self.__class__ == Object:
750 this = _IMP_base.new_Object(_self, *args)
751 try: self.this.append(this)
752 except: self.this = this
753 if self.__class__ != Object:
755 IMP.base._director_objects.register(self)
760 """__hash__(Object self) -> std::size_t"""
761 return _IMP_base.Object___hash__(self)
764 """set_log_level(Object self, IMP::base::LogLevel l)"""
765 return _IMP_base.Object_set_log_level(self, *args)
768 """set_check_level(Object self, IMP::base::CheckLevel l)"""
769 return _IMP_base.Object_set_check_level(self, *args)
772 """get_log_level(Object self) -> IMP::base::LogLevel"""
773 return _IMP_base.Object_get_log_level(self)
776 """get_check_level(Object self) -> IMP::base::CheckLevel"""
777 return _IMP_base.Object_get_check_level(self)
779 def _debugger_show(self):
780 """_debugger_show(Object self)"""
781 return _IMP_base.Object__debugger_show(self)
783 def get_string(self):
784 """get_string(Object self) -> std::string"""
785 return _IMP_base.Object_get_string(self)
787 def get_version_info(self):
788 """get_version_info(Object self) -> VersionInfo"""
789 return _IMP_base.Object_get_version_info(self)
792 """get_name(Object self) -> std::string const &"""
793 return _IMP_base.Object_get_name(self)
795 def set_name(self, *args):
796 """set_name(Object self, std::string name)"""
797 return _IMP_base.Object_set_name(self, *args)
799 def set_was_used(self, *args):
800 """set_was_used(Object self, bool tf)"""
801 return _IMP_base.Object_set_was_used(self, *args)
803 def show(self, *args):
805 show(Object self, _ostream out=std::cout)
808 return _IMP_base.Object_show(self, *args)
810 def _on_destruction(self):
811 """_on_destruction(Object self)"""
812 return _IMP_base.Object__on_destruction(self)
814 def clear_caches(self):
815 """clear_caches(Object self)"""
816 return _IMP_base.Object_clear_caches(self)
818 def __eq__(self, *args):
819 """__eq__(Object self, Object o) -> bool"""
820 return _IMP_base.Object___eq__(self, *args)
822 def __ne__(self, *args):
823 """__ne__(Object self, Object o) -> bool"""
824 return _IMP_base.Object___ne__(self, *args)
826 def __le__(self, *args):
827 """__le__(Object self, Object o) -> bool"""
828 return _IMP_base.Object___le__(self, *args)
830 def __lt__(self, *args):
831 """__lt__(Object self, Object o) -> bool"""
832 return _IMP_base.Object___lt__(self, *args)
834 def __ge__(self, *args):
835 """__ge__(Object self, Object o) -> bool"""
836 return _IMP_base.Object___ge__(self, *args)
838 def __gt__(self, *args):
839 """__gt__(Object self, Object o) -> bool"""
840 return _IMP_base.Object___gt__(self, *args)
843 """__str__(Object self) -> std::string"""
844 return _IMP_base.Object___str__(self)
847 """__repr__(Object self) -> std::string"""
848 return _IMP_base.Object___repr__(self)
851 return _object_cast_to_Object(o)
852 get_from = staticmethod(get_from)
854 def __disown__(self):
856 _IMP_base.disown_Object(self)
857 return weakref_proxy(self)
858 Object_swigregister = _IMP_base.Object_swigregister
859 Object_swigregister(Object)
861 class SetLogState(_RAII):
862 """Proxy of C++ IMP::base::SetLogState class"""
863 __swig_setmethods__ = {}
864 for _s
in [_RAII]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
865 __setattr__ =
lambda self, name, value: _swig_setattr(self, SetLogState, name, value)
866 __swig_getmethods__ = {}
867 for _s
in [_RAII]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
868 __getattr__ =
lambda self, name: _swig_getattr(self, SetLogState, name)
870 """reset(SetLogState self)"""
871 return _IMP_base.SetLogState_reset(self)
873 __swig_destroy__ = _IMP_base.delete_SetLogState
874 __del__ =
lambda self :
None;
875 def show(self, *args):
877 show(SetLogState self, _ostream out=std::cout)
878 show(SetLogState self)
880 return _IMP_base.SetLogState_show(self, *args)
882 def __init__(self, *args):
884 __init__(IMP::base::SetLogState self) -> SetLogState
885 __init__(IMP::base::SetLogState self, Object o, IMP::base::LogLevel l) -> SetLogState
886 __init__(IMP::base::SetLogState self, IMP::base::LogLevel l) -> SetLogState
888 this = _IMP_base.new_SetLogState(*args)
889 try: self.this.append(this)
890 except: self.this = this
891 def set(self, *args):
893 set(SetLogState self, Object o, IMP::base::LogLevel l)
894 set(SetLogState self, IMP::base::LogLevel l)
896 return _IMP_base.SetLogState_set(self, *args)
899 """__str__(SetLogState self) -> std::string"""
900 return _IMP_base.SetLogState___str__(self)
903 """__repr__(SetLogState self) -> std::string"""
904 return _IMP_base.SetLogState___repr__(self)
906 SetLogState_swigregister = _IMP_base.SetLogState_swigregister
907 SetLogState_swigregister(SetLogState)
909 class WarningContext(_object):
910 """Proxy of C++ IMP::base::WarningContext class"""
911 __swig_setmethods__ = {}
912 __setattr__ =
lambda self, name, value: _swig_setattr(self, WarningContext, name, value)
913 __swig_getmethods__ = {}
914 __getattr__ =
lambda self, name: _swig_getattr(self, WarningContext, name)
915 __swig_setmethods__[
"data_"] = _IMP_base.WarningContext_data__set
916 __swig_getmethods__[
"data_"] = _IMP_base.WarningContext_data__get
917 if _newclass:data_ = _swig_property(_IMP_base.WarningContext_data__get, _IMP_base.WarningContext_data__set)
918 def add_warning(self, *args):
919 """add_warning(WarningContext self, std::string key, std::string warning)"""
920 return _IMP_base.WarningContext_add_warning(self, *args)
922 def clear_warnings(self):
923 """clear_warnings(WarningContext self)"""
924 return _IMP_base.WarningContext_clear_warnings(self)
926 def dump_warnings(self):
927 """dump_warnings(WarningContext self)"""
928 return _IMP_base.WarningContext_dump_warnings(self)
930 __swig_destroy__ = _IMP_base.delete_WarningContext
931 __del__ =
lambda self :
None;
932 def show(self, *args):
934 show(WarningContext self, _ostream out=std::cout)
935 show(WarningContext self)
937 return _IMP_base.WarningContext_show(self, *args)
940 """__str__(WarningContext self) -> std::string"""
941 return _IMP_base.WarningContext___str__(self)
944 """__repr__(WarningContext self) -> std::string"""
945 return _IMP_base.WarningContext___repr__(self)
948 """__init__(IMP::base::WarningContext self) -> WarningContext"""
949 this = _IMP_base.new_WarningContext()
950 try: self.this.append(this)
951 except: self.this = this
952 WarningContext_swigregister = _IMP_base.WarningContext_swigregister
953 WarningContext_swigregister(WarningContext)
955 class CreateLogContext(_RAII):
956 """Proxy of C++ IMP::base::CreateLogContext class"""
957 __swig_setmethods__ = {}
958 for _s
in [_RAII]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
959 __setattr__ =
lambda self, name, value: _swig_setattr(self, CreateLogContext, name, value)
960 __swig_getmethods__ = {}
961 for _s
in [_RAII]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
962 __getattr__ =
lambda self, name: _swig_getattr(self, CreateLogContext, name)
963 def __init__(self, *args):
965 __init__(IMP::base::CreateLogContext self, std::string fname, void const * object=nullptr) -> CreateLogContext
966 __init__(IMP::base::CreateLogContext self, std::string fname) -> CreateLogContext
967 __init__(IMP::base::CreateLogContext self) -> CreateLogContext
968 __init__(IMP::base::CreateLogContext self, char const * fname, void const * object=nullptr) -> CreateLogContext
969 __init__(IMP::base::CreateLogContext self, char const * fname) -> CreateLogContext
971 this = _IMP_base.new_CreateLogContext(*args)
972 try: self.this.append(this)
973 except: self.this = this
974 def set(self, *args):
976 set(CreateLogContext self, char const * fname, void const * object=nullptr)
977 set(CreateLogContext self, char const * fname)
979 return _IMP_base.CreateLogContext_set(self, *args)
982 """reset(CreateLogContext self)"""
983 return _IMP_base.CreateLogContext_reset(self)
985 __swig_destroy__ = _IMP_base.delete_CreateLogContext
986 __del__ =
lambda self :
None;
987 def show(self, *args):
989 show(CreateLogContext self, _ostream out=std::cout)
990 show(CreateLogContext self)
992 return _IMP_base.CreateLogContext_show(self, *args)
995 """__str__(CreateLogContext self) -> std::string"""
996 return _IMP_base.CreateLogContext___str__(self)
999 """__repr__(CreateLogContext self) -> std::string"""
1000 return _IMP_base.CreateLogContext___repr__(self)
1002 CreateLogContext_swigregister = _IMP_base.CreateLogContext_swigregister
1003 CreateLogContext_swigregister(CreateLogContext)
1005 class SetCheckState(_RAII):
1006 """Proxy of C++ IMP::base::SetCheckState class"""
1007 __swig_setmethods__ = {}
1008 for _s
in [_RAII]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
1009 __setattr__ =
lambda self, name, value: _swig_setattr(self, SetCheckState, name, value)
1010 __swig_getmethods__ = {}
1011 for _s
in [_RAII]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
1012 __getattr__ =
lambda self, name: _swig_getattr(self, SetCheckState, name)
1014 """reset(SetCheckState self)"""
1015 return _IMP_base.SetCheckState_reset(self)
1017 __swig_destroy__ = _IMP_base.delete_SetCheckState
1018 __del__ =
lambda self :
None;
1019 def show(self, *args):
1021 show(SetCheckState self, _ostream out=std::cout)
1022 show(SetCheckState self)
1024 return _IMP_base.SetCheckState_show(self, *args)
1026 def __init__(self, *args):
1028 __init__(IMP::base::SetCheckState self) -> SetCheckState
1029 __init__(IMP::base::SetCheckState self, Object o, IMP::base::CheckLevel l) -> SetCheckState
1030 __init__(IMP::base::SetCheckState self, IMP::base::CheckLevel l) -> SetCheckState
1032 this = _IMP_base.new_SetCheckState(*args)
1033 try: self.this.append(this)
1034 except: self.this = this
1035 def set(self, *args):
1037 set(SetCheckState self, Object o, IMP::base::CheckLevel l)
1038 set(SetCheckState self, IMP::base::CheckLevel l)
1040 return _IMP_base.SetCheckState_set(self, *args)
1043 """__str__(SetCheckState self) -> std::string"""
1044 return _IMP_base.SetCheckState___str__(self)
1047 """__repr__(SetCheckState self) -> std::string"""
1048 return _IMP_base.SetCheckState___repr__(self)
1050 SetCheckState_swigregister = _IMP_base.SetCheckState_swigregister
1051 SetCheckState_swigregister(SetCheckState)
1055 """get_unique_name(std::string templ) -> std::string"""
1056 return _IMP_base.get_unique_name(*args)
1057 class _Protection(_object):
1058 """Proxy of C++ IMP::base::internal::_Protection class"""
1059 __swig_setmethods__ = {}
1060 __setattr__ =
lambda self, name, value: _swig_setattr(self, _Protection, name, value)
1061 __swig_getmethods__ = {}
1062 __getattr__ =
lambda self, name: _swig_getattr(self, _Protection, name)
1063 def __init__(self, *args, **kwargs):
raise AttributeError(
"No constructor defined")
1064 def show(self, *args):
1066 show(_Protection self, _ostream out=std::cout)
1067 show(_Protection self)
1069 return _IMP_base._Protection_show(self, *args)
1072 """__str__(_Protection self) -> std::string"""
1073 return _IMP_base._Protection___str__(self)
1076 """__repr__(_Protection self) -> std::string"""
1077 return _IMP_base._Protection___repr__(self)
1079 __swig_destroy__ = _IMP_base.delete__Protection
1080 __del__ =
lambda self :
None;
1081 _Protection_swigregister = _IMP_base._Protection_swigregister
1082 _Protection_swigregister(_Protection)
1087 return _IMP_base._test_log()
1089 def _test_intranges(*args):
1090 """_test_intranges(IMP::IntRanges const & ips) -> int"""
1091 return _IMP_base._test_intranges(*args)
1093 def _test_intrange(*args):
1095 _test_intrange(IMP::IntRange const & ips) -> IMP::IntRange
1096 _test_intrange() -> IMP::IntRange
1098 return _IMP_base._test_intrange(*args)
1100 def _test_ifile(*args):
1101 """_test_ifile(TextInput a) -> std::string"""
1102 return _IMP_base._test_ifile(*args)
1104 def _test_ofile(*args):
1105 """_test_ofile(TextOutput a) -> std::string"""
1106 return _IMP_base._test_ofile(*args)
1108 def _test_ifile_overloaded(*args):
1110 _test_ifile_overloaded(TextInput a, int i) -> std::string
1111 _test_ifile_overloaded(TextInput a, std::string st) -> std::string
1113 return _IMP_base._test_ifile_overloaded(*args)
1115 def _test_ofile_overloaded(*args):
1117 _test_ofile_overloaded(TextOutput a, int i) -> std::string
1118 _test_ofile_overloaded(TextOutput a, std::string st) -> std::string
1120 return _IMP_base._test_ofile_overloaded(*args)
1121 class _TestValue(_object):
1122 """Proxy of C++ IMP::base::internal::_TestValue class"""
1123 __swig_setmethods__ = {}
1124 __setattr__ =
lambda self, name, value: _swig_setattr(self, _TestValue, name, value)
1125 __swig_getmethods__ = {}
1126 __getattr__ =
lambda self, name: _swig_getattr(self, _TestValue, name)
1127 def __init__(self, *args):
1128 """__init__(IMP::base::internal::_TestValue self, int i) -> _TestValue"""
1129 this = _IMP_base.new__TestValue(*args)
1130 try: self.this.append(this)
1131 except: self.this = this
1132 def show(self, *args):
1134 show(_TestValue self, _ostream out=std::cout)
1135 show(_TestValue self)
1137 return _IMP_base._TestValue_show(self, *args)
1139 def __eq__(self, *args):
1140 """__eq__(_TestValue self, _TestValue o) -> bool"""
1141 return _IMP_base._TestValue___eq__(self, *args)
1143 def __ne__(self, *args):
1144 """__ne__(_TestValue self, _TestValue o) -> bool"""
1145 return _IMP_base._TestValue___ne__(self, *args)
1147 def __lt__(self, *args):
1148 """__lt__(_TestValue self, _TestValue o) -> bool"""
1149 return _IMP_base._TestValue___lt__(self, *args)
1151 def __gt__(self, *args):
1152 """__gt__(_TestValue self, _TestValue o) -> bool"""
1153 return _IMP_base._TestValue___gt__(self, *args)
1155 def __ge__(self, *args):
1156 """__ge__(_TestValue self, _TestValue o) -> bool"""
1157 return _IMP_base._TestValue___ge__(self, *args)
1159 def __le__(self, *args):
1160 """__le__(_TestValue self, _TestValue o) -> bool"""
1161 return _IMP_base._TestValue___le__(self, *args)
1164 """get(_TestValue self) -> int"""
1165 return _IMP_base._TestValue_get(self)
1168 """__str__(_TestValue self) -> std::string"""
1169 return _IMP_base._TestValue___str__(self)
1172 """__repr__(_TestValue self) -> std::string"""
1173 return _IMP_base._TestValue___repr__(self)
1175 __swig_destroy__ = _IMP_base.delete__TestValue
1176 __del__ =
lambda self :
None;
1177 _TestValue_swigregister = _IMP_base._TestValue_swigregister
1178 _TestValue_swigregister(_TestValue)
1181 def _pass_plain_pair(*args):
1182 """_pass_plain_pair(IMP::FloatPair p) -> IMP::FloatPair"""
1183 return _IMP_base._pass_plain_pair(*args)
1185 def _pass_overloaded_strings(*args):
1187 _pass_overloaded_strings(IMP::Strings const & a, int arg2) -> IMP::Strings
1188 _pass_overloaded_strings(IMP::Strings const & a) -> IMP::Strings
1190 return _IMP_base._pass_overloaded_strings(*args)
1192 def _pass_pair(*args):
1193 """_pass_pair(IMP::DerivativePair const & p) -> IMP::DerivativePair"""
1194 return _IMP_base._pass_pair(*args)
1196 def _pass_floats(*args):
1197 """_pass_floats(IMP::Floats const & input) -> IMP::Floats"""
1198 return _IMP_base._pass_floats(*args)
1200 def _pass_ints(*args):
1201 """_pass_ints(IMP::Ints input) -> IMP::Ints"""
1202 return _IMP_base._pass_ints(*args)
1204 def _pass_ints_list(*args):
1205 """_pass_ints_list(IMP::IntsList const & input) -> IMP::IntsList"""
1206 return _IMP_base._pass_ints_list(*args)
1208 def _pass_ints_lists(*args):
1209 """_pass_ints_lists(IMP::IntsLists const & input) -> IMP::IntsLists"""
1210 return _IMP_base._pass_ints_lists(*args)
1212 def _pass_strings(*args):
1213 """_pass_strings(IMP::Strings const & input) -> IMP::Strings const &"""
1214 return _IMP_base._pass_strings(*args)
1215 class _TestObject(Object):
1216 """Proxy of C++ IMP::base::internal::_TestObject class"""
1217 __swig_setmethods__ = {}
1218 for _s
in [Object]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
1219 __setattr__ =
lambda self, name, value: _swig_setattr(self, _TestObject, name, value)
1220 __swig_getmethods__ = {}
1221 for _s
in [Object]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
1222 __getattr__ =
lambda self, name: _swig_getattr(self, _TestObject, name)
1224 """__init__(IMP::base::internal::_TestObject self) -> _TestObject"""
1225 this = _IMP_base.new__TestObject()
1226 try: self.this.append(this)
1227 except: self.this = this
1228 def get_version_info(self):
1229 """get_version_info(_TestObject self) -> VersionInfo"""
1230 return _IMP_base._TestObject_get_version_info(self)
1232 __swig_destroy__ = _IMP_base.delete__TestObject
1233 __del__ =
lambda self :
None;
1235 """__str__(_TestObject self) -> std::string"""
1236 return _IMP_base._TestObject___str__(self)
1239 """__repr__(_TestObject self) -> std::string"""
1240 return _IMP_base._TestObject___repr__(self)
1243 return _object_cast_to__TestObject(o)
1244 get_from = staticmethod(get_from)
1246 _TestObject_swigregister = _IMP_base._TestObject_swigregister
1247 _TestObject_swigregister(_TestObject)
1251 """get_live_object_names() -> IMP::Strings"""
1252 return _IMP_base.get_live_object_names()
1255 """get_live_objects() -> IMP::base::Objects"""
1256 return _IMP_base.get_live_objects()
1259 """set_show_leaked_objects(bool tf)"""
1260 return _IMP_base.set_show_leaked_objects(*args)
1263 """set_print_deprecation_messages(bool tf)"""
1264 return _IMP_base.set_print_deprecation_messages(*args)
1267 """get_number_of_threads() -> unsigned int"""
1268 return _IMP_base.get_number_of_threads()
1271 """set_number_of_threads(unsigned int n)"""
1272 return _IMP_base.set_number_of_threads(*args)
1273 class SetNumberOfThreads(_RAII):
1274 """Proxy of C++ IMP::base::SetNumberOfThreads class"""
1275 __swig_setmethods__ = {}
1276 for _s
in [_RAII]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
1277 __setattr__ =
lambda self, name, value: _swig_setattr(self, SetNumberOfThreads, name, value)
1278 __swig_getmethods__ = {}
1279 for _s
in [_RAII]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
1280 __getattr__ =
lambda self, name: _swig_getattr(self, SetNumberOfThreads, name)
1281 def __init__(self, *args):
1283 __init__(IMP::base::SetNumberOfThreads self) -> SetNumberOfThreads
1284 __init__(IMP::base::SetNumberOfThreads self, unsigned int n) -> SetNumberOfThreads
1286 this = _IMP_base.new_SetNumberOfThreads(*args)
1287 try: self.this.append(this)
1288 except: self.this = this
1289 def set(self, *args):
1290 """set(SetNumberOfThreads self, unsigned int n)"""
1291 return _IMP_base.SetNumberOfThreads_set(self, *args)
1294 """reset(SetNumberOfThreads self)"""
1295 return _IMP_base.SetNumberOfThreads_reset(self)
1297 __swig_destroy__ = _IMP_base.delete_SetNumberOfThreads
1298 __del__ =
lambda self :
None;
1299 def show(self, *args):
1301 show(SetNumberOfThreads self, _ostream out=std::cout)
1302 show(SetNumberOfThreads self)
1304 return _IMP_base.SetNumberOfThreads_show(self, *args)
1307 """__str__(SetNumberOfThreads self) -> std::string"""
1308 return _IMP_base.SetNumberOfThreads___str__(self)
1311 """__repr__(SetNumberOfThreads self) -> std::string"""
1312 return _IMP_base.SetNumberOfThreads___repr__(self)
1314 SetNumberOfThreads_swigregister = _IMP_base.SetNumberOfThreads_swigregister
1315 SetNumberOfThreads_swigregister(SetNumberOfThreads)
1318 show_altgraph= _graph_show.show_altgraph
1319 show_graphviz= _graph_show.show_graphviz
1320 get_networkx_graph= _graph_show.get_networkx_graph
1323 def get_module_version():
1324 """get_module_version() -> std::string const"""
1325 return _IMP_base.get_module_version()
1327 def get_example_path(*args):
1328 """get_example_path(std::string fname) -> std::string"""
1329 return _IMP_base.get_example_path(*args)
1331 def get_data_path(*args):
1332 """get_data_path(std::string fname) -> std::string"""
1333 return _IMP_base.get_data_path(*args)
1334 import _version_check
1335 _version_check.check_version(get_module_version())