IMP  2.4.0
The Integrative Modeling Platform
base/__init__.py
1 # This file was automatically generated by SWIG (http://www.swig.org).
2 # Version 3.0.2
3 #
4 # Do not make changes to this file unless you know what you are doing--modify
5 # the SWIG interface file instead.
6 
7 
8 
9 
10 
11 from sys import version_info
12 if version_info >= (2,6,0):
13  def swig_import_helper():
14  from os.path import dirname
15  import imp
16  fp = None
17  try:
18  fp, pathname, description = imp.find_module('_IMP_base', [dirname(__file__)])
19  except ImportError:
20  import _IMP_base
21  return _IMP_base
22  if fp is not None:
23  try:
24  _mod = imp.load_module('_IMP_base', fp, pathname, description)
25  finally:
26  fp.close()
27  return _mod
28  _IMP_base = swig_import_helper()
29  del swig_import_helper
30 else:
31  import _IMP_base
32 del version_info
33 try:
34  _swig_property = property
35 except NameError:
36  pass # Python < 2.2 doesn't have 'property'.
37 def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
38  if (name == "thisown"): return self.this.own(value)
39  if (name == "this"):
40  if type(value).__name__ == 'SwigPyObject':
41  self.__dict__[name] = value
42  return
43  method = class_type.__swig_setmethods__.get(name,None)
44  if method: return method(self,value)
45  if (not static):
46  self.__dict__[name] = value
47  else:
48  raise AttributeError("You cannot add attributes to %s" % self)
49 
50 def _swig_setattr(self,class_type,name,value):
51  return _swig_setattr_nondynamic(self,class_type,name,value,0)
52 
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)
58 
59 def _swig_repr(self):
60  try: strthis = "proxy of " + self.this.__repr__()
61  except: strthis = ""
62  return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
63 
64 try:
65  _object = object
66  _newclass = 1
67 except AttributeError:
68  class _object : pass
69  _newclass = 0
70 
71 
72 def _swig_setattr_nondynamic_method(set):
73  def set_attr(self,name,value):
74  if (name == "thisown"): return self.this.own(value)
75  if hasattr(self,name) or (name == "this"):
76  set(self,name,value)
77  else:
78  raise AttributeError("You cannot add attributes to %s" % self)
79  return set_attr
80 
81 
82 try:
83  import weakref
84  weakref_proxy = weakref.proxy
85 except:
86  weakref_proxy = lambda x: x
87 
88 
89 class IMP_BASE_SwigPyIterator(object):
90  """Proxy of C++ swig::IMP_BASE_SwigPyIterator class"""
91  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
92  def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined - class is abstract")
93  __repr__ = _swig_repr
94  __swig_destroy__ = _IMP_base.delete_IMP_BASE_SwigPyIterator
95  __del__ = lambda self : None;
96  def value(self):
97  """value(IMP_BASE_SwigPyIterator self) -> PyObject *"""
98  return _IMP_base.IMP_BASE_SwigPyIterator_value(self)
99 
100  def incr(self, n=1):
101  """
102  incr(IMP_BASE_SwigPyIterator self, size_t n=1) -> IMP_BASE_SwigPyIterator
103  incr(IMP_BASE_SwigPyIterator self) -> IMP_BASE_SwigPyIterator
104  """
105  return _IMP_base.IMP_BASE_SwigPyIterator_incr(self, n)
106 
107  def decr(self, n=1):
108  """
109  decr(IMP_BASE_SwigPyIterator self, size_t n=1) -> IMP_BASE_SwigPyIterator
110  decr(IMP_BASE_SwigPyIterator self) -> IMP_BASE_SwigPyIterator
111  """
112  return _IMP_base.IMP_BASE_SwigPyIterator_decr(self, n)
113 
114  def distance(self, *args):
115  """distance(IMP_BASE_SwigPyIterator self, IMP_BASE_SwigPyIterator x) -> ptrdiff_t"""
116  return _IMP_base.IMP_BASE_SwigPyIterator_distance(self, *args)
117 
118  def equal(self, *args):
119  """equal(IMP_BASE_SwigPyIterator self, IMP_BASE_SwigPyIterator x) -> bool"""
120  return _IMP_base.IMP_BASE_SwigPyIterator_equal(self, *args)
121 
122  def copy(self):
123  """copy(IMP_BASE_SwigPyIterator self) -> IMP_BASE_SwigPyIterator"""
124  return _IMP_base.IMP_BASE_SwigPyIterator_copy(self)
125 
126  def next(self):
127  """next(IMP_BASE_SwigPyIterator self) -> PyObject *"""
128  return _IMP_base.IMP_BASE_SwigPyIterator_next(self)
129 
130  def __next__(self):
131  """__next__(IMP_BASE_SwigPyIterator self) -> PyObject *"""
132  return _IMP_base.IMP_BASE_SwigPyIterator___next__(self)
133 
134  def previous(self):
135  """previous(IMP_BASE_SwigPyIterator self) -> PyObject *"""
136  return _IMP_base.IMP_BASE_SwigPyIterator_previous(self)
137 
138  def advance(self, *args):
139  """advance(IMP_BASE_SwigPyIterator self, ptrdiff_t n) -> IMP_BASE_SwigPyIterator"""
140  return _IMP_base.IMP_BASE_SwigPyIterator_advance(self, *args)
141 
142  def __eq__(self, *args):
143  """__eq__(IMP_BASE_SwigPyIterator self, IMP_BASE_SwigPyIterator x) -> bool"""
144  return _IMP_base.IMP_BASE_SwigPyIterator___eq__(self, *args)
145 
146  def __ne__(self, *args):
147  """__ne__(IMP_BASE_SwigPyIterator self, IMP_BASE_SwigPyIterator x) -> bool"""
148  return _IMP_base.IMP_BASE_SwigPyIterator___ne__(self, *args)
149 
150  def __iadd__(self, *args):
151  """__iadd__(IMP_BASE_SwigPyIterator self, ptrdiff_t n) -> IMP_BASE_SwigPyIterator"""
152  return _IMP_base.IMP_BASE_SwigPyIterator___iadd__(self, *args)
153 
154  def __isub__(self, *args):
155  """__isub__(IMP_BASE_SwigPyIterator self, ptrdiff_t n) -> IMP_BASE_SwigPyIterator"""
156  return _IMP_base.IMP_BASE_SwigPyIterator___isub__(self, *args)
157 
158  def __add__(self, *args):
159  """__add__(IMP_BASE_SwigPyIterator self, ptrdiff_t n) -> IMP_BASE_SwigPyIterator"""
160  return _IMP_base.IMP_BASE_SwigPyIterator___add__(self, *args)
161 
162  def __sub__(self, *args):
163  """
164  __sub__(IMP_BASE_SwigPyIterator self, ptrdiff_t n) -> IMP_BASE_SwigPyIterator
165  __sub__(IMP_BASE_SwigPyIterator self, IMP_BASE_SwigPyIterator x) -> ptrdiff_t
166  """
167  return _IMP_base.IMP_BASE_SwigPyIterator___sub__(self, *args)
168 
169  def __iter__(self): return self
170 IMP_BASE_SwigPyIterator_swigregister = _IMP_base.IMP_BASE_SwigPyIterator_swigregister
171 IMP_BASE_SwigPyIterator_swigregister(IMP_BASE_SwigPyIterator)
172 
173 _value_types=[]
174 _object_types=[]
175 _raii_types=[]
176 _plural_types=[]
177 
178 IMP_DEBUG = _IMP_base.IMP_DEBUG
179 IMP_RELEASE = _IMP_base.IMP_RELEASE
180 IMP_SILENT = _IMP_base.IMP_SILENT
181 IMP_PROGRESS = _IMP_base.IMP_PROGRESS
182 IMP_TERSE = _IMP_base.IMP_TERSE
183 IMP_VERBOSE = _IMP_base.IMP_VERBOSE
184 IMP_MEMORY = _IMP_base.IMP_MEMORY
185 IMP_NONE = _IMP_base.IMP_NONE
186 IMP_USAGE = _IMP_base.IMP_USAGE
187 IMP_INTERNAL = _IMP_base.IMP_INTERNAL
188 IMP_BASE_HAS_LOG4CXX = _IMP_base.IMP_BASE_HAS_LOG4CXX
189 IMP_COMPILER_HAS_AUTO = _IMP_base.IMP_COMPILER_HAS_AUTO
190 IMP_COMPILER_HAS_DEBUG_VECTOR = _IMP_base.IMP_COMPILER_HAS_DEBUG_VECTOR
191 IMP_BASE_HAS_BOOST_RANDOM = _IMP_base.IMP_BASE_HAS_BOOST_RANDOM
192 IMP_BASE_HAS_GPERFTOOLS = _IMP_base.IMP_BASE_HAS_GPERFTOOLS
193 IMP_BASE_HAS_TCMALLOC_HEAPCHECKER = _IMP_base.IMP_BASE_HAS_TCMALLOC_HEAPCHECKER
194 IMP_BASE_HAS_TCMALLOC_HEAPPROFILER = _IMP_base.IMP_BASE_HAS_TCMALLOC_HEAPPROFILER
195 IMPBASE_SHOW_WARNINGS = _IMP_base.IMPBASE_SHOW_WARNINGS
196 import sys
197 class _DirectorObjects(object):
198  """@internal Simple class to keep references to director objects
199  to prevent premature deletion."""
200  def __init__(self):
201  self._objects = []
202  def register(self, obj):
203  """Take a reference to a director object; will only work for
204  refcounted C++ classes"""
205  if hasattr(obj, 'get_ref_count'):
206  self._objects.append(obj)
207  def cleanup(self):
208  """Only drop our reference and allow cleanup by Python if no other
209  Python references exist (we hold 3 references: one in self._objects,
210  one in x, and one in the argument list for getrefcount) *and* no
211  other C++ references exist (the Python object always holds one)"""
212  objs = [x for x in self._objects if sys.getrefcount(x) > 3 \
213  or x.get_ref_count() > 1]
214  # Do in two steps so the references are kept until the end of the
215  # function (deleting references may trigger a fresh call to this method)
216  self._objects = objs
217  def get_object_count(self):
218  """Get number of director objects (useful for testing only)"""
219  return len(self._objects)
220 _director_objects = _DirectorObjects()
221 
222 DEFAULT_CHECK = _IMP_base.DEFAULT_CHECK
223 NONE = _IMP_base.NONE
224 USAGE = _IMP_base.USAGE
225 USAGE_AND_INTERNAL = _IMP_base.USAGE_AND_INTERNAL
226 
227 def set_check_level(*args):
228  """set_check_level(IMP::base::CheckLevel tf)"""
229  return _IMP_base.set_check_level(*args)
230 
231 def get_check_level():
232  """get_check_level() -> IMP::base::CheckLevel"""
233  return _IMP_base.get_check_level()
234 from _IMP_base import Exception, InternalException, ModelException, EventException
235 from _IMP_base import UsageException, IndexException, IOException, ValueException
236 
237 class _ostream(object):
238  """Proxy of C++ std::ostream class"""
239  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
240  def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined")
241  __repr__ = _swig_repr
242  def write(self, *args):
243  """write(_ostream self, char const * osa_buf)"""
244  return _IMP_base._ostream_write(self, *args)
245 
246 _ostream_swigregister = _IMP_base._ostream_swigregister
247 _ostream_swigregister(_ostream)
248 
249 IMP_COMPILER_HAS_OVERRIDE = _IMP_base.IMP_COMPILER_HAS_OVERRIDE
250 IMP_COMPILER_HAS_FINAL = _IMP_base.IMP_COMPILER_HAS_FINAL
251 IMP_HAS_NOEXCEPT = _IMP_base.IMP_HAS_NOEXCEPT
252 class RandomNumberGenerator(object):
253  """Proxy of C++ IMP::base::RandomNumberGenerator class"""
254  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
255  __repr__ = _swig_repr
256  def seed(self, *args):
257  """seed(RandomNumberGenerator self, ::boost::int32_t x)"""
258  return _IMP_base.RandomNumberGenerator_seed(self, *args)
259 
260  def __call__(self):
261  """__call__(RandomNumberGenerator self) -> int"""
262  return _IMP_base.RandomNumberGenerator___call__(self)
263 
264  def __init__(self):
265  """__init__(IMP::base::RandomNumberGenerator self) -> RandomNumberGenerator"""
266  this = _IMP_base.new_RandomNumberGenerator()
267  try: self.this.append(this)
268  except: self.this = this
269  __swig_destroy__ = _IMP_base.delete_RandomNumberGenerator
270  __del__ = lambda self : None;
271 RandomNumberGenerator_swigregister = _IMP_base.RandomNumberGenerator_swigregister
272 RandomNumberGenerator_swigregister(RandomNumberGenerator)
273 
274 _raii_types.append("SetLogState")
275 
276 _raii_types.append("SetNumberOfThreads")
277 
278 _raii_types.append("SetCheckState")
279 
280 _object_types.append("Object")
281 
282 
283 def _object_cast_to_Object(*args):
284  """_object_cast_to_Object(Object * o) -> Object"""
285  return _IMP_base._object_cast_to_Object(*args)
286 _object_types.append("_TestObject")
287 
288 
289 def _object_cast_to__TestObject(*args):
290  """_object_cast_to__TestObject(Object * o) -> _TestObject"""
291  return _IMP_base._object_cast_to__TestObject(*args)
292 VersionInfos=list
293 _plural_types.append("VersionInfos")
294 _value_types.append("VersionInfo")
295 
296 _raii_types.append("CreateLogContext")
297 
298 _raii_types.append("WarningContext")
299 
300 _raii_types.append("SetLogTarget")
301 
302 _TestValues=list
303 _plural_types.append("_TestValues")
304 _value_types.append("_TestValue")
305 
306 Floats=list
307 _plural_types.append("Floats")
308 _value_types.append("Float")
309 
310 Ints=list
311 _plural_types.append("Ints")
312 _value_types.append("Int")
313 
314 Strings=list
315 _plural_types.append("Strings")
316 _value_types.append("String")
317 
318 _Protections=list
319 _plural_types.append("_Protections")
320 _value_types.append("_Protection")
321 
322 class _InputAdaptor(object):
323  """Proxy of C++ IMP::base::InputAdaptor class"""
324  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
325  def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined")
326  __repr__ = _swig_repr
327  __swig_destroy__ = _IMP_base.delete__InputAdaptor
328  __del__ = lambda self : None;
329 _InputAdaptor_swigregister = _IMP_base._InputAdaptor_swigregister
330 _InputAdaptor_swigregister(_InputAdaptor)
331 cvar = _IMP_base.cvar
332 random_number_generator = cvar.random_number_generator
333 
334 class _NonCopyable(object):
335  """Proxy of C++ IMP::base::NonCopyable class"""
336  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
337  def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined")
338  __repr__ = _swig_repr
339  __swig_destroy__ = _IMP_base.delete__NonCopyable
340  __del__ = lambda self : None;
341 _NonCopyable_swigregister = _IMP_base._NonCopyable_swigregister
342 _NonCopyable_swigregister(_NonCopyable)
343 
344 class _RAII(_NonCopyable):
345  """Proxy of C++ IMP::base::RAII class"""
346  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
347  def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined")
348  __repr__ = _swig_repr
349  __swig_destroy__ = _IMP_base.delete__RAII
350  __del__ = lambda self : None;
351 _RAII_swigregister = _IMP_base._RAII_swigregister
352 _RAII_swigregister(_RAII)
353 
354 class _Value(object):
355  """Proxy of C++ IMP::base::Value class"""
356  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
357  def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined")
358  __repr__ = _swig_repr
359  __swig_destroy__ = _IMP_base.delete__Value
360  __del__ = lambda self : None;
361 _Value_swigregister = _IMP_base._Value_swigregister
362 _Value_swigregister(_Value)
363 
364 
365 def get_executable_name():
366  """get_executable_name() -> std::string"""
367  return _IMP_base.get_executable_name()
368 
369 def setup_from_argv(*args):
370  """
371  setup_from_argv(IMP::Strings const & argv, std::string description)
372  setup_from_argv(IMP::Strings const & argv, std::string description, std::string positional_description,
373  int num_positional) -> IMP::Strings
374  """
375  return _IMP_base.setup_from_argv(*args)
376 
377 def add_string_flag(*args):
378  """add_string_flag(std::string name, std::string default_value, std::string description)"""
379  return _IMP_base.add_string_flag(*args)
380 
381 def get_string_flag(*args):
382  """get_string_flag(std::string name) -> std::string"""
383  return _IMP_base.get_string_flag(*args)
384 
385 def add_int_flag(*args):
386  """add_int_flag(std::string name, size_t default_value, std::string description)"""
387  return _IMP_base.add_int_flag(*args)
388 
389 def get_int_flag(*args):
390  """get_int_flag(std::string name) -> size_t"""
391  return _IMP_base.get_int_flag(*args)
392 
393 def add_bool_flag(*args):
394  """add_bool_flag(std::string name, std::string description)"""
395  return _IMP_base.add_bool_flag(*args)
396 
397 def get_bool_flag(*args):
398  """get_bool_flag(std::string name) -> bool"""
399  return _IMP_base.get_bool_flag(*args)
400 
401 def add_float_flag(*args):
402  """add_float_flag(std::string name, double default_value, std::string description)"""
403  return _IMP_base.add_float_flag(*args)
404 
405 def get_float_flag(*args):
406  """get_float_flag(std::string name) -> double"""
407  return _IMP_base.get_float_flag(*args)
408 
409 def write_help(*args):
410  """
411  write_help(_ostream out=std::cerr)
412  write_help()
413  """
414  return _IMP_base.write_help(*args)
415 
416 def get_is_quick_test():
417  """get_is_quick_test() -> bool"""
418  return _IMP_base.get_is_quick_test()
419 DEFAULT = _IMP_base.DEFAULT
420 SILENT = _IMP_base.SILENT
421 WARNING = _IMP_base.WARNING
422 PROGRESS = _IMP_base.PROGRESS
423 TERSE = _IMP_base.TERSE
424 VERBOSE = _IMP_base.VERBOSE
425 MEMORY = _IMP_base.MEMORY
426 ALL_LOG = _IMP_base.ALL_LOG
427 NO_STATISTICS = _IMP_base.NO_STATISTICS
428 ALL_STATISTICS = _IMP_base.ALL_STATISTICS
429 class VersionInfo(_Value):
430  """Proxy of C++ IMP::base::VersionInfo class"""
431  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
432  def __init__(self, *args):
433  """
434  __init__(IMP::base::VersionInfo self, std::string module, std::string version) -> VersionInfo
435  __init__(IMP::base::VersionInfo self) -> VersionInfo
436  """
437  this = _IMP_base.new_VersionInfo(*args)
438  try: self.this.append(this)
439  except: self.this = this
440  def get_module(self):
441  """get_module(VersionInfo self) -> std::string"""
442  return _IMP_base.VersionInfo_get_module(self)
443 
444  def get_version(self):
445  """get_version(VersionInfo self) -> std::string"""
446  return _IMP_base.VersionInfo_get_version(self)
447 
448  def show(self, *args):
449  """
450  show(VersionInfo self, _ostream out=std::cout)
451  show(VersionInfo self)
452  """
453  return _IMP_base.VersionInfo_show(self, *args)
454 
455  def __cmp__(self, *args):
456  """__cmp__(VersionInfo self, VersionInfo o) -> int"""
457  return _IMP_base.VersionInfo___cmp__(self, *args)
458 
459  def __eq__(self, *args):
460  """__eq__(VersionInfo self, VersionInfo o) -> bool"""
461  return _IMP_base.VersionInfo___eq__(self, *args)
462 
463  def __ne__(self, *args):
464  """__ne__(VersionInfo self, VersionInfo o) -> bool"""
465  return _IMP_base.VersionInfo___ne__(self, *args)
466 
467  def __lt__(self, *args):
468  """__lt__(VersionInfo self, VersionInfo o) -> bool"""
469  return _IMP_base.VersionInfo___lt__(self, *args)
470 
471  def __gt__(self, *args):
472  """__gt__(VersionInfo self, VersionInfo o) -> bool"""
473  return _IMP_base.VersionInfo___gt__(self, *args)
474 
475  def __ge__(self, *args):
476  """__ge__(VersionInfo self, VersionInfo o) -> bool"""
477  return _IMP_base.VersionInfo___ge__(self, *args)
478 
479  def __le__(self, *args):
480  """__le__(VersionInfo self, VersionInfo o) -> bool"""
481  return _IMP_base.VersionInfo___le__(self, *args)
482 
483  def __str__(self):
484  """__str__(VersionInfo self) -> std::string"""
485  return _IMP_base.VersionInfo___str__(self)
486 
487  def __repr__(self):
488  """__repr__(VersionInfo self) -> std::string"""
489  return _IMP_base.VersionInfo___repr__(self)
490 
491  __swig_destroy__ = _IMP_base.delete_VersionInfo
492  __del__ = lambda self : None;
493 VersionInfo_swigregister = _IMP_base.VersionInfo_swigregister
494 VersionInfo_swigregister(VersionInfo)
495 
496 class TextOutput(_InputAdaptor):
497  """Proxy of C++ IMP::base::TextOutput class"""
498  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
499  __repr__ = _swig_repr
500  def __init__(self, *args):
501  """
502  __init__(IMP::base::TextOutput self, int arg2) -> TextOutput
503  __init__(IMP::base::TextOutput self, double arg2) -> TextOutput
504  __init__(IMP::base::TextOutput self, char const * c, bool append=False) -> TextOutput
505  __init__(IMP::base::TextOutput self, char const * c) -> TextOutput
506  __init__(IMP::base::TextOutput self, IMP::base::TextProxy< std::ostream > p) -> TextOutput
507  __init__(IMP::base::TextOutput self) -> TextOutput
508  __init__(IMP::base::TextOutput self, std::string file_name, bool append=False) -> TextOutput
509  __init__(IMP::base::TextOutput self, std::string file_name) -> TextOutput
510  """
511  this = _IMP_base.new_TextOutput(*args)
512  try: self.this.append(this)
513  except: self.this = this
514  def show(self, *args):
515  """
516  show(TextOutput self, _ostream out=std::cout)
517  show(TextOutput self)
518  """
519  return _IMP_base.TextOutput_show(self, *args)
520 
521  def get_name(self):
522  """get_name(TextOutput self) -> std::string"""
523  return _IMP_base.TextOutput_get_name(self)
524 
525  __swig_destroy__ = _IMP_base.delete_TextOutput
526  __del__ = lambda self : None;
527 TextOutput_swigregister = _IMP_base.TextOutput_swigregister
528 TextOutput_swigregister(TextOutput)
529 
530 class TextInput(_InputAdaptor):
531  """Proxy of C++ IMP::base::TextInput class"""
532  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
533  __repr__ = _swig_repr
534  def __init__(self, *args):
535  """
536  __init__(IMP::base::TextInput self, int arg2) -> TextInput
537  __init__(IMP::base::TextInput self, double arg2) -> TextInput
538  __init__(IMP::base::TextInput self, char const * c) -> TextInput
539  __init__(IMP::base::TextInput self, IMP::base::TextProxy< std::istream > p) -> TextInput
540  __init__(IMP::base::TextInput self) -> TextInput
541  __init__(IMP::base::TextInput self, std::string file_name) -> TextInput
542  """
543  this = _IMP_base.new_TextInput(*args)
544  try: self.this.append(this)
545  except: self.this = this
546  def show(self, *args):
547  """
548  show(TextInput self, _ostream out=std::cout)
549  show(TextInput self)
550  """
551  return _IMP_base.TextInput_show(self, *args)
552 
553  def get_name(self):
554  """get_name(TextInput self) -> std::string"""
555  return _IMP_base.TextInput_get_name(self)
556 
557  __swig_destroy__ = _IMP_base.delete_TextInput
558  __del__ = lambda self : None;
559 TextInput_swigregister = _IMP_base.TextInput_swigregister
560 TextInput_swigregister(TextInput)
561 
562 class SetLogTarget(_RAII):
563  """Proxy of C++ IMP::base::SetLogTarget class"""
564  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
565  def __init__(self, *args):
566  """
567  __init__(IMP::base::SetLogTarget self) -> SetLogTarget
568  __init__(IMP::base::SetLogTarget self, TextOutput to) -> SetLogTarget
569  """
570  this = _IMP_base.new_SetLogTarget(*args)
571  try: self.this.append(this)
572  except: self.this = this
573  def set(self, *args):
574  """set(SetLogTarget self, TextOutput to)"""
575  return _IMP_base.SetLogTarget_set(self, *args)
576 
577  def reset(self):
578  """reset(SetLogTarget self)"""
579  return _IMP_base.SetLogTarget_reset(self)
580 
581  __swig_destroy__ = _IMP_base.delete_SetLogTarget
582  __del__ = lambda self : None;
583  def show(self, *args):
584  """
585  show(SetLogTarget self, _ostream out=std::cout)
586  show(SetLogTarget self)
587  """
588  return _IMP_base.SetLogTarget_show(self, *args)
589 
590  def __str__(self):
591  """__str__(SetLogTarget self) -> std::string"""
592  return _IMP_base.SetLogTarget___str__(self)
593 
594  def __repr__(self):
595  """__repr__(SetLogTarget self) -> std::string"""
596  return _IMP_base.SetLogTarget___repr__(self)
597 
598 SetLogTarget_swigregister = _IMP_base.SetLogTarget_swigregister
599 SetLogTarget_swigregister(SetLogTarget)
600 
601 
602 def create_temporary_file(prefix="imp_temp", suffix=""):
603  """
604  create_temporary_file(std::string prefix="imp_temp", std::string suffix="") -> TextOutput
605  create_temporary_file(std::string prefix="imp_temp") -> TextOutput
606  create_temporary_file() -> TextOutput
607  """
608  return _IMP_base.create_temporary_file(prefix, suffix)
609 
610 def create_temporary_file_name(prefix="imp_temp", suffix=""):
611  """
612  create_temporary_file_name(std::string prefix="imp_temp", std::string suffix="") -> std::string
613  create_temporary_file_name(std::string prefix="imp_temp") -> std::string
614  create_temporary_file_name() -> std::string
615  """
616  return _IMP_base.create_temporary_file_name(prefix, suffix)
617 
618 def get_relative_path(*args):
619  """get_relative_path(std::string base, std::string relative) -> std::string"""
620  return _IMP_base.get_relative_path(*args)
621 
622 def push_log_context(*args):
623  """push_log_context(char const * functionname, void const * object)"""
624  return _IMP_base.push_log_context(*args)
625 
626 def pop_log_context():
627  """pop_log_context()"""
628  return _IMP_base.pop_log_context()
629 
630 def add_to_log(*args):
631  """
632  add_to_log(std::string to_write)
633  add_to_log(IMP::base::LogLevel level, std::string to_write)
634  """
635  return _IMP_base.add_to_log(*args)
636 
637 def set_log_level(*args):
638  """set_log_level(IMP::base::LogLevel l)"""
639  return _IMP_base.set_log_level(*args)
640 
641 def set_log_timer(*args):
642  """set_log_timer(bool tb)"""
643  return _IMP_base.set_log_timer(*args)
644 
645 def reset_log_timer():
646  """reset_log_timer()"""
647  return _IMP_base.reset_log_timer()
648 
649 def get_log_level():
650  """get_log_level() -> IMP::base::LogLevel"""
651  return _IMP_base.get_log_level()
652 
653 def set_progress_display(*args):
654  """set_progress_display(std::string description, unsigned int steps)"""
655  return _IMP_base.set_progress_display(*args)
656 
657 def add_to_progress_display(step=1):
658  """
659  add_to_progress_display(unsigned int step=1)
660  add_to_progress_display()
661  """
662  return _IMP_base.add_to_progress_display(step)
663 class Object(_NonCopyable):
664  """Proxy of C++ IMP::base::Object class"""
665  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
666  def __init__(self, *args):
667  """__init__(IMP::base::Object self, std::string name) -> Object"""
668  if self.__class__ == Object:
669  _self = None
670  else:
671  _self = self
672  this = _IMP_base.new_Object(_self, *args)
673  try: self.this.append(this)
674  except: self.this = this
675  if self.__class__ != Object:
676  import IMP.base
677  IMP.base._director_objects.register(self)
678 
679 
680 
681  __swig_destroy__ = _IMP_base.delete_Object
682  __del__ = lambda self : None;
683  def __hash__(self):
684  """__hash__(Object self) -> std::size_t"""
685  return _IMP_base.Object___hash__(self)
686 
687  def set_log_level(self, *args):
688  """set_log_level(Object self, IMP::base::LogLevel l)"""
689  return _IMP_base.Object_set_log_level(self, *args)
690 
691  def set_check_level(self, *args):
692  """set_check_level(Object self, IMP::base::CheckLevel l)"""
693  return _IMP_base.Object_set_check_level(self, *args)
694 
695  def get_log_level(self):
696  """get_log_level(Object self) -> IMP::base::LogLevel"""
697  return _IMP_base.Object_get_log_level(self)
698 
699  def get_check_level(self):
700  """get_check_level(Object self) -> IMP::base::CheckLevel"""
701  return _IMP_base.Object_get_check_level(self)
702 
703  def get_version_info(self):
704  """get_version_info(Object self) -> VersionInfo"""
705  return _IMP_base.Object_get_version_info(self)
706 
707  def get_name(self):
708  """get_name(Object self) -> std::string const &"""
709  return _IMP_base.Object_get_name(self)
710 
711  def set_name(self, *args):
712  """set_name(Object self, std::string name)"""
713  return _IMP_base.Object_set_name(self, *args)
714 
715  def get_type_name(self):
716  """get_type_name(Object self) -> std::string"""
717  return _IMP_base.Object_get_type_name(self)
718 
719  def set_was_used(self, *args):
720  """set_was_used(Object self, bool tf)"""
721  return _IMP_base.Object_set_was_used(self, *args)
722 
723  def show(self, *args):
724  """
725  show(Object self, _ostream out=std::cout)
726  show(Object self)
727  """
728  return _IMP_base.Object_show(self, *args)
729 
730  def get_string(self):
731  """get_string(Object self) -> std::string"""
732  return _IMP_base.Object_get_string(self)
733 
734  def _on_destruction(self):
735  """_on_destruction(Object self)"""
736  return _IMP_base.Object__on_destruction(self)
737 
738  def get_is_valid(self):
739  """get_is_valid(Object self) -> bool"""
740  return _IMP_base.Object_get_is_valid(self)
741 
742  def get_ref_count(self):
743  """get_ref_count(Object self) -> unsigned int"""
744  return _IMP_base.Object_get_ref_count(self)
745 
746  def get_number_of_live_objects():
747  """get_number_of_live_objects() -> unsigned int"""
748  return _IMP_base.Object_get_number_of_live_objects()
749 
750  get_number_of_live_objects = staticmethod(get_number_of_live_objects)
751  def get_is_shared(self):
752  """get_is_shared(Object self) -> bool"""
753  return _IMP_base.Object_get_is_shared(self)
754 
755  def clear_caches(self):
756  """clear_caches(Object self)"""
757  return _IMP_base.Object_clear_caches(self)
758 
759  def do_destroy(self):
760  """do_destroy(Object self)"""
761  return _IMP_base.Object_do_destroy(self)
762 
763  def __eq__(self, *args):
764  """__eq__(Object self, Object o) -> bool"""
765  return _IMP_base.Object___eq__(self, *args)
766 
767  def __ne__(self, *args):
768  """__ne__(Object self, Object o) -> bool"""
769  return _IMP_base.Object___ne__(self, *args)
770 
771  def __le__(self, *args):
772  """__le__(Object self, Object o) -> bool"""
773  return _IMP_base.Object___le__(self, *args)
774 
775  def __lt__(self, *args):
776  """__lt__(Object self, Object o) -> bool"""
777  return _IMP_base.Object___lt__(self, *args)
778 
779  def __ge__(self, *args):
780  """__ge__(Object self, Object o) -> bool"""
781  return _IMP_base.Object___ge__(self, *args)
782 
783  def __gt__(self, *args):
784  """__gt__(Object self, Object o) -> bool"""
785  return _IMP_base.Object___gt__(self, *args)
786 
787  def __str__(self):
788  """__str__(Object self) -> std::string"""
789  return _IMP_base.Object___str__(self)
790 
791  def __repr__(self):
792  """__repr__(Object self) -> std::string"""
793  return _IMP_base.Object___repr__(self)
794 
795  def get_from(o):
796  return _object_cast_to_Object(o)
797  get_from = staticmethod(get_from)
798 
799  def __disown__(self):
800  self.this.disown()
801  _IMP_base.disown_Object(self)
802  return weakref_proxy(self)
803 Object_swigregister = _IMP_base.Object_swigregister
804 Object_swigregister(Object)
805 
806 def Object_get_number_of_live_objects():
807  """Object_get_number_of_live_objects() -> unsigned int"""
808  return _IMP_base.Object_get_number_of_live_objects()
809 
810 class SetLogState(_RAII):
811  """Proxy of C++ IMP::base::SetLogState class"""
812  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
813  def reset(self):
814  """reset(SetLogState self)"""
815  return _IMP_base.SetLogState_reset(self)
816 
817  __swig_destroy__ = _IMP_base.delete_SetLogState
818  __del__ = lambda self : None;
819  def show(self, *args):
820  """
821  show(SetLogState self, _ostream out=std::cout)
822  show(SetLogState self)
823  """
824  return _IMP_base.SetLogState_show(self, *args)
825 
826  def __init__(self, *args):
827  """
828  __init__(IMP::base::SetLogState self) -> SetLogState
829  __init__(IMP::base::SetLogState self, Object o, IMP::base::LogLevel l) -> SetLogState
830  __init__(IMP::base::SetLogState self, IMP::base::LogLevel l) -> SetLogState
831  """
832  this = _IMP_base.new_SetLogState(*args)
833  try: self.this.append(this)
834  except: self.this = this
835  def set(self, *args):
836  """
837  set(SetLogState self, Object o, IMP::base::LogLevel l)
838  set(SetLogState self, IMP::base::LogLevel l)
839  """
840  return _IMP_base.SetLogState_set(self, *args)
841 
842  def __str__(self):
843  """__str__(SetLogState self) -> std::string"""
844  return _IMP_base.SetLogState___str__(self)
845 
846  def __repr__(self):
847  """__repr__(SetLogState self) -> std::string"""
848  return _IMP_base.SetLogState___repr__(self)
849 
850 SetLogState_swigregister = _IMP_base.SetLogState_swigregister
851 SetLogState_swigregister(SetLogState)
852 
853 class WarningContext(object):
854  """Proxy of C++ IMP::base::WarningContext class"""
855  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
856  data_ = _swig_property(_IMP_base.WarningContext_data__get, _IMP_base.WarningContext_data__set)
857  def add_warning(self, *args):
858  """add_warning(WarningContext self, std::string key, std::string warning)"""
859  return _IMP_base.WarningContext_add_warning(self, *args)
860 
861  def clear_warnings(self):
862  """clear_warnings(WarningContext self)"""
863  return _IMP_base.WarningContext_clear_warnings(self)
864 
865  def dump_warnings(self):
866  """dump_warnings(WarningContext self)"""
867  return _IMP_base.WarningContext_dump_warnings(self)
868 
869  __swig_destroy__ = _IMP_base.delete_WarningContext
870  __del__ = lambda self : None;
871  def show(self, *args):
872  """
873  show(WarningContext self, _ostream out=std::cout)
874  show(WarningContext self)
875  """
876  return _IMP_base.WarningContext_show(self, *args)
877 
878  def __str__(self):
879  """__str__(WarningContext self) -> std::string"""
880  return _IMP_base.WarningContext___str__(self)
881 
882  def __repr__(self):
883  """__repr__(WarningContext self) -> std::string"""
884  return _IMP_base.WarningContext___repr__(self)
885 
886  def __init__(self):
887  """__init__(IMP::base::WarningContext self) -> WarningContext"""
888  this = _IMP_base.new_WarningContext()
889  try: self.this.append(this)
890  except: self.this = this
891 WarningContext_swigregister = _IMP_base.WarningContext_swigregister
892 WarningContext_swigregister(WarningContext)
893 
894 class CreateLogContext(_RAII):
895  """Proxy of C++ IMP::base::CreateLogContext class"""
896  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
897  def __init__(self, *args):
898  """
899  __init__(IMP::base::CreateLogContext self, std::string fname, Object object=None) -> CreateLogContext
900  __init__(IMP::base::CreateLogContext self, std::string fname) -> CreateLogContext
901  __init__(IMP::base::CreateLogContext self) -> CreateLogContext
902  __init__(IMP::base::CreateLogContext self, char const * fname, Object object=None) -> CreateLogContext
903  __init__(IMP::base::CreateLogContext self, char const * fname) -> CreateLogContext
904  """
905  this = _IMP_base.new_CreateLogContext(*args)
906  try: self.this.append(this)
907  except: self.this = this
908  def set(self, *args):
909  """
910  set(CreateLogContext self, char const * fname, Object object=None)
911  set(CreateLogContext self, char const * fname)
912  """
913  return _IMP_base.CreateLogContext_set(self, *args)
914 
915  def reset(self):
916  """reset(CreateLogContext self)"""
917  return _IMP_base.CreateLogContext_reset(self)
918 
919  __swig_destroy__ = _IMP_base.delete_CreateLogContext
920  __del__ = lambda self : None;
921  def show(self, *args):
922  """
923  show(CreateLogContext self, _ostream out=std::cout)
924  show(CreateLogContext self)
925  """
926  return _IMP_base.CreateLogContext_show(self, *args)
927 
928  def __str__(self):
929  """__str__(CreateLogContext self) -> std::string"""
930  return _IMP_base.CreateLogContext___str__(self)
931 
932  def __repr__(self):
933  """__repr__(CreateLogContext self) -> std::string"""
934  return _IMP_base.CreateLogContext___repr__(self)
935 
936 CreateLogContext_swigregister = _IMP_base.CreateLogContext_swigregister
937 CreateLogContext_swigregister(CreateLogContext)
938 
939 class SetCheckState(_RAII):
940  """Proxy of C++ IMP::base::SetCheckState class"""
941  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
942  def reset(self):
943  """reset(SetCheckState self)"""
944  return _IMP_base.SetCheckState_reset(self)
945 
946  __swig_destroy__ = _IMP_base.delete_SetCheckState
947  __del__ = lambda self : None;
948  def show(self, *args):
949  """
950  show(SetCheckState self, _ostream out=std::cout)
951  show(SetCheckState self)
952  """
953  return _IMP_base.SetCheckState_show(self, *args)
954 
955  def __init__(self, *args):
956  """
957  __init__(IMP::base::SetCheckState self) -> SetCheckState
958  __init__(IMP::base::SetCheckState self, Object o, IMP::base::CheckLevel l) -> SetCheckState
959  __init__(IMP::base::SetCheckState self, IMP::base::CheckLevel l) -> SetCheckState
960  """
961  this = _IMP_base.new_SetCheckState(*args)
962  try: self.this.append(this)
963  except: self.this = this
964  def set(self, *args):
965  """
966  set(SetCheckState self, Object o, IMP::base::CheckLevel l)
967  set(SetCheckState self, IMP::base::CheckLevel l)
968  """
969  return _IMP_base.SetCheckState_set(self, *args)
970 
971  def __str__(self):
972  """__str__(SetCheckState self) -> std::string"""
973  return _IMP_base.SetCheckState___str__(self)
974 
975  def __repr__(self):
976  """__repr__(SetCheckState self) -> std::string"""
977  return _IMP_base.SetCheckState___repr__(self)
978 
979 SetCheckState_swigregister = _IMP_base.SetCheckState_swigregister
980 SetCheckState_swigregister(SetCheckState)
981 
982 
983 def get_unique_name(*args):
984  """get_unique_name(std::string templ) -> std::string"""
985  return _IMP_base.get_unique_name(*args)
986 class _Protection(object):
987  """Proxy of C++ IMP::base::internal::_Protection class"""
988  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
989  def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined")
990  def show(self, *args):
991  """
992  show(_Protection self, _ostream out=std::cout)
993  show(_Protection self)
994  """
995  return _IMP_base._Protection_show(self, *args)
996 
997  def __str__(self):
998  """__str__(_Protection self) -> std::string"""
999  return _IMP_base._Protection___str__(self)
1000 
1001  def __repr__(self):
1002  """__repr__(_Protection self) -> std::string"""
1003  return _IMP_base._Protection___repr__(self)
1004 
1005  __swig_destroy__ = _IMP_base.delete__Protection
1006  __del__ = lambda self : None;
1007 _Protection_swigregister = _IMP_base._Protection_swigregister
1008 _Protection_swigregister(_Protection)
1009 
1010 
1011 def _test_log():
1012  """_test_log()"""
1013  return _IMP_base._test_log()
1014 
1015 def _test_intranges(*args):
1016  """_test_intranges(IMP::IntRanges const & ips) -> int"""
1017  return _IMP_base._test_intranges(*args)
1018 
1019 def _test_intrange(*args):
1020  """
1021  _test_intrange(IMP::IntRange const & ips) -> IMP::IntRange
1022  _test_intrange() -> IMP::IntRange
1023  """
1024  return _IMP_base._test_intrange(*args)
1025 
1026 def _test_ifile(*args):
1027  """_test_ifile(TextInput a) -> std::string"""
1028  return _IMP_base._test_ifile(*args)
1029 
1030 def _test_ofile(*args):
1031  """_test_ofile(TextOutput a) -> std::string"""
1032  return _IMP_base._test_ofile(*args)
1033 
1034 def _test_ifile_overloaded(*args):
1035  """
1036  _test_ifile_overloaded(TextInput a, int i) -> std::string
1037  _test_ifile_overloaded(TextInput a, std::string st) -> std::string
1038  """
1039  return _IMP_base._test_ifile_overloaded(*args)
1040 
1041 def _test_ofile_overloaded(*args):
1042  """
1043  _test_ofile_overloaded(TextOutput a, int i) -> std::string
1044  _test_ofile_overloaded(TextOutput a, std::string st) -> std::string
1045  """
1046  return _IMP_base._test_ofile_overloaded(*args)
1047 class _TestValue(object):
1048  """Proxy of C++ IMP::base::internal::_TestValue class"""
1049  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1050  def __init__(self, *args):
1051  """__init__(IMP::base::internal::_TestValue self, int i) -> _TestValue"""
1052  this = _IMP_base.new__TestValue(*args)
1053  try: self.this.append(this)
1054  except: self.this = this
1055  def show(self, *args):
1056  """
1057  show(_TestValue self, _ostream out=std::cout)
1058  show(_TestValue self)
1059  """
1060  return _IMP_base._TestValue_show(self, *args)
1061 
1062  def __cmp__(self, *args):
1063  """__cmp__(_TestValue self, _TestValue o) -> int"""
1064  return _IMP_base._TestValue___cmp__(self, *args)
1065 
1066  def __eq__(self, *args):
1067  """__eq__(_TestValue self, _TestValue o) -> bool"""
1068  return _IMP_base._TestValue___eq__(self, *args)
1069 
1070  def __ne__(self, *args):
1071  """__ne__(_TestValue self, _TestValue o) -> bool"""
1072  return _IMP_base._TestValue___ne__(self, *args)
1073 
1074  def __lt__(self, *args):
1075  """__lt__(_TestValue self, _TestValue o) -> bool"""
1076  return _IMP_base._TestValue___lt__(self, *args)
1077 
1078  def __gt__(self, *args):
1079  """__gt__(_TestValue self, _TestValue o) -> bool"""
1080  return _IMP_base._TestValue___gt__(self, *args)
1081 
1082  def __ge__(self, *args):
1083  """__ge__(_TestValue self, _TestValue o) -> bool"""
1084  return _IMP_base._TestValue___ge__(self, *args)
1085 
1086  def __le__(self, *args):
1087  """__le__(_TestValue self, _TestValue o) -> bool"""
1088  return _IMP_base._TestValue___le__(self, *args)
1089 
1090  def get(self):
1091  """get(_TestValue self) -> int"""
1092  return _IMP_base._TestValue_get(self)
1093 
1094  def get_float(self):
1095  """get_float(_TestValue self) -> IMP::Float const &"""
1096  return _IMP_base._TestValue_get_float(self)
1097 
1098  def __str__(self):
1099  """__str__(_TestValue self) -> std::string"""
1100  return _IMP_base._TestValue___str__(self)
1101 
1102  def __repr__(self):
1103  """__repr__(_TestValue self) -> std::string"""
1104  return _IMP_base._TestValue___repr__(self)
1105 
1106  __swig_destroy__ = _IMP_base.delete__TestValue
1107  __del__ = lambda self : None;
1108 _TestValue_swigregister = _IMP_base._TestValue_swigregister
1109 _TestValue_swigregister(_TestValue)
1110 
1111 
1112 def _pass_plain_pair(*args):
1113  """_pass_plain_pair(IMP::FloatPair p) -> IMP::FloatPair"""
1114  return _IMP_base._pass_plain_pair(*args)
1115 
1116 def _pass_overloaded_strings(*args):
1117  """
1118  _pass_overloaded_strings(IMP::Strings const & a, int arg2) -> IMP::Strings
1119  _pass_overloaded_strings(IMP::Strings const & a) -> IMP::Strings
1120  """
1121  return _IMP_base._pass_overloaded_strings(*args)
1122 
1123 def _pass_pair(*args):
1124  """_pass_pair(IMP::DerivativePair const & p) -> IMP::DerivativePair"""
1125  return _IMP_base._pass_pair(*args)
1126 
1127 def _pass_floats(*args):
1128  """_pass_floats(IMP::Floats const & input) -> IMP::Floats"""
1129  return _IMP_base._pass_floats(*args)
1130 
1131 def _pass_ints(*args):
1132  """_pass_ints(IMP::Ints input) -> IMP::Ints"""
1133  return _IMP_base._pass_ints(*args)
1134 
1135 def _pass_ints_list(*args):
1136  """_pass_ints_list(IMP::IntsList const & input) -> IMP::IntsList"""
1137  return _IMP_base._pass_ints_list(*args)
1138 
1139 def _pass_ints_lists(*args):
1140  """_pass_ints_lists(IMP::IntsLists const & input) -> IMP::IntsLists"""
1141  return _IMP_base._pass_ints_lists(*args)
1142 
1143 def _pass_strings(*args):
1144  """_pass_strings(IMP::Strings const & input) -> IMP::Strings const &"""
1145  return _IMP_base._pass_strings(*args)
1146 class _TestObject(Object):
1147  """Proxy of C++ IMP::base::internal::_TestObject class"""
1148  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1149  def __init__(self):
1150  """__init__(IMP::base::internal::_TestObject self) -> _TestObject"""
1151  this = _IMP_base.new__TestObject()
1152  try: self.this.append(this)
1153  except: self.this = this
1154  def get_version_info(self):
1155  """get_version_info(_TestObject self) -> VersionInfo"""
1156  return _IMP_base._TestObject_get_version_info(self)
1157 
1158  def __str__(self):
1159  """__str__(_TestObject self) -> std::string"""
1160  return _IMP_base._TestObject___str__(self)
1161 
1162  def __repr__(self):
1163  """__repr__(_TestObject self) -> std::string"""
1164  return _IMP_base._TestObject___repr__(self)
1165 
1166  def get_from(o):
1167  return _object_cast_to__TestObject(o)
1168  get_from = staticmethod(get_from)
1169 
1170 _TestObject_swigregister = _IMP_base._TestObject_swigregister
1171 _TestObject_swigregister(_TestObject)
1172 
1173 
1174 def get_live_object_names():
1175  """get_live_object_names() -> IMP::Strings"""
1176  return _IMP_base.get_live_object_names()
1177 
1178 def get_live_objects():
1179  """get_live_objects() -> IMP::base::Objects"""
1180  return _IMP_base.get_live_objects()
1181 
1182 def set_show_leaked_objects(*args):
1183  """set_show_leaked_objects(bool tf)"""
1184  return _IMP_base.set_show_leaked_objects(*args)
1185 
1186 def set_deprecation_warnings(*args):
1187  """set_deprecation_warnings(bool tf)"""
1188  return _IMP_base.set_deprecation_warnings(*args)
1189 
1190 def set_deprecation_exceptions(*args):
1191  """set_deprecation_exceptions(bool tf)"""
1192  return _IMP_base.set_deprecation_exceptions(*args)
1193 
1194 def handle_use_deprecated(*args):
1195  """handle_use_deprecated(std::string message)"""
1196  return _IMP_base.handle_use_deprecated(*args)
1197 
1198 def get_number_of_threads():
1199  """get_number_of_threads() -> unsigned int"""
1200  return _IMP_base.get_number_of_threads()
1201 
1202 def set_number_of_threads(*args):
1203  """set_number_of_threads(unsigned int n)"""
1204  return _IMP_base.set_number_of_threads(*args)
1205 class SetNumberOfThreads(_RAII):
1206  """Proxy of C++ IMP::base::SetNumberOfThreads class"""
1207  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1208  def __init__(self, *args):
1209  """
1210  __init__(IMP::base::SetNumberOfThreads self) -> SetNumberOfThreads
1211  __init__(IMP::base::SetNumberOfThreads self, unsigned int n) -> SetNumberOfThreads
1212  """
1213  this = _IMP_base.new_SetNumberOfThreads(*args)
1214  try: self.this.append(this)
1215  except: self.this = this
1216  def set(self, *args):
1217  """set(SetNumberOfThreads self, unsigned int n)"""
1218  return _IMP_base.SetNumberOfThreads_set(self, *args)
1219 
1220  def reset(self):
1221  """reset(SetNumberOfThreads self)"""
1222  return _IMP_base.SetNumberOfThreads_reset(self)
1223 
1224  __swig_destroy__ = _IMP_base.delete_SetNumberOfThreads
1225  __del__ = lambda self : None;
1226  def show(self, *args):
1227  """
1228  show(SetNumberOfThreads self, _ostream out=std::cout)
1229  show(SetNumberOfThreads self)
1230  """
1231  return _IMP_base.SetNumberOfThreads_show(self, *args)
1232 
1233  def __str__(self):
1234  """__str__(SetNumberOfThreads self) -> std::string"""
1235  return _IMP_base.SetNumberOfThreads___str__(self)
1236 
1237  def __repr__(self):
1238  """__repr__(SetNumberOfThreads self) -> std::string"""
1239  return _IMP_base.SetNumberOfThreads___repr__(self)
1240 
1241 SetNumberOfThreads_swigregister = _IMP_base.SetNumberOfThreads_swigregister
1242 SetNumberOfThreads_swigregister(SetNumberOfThreads)
1243 
1244 
1245 def clear_statistics():
1246  """clear_statistics()"""
1247  return _IMP_base.clear_statistics()
1248 
1249 def show_timings(*args):
1250  """show_timings(TextOutput out)"""
1251  return _IMP_base.show_timings(*args)
1252 class Timer(_RAII):
1253  """Proxy of C++ IMP::base::Timer class"""
1254  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1255  __repr__ = _swig_repr
1256  def __init__(self, *args):
1257  """
1258  __init__(IMP::base::Timer self, Object object, std::string const & operation) -> Timer
1259  __init__(IMP::base::Timer self, Object object, char const * operation) -> Timer
1260  __init__(IMP::base::Timer self, std::string operation) -> Timer
1261  """
1262  this = _IMP_base.new_Timer(*args)
1263  try: self.this.append(this)
1264  except: self.this = this
1265  __swig_destroy__ = _IMP_base.delete_Timer
1266  __del__ = lambda self : None;
1267 Timer_swigregister = _IMP_base.Timer_swigregister
1268 Timer_swigregister(Timer)
1269 
1270 
1271 def set_statistics_level(*args):
1272  """set_statistics_level(IMP::base::StatisticsLevel l)"""
1273  return _IMP_base.set_statistics_level(*args)
1274 from . import _graph_show
1275 show_altgraph= _graph_show.show_altgraph
1276 show_graphviz= _graph_show.show_graphviz
1277 get_networkx_graph= _graph_show.get_networkx_graph
1278 
1279 
1280 def get_module_version():
1281  """get_module_version() -> std::string const"""
1282  return _IMP_base.get_module_version()
1283 
1284 def get_example_path(*args):
1285  """get_example_path(std::string fname) -> std::string"""
1286  return _IMP_base.get_example_path(*args)
1287 
1288 def get_data_path(*args):
1289  """get_data_path(std::string fname) -> std::string"""
1290  return _IMP_base.get_data_path(*args)
1291 from . import _version_check
1292 _version_check.check_version(get_module_version())
1293 
1294 
1295 
TextOutput create_temporary_file(std::string prefix="imp_temp", std::string suffix="")
bool get_is_quick_test()
Definition: flags.h:178
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.
Definition: exception.h:73
std::string create_temporary_file_name(std::string prefix="imp_temp", std::string suffix="")
Create a temporary file.
std::string get_example_path(std::string file_name)
Return the path to installed example data for this module.
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.
Definition: log.h:94
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)
std::string get_data_path(std::string file_name)
Return the full path to installed data.
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 clear_statistics()
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.
Definition: exception.h:81
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.