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)
436 """get_is_quick_test() -> bool"""
437 return _IMP_base.get_is_quick_test()
438 DEFAULT = _IMP_base.DEFAULT
439 SILENT = _IMP_base.SILENT
440 WARNING = _IMP_base.WARNING
441 PROGRESS = _IMP_base.PROGRESS
442 TERSE = _IMP_base.TERSE
443 VERBOSE = _IMP_base.VERBOSE
444 MEMORY = _IMP_base.MEMORY
445 ALL_LOG = _IMP_base.ALL_LOG
446 NO_STATISTICS = _IMP_base.NO_STATISTICS
447 ALL_STATISTICS = _IMP_base.ALL_STATISTICS
448 class VersionInfo(_Value):
449 """Proxy of C++ IMP::base::VersionInfo class"""
450 __swig_setmethods__ = {}
451 for _s
in [_Value]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
452 __setattr__ =
lambda self, name, value: _swig_setattr(self, VersionInfo, name, value)
453 __swig_getmethods__ = {}
454 for _s
in [_Value]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
455 __getattr__ =
lambda self, name: _swig_getattr(self, VersionInfo, name)
456 def __init__(self, *args):
458 __init__(IMP::base::VersionInfo self, std::string module, std::string version) -> VersionInfo
459 __init__(IMP::base::VersionInfo self) -> VersionInfo
461 this = _IMP_base.new_VersionInfo(*args)
462 try: self.this.append(this)
463 except: self.this = this
464 def get_module(self):
465 """get_module(VersionInfo self) -> std::string"""
466 return _IMP_base.VersionInfo_get_module(self)
468 def get_version(self):
469 """get_version(VersionInfo self) -> std::string"""
470 return _IMP_base.VersionInfo_get_version(self)
472 def show(self, *args):
474 show(VersionInfo self, _ostream out=std::cout)
475 show(VersionInfo self)
477 return _IMP_base.VersionInfo_show(self, *args)
479 def __eq__(self, *args):
480 """__eq__(VersionInfo self, VersionInfo o) -> bool"""
481 return _IMP_base.VersionInfo___eq__(self, *args)
483 def __ne__(self, *args):
484 """__ne__(VersionInfo self, VersionInfo o) -> bool"""
485 return _IMP_base.VersionInfo___ne__(self, *args)
487 def __lt__(self, *args):
488 """__lt__(VersionInfo self, VersionInfo o) -> bool"""
489 return _IMP_base.VersionInfo___lt__(self, *args)
491 def __gt__(self, *args):
492 """__gt__(VersionInfo self, VersionInfo o) -> bool"""
493 return _IMP_base.VersionInfo___gt__(self, *args)
495 def __ge__(self, *args):
496 """__ge__(VersionInfo self, VersionInfo o) -> bool"""
497 return _IMP_base.VersionInfo___ge__(self, *args)
499 def __le__(self, *args):
500 """__le__(VersionInfo self, VersionInfo o) -> bool"""
501 return _IMP_base.VersionInfo___le__(self, *args)
504 """__str__(VersionInfo self) -> std::string"""
505 return _IMP_base.VersionInfo___str__(self)
508 """__repr__(VersionInfo self) -> std::string"""
509 return _IMP_base.VersionInfo___repr__(self)
511 __swig_destroy__ = _IMP_base.delete_VersionInfo
512 __del__ =
lambda self :
None;
513 VersionInfo_swigregister = _IMP_base.VersionInfo_swigregister
514 VersionInfo_swigregister(VersionInfo)
516 class TextOutput(_InputAdaptor):
517 """Proxy of C++ IMP::base::TextOutput class"""
518 __swig_setmethods__ = {}
519 for _s
in [_InputAdaptor]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
520 __setattr__ =
lambda self, name, value: _swig_setattr(self, TextOutput, name, value)
521 __swig_getmethods__ = {}
522 for _s
in [_InputAdaptor]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
523 __getattr__ =
lambda self, name: _swig_getattr(self, TextOutput, name)
524 __repr__ = _swig_repr
525 def __init__(self, *args):
527 __init__(IMP::base::TextOutput self, int arg2) -> TextOutput
528 __init__(IMP::base::TextOutput self, double arg2) -> TextOutput
529 __init__(IMP::base::TextOutput self, char const * c, bool append=False) -> TextOutput
530 __init__(IMP::base::TextOutput self, char const * c) -> TextOutput
531 __init__(IMP::base::TextOutput self, IMP::base::TextProxy< std::ostream > p) -> TextOutput
532 __init__(IMP::base::TextOutput self) -> TextOutput
533 __init__(IMP::base::TextOutput self, std::string file_name, bool append=False) -> TextOutput
534 __init__(IMP::base::TextOutput self, std::string file_name) -> TextOutput
536 this = _IMP_base.new_TextOutput(*args)
537 try: self.this.append(this)
538 except: self.this = this
539 def show(self, *args):
541 show(TextOutput self, _ostream out=std::cout)
542 show(TextOutput self)
544 return _IMP_base.TextOutput_show(self, *args)
547 """get_name(TextOutput self) -> std::string"""
548 return _IMP_base.TextOutput_get_name(self)
550 __swig_destroy__ = _IMP_base.delete_TextOutput
551 __del__ =
lambda self :
None;
552 TextOutput_swigregister = _IMP_base.TextOutput_swigregister
553 TextOutput_swigregister(TextOutput)
555 class TextInput(_InputAdaptor):
556 """Proxy of C++ IMP::base::TextInput class"""
557 __swig_setmethods__ = {}
558 for _s
in [_InputAdaptor]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
559 __setattr__ =
lambda self, name, value: _swig_setattr(self, TextInput, name, value)
560 __swig_getmethods__ = {}
561 for _s
in [_InputAdaptor]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
562 __getattr__ =
lambda self, name: _swig_getattr(self, TextInput, name)
563 __repr__ = _swig_repr
564 def __init__(self, *args):
566 __init__(IMP::base::TextInput self, int arg2) -> TextInput
567 __init__(IMP::base::TextInput self, double arg2) -> TextInput
568 __init__(IMP::base::TextInput self, char const * c) -> TextInput
569 __init__(IMP::base::TextInput self, IMP::base::TextProxy< std::istream > p) -> TextInput
570 __init__(IMP::base::TextInput self) -> TextInput
571 __init__(IMP::base::TextInput self, std::string file_name) -> TextInput
573 this = _IMP_base.new_TextInput(*args)
574 try: self.this.append(this)
575 except: self.this = this
576 def show(self, *args):
578 show(TextInput self, _ostream out=std::cout)
581 return _IMP_base.TextInput_show(self, *args)
584 """get_name(TextInput self) -> std::string"""
585 return _IMP_base.TextInput_get_name(self)
587 __swig_destroy__ = _IMP_base.delete_TextInput
588 __del__ =
lambda self :
None;
589 TextInput_swigregister = _IMP_base.TextInput_swigregister
590 TextInput_swigregister(TextInput)
592 class SetLogTarget(_RAII):
593 """Proxy of C++ IMP::base::SetLogTarget class"""
594 __swig_setmethods__ = {}
595 for _s
in [_RAII]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
596 __setattr__ =
lambda self, name, value: _swig_setattr(self, SetLogTarget, name, value)
597 __swig_getmethods__ = {}
598 for _s
in [_RAII]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
599 __getattr__ =
lambda self, name: _swig_getattr(self, SetLogTarget, name)
600 def __init__(self, *args):
602 __init__(IMP::base::SetLogTarget self) -> SetLogTarget
603 __init__(IMP::base::SetLogTarget self, TextOutput to) -> SetLogTarget
605 this = _IMP_base.new_SetLogTarget(*args)
606 try: self.this.append(this)
607 except: self.this = this
608 def set(self, *args):
609 """set(SetLogTarget self, TextOutput to)"""
610 return _IMP_base.SetLogTarget_set(self, *args)
613 """reset(SetLogTarget self)"""
614 return _IMP_base.SetLogTarget_reset(self)
616 __swig_destroy__ = _IMP_base.delete_SetLogTarget
617 __del__ =
lambda self :
None;
618 def show(self, *args):
620 show(SetLogTarget self, _ostream out=std::cout)
621 show(SetLogTarget self)
623 return _IMP_base.SetLogTarget_show(self, *args)
626 """__str__(SetLogTarget self) -> std::string"""
627 return _IMP_base.SetLogTarget___str__(self)
630 """__repr__(SetLogTarget self) -> std::string"""
631 return _IMP_base.SetLogTarget___repr__(self)
633 SetLogTarget_swigregister = _IMP_base.SetLogTarget_swigregister
634 SetLogTarget_swigregister(SetLogTarget)
639 create_temporary_file(std::string prefix="imp_temp", std::string suffix="") -> TextOutput
640 create_temporary_file(std::string prefix="imp_temp") -> TextOutput
641 create_temporary_file() -> TextOutput
643 return _IMP_base.create_temporary_file(prefix, suffix)
647 create_temporary_file_name(std::string prefix="imp_temp", std::string suffix="") -> std::string
648 create_temporary_file_name(std::string prefix="imp_temp") -> std::string
649 create_temporary_file_name() -> std::string
651 return _IMP_base.create_temporary_file_name(prefix, suffix)
654 """get_relative_path(std::string base, std::string relative) -> std::string"""
655 return _IMP_base.get_relative_path(*args)
657 def push_log_context(*args):
658 """push_log_context(char const * functionname, void const * object)"""
659 return _IMP_base.push_log_context(*args)
661 def pop_log_context():
662 """pop_log_context()"""
663 return _IMP_base.pop_log_context()
667 add_to_log(std::string to_write)
668 add_to_log(IMP::base::LogLevel level, std::string to_write)
670 return _IMP_base.add_to_log(*args)
673 """set_log_level(IMP::base::LogLevel l)"""
674 return _IMP_base.set_log_level(*args)
677 """set_log_timer(bool tb)"""
678 return _IMP_base.set_log_timer(*args)
681 """reset_log_timer()"""
682 return _IMP_base.reset_log_timer()
685 """get_log_level() -> IMP::base::LogLevel"""
686 return _IMP_base.get_log_level()
689 """set_progress_display(std::string description, unsigned int steps)"""
690 return _IMP_base.set_progress_display(*args)
694 add_to_progress_display(unsigned int step=1)
695 add_to_progress_display()
697 return _IMP_base.add_to_progress_display(step)
698 class Object(_NonCopyable):
699 """Proxy of C++ IMP::base::Object class"""
700 __swig_setmethods__ = {}
701 for _s
in [_NonCopyable]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
702 __setattr__ =
lambda self, name, value: _swig_setattr(self, Object, name, value)
703 __swig_getmethods__ = {}
704 for _s
in [_NonCopyable]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
705 __getattr__ =
lambda self, name: _swig_getattr(self, Object, name)
706 def __init__(self, *args):
707 """__init__(IMP::base::Object self, std::string name) -> Object"""
708 if self.__class__ == Object:
712 this = _IMP_base.new_Object(_self, *args)
713 try: self.this.append(this)
714 except: self.this = this
715 if self.__class__ != Object:
717 IMP.base._director_objects.register(self)
721 __swig_destroy__ = _IMP_base.delete_Object
722 __del__ =
lambda self :
None;
724 """__hash__(Object self) -> std::size_t"""
725 return _IMP_base.Object___hash__(self)
728 """set_log_level(Object self, IMP::base::LogLevel l)"""
729 return _IMP_base.Object_set_log_level(self, *args)
732 """set_check_level(Object self, IMP::base::CheckLevel l)"""
733 return _IMP_base.Object_set_check_level(self, *args)
736 """get_log_level(Object self) -> IMP::base::LogLevel"""
737 return _IMP_base.Object_get_log_level(self)
740 """get_check_level(Object self) -> IMP::base::CheckLevel"""
741 return _IMP_base.Object_get_check_level(self)
743 def get_version_info(self):
744 """get_version_info(Object self) -> VersionInfo"""
745 return _IMP_base.Object_get_version_info(self)
748 """get_name(Object self) -> std::string const &"""
749 return _IMP_base.Object_get_name(self)
751 def set_name(self, *args):
752 """set_name(Object self, std::string name)"""
753 return _IMP_base.Object_set_name(self, *args)
755 def get_type_name(self):
756 """get_type_name(Object self) -> std::string"""
757 return _IMP_base.Object_get_type_name(self)
759 def set_was_used(self, *args):
760 """set_was_used(Object self, bool tf)"""
761 return _IMP_base.Object_set_was_used(self, *args)
763 def show(self, *args):
765 show(Object self, _ostream out=std::cout)
768 return _IMP_base.Object_show(self, *args)
770 def get_string(self):
771 """get_string(Object self) -> std::string"""
772 return _IMP_base.Object_get_string(self)
774 def _on_destruction(self):
775 """_on_destruction(Object self)"""
776 return _IMP_base.Object__on_destruction(self)
778 def get_is_valid(self):
779 """get_is_valid(Object self) -> bool"""
780 return _IMP_base.Object_get_is_valid(self)
782 def get_ref_count(self):
783 """get_ref_count(Object self) -> unsigned int"""
784 return _IMP_base.Object_get_ref_count(self)
786 def get_number_of_live_objects():
787 """get_number_of_live_objects() -> unsigned int"""
788 return _IMP_base.Object_get_number_of_live_objects()
790 if _newclass:get_number_of_live_objects = staticmethod(get_number_of_live_objects)
791 __swig_getmethods__[
"get_number_of_live_objects"] =
lambda x: get_number_of_live_objects
792 def get_is_shared(self):
793 """get_is_shared(Object self) -> bool"""
794 return _IMP_base.Object_get_is_shared(self)
796 def clear_caches(self):
797 """clear_caches(Object self)"""
798 return _IMP_base.Object_clear_caches(self)
800 def do_destroy(self):
801 """do_destroy(Object self)"""
802 return _IMP_base.Object_do_destroy(self)
804 def __eq__(self, *args):
805 """__eq__(Object self, Object o) -> bool"""
806 return _IMP_base.Object___eq__(self, *args)
808 def __ne__(self, *args):
809 """__ne__(Object self, Object o) -> bool"""
810 return _IMP_base.Object___ne__(self, *args)
812 def __le__(self, *args):
813 """__le__(Object self, Object o) -> bool"""
814 return _IMP_base.Object___le__(self, *args)
816 def __lt__(self, *args):
817 """__lt__(Object self, Object o) -> bool"""
818 return _IMP_base.Object___lt__(self, *args)
820 def __ge__(self, *args):
821 """__ge__(Object self, Object o) -> bool"""
822 return _IMP_base.Object___ge__(self, *args)
824 def __gt__(self, *args):
825 """__gt__(Object self, Object o) -> bool"""
826 return _IMP_base.Object___gt__(self, *args)
829 """__str__(Object self) -> std::string"""
830 return _IMP_base.Object___str__(self)
833 """__repr__(Object self) -> std::string"""
834 return _IMP_base.Object___repr__(self)
837 return _object_cast_to_Object(o)
838 get_from = staticmethod(get_from)
840 def __disown__(self):
842 _IMP_base.disown_Object(self)
843 return weakref_proxy(self)
844 Object_swigregister = _IMP_base.Object_swigregister
845 Object_swigregister(Object)
847 def Object_get_number_of_live_objects():
848 """Object_get_number_of_live_objects() -> unsigned int"""
849 return _IMP_base.Object_get_number_of_live_objects()
851 class SetLogState(_RAII):
852 """Proxy of C++ IMP::base::SetLogState class"""
853 __swig_setmethods__ = {}
854 for _s
in [_RAII]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
855 __setattr__ =
lambda self, name, value: _swig_setattr(self, SetLogState, name, value)
856 __swig_getmethods__ = {}
857 for _s
in [_RAII]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
858 __getattr__ =
lambda self, name: _swig_getattr(self, SetLogState, name)
860 """reset(SetLogState self)"""
861 return _IMP_base.SetLogState_reset(self)
863 __swig_destroy__ = _IMP_base.delete_SetLogState
864 __del__ =
lambda self :
None;
865 def show(self, *args):
867 show(SetLogState self, _ostream out=std::cout)
868 show(SetLogState self)
870 return _IMP_base.SetLogState_show(self, *args)
872 def __init__(self, *args):
874 __init__(IMP::base::SetLogState self) -> SetLogState
875 __init__(IMP::base::SetLogState self, Object o, IMP::base::LogLevel l) -> SetLogState
876 __init__(IMP::base::SetLogState self, IMP::base::LogLevel l) -> SetLogState
878 this = _IMP_base.new_SetLogState(*args)
879 try: self.this.append(this)
880 except: self.this = this
881 def set(self, *args):
883 set(SetLogState self, Object o, IMP::base::LogLevel l)
884 set(SetLogState self, IMP::base::LogLevel l)
886 return _IMP_base.SetLogState_set(self, *args)
889 """__str__(SetLogState self) -> std::string"""
890 return _IMP_base.SetLogState___str__(self)
893 """__repr__(SetLogState self) -> std::string"""
894 return _IMP_base.SetLogState___repr__(self)
896 SetLogState_swigregister = _IMP_base.SetLogState_swigregister
897 SetLogState_swigregister(SetLogState)
899 class WarningContext(_object):
900 """Proxy of C++ IMP::base::WarningContext class"""
901 __swig_setmethods__ = {}
902 __setattr__ =
lambda self, name, value: _swig_setattr(self, WarningContext, name, value)
903 __swig_getmethods__ = {}
904 __getattr__ =
lambda self, name: _swig_getattr(self, WarningContext, name)
905 __swig_setmethods__[
"data_"] = _IMP_base.WarningContext_data__set
906 __swig_getmethods__[
"data_"] = _IMP_base.WarningContext_data__get
907 if _newclass:data_ = _swig_property(_IMP_base.WarningContext_data__get, _IMP_base.WarningContext_data__set)
908 def add_warning(self, *args):
909 """add_warning(WarningContext self, std::string key, std::string warning)"""
910 return _IMP_base.WarningContext_add_warning(self, *args)
912 def clear_warnings(self):
913 """clear_warnings(WarningContext self)"""
914 return _IMP_base.WarningContext_clear_warnings(self)
916 def dump_warnings(self):
917 """dump_warnings(WarningContext self)"""
918 return _IMP_base.WarningContext_dump_warnings(self)
920 __swig_destroy__ = _IMP_base.delete_WarningContext
921 __del__ =
lambda self :
None;
922 def show(self, *args):
924 show(WarningContext self, _ostream out=std::cout)
925 show(WarningContext self)
927 return _IMP_base.WarningContext_show(self, *args)
930 """__str__(WarningContext self) -> std::string"""
931 return _IMP_base.WarningContext___str__(self)
934 """__repr__(WarningContext self) -> std::string"""
935 return _IMP_base.WarningContext___repr__(self)
938 """__init__(IMP::base::WarningContext self) -> WarningContext"""
939 this = _IMP_base.new_WarningContext()
940 try: self.this.append(this)
941 except: self.this = this
942 WarningContext_swigregister = _IMP_base.WarningContext_swigregister
943 WarningContext_swigregister(WarningContext)
945 class CreateLogContext(_RAII):
946 """Proxy of C++ IMP::base::CreateLogContext class"""
947 __swig_setmethods__ = {}
948 for _s
in [_RAII]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
949 __setattr__ =
lambda self, name, value: _swig_setattr(self, CreateLogContext, name, value)
950 __swig_getmethods__ = {}
951 for _s
in [_RAII]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
952 __getattr__ =
lambda self, name: _swig_getattr(self, CreateLogContext, name)
953 def __init__(self, *args):
955 __init__(IMP::base::CreateLogContext self, std::string fname, Object object=None) -> CreateLogContext
956 __init__(IMP::base::CreateLogContext self, std::string fname) -> CreateLogContext
957 __init__(IMP::base::CreateLogContext self) -> CreateLogContext
958 __init__(IMP::base::CreateLogContext self, char const * fname, Object object=None) -> CreateLogContext
959 __init__(IMP::base::CreateLogContext self, char const * fname) -> CreateLogContext
961 this = _IMP_base.new_CreateLogContext(*args)
962 try: self.this.append(this)
963 except: self.this = this
964 def set(self, *args):
966 set(CreateLogContext self, char const * fname, Object object=None)
967 set(CreateLogContext self, char const * fname)
969 return _IMP_base.CreateLogContext_set(self, *args)
972 """reset(CreateLogContext self)"""
973 return _IMP_base.CreateLogContext_reset(self)
975 __swig_destroy__ = _IMP_base.delete_CreateLogContext
976 __del__ =
lambda self :
None;
977 def show(self, *args):
979 show(CreateLogContext self, _ostream out=std::cout)
980 show(CreateLogContext self)
982 return _IMP_base.CreateLogContext_show(self, *args)
985 """__str__(CreateLogContext self) -> std::string"""
986 return _IMP_base.CreateLogContext___str__(self)
989 """__repr__(CreateLogContext self) -> std::string"""
990 return _IMP_base.CreateLogContext___repr__(self)
992 CreateLogContext_swigregister = _IMP_base.CreateLogContext_swigregister
993 CreateLogContext_swigregister(CreateLogContext)
995 class SetCheckState(_RAII):
996 """Proxy of C++ IMP::base::SetCheckState class"""
997 __swig_setmethods__ = {}
998 for _s
in [_RAII]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
999 __setattr__ =
lambda self, name, value: _swig_setattr(self, SetCheckState, name, value)
1000 __swig_getmethods__ = {}
1001 for _s
in [_RAII]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
1002 __getattr__ =
lambda self, name: _swig_getattr(self, SetCheckState, name)
1004 """reset(SetCheckState self)"""
1005 return _IMP_base.SetCheckState_reset(self)
1007 __swig_destroy__ = _IMP_base.delete_SetCheckState
1008 __del__ =
lambda self :
None;
1009 def show(self, *args):
1011 show(SetCheckState self, _ostream out=std::cout)
1012 show(SetCheckState self)
1014 return _IMP_base.SetCheckState_show(self, *args)
1016 def __init__(self, *args):
1018 __init__(IMP::base::SetCheckState self) -> SetCheckState
1019 __init__(IMP::base::SetCheckState self, Object o, IMP::base::CheckLevel l) -> SetCheckState
1020 __init__(IMP::base::SetCheckState self, IMP::base::CheckLevel l) -> SetCheckState
1022 this = _IMP_base.new_SetCheckState(*args)
1023 try: self.this.append(this)
1024 except: self.this = this
1025 def set(self, *args):
1027 set(SetCheckState self, Object o, IMP::base::CheckLevel l)
1028 set(SetCheckState self, IMP::base::CheckLevel l)
1030 return _IMP_base.SetCheckState_set(self, *args)
1033 """__str__(SetCheckState self) -> std::string"""
1034 return _IMP_base.SetCheckState___str__(self)
1037 """__repr__(SetCheckState self) -> std::string"""
1038 return _IMP_base.SetCheckState___repr__(self)
1040 SetCheckState_swigregister = _IMP_base.SetCheckState_swigregister
1041 SetCheckState_swigregister(SetCheckState)
1045 """get_unique_name(std::string templ) -> std::string"""
1046 return _IMP_base.get_unique_name(*args)
1047 class _Protection(_object):
1048 """Proxy of C++ IMP::base::internal::_Protection class"""
1049 __swig_setmethods__ = {}
1050 __setattr__ =
lambda self, name, value: _swig_setattr(self, _Protection, name, value)
1051 __swig_getmethods__ = {}
1052 __getattr__ =
lambda self, name: _swig_getattr(self, _Protection, name)
1053 def __init__(self, *args, **kwargs):
raise AttributeError(
"No constructor defined")
1054 def show(self, *args):
1056 show(_Protection self, _ostream out=std::cout)
1057 show(_Protection self)
1059 return _IMP_base._Protection_show(self, *args)
1062 """__str__(_Protection self) -> std::string"""
1063 return _IMP_base._Protection___str__(self)
1066 """__repr__(_Protection self) -> std::string"""
1067 return _IMP_base._Protection___repr__(self)
1069 __swig_destroy__ = _IMP_base.delete__Protection
1070 __del__ =
lambda self :
None;
1071 _Protection_swigregister = _IMP_base._Protection_swigregister
1072 _Protection_swigregister(_Protection)
1077 return _IMP_base._test_log()
1079 def _test_intranges(*args):
1080 """_test_intranges(IMP::IntRanges const & ips) -> int"""
1081 return _IMP_base._test_intranges(*args)
1083 def _test_intrange(*args):
1085 _test_intrange(IMP::IntRange const & ips) -> IMP::IntRange
1086 _test_intrange() -> IMP::IntRange
1088 return _IMP_base._test_intrange(*args)
1090 def _test_ifile(*args):
1091 """_test_ifile(TextInput a) -> std::string"""
1092 return _IMP_base._test_ifile(*args)
1094 def _test_ofile(*args):
1095 """_test_ofile(TextOutput a) -> std::string"""
1096 return _IMP_base._test_ofile(*args)
1098 def _test_ifile_overloaded(*args):
1100 _test_ifile_overloaded(TextInput a, int i) -> std::string
1101 _test_ifile_overloaded(TextInput a, std::string st) -> std::string
1103 return _IMP_base._test_ifile_overloaded(*args)
1105 def _test_ofile_overloaded(*args):
1107 _test_ofile_overloaded(TextOutput a, int i) -> std::string
1108 _test_ofile_overloaded(TextOutput a, std::string st) -> std::string
1110 return _IMP_base._test_ofile_overloaded(*args)
1111 class _TestValue(_object):
1112 """Proxy of C++ IMP::base::internal::_TestValue class"""
1113 __swig_setmethods__ = {}
1114 __setattr__ =
lambda self, name, value: _swig_setattr(self, _TestValue, name, value)
1115 __swig_getmethods__ = {}
1116 __getattr__ =
lambda self, name: _swig_getattr(self, _TestValue, name)
1117 def __init__(self, *args):
1118 """__init__(IMP::base::internal::_TestValue self, int i) -> _TestValue"""
1119 this = _IMP_base.new__TestValue(*args)
1120 try: self.this.append(this)
1121 except: self.this = this
1122 def show(self, *args):
1124 show(_TestValue self, _ostream out=std::cout)
1125 show(_TestValue self)
1127 return _IMP_base._TestValue_show(self, *args)
1129 def __eq__(self, *args):
1130 """__eq__(_TestValue self, _TestValue o) -> bool"""
1131 return _IMP_base._TestValue___eq__(self, *args)
1133 def __ne__(self, *args):
1134 """__ne__(_TestValue self, _TestValue o) -> bool"""
1135 return _IMP_base._TestValue___ne__(self, *args)
1137 def __lt__(self, *args):
1138 """__lt__(_TestValue self, _TestValue o) -> bool"""
1139 return _IMP_base._TestValue___lt__(self, *args)
1141 def __gt__(self, *args):
1142 """__gt__(_TestValue self, _TestValue o) -> bool"""
1143 return _IMP_base._TestValue___gt__(self, *args)
1145 def __ge__(self, *args):
1146 """__ge__(_TestValue self, _TestValue o) -> bool"""
1147 return _IMP_base._TestValue___ge__(self, *args)
1149 def __le__(self, *args):
1150 """__le__(_TestValue self, _TestValue o) -> bool"""
1151 return _IMP_base._TestValue___le__(self, *args)
1154 """get(_TestValue self) -> int"""
1155 return _IMP_base._TestValue_get(self)
1157 def get_float(self):
1158 """get_float(_TestValue self) -> IMP::Float const &"""
1159 return _IMP_base._TestValue_get_float(self)
1162 """__str__(_TestValue self) -> std::string"""
1163 return _IMP_base._TestValue___str__(self)
1166 """__repr__(_TestValue self) -> std::string"""
1167 return _IMP_base._TestValue___repr__(self)
1169 __swig_destroy__ = _IMP_base.delete__TestValue
1170 __del__ =
lambda self :
None;
1171 _TestValue_swigregister = _IMP_base._TestValue_swigregister
1172 _TestValue_swigregister(_TestValue)
1175 def _pass_plain_pair(*args):
1176 """_pass_plain_pair(IMP::FloatPair p) -> IMP::FloatPair"""
1177 return _IMP_base._pass_plain_pair(*args)
1179 def _pass_overloaded_strings(*args):
1181 _pass_overloaded_strings(IMP::Strings const & a, int arg2) -> IMP::Strings
1182 _pass_overloaded_strings(IMP::Strings const & a) -> IMP::Strings
1184 return _IMP_base._pass_overloaded_strings(*args)
1186 def _pass_pair(*args):
1187 """_pass_pair(IMP::DerivativePair const & p) -> IMP::DerivativePair"""
1188 return _IMP_base._pass_pair(*args)
1190 def _pass_floats(*args):
1191 """_pass_floats(IMP::Floats const & input) -> IMP::Floats"""
1192 return _IMP_base._pass_floats(*args)
1194 def _pass_ints(*args):
1195 """_pass_ints(IMP::Ints input) -> IMP::Ints"""
1196 return _IMP_base._pass_ints(*args)
1198 def _pass_ints_list(*args):
1199 """_pass_ints_list(IMP::IntsList const & input) -> IMP::IntsList"""
1200 return _IMP_base._pass_ints_list(*args)
1202 def _pass_ints_lists(*args):
1203 """_pass_ints_lists(IMP::IntsLists const & input) -> IMP::IntsLists"""
1204 return _IMP_base._pass_ints_lists(*args)
1206 def _pass_strings(*args):
1207 """_pass_strings(IMP::Strings const & input) -> IMP::Strings const &"""
1208 return _IMP_base._pass_strings(*args)
1209 class _TestObject(Object):
1210 """Proxy of C++ IMP::base::internal::_TestObject class"""
1211 __swig_setmethods__ = {}
1212 for _s
in [Object]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
1213 __setattr__ =
lambda self, name, value: _swig_setattr(self, _TestObject, name, value)
1214 __swig_getmethods__ = {}
1215 for _s
in [Object]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
1216 __getattr__ =
lambda self, name: _swig_getattr(self, _TestObject, name)
1218 """__init__(IMP::base::internal::_TestObject self) -> _TestObject"""
1219 this = _IMP_base.new__TestObject()
1220 try: self.this.append(this)
1221 except: self.this = this
1222 def get_version_info(self):
1223 """get_version_info(_TestObject self) -> VersionInfo"""
1224 return _IMP_base._TestObject_get_version_info(self)
1227 """__str__(_TestObject self) -> std::string"""
1228 return _IMP_base._TestObject___str__(self)
1231 """__repr__(_TestObject self) -> std::string"""
1232 return _IMP_base._TestObject___repr__(self)
1235 return _object_cast_to__TestObject(o)
1236 get_from = staticmethod(get_from)
1238 _TestObject_swigregister = _IMP_base._TestObject_swigregister
1239 _TestObject_swigregister(_TestObject)
1243 """get_live_object_names() -> IMP::Strings"""
1244 return _IMP_base.get_live_object_names()
1247 """get_live_objects() -> IMP::base::Objects"""
1248 return _IMP_base.get_live_objects()
1251 """set_show_leaked_objects(bool tf)"""
1252 return _IMP_base.set_show_leaked_objects(*args)
1255 """set_deprecation_warnings(bool tf)"""
1256 return _IMP_base.set_deprecation_warnings(*args)
1259 """set_deprecation_exceptions(bool tf)"""
1260 return _IMP_base.set_deprecation_exceptions(*args)
1263 """handle_use_deprecated(std::string message)"""
1264 return _IMP_base.handle_use_deprecated(*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)
1319 """clear_statistics()"""
1320 return _IMP_base.clear_statistics()
1323 """show_timings(TextOutput out)"""
1324 return _IMP_base.show_timings(*args)
1326 """Proxy of C++ IMP::base::Timer class"""
1327 __swig_setmethods__ = {}
1328 for _s
in [_RAII]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
1329 __setattr__ =
lambda self, name, value: _swig_setattr(self, Timer, name, value)
1330 __swig_getmethods__ = {}
1331 for _s
in [_RAII]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
1332 __getattr__ =
lambda self, name: _swig_getattr(self, Timer, name)
1333 __repr__ = _swig_repr
1334 def __init__(self, *args):
1336 __init__(IMP::base::Timer self, Object object, std::string const & operation) -> Timer
1337 __init__(IMP::base::Timer self, Object object, char const * operation) -> Timer
1338 __init__(IMP::base::Timer self, std::string operation) -> Timer
1340 this = _IMP_base.new_Timer(*args)
1341 try: self.this.append(this)
1342 except: self.this = this
1343 __swig_destroy__ = _IMP_base.delete_Timer
1344 __del__ =
lambda self :
None;
1345 Timer_swigregister = _IMP_base.Timer_swigregister
1346 Timer_swigregister(Timer)
1350 """set_statistics_level(IMP::base::StatisticsLevel l)"""
1351 return _IMP_base.set_statistics_level(*args)
1353 show_altgraph= _graph_show.show_altgraph
1354 show_graphviz= _graph_show.show_graphviz
1355 get_networkx_graph= _graph_show.get_networkx_graph
1358 def get_module_version():
1359 """get_module_version() -> std::string const"""
1360 return _IMP_base.get_module_version()
1362 def get_example_path(*args):
1363 """get_example_path(std::string fname) -> std::string"""
1364 return _IMP_base.get_example_path(*args)
1366 def get_data_path(*args):
1367 """get_data_path(std::string fname) -> std::string"""
1368 return _IMP_base.get_data_path(*args)
1369 import _version_check
1370 _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="")
Create a temporary file.
Low level functionality (logging, error handling, profiling, command line flags etc) that is used by ...
void set_progress_display(std::string description, unsigned int steps)
Set up the progress bar with the passed description.
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)
Return a path to a file relative to another file.
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)
Return a unique name produced from the string.
void set_deprecation_exceptions(bool tf)
void set_statistics_level(StatisticsLevel l)
void set_show_leaked_objects(bool tf)
Set whether to complain about objects not being properly cleaned up.
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)
Set the current progress.
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)
Parse the command line flags and return the positional arguments.
Objects get_live_objects()
Return pointers to all live objects.
std::string get_executable_name()
Return the name of the current executable.
Strings get_live_object_names()
Return the names of all live objects.