11 from sys
import version_info
12 if version_info >= (2,6,0):
13 def swig_import_helper():
14 from os.path
import dirname
18 fp, pathname, description = imp.find_module(
'_IMP_base', [dirname(__file__)])
24 _mod = imp.load_module(
'_IMP_base', fp, pathname, description)
28 _IMP_base = swig_import_helper()
29 del swig_import_helper
34 _swig_property = property
37 def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
38 if (name ==
"thisown"):
return self.this.own(value)
40 if type(value).__name__ ==
'SwigPyObject':
41 self.__dict__[name] = value
43 method = class_type.__swig_setmethods__.get(name,
None)
44 if method:
return method(self,value)
46 self.__dict__[name] = value
48 raise AttributeError(
"You cannot add attributes to %s" % self)
50 def _swig_setattr(self,class_type,name,value):
51 return _swig_setattr_nondynamic(self,class_type,name,value,0)
53 def _swig_getattr(self,class_type,name):
54 if (name ==
"thisown"):
return self.this.own()
55 method = class_type.__swig_getmethods__.get(name,
None)
56 if method:
return method(self)
57 raise AttributeError(name)
60 try: strthis =
"proxy of " + self.this.__repr__()
62 return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
67 except AttributeError:
74 weakref_proxy = weakref.proxy
76 weakref_proxy =
lambda x: x
79 class IMP_BASE_SwigPyIterator(_object):
80 """Proxy of C++ swig::IMP_BASE_SwigPyIterator class"""
81 __swig_setmethods__ = {}
82 __setattr__ =
lambda self, name, value: _swig_setattr(self, IMP_BASE_SwigPyIterator, name, value)
83 __swig_getmethods__ = {}
84 __getattr__ =
lambda self, name: _swig_getattr(self, IMP_BASE_SwigPyIterator, name)
85 def __init__(self, *args, **kwargs):
raise AttributeError(
"No constructor defined - class is abstract")
87 __swig_destroy__ = _IMP_base.delete_IMP_BASE_SwigPyIterator
88 __del__ =
lambda self :
None;
90 """value(IMP_BASE_SwigPyIterator self) -> PyObject *"""
91 return _IMP_base.IMP_BASE_SwigPyIterator_value(self)
95 incr(IMP_BASE_SwigPyIterator self, size_t n=1) -> IMP_BASE_SwigPyIterator
96 incr(IMP_BASE_SwigPyIterator self) -> IMP_BASE_SwigPyIterator
98 return _IMP_base.IMP_BASE_SwigPyIterator_incr(self, n)
102 decr(IMP_BASE_SwigPyIterator self, size_t n=1) -> IMP_BASE_SwigPyIterator
103 decr(IMP_BASE_SwigPyIterator self) -> IMP_BASE_SwigPyIterator
105 return _IMP_base.IMP_BASE_SwigPyIterator_decr(self, n)
107 def distance(self, *args):
108 """distance(IMP_BASE_SwigPyIterator self, IMP_BASE_SwigPyIterator x) -> ptrdiff_t"""
109 return _IMP_base.IMP_BASE_SwigPyIterator_distance(self, *args)
111 def equal(self, *args):
112 """equal(IMP_BASE_SwigPyIterator self, IMP_BASE_SwigPyIterator x) -> bool"""
113 return _IMP_base.IMP_BASE_SwigPyIterator_equal(self, *args)
116 """copy(IMP_BASE_SwigPyIterator self) -> IMP_BASE_SwigPyIterator"""
117 return _IMP_base.IMP_BASE_SwigPyIterator_copy(self)
120 """next(IMP_BASE_SwigPyIterator self) -> PyObject *"""
121 return _IMP_base.IMP_BASE_SwigPyIterator_next(self)
124 """__next__(IMP_BASE_SwigPyIterator self) -> PyObject *"""
125 return _IMP_base.IMP_BASE_SwigPyIterator___next__(self)
128 """previous(IMP_BASE_SwigPyIterator self) -> PyObject *"""
129 return _IMP_base.IMP_BASE_SwigPyIterator_previous(self)
131 def advance(self, *args):
132 """advance(IMP_BASE_SwigPyIterator self, ptrdiff_t n) -> IMP_BASE_SwigPyIterator"""
133 return _IMP_base.IMP_BASE_SwigPyIterator_advance(self, *args)
135 def __eq__(self, *args):
136 """__eq__(IMP_BASE_SwigPyIterator self, IMP_BASE_SwigPyIterator x) -> bool"""
137 return _IMP_base.IMP_BASE_SwigPyIterator___eq__(self, *args)
139 def __ne__(self, *args):
140 """__ne__(IMP_BASE_SwigPyIterator self, IMP_BASE_SwigPyIterator x) -> bool"""
141 return _IMP_base.IMP_BASE_SwigPyIterator___ne__(self, *args)
143 def __iadd__(self, *args):
144 """__iadd__(IMP_BASE_SwigPyIterator self, ptrdiff_t n) -> IMP_BASE_SwigPyIterator"""
145 return _IMP_base.IMP_BASE_SwigPyIterator___iadd__(self, *args)
147 def __isub__(self, *args):
148 """__isub__(IMP_BASE_SwigPyIterator self, ptrdiff_t n) -> IMP_BASE_SwigPyIterator"""
149 return _IMP_base.IMP_BASE_SwigPyIterator___isub__(self, *args)
151 def __add__(self, *args):
152 """__add__(IMP_BASE_SwigPyIterator self, ptrdiff_t n) -> IMP_BASE_SwigPyIterator"""
153 return _IMP_base.IMP_BASE_SwigPyIterator___add__(self, *args)
155 def __sub__(self, *args):
157 __sub__(IMP_BASE_SwigPyIterator self, ptrdiff_t n) -> IMP_BASE_SwigPyIterator
158 __sub__(IMP_BASE_SwigPyIterator self, IMP_BASE_SwigPyIterator x) -> ptrdiff_t
160 return _IMP_base.IMP_BASE_SwigPyIterator___sub__(self, *args)
162 def __iter__(self):
return self
163 IMP_BASE_SwigPyIterator_swigregister = _IMP_base.IMP_BASE_SwigPyIterator_swigregister
164 IMP_BASE_SwigPyIterator_swigregister(IMP_BASE_SwigPyIterator)
171 IMP_DEBUG = _IMP_base.IMP_DEBUG
172 IMP_RELEASE = _IMP_base.IMP_RELEASE
173 IMP_SILENT = _IMP_base.IMP_SILENT
174 IMP_PROGRESS = _IMP_base.IMP_PROGRESS
175 IMP_TERSE = _IMP_base.IMP_TERSE
176 IMP_VERBOSE = _IMP_base.IMP_VERBOSE
177 IMP_MEMORY = _IMP_base.IMP_MEMORY
178 IMP_NONE = _IMP_base.IMP_NONE
179 IMP_USAGE = _IMP_base.IMP_USAGE
180 IMP_INTERNAL = _IMP_base.IMP_INTERNAL
181 IMP_BASE_HAS_LOG4CXX = _IMP_base.IMP_BASE_HAS_LOG4CXX
182 IMP_COMPILER_HAS_AUTO = _IMP_base.IMP_COMPILER_HAS_AUTO
183 IMP_COMPILER_HAS_DEBUG_VECTOR = _IMP_base.IMP_COMPILER_HAS_DEBUG_VECTOR
184 IMP_BASE_HAS_BOOST_RANDOM = _IMP_base.IMP_BASE_HAS_BOOST_RANDOM
185 IMP_BASE_HAS_GPERFTOOLS = _IMP_base.IMP_BASE_HAS_GPERFTOOLS
186 IMP_BASE_HAS_TCMALLOC_HEAPCHECKER = _IMP_base.IMP_BASE_HAS_TCMALLOC_HEAPCHECKER
187 IMP_BASE_HAS_TCMALLOC_HEAPPROFILER = _IMP_base.IMP_BASE_HAS_TCMALLOC_HEAPPROFILER
188 IMPBASE_SHOW_WARNINGS = _IMP_base.IMPBASE_SHOW_WARNINGS
190 class _DirectorObjects(object):
191 """@internal Simple class to keep references to director objects
192 to prevent premature deletion."""
195 def register(self, obj):
196 """Take a reference to a director object; will only work for
197 refcounted C++ classes"""
198 if hasattr(obj,
'get_ref_count'):
199 self._objects.append(obj)
201 """Only drop our reference and allow cleanup by Python if no other
202 Python references exist (we hold 3 references: one in self._objects,
203 one in x, and one in the argument list for getrefcount) *and* no
204 other C++ references exist (the Python object always holds one)"""
205 objs = [x
for x
in self._objects
if sys.getrefcount(x) > 3 \
206 or x.get_ref_count() > 1]
210 def get_object_count(self):
211 """Get number of director objects (useful for testing only)"""
212 return len(self._objects)
213 _director_objects = _DirectorObjects()
215 DEFAULT_CHECK = _IMP_base.DEFAULT_CHECK
216 NONE = _IMP_base.NONE
217 USAGE = _IMP_base.USAGE
218 USAGE_AND_INTERNAL = _IMP_base.USAGE_AND_INTERNAL
221 """set_check_level(IMP::base::CheckLevel tf)"""
222 return _IMP_base.set_check_level(*args)
225 """get_check_level() -> IMP::base::CheckLevel"""
226 return _IMP_base.get_check_level()
227 from _IMP_base
import Exception, InternalException, ModelException, EventException
228 from _IMP_base
import UsageException, IndexException, IOException, ValueException
231 if sys.version_info[:2] < (2,5):
232 IndexException.__bases__ += (IndexError,)
233 IOException.__bases__ += (IOError,)
234 ValueException.__bases__ += (ValueError,)
236 class _ostream(_object):
237 """Proxy of C++ std::ostream class"""
238 __swig_setmethods__ = {}
239 __setattr__ =
lambda self, name, value: _swig_setattr(self, _ostream, name, value)
240 __swig_getmethods__ = {}
241 __getattr__ =
lambda self, name: _swig_getattr(self, _ostream, name)
242 def __init__(self, *args, **kwargs):
raise AttributeError(
"No constructor defined")
243 __repr__ = _swig_repr
244 def write(self, *args):
245 """write(_ostream self, char const * osa_buf)"""
246 return _IMP_base._ostream_write(self, *args)
248 _ostream_swigregister = _IMP_base._ostream_swigregister
249 _ostream_swigregister(_ostream)
251 IMP_COMPILER_HAS_OVERRIDE = _IMP_base.IMP_COMPILER_HAS_OVERRIDE
252 IMP_COMPILER_HAS_FINAL = _IMP_base.IMP_COMPILER_HAS_FINAL
253 IMP_HAS_NOEXCEPT = _IMP_base.IMP_HAS_NOEXCEPT
254 class RandomNumberGenerator(_object):
255 """Proxy of C++ IMP::base::RandomNumberGenerator class"""
256 __swig_setmethods__ = {}
257 __setattr__ =
lambda self, name, value: _swig_setattr(self, RandomNumberGenerator, name, value)
258 __swig_getmethods__ = {}
259 __getattr__ =
lambda self, name: _swig_getattr(self, RandomNumberGenerator, name)
260 __repr__ = _swig_repr
261 def seed(self, *args):
262 """seed(RandomNumberGenerator self, ::boost::int32_t x)"""
263 return _IMP_base.RandomNumberGenerator_seed(self, *args)
266 """__call__(RandomNumberGenerator self) -> int"""
267 return _IMP_base.RandomNumberGenerator___call__(self)
270 """__init__(IMP::base::RandomNumberGenerator self) -> RandomNumberGenerator"""
271 this = _IMP_base.new_RandomNumberGenerator()
272 try: self.this.append(this)
273 except: self.this = this
274 __swig_destroy__ = _IMP_base.delete_RandomNumberGenerator
275 __del__ =
lambda self :
None;
276 RandomNumberGenerator_swigregister = _IMP_base.RandomNumberGenerator_swigregister
277 RandomNumberGenerator_swigregister(RandomNumberGenerator)
279 _raii_types.append(
"SetLogState")
281 _raii_types.append(
"SetNumberOfThreads")
283 _raii_types.append(
"SetCheckState")
285 _object_types.append(
"Object")
288 def _object_cast_to_Object(*args):
289 """_object_cast_to_Object(Object * o) -> Object"""
290 return _IMP_base._object_cast_to_Object(*args)
291 _object_types.append(
"_TestObject")
294 def _object_cast_to__TestObject(*args):
295 """_object_cast_to__TestObject(Object * o) -> _TestObject"""
296 return _IMP_base._object_cast_to__TestObject(*args)
298 _plural_types.append(
"VersionInfos")
299 _value_types.append(
"VersionInfo")
301 _raii_types.append(
"CreateLogContext")
303 _raii_types.append(
"WarningContext")
305 _raii_types.append(
"SetLogTarget")
308 _plural_types.append(
"_TestValues")
309 _value_types.append(
"_TestValue")
312 _plural_types.append(
"Floats")
313 _value_types.append(
"Float")
316 _plural_types.append(
"Ints")
317 _value_types.append(
"Int")
320 _plural_types.append(
"Strings")
321 _value_types.append(
"String")
324 _plural_types.append(
"_Protections")
325 _value_types.append(
"_Protection")
327 class _InputAdaptor(_object):
328 """Proxy of C++ IMP::base::InputAdaptor class"""
329 __swig_setmethods__ = {}
330 __setattr__ =
lambda self, name, value: _swig_setattr(self, _InputAdaptor, name, value)
331 __swig_getmethods__ = {}
332 __getattr__ =
lambda self, name: _swig_getattr(self, _InputAdaptor, name)
333 def __init__(self, *args, **kwargs):
raise AttributeError(
"No constructor defined")
334 __repr__ = _swig_repr
335 __swig_destroy__ = _IMP_base.delete__InputAdaptor
336 __del__ =
lambda self :
None;
337 _InputAdaptor_swigregister = _IMP_base._InputAdaptor_swigregister
338 _InputAdaptor_swigregister(_InputAdaptor)
339 cvar = _IMP_base.cvar
340 random_number_generator = cvar.random_number_generator
342 class _NonCopyable(_object):
343 """Proxy of C++ IMP::base::NonCopyable class"""
344 __swig_setmethods__ = {}
345 __setattr__ =
lambda self, name, value: _swig_setattr(self, _NonCopyable, name, value)
346 __swig_getmethods__ = {}
347 __getattr__ =
lambda self, name: _swig_getattr(self, _NonCopyable, name)
348 def __init__(self, *args, **kwargs):
raise AttributeError(
"No constructor defined")
349 __repr__ = _swig_repr
350 __swig_destroy__ = _IMP_base.delete__NonCopyable
351 __del__ =
lambda self :
None;
352 _NonCopyable_swigregister = _IMP_base._NonCopyable_swigregister
353 _NonCopyable_swigregister(_NonCopyable)
355 class _RAII(_NonCopyable):
356 """Proxy of C++ IMP::base::RAII class"""
357 __swig_setmethods__ = {}
358 for _s
in [_NonCopyable]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
359 __setattr__ =
lambda self, name, value: _swig_setattr(self, _RAII, name, value)
360 __swig_getmethods__ = {}
361 for _s
in [_NonCopyable]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
362 __getattr__ =
lambda self, name: _swig_getattr(self, _RAII, name)
363 def __init__(self, *args, **kwargs):
raise AttributeError(
"No constructor defined")
364 __repr__ = _swig_repr
365 __swig_destroy__ = _IMP_base.delete__RAII
366 __del__ =
lambda self :
None;
367 _RAII_swigregister = _IMP_base._RAII_swigregister
368 _RAII_swigregister(_RAII)
370 class _Value(_object):
371 """Proxy of C++ IMP::base::Value class"""
372 __swig_setmethods__ = {}
373 __setattr__ =
lambda self, name, value: _swig_setattr(self, _Value, name, value)
374 __swig_getmethods__ = {}
375 __getattr__ =
lambda self, name: _swig_getattr(self, _Value, name)
376 def __init__(self, *args, **kwargs):
raise AttributeError(
"No constructor defined")
377 __repr__ = _swig_repr
378 __swig_destroy__ = _IMP_base.delete__Value
379 __del__ =
lambda self :
None;
380 _Value_swigregister = _IMP_base._Value_swigregister
381 _Value_swigregister(_Value)
385 """get_executable_name() -> std::string"""
386 return _IMP_base.get_executable_name()
390 setup_from_argv(IMP::Strings const & argv, std::string description)
391 setup_from_argv(IMP::Strings const & argv, std::string description, std::string positional_description,
392 int num_positional) -> IMP::Strings
394 return _IMP_base.setup_from_argv(*args)
397 """add_string_flag(std::string name, std::string default_value, std::string description)"""
398 return _IMP_base.add_string_flag(*args)
401 """get_string_flag(std::string name) -> std::string"""
402 return _IMP_base.get_string_flag(*args)
405 """add_int_flag(std::string name, size_t default_value, std::string description)"""
406 return _IMP_base.add_int_flag(*args)
409 """get_int_flag(std::string name) -> size_t"""
410 return _IMP_base.get_int_flag(*args)
413 """add_bool_flag(std::string name, std::string description)"""
414 return _IMP_base.add_bool_flag(*args)
417 """get_bool_flag(std::string name) -> bool"""
418 return _IMP_base.get_bool_flag(*args)
421 """add_float_flag(std::string name, double default_value, std::string description)"""
422 return _IMP_base.add_float_flag(*args)
425 """get_float_flag(std::string name) -> double"""
426 return _IMP_base.get_float_flag(*args)
430 write_help(_ostream out=std::cerr)
433 return _IMP_base.write_help(*args)
434 DEFAULT = _IMP_base.DEFAULT
435 SILENT = _IMP_base.SILENT
436 WARNING = _IMP_base.WARNING
437 PROGRESS = _IMP_base.PROGRESS
438 TERSE = _IMP_base.TERSE
439 VERBOSE = _IMP_base.VERBOSE
440 MEMORY = _IMP_base.MEMORY
441 ALL_LOG = _IMP_base.ALL_LOG
442 class VersionInfo(_Value):
443 """Proxy of C++ IMP::base::VersionInfo class"""
444 __swig_setmethods__ = {}
445 for _s
in [_Value]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
446 __setattr__ =
lambda self, name, value: _swig_setattr(self, VersionInfo, name, value)
447 __swig_getmethods__ = {}
448 for _s
in [_Value]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
449 __getattr__ =
lambda self, name: _swig_getattr(self, VersionInfo, name)
450 def __init__(self, *args):
452 __init__(IMP::base::VersionInfo self, std::string module, std::string version) -> VersionInfo
453 __init__(IMP::base::VersionInfo self) -> VersionInfo
455 this = _IMP_base.new_VersionInfo(*args)
456 try: self.this.append(this)
457 except: self.this = this
458 def get_module(self):
459 """get_module(VersionInfo self) -> std::string"""
460 return _IMP_base.VersionInfo_get_module(self)
462 def get_version(self):
463 """get_version(VersionInfo self) -> std::string"""
464 return _IMP_base.VersionInfo_get_version(self)
466 def show(self, *args):
468 show(VersionInfo self, _ostream out=std::cout)
469 show(VersionInfo self)
471 return _IMP_base.VersionInfo_show(self, *args)
473 def __eq__(self, *args):
474 """__eq__(VersionInfo self, VersionInfo o) -> bool"""
475 return _IMP_base.VersionInfo___eq__(self, *args)
477 def __ne__(self, *args):
478 """__ne__(VersionInfo self, VersionInfo o) -> bool"""
479 return _IMP_base.VersionInfo___ne__(self, *args)
481 def __lt__(self, *args):
482 """__lt__(VersionInfo self, VersionInfo o) -> bool"""
483 return _IMP_base.VersionInfo___lt__(self, *args)
485 def __gt__(self, *args):
486 """__gt__(VersionInfo self, VersionInfo o) -> bool"""
487 return _IMP_base.VersionInfo___gt__(self, *args)
489 def __ge__(self, *args):
490 """__ge__(VersionInfo self, VersionInfo o) -> bool"""
491 return _IMP_base.VersionInfo___ge__(self, *args)
493 def __le__(self, *args):
494 """__le__(VersionInfo self, VersionInfo o) -> bool"""
495 return _IMP_base.VersionInfo___le__(self, *args)
498 """__str__(VersionInfo self) -> std::string"""
499 return _IMP_base.VersionInfo___str__(self)
502 """__repr__(VersionInfo self) -> std::string"""
503 return _IMP_base.VersionInfo___repr__(self)
505 __swig_destroy__ = _IMP_base.delete_VersionInfo
506 __del__ =
lambda self :
None;
507 VersionInfo_swigregister = _IMP_base.VersionInfo_swigregister
508 VersionInfo_swigregister(VersionInfo)
510 class TextOutput(_InputAdaptor):
511 """Proxy of C++ IMP::base::TextOutput class"""
512 __swig_setmethods__ = {}
513 for _s
in [_InputAdaptor]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
514 __setattr__ =
lambda self, name, value: _swig_setattr(self, TextOutput, name, value)
515 __swig_getmethods__ = {}
516 for _s
in [_InputAdaptor]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
517 __getattr__ =
lambda self, name: _swig_getattr(self, TextOutput, name)
518 __repr__ = _swig_repr
519 def __init__(self, *args):
521 __init__(IMP::base::TextOutput self, int arg2) -> TextOutput
522 __init__(IMP::base::TextOutput self, double arg2) -> TextOutput
523 __init__(IMP::base::TextOutput self, char const * c, bool append=False) -> TextOutput
524 __init__(IMP::base::TextOutput self, char const * c) -> TextOutput
525 __init__(IMP::base::TextOutput self, IMP::base::TextProxy< std::ostream > p) -> TextOutput
526 __init__(IMP::base::TextOutput self) -> TextOutput
527 __init__(IMP::base::TextOutput self, std::string file_name, bool append=False) -> TextOutput
528 __init__(IMP::base::TextOutput self, std::string file_name) -> TextOutput
530 this = _IMP_base.new_TextOutput(*args)
531 try: self.this.append(this)
532 except: self.this = this
533 def show(self, *args):
535 show(TextOutput self, _ostream out=std::cout)
536 show(TextOutput self)
538 return _IMP_base.TextOutput_show(self, *args)
541 """get_name(TextOutput self) -> std::string"""
542 return _IMP_base.TextOutput_get_name(self)
544 __swig_destroy__ = _IMP_base.delete_TextOutput
545 __del__ =
lambda self :
None;
546 TextOutput_swigregister = _IMP_base.TextOutput_swigregister
547 TextOutput_swigregister(TextOutput)
549 class TextInput(_InputAdaptor):
550 """Proxy of C++ IMP::base::TextInput class"""
551 __swig_setmethods__ = {}
552 for _s
in [_InputAdaptor]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
553 __setattr__ =
lambda self, name, value: _swig_setattr(self, TextInput, name, value)
554 __swig_getmethods__ = {}
555 for _s
in [_InputAdaptor]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
556 __getattr__ =
lambda self, name: _swig_getattr(self, TextInput, name)
557 __repr__ = _swig_repr
558 def __init__(self, *args):
560 __init__(IMP::base::TextInput self, int arg2) -> TextInput
561 __init__(IMP::base::TextInput self, double arg2) -> TextInput
562 __init__(IMP::base::TextInput self, char const * c) -> TextInput
563 __init__(IMP::base::TextInput self, IMP::base::TextProxy< std::istream > p) -> TextInput
564 __init__(IMP::base::TextInput self) -> TextInput
565 __init__(IMP::base::TextInput self, std::string file_name) -> TextInput
567 this = _IMP_base.new_TextInput(*args)
568 try: self.this.append(this)
569 except: self.this = this
570 def show(self, *args):
572 show(TextInput self, _ostream out=std::cout)
575 return _IMP_base.TextInput_show(self, *args)
578 """get_name(TextInput self) -> std::string"""
579 return _IMP_base.TextInput_get_name(self)
581 __swig_destroy__ = _IMP_base.delete_TextInput
582 __del__ =
lambda self :
None;
583 TextInput_swigregister = _IMP_base.TextInput_swigregister
584 TextInput_swigregister(TextInput)
586 class SetLogTarget(_RAII):
587 """Proxy of C++ IMP::base::SetLogTarget class"""
588 __swig_setmethods__ = {}
589 for _s
in [_RAII]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
590 __setattr__ =
lambda self, name, value: _swig_setattr(self, SetLogTarget, name, value)
591 __swig_getmethods__ = {}
592 for _s
in [_RAII]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
593 __getattr__ =
lambda self, name: _swig_getattr(self, SetLogTarget, name)
594 def __init__(self, *args):
596 __init__(IMP::base::SetLogTarget self) -> SetLogTarget
597 __init__(IMP::base::SetLogTarget self, TextOutput to) -> SetLogTarget
599 this = _IMP_base.new_SetLogTarget(*args)
600 try: self.this.append(this)
601 except: self.this = this
602 def set(self, *args):
603 """set(SetLogTarget self, TextOutput to)"""
604 return _IMP_base.SetLogTarget_set(self, *args)
607 """reset(SetLogTarget self)"""
608 return _IMP_base.SetLogTarget_reset(self)
610 __swig_destroy__ = _IMP_base.delete_SetLogTarget
611 __del__ =
lambda self :
None;
612 def show(self, *args):
614 show(SetLogTarget self, _ostream out=std::cout)
615 show(SetLogTarget self)
617 return _IMP_base.SetLogTarget_show(self, *args)
620 """__str__(SetLogTarget self) -> std::string"""
621 return _IMP_base.SetLogTarget___str__(self)
624 """__repr__(SetLogTarget self) -> std::string"""
625 return _IMP_base.SetLogTarget___repr__(self)
627 SetLogTarget_swigregister = _IMP_base.SetLogTarget_swigregister
628 SetLogTarget_swigregister(SetLogTarget)
633 create_temporary_file(std::string prefix="imp_temp", std::string suffix="") -> TextOutput
634 create_temporary_file(std::string prefix="imp_temp") -> TextOutput
635 create_temporary_file() -> TextOutput
637 return _IMP_base.create_temporary_file(prefix, suffix)
641 create_temporary_file_name(std::string prefix="imp_temp", std::string suffix="") -> std::string
642 create_temporary_file_name(std::string prefix="imp_temp") -> std::string
643 create_temporary_file_name() -> std::string
645 return _IMP_base.create_temporary_file_name(prefix, suffix)
648 """get_relative_path(std::string base, std::string relative) -> std::string"""
649 return _IMP_base.get_relative_path(*args)
651 def push_log_context(*args):
652 """push_log_context(char const * functionname, void const * object)"""
653 return _IMP_base.push_log_context(*args)
655 def pop_log_context():
656 """pop_log_context()"""
657 return _IMP_base.pop_log_context()
661 add_to_log(std::string to_write)
662 add_to_log(IMP::base::LogLevel level, std::string to_write)
664 return _IMP_base.add_to_log(*args)
667 """set_log_level(IMP::base::LogLevel l)"""
668 return _IMP_base.set_log_level(*args)
671 """set_log_timer(bool tb)"""
672 return _IMP_base.set_log_timer(*args)
675 """reset_log_timer()"""
676 return _IMP_base.reset_log_timer()
679 """get_log_level() -> IMP::base::LogLevel"""
680 return _IMP_base.get_log_level()
683 """set_progress_display(std::string description, unsigned int steps)"""
684 return _IMP_base.set_progress_display(*args)
688 add_to_progress_display(unsigned int step=1)
689 add_to_progress_display()
691 return _IMP_base.add_to_progress_display(step)
692 class Object(_NonCopyable):
693 """Proxy of C++ IMP::base::Object class"""
694 __swig_setmethods__ = {}
695 for _s
in [_NonCopyable]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
696 __setattr__ =
lambda self, name, value: _swig_setattr(self, Object, name, value)
697 __swig_getmethods__ = {}
698 for _s
in [_NonCopyable]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
699 __getattr__ =
lambda self, name: _swig_getattr(self, Object, name)
700 __swig_destroy__ = _IMP_base.delete_Object
701 __del__ =
lambda self :
None;
702 def __init__(self, *args):
704 __init__(IMP::base::Object self, std::string name) -> Object
705 __init__(IMP::base::Object self) -> Object
707 if self.__class__ == Object:
711 this = _IMP_base.new_Object(_self, *args)
712 try: self.this.append(this)
713 except: self.this = this
714 if self.__class__ != Object:
716 IMP.base._director_objects.register(self)
721 """__hash__(Object self) -> std::size_t"""
722 return _IMP_base.Object___hash__(self)
725 """set_log_level(Object self, IMP::base::LogLevel l)"""
726 return _IMP_base.Object_set_log_level(self, *args)
729 """set_check_level(Object self, IMP::base::CheckLevel l)"""
730 return _IMP_base.Object_set_check_level(self, *args)
733 """get_log_level(Object self) -> IMP::base::LogLevel"""
734 return _IMP_base.Object_get_log_level(self)
737 """get_check_level(Object self) -> IMP::base::CheckLevel"""
738 return _IMP_base.Object_get_check_level(self)
740 def get_version_info(self):
741 """get_version_info(Object self) -> VersionInfo"""
742 return _IMP_base.Object_get_version_info(self)
745 """get_name(Object self) -> std::string const &"""
746 return _IMP_base.Object_get_name(self)
748 def set_name(self, *args):
749 """set_name(Object self, std::string name)"""
750 return _IMP_base.Object_set_name(self, *args)
752 def get_type_name(self):
753 """get_type_name(Object self) -> std::string"""
754 return _IMP_base.Object_get_type_name(self)
756 def set_was_used(self, *args):
757 """set_was_used(Object self, bool tf)"""
758 return _IMP_base.Object_set_was_used(self, *args)
760 def show(self, *args):
762 show(Object self, _ostream out=std::cout)
765 return _IMP_base.Object_show(self, *args)
767 def _debugger_show(self):
768 """_debugger_show(Object self)"""
769 return _IMP_base.Object__debugger_show(self)
771 def get_string(self):
772 """get_string(Object self) -> std::string"""
773 return _IMP_base.Object_get_string(self)
775 def _on_destruction(self):
776 """_on_destruction(Object self)"""
777 return _IMP_base.Object__on_destruction(self)
779 def get_is_valid(self):
780 """get_is_valid(Object self) -> bool"""
781 return _IMP_base.Object_get_is_valid(self)
783 def get_ref_count(self):
784 """get_ref_count(Object self) -> unsigned int"""
785 return _IMP_base.Object_get_ref_count(self)
787 def get_number_of_live_objects():
788 """get_number_of_live_objects() -> unsigned int"""
789 return _IMP_base.Object_get_number_of_live_objects()
791 if _newclass:get_number_of_live_objects = staticmethod(get_number_of_live_objects)
792 __swig_getmethods__[
"get_number_of_live_objects"] =
lambda x: get_number_of_live_objects
793 def get_is_shared(self):
794 """get_is_shared(Object self) -> bool"""
795 return _IMP_base.Object_get_is_shared(self)
797 def clear_caches(self):
798 """clear_caches(Object self)"""
799 return _IMP_base.Object_clear_caches(self)
801 def do_destroy(self):
802 """do_destroy(Object self)"""
803 return _IMP_base.Object_do_destroy(self)
805 def __eq__(self, *args):
806 """__eq__(Object self, Object o) -> bool"""
807 return _IMP_base.Object___eq__(self, *args)
809 def __ne__(self, *args):
810 """__ne__(Object self, Object o) -> bool"""
811 return _IMP_base.Object___ne__(self, *args)
813 def __le__(self, *args):
814 """__le__(Object self, Object o) -> bool"""
815 return _IMP_base.Object___le__(self, *args)
817 def __lt__(self, *args):
818 """__lt__(Object self, Object o) -> bool"""
819 return _IMP_base.Object___lt__(self, *args)
821 def __ge__(self, *args):
822 """__ge__(Object self, Object o) -> bool"""
823 return _IMP_base.Object___ge__(self, *args)
825 def __gt__(self, *args):
826 """__gt__(Object self, Object o) -> bool"""
827 return _IMP_base.Object___gt__(self, *args)
830 """__str__(Object self) -> std::string"""
831 return _IMP_base.Object___str__(self)
834 """__repr__(Object self) -> std::string"""
835 return _IMP_base.Object___repr__(self)
838 return _object_cast_to_Object(o)
839 get_from = staticmethod(get_from)
841 def __disown__(self):
843 _IMP_base.disown_Object(self)
844 return weakref_proxy(self)
845 Object_swigregister = _IMP_base.Object_swigregister
846 Object_swigregister(Object)
848 def Object_get_number_of_live_objects():
849 """Object_get_number_of_live_objects() -> unsigned int"""
850 return _IMP_base.Object_get_number_of_live_objects()
852 class SetLogState(_RAII):
853 """Proxy of C++ IMP::base::SetLogState class"""
854 __swig_setmethods__ = {}
855 for _s
in [_RAII]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
856 __setattr__ =
lambda self, name, value: _swig_setattr(self, SetLogState, name, value)
857 __swig_getmethods__ = {}
858 for _s
in [_RAII]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
859 __getattr__ =
lambda self, name: _swig_getattr(self, SetLogState, name)
861 """reset(SetLogState self)"""
862 return _IMP_base.SetLogState_reset(self)
864 __swig_destroy__ = _IMP_base.delete_SetLogState
865 __del__ =
lambda self :
None;
866 def show(self, *args):
868 show(SetLogState self, _ostream out=std::cout)
869 show(SetLogState self)
871 return _IMP_base.SetLogState_show(self, *args)
873 def __init__(self, *args):
875 __init__(IMP::base::SetLogState self) -> SetLogState
876 __init__(IMP::base::SetLogState self, Object o, IMP::base::LogLevel l) -> SetLogState
877 __init__(IMP::base::SetLogState self, IMP::base::LogLevel l) -> SetLogState
879 this = _IMP_base.new_SetLogState(*args)
880 try: self.this.append(this)
881 except: self.this = this
882 def set(self, *args):
884 set(SetLogState self, Object o, IMP::base::LogLevel l)
885 set(SetLogState self, IMP::base::LogLevel l)
887 return _IMP_base.SetLogState_set(self, *args)
890 """__str__(SetLogState self) -> std::string"""
891 return _IMP_base.SetLogState___str__(self)
894 """__repr__(SetLogState self) -> std::string"""
895 return _IMP_base.SetLogState___repr__(self)
897 SetLogState_swigregister = _IMP_base.SetLogState_swigregister
898 SetLogState_swigregister(SetLogState)
900 class WarningContext(_object):
901 """Proxy of C++ IMP::base::WarningContext class"""
902 __swig_setmethods__ = {}
903 __setattr__ =
lambda self, name, value: _swig_setattr(self, WarningContext, name, value)
904 __swig_getmethods__ = {}
905 __getattr__ =
lambda self, name: _swig_getattr(self, WarningContext, name)
906 __swig_setmethods__[
"data_"] = _IMP_base.WarningContext_data__set
907 __swig_getmethods__[
"data_"] = _IMP_base.WarningContext_data__get
908 if _newclass:data_ = _swig_property(_IMP_base.WarningContext_data__get, _IMP_base.WarningContext_data__set)
909 def add_warning(self, *args):
910 """add_warning(WarningContext self, std::string key, std::string warning)"""
911 return _IMP_base.WarningContext_add_warning(self, *args)
913 def clear_warnings(self):
914 """clear_warnings(WarningContext self)"""
915 return _IMP_base.WarningContext_clear_warnings(self)
917 def dump_warnings(self):
918 """dump_warnings(WarningContext self)"""
919 return _IMP_base.WarningContext_dump_warnings(self)
921 __swig_destroy__ = _IMP_base.delete_WarningContext
922 __del__ =
lambda self :
None;
923 def show(self, *args):
925 show(WarningContext self, _ostream out=std::cout)
926 show(WarningContext self)
928 return _IMP_base.WarningContext_show(self, *args)
931 """__str__(WarningContext self) -> std::string"""
932 return _IMP_base.WarningContext___str__(self)
935 """__repr__(WarningContext self) -> std::string"""
936 return _IMP_base.WarningContext___repr__(self)
939 """__init__(IMP::base::WarningContext self) -> WarningContext"""
940 this = _IMP_base.new_WarningContext()
941 try: self.this.append(this)
942 except: self.this = this
943 WarningContext_swigregister = _IMP_base.WarningContext_swigregister
944 WarningContext_swigregister(WarningContext)
946 class CreateLogContext(_RAII):
947 """Proxy of C++ IMP::base::CreateLogContext class"""
948 __swig_setmethods__ = {}
949 for _s
in [_RAII]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
950 __setattr__ =
lambda self, name, value: _swig_setattr(self, CreateLogContext, name, value)
951 __swig_getmethods__ = {}
952 for _s
in [_RAII]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
953 __getattr__ =
lambda self, name: _swig_getattr(self, CreateLogContext, name)
954 def __init__(self, *args):
956 __init__(IMP::base::CreateLogContext self, std::string fname, Object object=nullptr) -> CreateLogContext
957 __init__(IMP::base::CreateLogContext self, std::string fname) -> CreateLogContext
958 __init__(IMP::base::CreateLogContext self) -> CreateLogContext
959 __init__(IMP::base::CreateLogContext self, char const * fname, Object object=nullptr) -> CreateLogContext
960 __init__(IMP::base::CreateLogContext self, char const * fname) -> CreateLogContext
962 this = _IMP_base.new_CreateLogContext(*args)
963 try: self.this.append(this)
964 except: self.this = this
965 def set(self, *args):
967 set(CreateLogContext self, char const * fname, Object object=nullptr)
968 set(CreateLogContext self, char const * fname)
970 return _IMP_base.CreateLogContext_set(self, *args)
973 """reset(CreateLogContext self)"""
974 return _IMP_base.CreateLogContext_reset(self)
976 __swig_destroy__ = _IMP_base.delete_CreateLogContext
977 __del__ =
lambda self :
None;
978 def show(self, *args):
980 show(CreateLogContext self, _ostream out=std::cout)
981 show(CreateLogContext self)
983 return _IMP_base.CreateLogContext_show(self, *args)
986 """__str__(CreateLogContext self) -> std::string"""
987 return _IMP_base.CreateLogContext___str__(self)
990 """__repr__(CreateLogContext self) -> std::string"""
991 return _IMP_base.CreateLogContext___repr__(self)
993 CreateLogContext_swigregister = _IMP_base.CreateLogContext_swigregister
994 CreateLogContext_swigregister(CreateLogContext)
996 class SetCheckState(_RAII):
997 """Proxy of C++ IMP::base::SetCheckState class"""
998 __swig_setmethods__ = {}
999 for _s
in [_RAII]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
1000 __setattr__ =
lambda self, name, value: _swig_setattr(self, SetCheckState, name, value)
1001 __swig_getmethods__ = {}
1002 for _s
in [_RAII]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
1003 __getattr__ =
lambda self, name: _swig_getattr(self, SetCheckState, name)
1005 """reset(SetCheckState self)"""
1006 return _IMP_base.SetCheckState_reset(self)
1008 __swig_destroy__ = _IMP_base.delete_SetCheckState
1009 __del__ =
lambda self :
None;
1010 def show(self, *args):
1012 show(SetCheckState self, _ostream out=std::cout)
1013 show(SetCheckState self)
1015 return _IMP_base.SetCheckState_show(self, *args)
1017 def __init__(self, *args):
1019 __init__(IMP::base::SetCheckState self) -> SetCheckState
1020 __init__(IMP::base::SetCheckState self, Object o, IMP::base::CheckLevel l) -> SetCheckState
1021 __init__(IMP::base::SetCheckState self, IMP::base::CheckLevel l) -> SetCheckState
1023 this = _IMP_base.new_SetCheckState(*args)
1024 try: self.this.append(this)
1025 except: self.this = this
1026 def set(self, *args):
1028 set(SetCheckState self, Object o, IMP::base::CheckLevel l)
1029 set(SetCheckState self, IMP::base::CheckLevel l)
1031 return _IMP_base.SetCheckState_set(self, *args)
1034 """__str__(SetCheckState self) -> std::string"""
1035 return _IMP_base.SetCheckState___str__(self)
1038 """__repr__(SetCheckState self) -> std::string"""
1039 return _IMP_base.SetCheckState___repr__(self)
1041 SetCheckState_swigregister = _IMP_base.SetCheckState_swigregister
1042 SetCheckState_swigregister(SetCheckState)
1046 """get_unique_name(std::string templ) -> std::string"""
1047 return _IMP_base.get_unique_name(*args)
1048 class _Protection(_object):
1049 """Proxy of C++ IMP::base::internal::_Protection class"""
1050 __swig_setmethods__ = {}
1051 __setattr__ =
lambda self, name, value: _swig_setattr(self, _Protection, name, value)
1052 __swig_getmethods__ = {}
1053 __getattr__ =
lambda self, name: _swig_getattr(self, _Protection, name)
1054 def __init__(self, *args, **kwargs):
raise AttributeError(
"No constructor defined")
1055 def show(self, *args):
1057 show(_Protection self, _ostream out=std::cout)
1058 show(_Protection self)
1060 return _IMP_base._Protection_show(self, *args)
1063 """__str__(_Protection self) -> std::string"""
1064 return _IMP_base._Protection___str__(self)
1067 """__repr__(_Protection self) -> std::string"""
1068 return _IMP_base._Protection___repr__(self)
1070 __swig_destroy__ = _IMP_base.delete__Protection
1071 __del__ =
lambda self :
None;
1072 _Protection_swigregister = _IMP_base._Protection_swigregister
1073 _Protection_swigregister(_Protection)
1078 return _IMP_base._test_log()
1080 def _test_intranges(*args):
1081 """_test_intranges(IMP::IntRanges const & ips) -> int"""
1082 return _IMP_base._test_intranges(*args)
1084 def _test_intrange(*args):
1086 _test_intrange(IMP::IntRange const & ips) -> IMP::IntRange
1087 _test_intrange() -> IMP::IntRange
1089 return _IMP_base._test_intrange(*args)
1091 def _test_ifile(*args):
1092 """_test_ifile(TextInput a) -> std::string"""
1093 return _IMP_base._test_ifile(*args)
1095 def _test_ofile(*args):
1096 """_test_ofile(TextOutput a) -> std::string"""
1097 return _IMP_base._test_ofile(*args)
1099 def _test_ifile_overloaded(*args):
1101 _test_ifile_overloaded(TextInput a, int i) -> std::string
1102 _test_ifile_overloaded(TextInput a, std::string st) -> std::string
1104 return _IMP_base._test_ifile_overloaded(*args)
1106 def _test_ofile_overloaded(*args):
1108 _test_ofile_overloaded(TextOutput a, int i) -> std::string
1109 _test_ofile_overloaded(TextOutput a, std::string st) -> std::string
1111 return _IMP_base._test_ofile_overloaded(*args)
1112 class _TestValue(_object):
1113 """Proxy of C++ IMP::base::internal::_TestValue class"""
1114 __swig_setmethods__ = {}
1115 __setattr__ =
lambda self, name, value: _swig_setattr(self, _TestValue, name, value)
1116 __swig_getmethods__ = {}
1117 __getattr__ =
lambda self, name: _swig_getattr(self, _TestValue, name)
1118 def __init__(self, *args):
1119 """__init__(IMP::base::internal::_TestValue self, int i) -> _TestValue"""
1120 this = _IMP_base.new__TestValue(*args)
1121 try: self.this.append(this)
1122 except: self.this = this
1123 def show(self, *args):
1125 show(_TestValue self, _ostream out=std::cout)
1126 show(_TestValue self)
1128 return _IMP_base._TestValue_show(self, *args)
1130 def __eq__(self, *args):
1131 """__eq__(_TestValue self, _TestValue o) -> bool"""
1132 return _IMP_base._TestValue___eq__(self, *args)
1134 def __ne__(self, *args):
1135 """__ne__(_TestValue self, _TestValue o) -> bool"""
1136 return _IMP_base._TestValue___ne__(self, *args)
1138 def __lt__(self, *args):
1139 """__lt__(_TestValue self, _TestValue o) -> bool"""
1140 return _IMP_base._TestValue___lt__(self, *args)
1142 def __gt__(self, *args):
1143 """__gt__(_TestValue self, _TestValue o) -> bool"""
1144 return _IMP_base._TestValue___gt__(self, *args)
1146 def __ge__(self, *args):
1147 """__ge__(_TestValue self, _TestValue o) -> bool"""
1148 return _IMP_base._TestValue___ge__(self, *args)
1150 def __le__(self, *args):
1151 """__le__(_TestValue self, _TestValue o) -> bool"""
1152 return _IMP_base._TestValue___le__(self, *args)
1155 """get(_TestValue self) -> int"""
1156 return _IMP_base._TestValue_get(self)
1158 def get_float(self):
1159 """get_float(_TestValue self) -> IMP::Float const &"""
1160 return _IMP_base._TestValue_get_float(self)
1163 """__str__(_TestValue self) -> std::string"""
1164 return _IMP_base._TestValue___str__(self)
1167 """__repr__(_TestValue self) -> std::string"""
1168 return _IMP_base._TestValue___repr__(self)
1170 __swig_destroy__ = _IMP_base.delete__TestValue
1171 __del__ =
lambda self :
None;
1172 _TestValue_swigregister = _IMP_base._TestValue_swigregister
1173 _TestValue_swigregister(_TestValue)
1176 def _pass_plain_pair(*args):
1177 """_pass_plain_pair(IMP::FloatPair p) -> IMP::FloatPair"""
1178 return _IMP_base._pass_plain_pair(*args)
1180 def _pass_overloaded_strings(*args):
1182 _pass_overloaded_strings(IMP::Strings const & a, int arg2) -> IMP::Strings
1183 _pass_overloaded_strings(IMP::Strings const & a) -> IMP::Strings
1185 return _IMP_base._pass_overloaded_strings(*args)
1187 def _pass_pair(*args):
1188 """_pass_pair(IMP::DerivativePair const & p) -> IMP::DerivativePair"""
1189 return _IMP_base._pass_pair(*args)
1191 def _pass_floats(*args):
1192 """_pass_floats(IMP::Floats const & input) -> IMP::Floats"""
1193 return _IMP_base._pass_floats(*args)
1195 def _pass_ints(*args):
1196 """_pass_ints(IMP::Ints input) -> IMP::Ints"""
1197 return _IMP_base._pass_ints(*args)
1199 def _pass_ints_list(*args):
1200 """_pass_ints_list(IMP::IntsList const & input) -> IMP::IntsList"""
1201 return _IMP_base._pass_ints_list(*args)
1203 def _pass_ints_lists(*args):
1204 """_pass_ints_lists(IMP::IntsLists const & input) -> IMP::IntsLists"""
1205 return _IMP_base._pass_ints_lists(*args)
1207 def _pass_strings(*args):
1208 """_pass_strings(IMP::Strings const & input) -> IMP::Strings const &"""
1209 return _IMP_base._pass_strings(*args)
1210 class _TestObject(Object):
1211 """Proxy of C++ IMP::base::internal::_TestObject class"""
1212 __swig_setmethods__ = {}
1213 for _s
in [Object]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
1214 __setattr__ =
lambda self, name, value: _swig_setattr(self, _TestObject, name, value)
1215 __swig_getmethods__ = {}
1216 for _s
in [Object]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
1217 __getattr__ =
lambda self, name: _swig_getattr(self, _TestObject, name)
1219 """__init__(IMP::base::internal::_TestObject self) -> _TestObject"""
1220 this = _IMP_base.new__TestObject()
1221 try: self.this.append(this)
1222 except: self.this = this
1223 def get_version_info(self):
1224 """get_version_info(_TestObject self) -> VersionInfo"""
1225 return _IMP_base._TestObject_get_version_info(self)
1227 __swig_destroy__ = _IMP_base.delete__TestObject
1228 __del__ =
lambda self :
None;
1230 """__str__(_TestObject self) -> std::string"""
1231 return _IMP_base._TestObject___str__(self)
1234 """__repr__(_TestObject self) -> std::string"""
1235 return _IMP_base._TestObject___repr__(self)
1238 return _object_cast_to__TestObject(o)
1239 get_from = staticmethod(get_from)
1241 _TestObject_swigregister = _IMP_base._TestObject_swigregister
1242 _TestObject_swigregister(_TestObject)
1246 """get_live_object_names() -> IMP::Strings"""
1247 return _IMP_base.get_live_object_names()
1250 """get_live_objects() -> IMP::base::Objects"""
1251 return _IMP_base.get_live_objects()
1254 """set_show_leaked_objects(bool tf)"""
1255 return _IMP_base.set_show_leaked_objects(*args)
1258 """set_deprecation_warnings(bool tf)"""
1259 return _IMP_base.set_deprecation_warnings(*args)
1262 """set_deprecation_exceptions(bool tf)"""
1263 return _IMP_base.set_deprecation_exceptions(*args)
1266 """handle_use_deprecated(std::string message)"""
1267 return _IMP_base.handle_use_deprecated(*args)
1270 """get_number_of_threads() -> unsigned int"""
1271 return _IMP_base.get_number_of_threads()
1274 """set_number_of_threads(unsigned int n)"""
1275 return _IMP_base.set_number_of_threads(*args)
1276 class SetNumberOfThreads(_RAII):
1277 """Proxy of C++ IMP::base::SetNumberOfThreads class"""
1278 __swig_setmethods__ = {}
1279 for _s
in [_RAII]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
1280 __setattr__ =
lambda self, name, value: _swig_setattr(self, SetNumberOfThreads, name, value)
1281 __swig_getmethods__ = {}
1282 for _s
in [_RAII]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
1283 __getattr__ =
lambda self, name: _swig_getattr(self, SetNumberOfThreads, name)
1284 def __init__(self, *args):
1286 __init__(IMP::base::SetNumberOfThreads self) -> SetNumberOfThreads
1287 __init__(IMP::base::SetNumberOfThreads self, unsigned int n) -> SetNumberOfThreads
1289 this = _IMP_base.new_SetNumberOfThreads(*args)
1290 try: self.this.append(this)
1291 except: self.this = this
1292 def set(self, *args):
1293 """set(SetNumberOfThreads self, unsigned int n)"""
1294 return _IMP_base.SetNumberOfThreads_set(self, *args)
1297 """reset(SetNumberOfThreads self)"""
1298 return _IMP_base.SetNumberOfThreads_reset(self)
1300 __swig_destroy__ = _IMP_base.delete_SetNumberOfThreads
1301 __del__ =
lambda self :
None;
1302 def show(self, *args):
1304 show(SetNumberOfThreads self, _ostream out=std::cout)
1305 show(SetNumberOfThreads self)
1307 return _IMP_base.SetNumberOfThreads_show(self, *args)
1310 """__str__(SetNumberOfThreads self) -> std::string"""
1311 return _IMP_base.SetNumberOfThreads___str__(self)
1314 """__repr__(SetNumberOfThreads self) -> std::string"""
1315 return _IMP_base.SetNumberOfThreads___repr__(self)
1317 SetNumberOfThreads_swigregister = _IMP_base.SetNumberOfThreads_swigregister
1318 SetNumberOfThreads_swigregister(SetNumberOfThreads)
1322 """clear_statistics()"""
1323 return _IMP_base.clear_statistics()
1326 """show_timings(TextOutput out)"""
1327 return _IMP_base.show_timings(*args)
1329 """Proxy of C++ IMP::base::Timer class"""
1330 __swig_setmethods__ = {}
1331 for _s
in [_RAII]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
1332 __setattr__ =
lambda self, name, value: _swig_setattr(self, Timer, name, value)
1333 __swig_getmethods__ = {}
1334 for _s
in [_RAII]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
1335 __getattr__ =
lambda self, name: _swig_getattr(self, Timer, name)
1336 __repr__ = _swig_repr
1337 def __init__(self, *args):
1339 __init__(IMP::base::Timer self, Object object, std::string operation) -> Timer
1340 __init__(IMP::base::Timer self, std::string operation) -> Timer
1342 this = _IMP_base.new_Timer(*args)
1343 try: self.this.append(this)
1344 except: self.this = this
1345 __swig_destroy__ = _IMP_base.delete_Timer
1346 __del__ =
lambda self :
None;
1347 Timer_swigregister = _IMP_base.Timer_swigregister
1348 Timer_swigregister(Timer)
1351 show_altgraph= _graph_show.show_altgraph
1352 show_graphviz= _graph_show.show_graphviz
1353 get_networkx_graph= _graph_show.get_networkx_graph
1356 def get_module_version():
1357 """get_module_version() -> std::string const"""
1358 return _IMP_base.get_module_version()
1360 def get_example_path(*args):
1361 """get_example_path(std::string fname) -> std::string"""
1362 return _IMP_base.get_example_path(*args)
1364 def get_data_path(*args):
1365 """get_data_path(std::string fname) -> std::string"""
1366 return _IMP_base.get_data_path(*args)
1367 import _version_check
1368 _version_check.check_version(get_module_version())
TextOutput create_temporary_file(std::string prefix="imp_temp", std::string suffix="")
void show_timings(TextOutput out)
void set_log_timer(bool tb)
Set whether log messages are tagged with the current log time.
size_t get_int_flag(std::string name)
void reset_log_timer()
Reset the log timer.
double get_float_flag(std::string name)
void handle_use_deprecated(std::string message)
void set_log_level(LogLevel l)
Set the current global log level.
void add_float_flag(std::string name, double default_value, std::string description)
bool get_bool_flag(std::string name)
void set_check_level(CheckLevel tf)
Control runtime checks in the code.
std::string create_temporary_file_name(std::string prefix="imp_temp", std::string suffix="")
See IMP.base for more information.
void set_progress_display(std::string description, unsigned int steps)
LogLevel get_log_level()
Get the currently active global log level.
void set_number_of_threads(unsigned int n)
void add_to_log(LogLevel level, std::string to_write)
Write a string to the log, for python.
std::string get_relative_path(std::string base, std::string relative)
std::string get_string_flag(std::string name)
void add_bool_flag(std::string name, std::string description)
void add_string_flag(std::string name, std::string default_value, std::string description)
std::string get_unique_name(std::string templ)
void set_deprecation_exceptions(bool tf)
void set_show_leaked_objects(bool tf)
void write_help(std::ostream &out=std::cerr)
void set_deprecation_warnings(bool tf)
Toggle printing of warnings on using deprecated classes.
void add_to_progress_display(unsigned int step=1)
void show(Hierarchy h, std::ostream &out=std::cout)
Print out a molecular hierarchy.
void add_int_flag(std::string name, size_t default_value, std::string description)
unsigned int get_number_of_threads()
CheckLevel get_check_level()
Get the current audit mode.
void setup_from_argv(int argc, char **argv, std::string description)
Objects get_live_objects()
std::string get_executable_name()
Strings get_live_object_names()