IMP  2.1.0
The Integrative Modeling Platform
base/__init__.py
1 # This file was automatically generated by SWIG (http://www.swig.org).
2 # Version 2.0.11
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 try:
73  import weakref
74  weakref_proxy = weakref.proxy
75 except:
76  weakref_proxy = lambda x: x
77 
78 
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")
86  __repr__ = _swig_repr
87  __swig_destroy__ = _IMP_base.delete_IMP_BASE_SwigPyIterator
88  __del__ = lambda self : None;
89  def value(self):
90  """value(IMP_BASE_SwigPyIterator self) -> PyObject *"""
91  return _IMP_base.IMP_BASE_SwigPyIterator_value(self)
92 
93  def incr(self, n=1):
94  """
95  incr(IMP_BASE_SwigPyIterator self, size_t n=1) -> IMP_BASE_SwigPyIterator
96  incr(IMP_BASE_SwigPyIterator self) -> IMP_BASE_SwigPyIterator
97  """
98  return _IMP_base.IMP_BASE_SwigPyIterator_incr(self, n)
99 
100  def decr(self, n=1):
101  """
102  decr(IMP_BASE_SwigPyIterator self, size_t n=1) -> IMP_BASE_SwigPyIterator
103  decr(IMP_BASE_SwigPyIterator self) -> IMP_BASE_SwigPyIterator
104  """
105  return _IMP_base.IMP_BASE_SwigPyIterator_decr(self, n)
106 
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)
110 
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)
114 
115  def copy(self):
116  """copy(IMP_BASE_SwigPyIterator self) -> IMP_BASE_SwigPyIterator"""
117  return _IMP_base.IMP_BASE_SwigPyIterator_copy(self)
118 
119  def next(self):
120  """next(IMP_BASE_SwigPyIterator self) -> PyObject *"""
121  return _IMP_base.IMP_BASE_SwigPyIterator_next(self)
122 
123  def __next__(self):
124  """__next__(IMP_BASE_SwigPyIterator self) -> PyObject *"""
125  return _IMP_base.IMP_BASE_SwigPyIterator___next__(self)
126 
127  def previous(self):
128  """previous(IMP_BASE_SwigPyIterator self) -> PyObject *"""
129  return _IMP_base.IMP_BASE_SwigPyIterator_previous(self)
130 
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)
134 
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)
138 
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)
142 
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)
146 
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)
150 
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)
154 
155  def __sub__(self, *args):
156  """
157  __sub__(IMP_BASE_SwigPyIterator self, ptrdiff_t n) -> IMP_BASE_SwigPyIterator
158  __sub__(IMP_BASE_SwigPyIterator self, IMP_BASE_SwigPyIterator x) -> ptrdiff_t
159  """
160  return _IMP_base.IMP_BASE_SwigPyIterator___sub__(self, *args)
161 
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)
165 
166 _value_types=[]
167 _object_types=[]
168 _raii_types=[]
169 _plural_types=[]
170 
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
189 import sys
190 class _DirectorObjects(object):
191  """@internal Simple class to keep references to director objects
192  to prevent premature deletion."""
193  def __init__(self):
194  self._objects = []
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)
200  def cleanup(self):
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]
207 
208 
209  self._objects = objs
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()
214 
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
219 
220 def set_check_level(*args):
221  """set_check_level(IMP::base::CheckLevel tf)"""
222  return _IMP_base.set_check_level(*args)
223 
224 def get_check_level():
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
229 
230 import sys
231 if sys.version_info[:2] < (2,5):
232  IndexException.__bases__ += (IndexError,)
233  IOException.__bases__ += (IOError,)
234  ValueException.__bases__ += (ValueError,)
235 
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)
247 
248 _ostream_swigregister = _IMP_base._ostream_swigregister
249 _ostream_swigregister(_ostream)
250 
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)
264 
265  def __call__(self):
266  """__call__(RandomNumberGenerator self) -> int"""
267  return _IMP_base.RandomNumberGenerator___call__(self)
268 
269  def __init__(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)
278 
279 _raii_types.append("SetLogState")
280 
281 _raii_types.append("SetNumberOfThreads")
282 
283 _raii_types.append("SetCheckState")
284 
285 _object_types.append("Object")
286 
287 
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")
292 
293 
294 def _object_cast_to__TestObject(*args):
295  """_object_cast_to__TestObject(Object * o) -> _TestObject"""
296  return _IMP_base._object_cast_to__TestObject(*args)
297 VersionInfos=list
298 _plural_types.append("VersionInfos")
299 _value_types.append("VersionInfo")
300 
301 _raii_types.append("CreateLogContext")
302 
303 _raii_types.append("WarningContext")
304 
305 _raii_types.append("SetLogTarget")
306 
307 _TestValues=list
308 _plural_types.append("_TestValues")
309 _value_types.append("_TestValue")
310 
311 Floats=list
312 _plural_types.append("Floats")
313 _value_types.append("Float")
314 
315 Ints=list
316 _plural_types.append("Ints")
317 _value_types.append("Int")
318 
319 Strings=list
320 _plural_types.append("Strings")
321 _value_types.append("String")
322 
323 _Protections=list
324 _plural_types.append("_Protections")
325 _value_types.append("_Protection")
326 
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
341 
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)
354 
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)
369 
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)
382 
383 
384 def get_executable_name():
385  """get_executable_name() -> std::string"""
386  return _IMP_base.get_executable_name()
387 
388 def setup_from_argv(*args):
389  """
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
393  """
394  return _IMP_base.setup_from_argv(*args)
395 
396 def add_string_flag(*args):
397  """add_string_flag(std::string name, std::string default_value, std::string description)"""
398  return _IMP_base.add_string_flag(*args)
399 
400 def get_string_flag(*args):
401  """get_string_flag(std::string name) -> std::string"""
402  return _IMP_base.get_string_flag(*args)
403 
404 def add_int_flag(*args):
405  """add_int_flag(std::string name, size_t default_value, std::string description)"""
406  return _IMP_base.add_int_flag(*args)
407 
408 def get_int_flag(*args):
409  """get_int_flag(std::string name) -> size_t"""
410  return _IMP_base.get_int_flag(*args)
411 
412 def add_bool_flag(*args):
413  """add_bool_flag(std::string name, std::string description)"""
414  return _IMP_base.add_bool_flag(*args)
415 
416 def get_bool_flag(*args):
417  """get_bool_flag(std::string name) -> bool"""
418  return _IMP_base.get_bool_flag(*args)
419 
420 def add_float_flag(*args):
421  """add_float_flag(std::string name, double default_value, std::string description)"""
422  return _IMP_base.add_float_flag(*args)
423 
424 def get_float_flag(*args):
425  """get_float_flag(std::string name) -> double"""
426  return _IMP_base.get_float_flag(*args)
427 
428 def write_help(*args):
429  """
430  write_help(_ostream out=std::cerr)
431  write_help()
432  """
433  return _IMP_base.write_help(*args)
434 DEFAULT = _IMP_base.DEFAULT
435 SILENT = _IMP_base.SILENT
436 WARNING = _IMP_base.WARNING
437 PROGRESS = _IMP_base.PROGRESS
438 TERSE = _IMP_base.TERSE
439 VERBOSE = _IMP_base.VERBOSE
440 MEMORY = _IMP_base.MEMORY
441 ALL_LOG = _IMP_base.ALL_LOG
442 class VersionInfo(_Value):
443  """Proxy of C++ IMP::base::VersionInfo class"""
444  __swig_setmethods__ = {}
445  for _s in [_Value]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
446  __setattr__ = lambda self, name, value: _swig_setattr(self, VersionInfo, name, value)
447  __swig_getmethods__ = {}
448  for _s in [_Value]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
449  __getattr__ = lambda self, name: _swig_getattr(self, VersionInfo, name)
450  def __init__(self, *args):
451  """
452  __init__(IMP::base::VersionInfo self, std::string module, std::string version) -> VersionInfo
453  __init__(IMP::base::VersionInfo self) -> VersionInfo
454  """
455  this = _IMP_base.new_VersionInfo(*args)
456  try: self.this.append(this)
457  except: self.this = this
458  def get_module(self):
459  """get_module(VersionInfo self) -> std::string"""
460  return _IMP_base.VersionInfo_get_module(self)
461 
462  def get_version(self):
463  """get_version(VersionInfo self) -> std::string"""
464  return _IMP_base.VersionInfo_get_version(self)
465 
466  def show(self, *args):
467  """
468  show(VersionInfo self, _ostream out=std::cout)
469  show(VersionInfo self)
470  """
471  return _IMP_base.VersionInfo_show(self, *args)
472 
473  def __eq__(self, *args):
474  """__eq__(VersionInfo self, VersionInfo o) -> bool"""
475  return _IMP_base.VersionInfo___eq__(self, *args)
476 
477  def __ne__(self, *args):
478  """__ne__(VersionInfo self, VersionInfo o) -> bool"""
479  return _IMP_base.VersionInfo___ne__(self, *args)
480 
481  def __lt__(self, *args):
482  """__lt__(VersionInfo self, VersionInfo o) -> bool"""
483  return _IMP_base.VersionInfo___lt__(self, *args)
484 
485  def __gt__(self, *args):
486  """__gt__(VersionInfo self, VersionInfo o) -> bool"""
487  return _IMP_base.VersionInfo___gt__(self, *args)
488 
489  def __ge__(self, *args):
490  """__ge__(VersionInfo self, VersionInfo o) -> bool"""
491  return _IMP_base.VersionInfo___ge__(self, *args)
492 
493  def __le__(self, *args):
494  """__le__(VersionInfo self, VersionInfo o) -> bool"""
495  return _IMP_base.VersionInfo___le__(self, *args)
496 
497  def __str__(self):
498  """__str__(VersionInfo self) -> std::string"""
499  return _IMP_base.VersionInfo___str__(self)
500 
501  def __repr__(self):
502  """__repr__(VersionInfo self) -> std::string"""
503  return _IMP_base.VersionInfo___repr__(self)
504 
505  __swig_destroy__ = _IMP_base.delete_VersionInfo
506  __del__ = lambda self : None;
507 VersionInfo_swigregister = _IMP_base.VersionInfo_swigregister
508 VersionInfo_swigregister(VersionInfo)
509 
510 class TextOutput(_InputAdaptor):
511  """Proxy of C++ IMP::base::TextOutput class"""
512  __swig_setmethods__ = {}
513  for _s in [_InputAdaptor]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
514  __setattr__ = lambda self, name, value: _swig_setattr(self, TextOutput, name, value)
515  __swig_getmethods__ = {}
516  for _s in [_InputAdaptor]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
517  __getattr__ = lambda self, name: _swig_getattr(self, TextOutput, name)
518  __repr__ = _swig_repr
519  def __init__(self, *args):
520  """
521  __init__(IMP::base::TextOutput self, int arg2) -> TextOutput
522  __init__(IMP::base::TextOutput self, double arg2) -> TextOutput
523  __init__(IMP::base::TextOutput self, char const * c, bool append=False) -> TextOutput
524  __init__(IMP::base::TextOutput self, char const * c) -> TextOutput
525  __init__(IMP::base::TextOutput self, IMP::base::TextProxy< std::ostream > p) -> TextOutput
526  __init__(IMP::base::TextOutput self) -> TextOutput
527  __init__(IMP::base::TextOutput self, std::string file_name, bool append=False) -> TextOutput
528  __init__(IMP::base::TextOutput self, std::string file_name) -> TextOutput
529  """
530  this = _IMP_base.new_TextOutput(*args)
531  try: self.this.append(this)
532  except: self.this = this
533  def show(self, *args):
534  """
535  show(TextOutput self, _ostream out=std::cout)
536  show(TextOutput self)
537  """
538  return _IMP_base.TextOutput_show(self, *args)
539 
540  def get_name(self):
541  """get_name(TextOutput self) -> std::string"""
542  return _IMP_base.TextOutput_get_name(self)
543 
544  __swig_destroy__ = _IMP_base.delete_TextOutput
545  __del__ = lambda self : None;
546 TextOutput_swigregister = _IMP_base.TextOutput_swigregister
547 TextOutput_swigregister(TextOutput)
548 
549 class TextInput(_InputAdaptor):
550  """Proxy of C++ IMP::base::TextInput class"""
551  __swig_setmethods__ = {}
552  for _s in [_InputAdaptor]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
553  __setattr__ = lambda self, name, value: _swig_setattr(self, TextInput, name, value)
554  __swig_getmethods__ = {}
555  for _s in [_InputAdaptor]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
556  __getattr__ = lambda self, name: _swig_getattr(self, TextInput, name)
557  __repr__ = _swig_repr
558  def __init__(self, *args):
559  """
560  __init__(IMP::base::TextInput self, int arg2) -> TextInput
561  __init__(IMP::base::TextInput self, double arg2) -> TextInput
562  __init__(IMP::base::TextInput self, char const * c) -> TextInput
563  __init__(IMP::base::TextInput self, IMP::base::TextProxy< std::istream > p) -> TextInput
564  __init__(IMP::base::TextInput self) -> TextInput
565  __init__(IMP::base::TextInput self, std::string file_name) -> TextInput
566  """
567  this = _IMP_base.new_TextInput(*args)
568  try: self.this.append(this)
569  except: self.this = this
570  def show(self, *args):
571  """
572  show(TextInput self, _ostream out=std::cout)
573  show(TextInput self)
574  """
575  return _IMP_base.TextInput_show(self, *args)
576 
577  def get_name(self):
578  """get_name(TextInput self) -> std::string"""
579  return _IMP_base.TextInput_get_name(self)
580 
581  __swig_destroy__ = _IMP_base.delete_TextInput
582  __del__ = lambda self : None;
583 TextInput_swigregister = _IMP_base.TextInput_swigregister
584 TextInput_swigregister(TextInput)
585 
586 class SetLogTarget(_RAII):
587  """Proxy of C++ IMP::base::SetLogTarget class"""
588  __swig_setmethods__ = {}
589  for _s in [_RAII]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
590  __setattr__ = lambda self, name, value: _swig_setattr(self, SetLogTarget, name, value)
591  __swig_getmethods__ = {}
592  for _s in [_RAII]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
593  __getattr__ = lambda self, name: _swig_getattr(self, SetLogTarget, name)
594  def __init__(self, *args):
595  """
596  __init__(IMP::base::SetLogTarget self) -> SetLogTarget
597  __init__(IMP::base::SetLogTarget self, TextOutput to) -> SetLogTarget
598  """
599  this = _IMP_base.new_SetLogTarget(*args)
600  try: self.this.append(this)
601  except: self.this = this
602  def set(self, *args):
603  """set(SetLogTarget self, TextOutput to)"""
604  return _IMP_base.SetLogTarget_set(self, *args)
605 
606  def reset(self):
607  """reset(SetLogTarget self)"""
608  return _IMP_base.SetLogTarget_reset(self)
609 
610  __swig_destroy__ = _IMP_base.delete_SetLogTarget
611  __del__ = lambda self : None;
612  def show(self, *args):
613  """
614  show(SetLogTarget self, _ostream out=std::cout)
615  show(SetLogTarget self)
616  """
617  return _IMP_base.SetLogTarget_show(self, *args)
618 
619  def __str__(self):
620  """__str__(SetLogTarget self) -> std::string"""
621  return _IMP_base.SetLogTarget___str__(self)
622 
623  def __repr__(self):
624  """__repr__(SetLogTarget self) -> std::string"""
625  return _IMP_base.SetLogTarget___repr__(self)
626 
627 SetLogTarget_swigregister = _IMP_base.SetLogTarget_swigregister
628 SetLogTarget_swigregister(SetLogTarget)
629 
630 
631 def create_temporary_file(prefix="imp_temp", suffix=""):
632  """
633  create_temporary_file(std::string prefix="imp_temp", std::string suffix="") -> TextOutput
634  create_temporary_file(std::string prefix="imp_temp") -> TextOutput
635  create_temporary_file() -> TextOutput
636  """
637  return _IMP_base.create_temporary_file(prefix, suffix)
638 
639 def create_temporary_file_name(prefix="imp_temp", suffix=""):
640  """
641  create_temporary_file_name(std::string prefix="imp_temp", std::string suffix="") -> std::string
642  create_temporary_file_name(std::string prefix="imp_temp") -> std::string
643  create_temporary_file_name() -> std::string
644  """
645  return _IMP_base.create_temporary_file_name(prefix, suffix)
646 
647 def get_relative_path(*args):
648  """get_relative_path(std::string base, std::string relative) -> std::string"""
649  return _IMP_base.get_relative_path(*args)
650 
651 def push_log_context(*args):
652  """push_log_context(char const * functionname, void const * object)"""
653  return _IMP_base.push_log_context(*args)
654 
655 def pop_log_context():
656  """pop_log_context()"""
657  return _IMP_base.pop_log_context()
658 
659 def add_to_log(*args):
660  """
661  add_to_log(std::string to_write)
662  add_to_log(IMP::base::LogLevel level, std::string to_write)
663  """
664  return _IMP_base.add_to_log(*args)
665 
666 def set_log_level(*args):
667  """set_log_level(IMP::base::LogLevel l)"""
668  return _IMP_base.set_log_level(*args)
669 
670 def set_log_timer(*args):
671  """set_log_timer(bool tb)"""
672  return _IMP_base.set_log_timer(*args)
673 
674 def reset_log_timer():
675  """reset_log_timer()"""
676  return _IMP_base.reset_log_timer()
677 
678 def get_log_level():
679  """get_log_level() -> IMP::base::LogLevel"""
680  return _IMP_base.get_log_level()
681 
682 def set_progress_display(*args):
683  """set_progress_display(std::string description, unsigned int steps)"""
684  return _IMP_base.set_progress_display(*args)
685 
686 def add_to_progress_display(step=1):
687  """
688  add_to_progress_display(unsigned int step=1)
689  add_to_progress_display()
690  """
691  return _IMP_base.add_to_progress_display(step)
692 class Object(_NonCopyable):
693  """Proxy of C++ IMP::base::Object class"""
694  __swig_setmethods__ = {}
695  for _s in [_NonCopyable]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
696  __setattr__ = lambda self, name, value: _swig_setattr(self, Object, name, value)
697  __swig_getmethods__ = {}
698  for _s in [_NonCopyable]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
699  __getattr__ = lambda self, name: _swig_getattr(self, Object, name)
700  __swig_destroy__ = _IMP_base.delete_Object
701  __del__ = lambda self : None;
702  def __init__(self, *args):
703  """
704  __init__(IMP::base::Object self, std::string name) -> Object
705  __init__(IMP::base::Object self) -> Object
706  """
707  if self.__class__ == Object:
708  _self = None
709  else:
710  _self = self
711  this = _IMP_base.new_Object(_self, *args)
712  try: self.this.append(this)
713  except: self.this = this
714  if self.__class__ != Object:
715  import IMP.base
716  IMP.base._director_objects.register(self)
717 
718 
719 
720  def __hash__(self):
721  """__hash__(Object self) -> std::size_t"""
722  return _IMP_base.Object___hash__(self)
723 
724  def set_log_level(self, *args):
725  """set_log_level(Object self, IMP::base::LogLevel l)"""
726  return _IMP_base.Object_set_log_level(self, *args)
727 
728  def set_check_level(self, *args):
729  """set_check_level(Object self, IMP::base::CheckLevel l)"""
730  return _IMP_base.Object_set_check_level(self, *args)
731 
732  def get_log_level(self):
733  """get_log_level(Object self) -> IMP::base::LogLevel"""
734  return _IMP_base.Object_get_log_level(self)
735 
736  def get_check_level(self):
737  """get_check_level(Object self) -> IMP::base::CheckLevel"""
738  return _IMP_base.Object_get_check_level(self)
739 
740  def get_version_info(self):
741  """get_version_info(Object self) -> VersionInfo"""
742  return _IMP_base.Object_get_version_info(self)
743 
744  def get_name(self):
745  """get_name(Object self) -> std::string const &"""
746  return _IMP_base.Object_get_name(self)
747 
748  def set_name(self, *args):
749  """set_name(Object self, std::string name)"""
750  return _IMP_base.Object_set_name(self, *args)
751 
752  def get_type_name(self):
753  """get_type_name(Object self) -> std::string"""
754  return _IMP_base.Object_get_type_name(self)
755 
756  def set_was_used(self, *args):
757  """set_was_used(Object self, bool tf)"""
758  return _IMP_base.Object_set_was_used(self, *args)
759 
760  def show(self, *args):
761  """
762  show(Object self, _ostream out=std::cout)
763  show(Object self)
764  """
765  return _IMP_base.Object_show(self, *args)
766 
767  def _debugger_show(self):
768  """_debugger_show(Object self)"""
769  return _IMP_base.Object__debugger_show(self)
770 
771  def get_string(self):
772  """get_string(Object self) -> std::string"""
773  return _IMP_base.Object_get_string(self)
774 
775  def _on_destruction(self):
776  """_on_destruction(Object self)"""
777  return _IMP_base.Object__on_destruction(self)
778 
779  def get_is_valid(self):
780  """get_is_valid(Object self) -> bool"""
781  return _IMP_base.Object_get_is_valid(self)
782 
783  def get_ref_count(self):
784  """get_ref_count(Object self) -> unsigned int"""
785  return _IMP_base.Object_get_ref_count(self)
786 
787  def get_number_of_live_objects():
788  """get_number_of_live_objects() -> unsigned int"""
789  return _IMP_base.Object_get_number_of_live_objects()
790 
791  if _newclass:get_number_of_live_objects = staticmethod(get_number_of_live_objects)
792  __swig_getmethods__["get_number_of_live_objects"] = lambda x: get_number_of_live_objects
793  def get_is_shared(self):
794  """get_is_shared(Object self) -> bool"""
795  return _IMP_base.Object_get_is_shared(self)
796 
797  def clear_caches(self):
798  """clear_caches(Object self)"""
799  return _IMP_base.Object_clear_caches(self)
800 
801  def do_destroy(self):
802  """do_destroy(Object self)"""
803  return _IMP_base.Object_do_destroy(self)
804 
805  def __eq__(self, *args):
806  """__eq__(Object self, Object o) -> bool"""
807  return _IMP_base.Object___eq__(self, *args)
808 
809  def __ne__(self, *args):
810  """__ne__(Object self, Object o) -> bool"""
811  return _IMP_base.Object___ne__(self, *args)
812 
813  def __le__(self, *args):
814  """__le__(Object self, Object o) -> bool"""
815  return _IMP_base.Object___le__(self, *args)
816 
817  def __lt__(self, *args):
818  """__lt__(Object self, Object o) -> bool"""
819  return _IMP_base.Object___lt__(self, *args)
820 
821  def __ge__(self, *args):
822  """__ge__(Object self, Object o) -> bool"""
823  return _IMP_base.Object___ge__(self, *args)
824 
825  def __gt__(self, *args):
826  """__gt__(Object self, Object o) -> bool"""
827  return _IMP_base.Object___gt__(self, *args)
828 
829  def __str__(self):
830  """__str__(Object self) -> std::string"""
831  return _IMP_base.Object___str__(self)
832 
833  def __repr__(self):
834  """__repr__(Object self) -> std::string"""
835  return _IMP_base.Object___repr__(self)
836 
837  def get_from(o):
838  return _object_cast_to_Object(o)
839  get_from = staticmethod(get_from)
840 
841  def __disown__(self):
842  self.this.disown()
843  _IMP_base.disown_Object(self)
844  return weakref_proxy(self)
845 Object_swigregister = _IMP_base.Object_swigregister
846 Object_swigregister(Object)
847 
848 def Object_get_number_of_live_objects():
849  """Object_get_number_of_live_objects() -> unsigned int"""
850  return _IMP_base.Object_get_number_of_live_objects()
851 
852 class SetLogState(_RAII):
853  """Proxy of C++ IMP::base::SetLogState class"""
854  __swig_setmethods__ = {}
855  for _s in [_RAII]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
856  __setattr__ = lambda self, name, value: _swig_setattr(self, SetLogState, name, value)
857  __swig_getmethods__ = {}
858  for _s in [_RAII]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
859  __getattr__ = lambda self, name: _swig_getattr(self, SetLogState, name)
860  def reset(self):
861  """reset(SetLogState self)"""
862  return _IMP_base.SetLogState_reset(self)
863 
864  __swig_destroy__ = _IMP_base.delete_SetLogState
865  __del__ = lambda self : None;
866  def show(self, *args):
867  """
868  show(SetLogState self, _ostream out=std::cout)
869  show(SetLogState self)
870  """
871  return _IMP_base.SetLogState_show(self, *args)
872 
873  def __init__(self, *args):
874  """
875  __init__(IMP::base::SetLogState self) -> SetLogState
876  __init__(IMP::base::SetLogState self, Object o, IMP::base::LogLevel l) -> SetLogState
877  __init__(IMP::base::SetLogState self, IMP::base::LogLevel l) -> SetLogState
878  """
879  this = _IMP_base.new_SetLogState(*args)
880  try: self.this.append(this)
881  except: self.this = this
882  def set(self, *args):
883  """
884  set(SetLogState self, Object o, IMP::base::LogLevel l)
885  set(SetLogState self, IMP::base::LogLevel l)
886  """
887  return _IMP_base.SetLogState_set(self, *args)
888 
889  def __str__(self):
890  """__str__(SetLogState self) -> std::string"""
891  return _IMP_base.SetLogState___str__(self)
892 
893  def __repr__(self):
894  """__repr__(SetLogState self) -> std::string"""
895  return _IMP_base.SetLogState___repr__(self)
896 
897 SetLogState_swigregister = _IMP_base.SetLogState_swigregister
898 SetLogState_swigregister(SetLogState)
899 
900 class WarningContext(_object):
901  """Proxy of C++ IMP::base::WarningContext class"""
902  __swig_setmethods__ = {}
903  __setattr__ = lambda self, name, value: _swig_setattr(self, WarningContext, name, value)
904  __swig_getmethods__ = {}
905  __getattr__ = lambda self, name: _swig_getattr(self, WarningContext, name)
906  __swig_setmethods__["data_"] = _IMP_base.WarningContext_data__set
907  __swig_getmethods__["data_"] = _IMP_base.WarningContext_data__get
908  if _newclass:data_ = _swig_property(_IMP_base.WarningContext_data__get, _IMP_base.WarningContext_data__set)
909  def add_warning(self, *args):
910  """add_warning(WarningContext self, std::string key, std::string warning)"""
911  return _IMP_base.WarningContext_add_warning(self, *args)
912 
913  def clear_warnings(self):
914  """clear_warnings(WarningContext self)"""
915  return _IMP_base.WarningContext_clear_warnings(self)
916 
917  def dump_warnings(self):
918  """dump_warnings(WarningContext self)"""
919  return _IMP_base.WarningContext_dump_warnings(self)
920 
921  __swig_destroy__ = _IMP_base.delete_WarningContext
922  __del__ = lambda self : None;
923  def show(self, *args):
924  """
925  show(WarningContext self, _ostream out=std::cout)
926  show(WarningContext self)
927  """
928  return _IMP_base.WarningContext_show(self, *args)
929 
930  def __str__(self):
931  """__str__(WarningContext self) -> std::string"""
932  return _IMP_base.WarningContext___str__(self)
933 
934  def __repr__(self):
935  """__repr__(WarningContext self) -> std::string"""
936  return _IMP_base.WarningContext___repr__(self)
937 
938  def __init__(self):
939  """__init__(IMP::base::WarningContext self) -> WarningContext"""
940  this = _IMP_base.new_WarningContext()
941  try: self.this.append(this)
942  except: self.this = this
943 WarningContext_swigregister = _IMP_base.WarningContext_swigregister
944 WarningContext_swigregister(WarningContext)
945 
946 class CreateLogContext(_RAII):
947  """Proxy of C++ IMP::base::CreateLogContext class"""
948  __swig_setmethods__ = {}
949  for _s in [_RAII]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
950  __setattr__ = lambda self, name, value: _swig_setattr(self, CreateLogContext, name, value)
951  __swig_getmethods__ = {}
952  for _s in [_RAII]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
953  __getattr__ = lambda self, name: _swig_getattr(self, CreateLogContext, name)
954  def __init__(self, *args):
955  """
956  __init__(IMP::base::CreateLogContext self, std::string fname, Object object=nullptr) -> CreateLogContext
957  __init__(IMP::base::CreateLogContext self, std::string fname) -> CreateLogContext
958  __init__(IMP::base::CreateLogContext self) -> CreateLogContext
959  __init__(IMP::base::CreateLogContext self, char const * fname, Object object=nullptr) -> CreateLogContext
960  __init__(IMP::base::CreateLogContext self, char const * fname) -> CreateLogContext
961  """
962  this = _IMP_base.new_CreateLogContext(*args)
963  try: self.this.append(this)
964  except: self.this = this
965  def set(self, *args):
966  """
967  set(CreateLogContext self, char const * fname, Object object=nullptr)
968  set(CreateLogContext self, char const * fname)
969  """
970  return _IMP_base.CreateLogContext_set(self, *args)
971 
972  def reset(self):
973  """reset(CreateLogContext self)"""
974  return _IMP_base.CreateLogContext_reset(self)
975 
976  __swig_destroy__ = _IMP_base.delete_CreateLogContext
977  __del__ = lambda self : None;
978  def show(self, *args):
979  """
980  show(CreateLogContext self, _ostream out=std::cout)
981  show(CreateLogContext self)
982  """
983  return _IMP_base.CreateLogContext_show(self, *args)
984 
985  def __str__(self):
986  """__str__(CreateLogContext self) -> std::string"""
987  return _IMP_base.CreateLogContext___str__(self)
988 
989  def __repr__(self):
990  """__repr__(CreateLogContext self) -> std::string"""
991  return _IMP_base.CreateLogContext___repr__(self)
992 
993 CreateLogContext_swigregister = _IMP_base.CreateLogContext_swigregister
994 CreateLogContext_swigregister(CreateLogContext)
995 
996 class SetCheckState(_RAII):
997  """Proxy of C++ IMP::base::SetCheckState class"""
998  __swig_setmethods__ = {}
999  for _s in [_RAII]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
1000  __setattr__ = lambda self, name, value: _swig_setattr(self, SetCheckState, name, value)
1001  __swig_getmethods__ = {}
1002  for _s in [_RAII]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
1003  __getattr__ = lambda self, name: _swig_getattr(self, SetCheckState, name)
1004  def reset(self):
1005  """reset(SetCheckState self)"""
1006  return _IMP_base.SetCheckState_reset(self)
1007 
1008  __swig_destroy__ = _IMP_base.delete_SetCheckState
1009  __del__ = lambda self : None;
1010  def show(self, *args):
1011  """
1012  show(SetCheckState self, _ostream out=std::cout)
1013  show(SetCheckState self)
1014  """
1015  return _IMP_base.SetCheckState_show(self, *args)
1016 
1017  def __init__(self, *args):
1018  """
1019  __init__(IMP::base::SetCheckState self) -> SetCheckState
1020  __init__(IMP::base::SetCheckState self, Object o, IMP::base::CheckLevel l) -> SetCheckState
1021  __init__(IMP::base::SetCheckState self, IMP::base::CheckLevel l) -> SetCheckState
1022  """
1023  this = _IMP_base.new_SetCheckState(*args)
1024  try: self.this.append(this)
1025  except: self.this = this
1026  def set(self, *args):
1027  """
1028  set(SetCheckState self, Object o, IMP::base::CheckLevel l)
1029  set(SetCheckState self, IMP::base::CheckLevel l)
1030  """
1031  return _IMP_base.SetCheckState_set(self, *args)
1032 
1033  def __str__(self):
1034  """__str__(SetCheckState self) -> std::string"""
1035  return _IMP_base.SetCheckState___str__(self)
1036 
1037  def __repr__(self):
1038  """__repr__(SetCheckState self) -> std::string"""
1039  return _IMP_base.SetCheckState___repr__(self)
1040 
1041 SetCheckState_swigregister = _IMP_base.SetCheckState_swigregister
1042 SetCheckState_swigregister(SetCheckState)
1043 
1044 
1045 def get_unique_name(*args):
1046  """get_unique_name(std::string templ) -> std::string"""
1047  return _IMP_base.get_unique_name(*args)
1048 class _Protection(_object):
1049  """Proxy of C++ IMP::base::internal::_Protection class"""
1050  __swig_setmethods__ = {}
1051  __setattr__ = lambda self, name, value: _swig_setattr(self, _Protection, name, value)
1052  __swig_getmethods__ = {}
1053  __getattr__ = lambda self, name: _swig_getattr(self, _Protection, name)
1054  def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined")
1055  def show(self, *args):
1056  """
1057  show(_Protection self, _ostream out=std::cout)
1058  show(_Protection self)
1059  """
1060  return _IMP_base._Protection_show(self, *args)
1061 
1062  def __str__(self):
1063  """__str__(_Protection self) -> std::string"""
1064  return _IMP_base._Protection___str__(self)
1065 
1066  def __repr__(self):
1067  """__repr__(_Protection self) -> std::string"""
1068  return _IMP_base._Protection___repr__(self)
1069 
1070  __swig_destroy__ = _IMP_base.delete__Protection
1071  __del__ = lambda self : None;
1072 _Protection_swigregister = _IMP_base._Protection_swigregister
1073 _Protection_swigregister(_Protection)
1074 
1075 
1076 def _test_log():
1077  """_test_log()"""
1078  return _IMP_base._test_log()
1079 
1080 def _test_intranges(*args):
1081  """_test_intranges(IMP::IntRanges const & ips) -> int"""
1082  return _IMP_base._test_intranges(*args)
1083 
1084 def _test_intrange(*args):
1085  """
1086  _test_intrange(IMP::IntRange const & ips) -> IMP::IntRange
1087  _test_intrange() -> IMP::IntRange
1088  """
1089  return _IMP_base._test_intrange(*args)
1090 
1091 def _test_ifile(*args):
1092  """_test_ifile(TextInput a) -> std::string"""
1093  return _IMP_base._test_ifile(*args)
1094 
1095 def _test_ofile(*args):
1096  """_test_ofile(TextOutput a) -> std::string"""
1097  return _IMP_base._test_ofile(*args)
1098 
1099 def _test_ifile_overloaded(*args):
1100  """
1101  _test_ifile_overloaded(TextInput a, int i) -> std::string
1102  _test_ifile_overloaded(TextInput a, std::string st) -> std::string
1103  """
1104  return _IMP_base._test_ifile_overloaded(*args)
1105 
1106 def _test_ofile_overloaded(*args):
1107  """
1108  _test_ofile_overloaded(TextOutput a, int i) -> std::string
1109  _test_ofile_overloaded(TextOutput a, std::string st) -> std::string
1110  """
1111  return _IMP_base._test_ofile_overloaded(*args)
1112 class _TestValue(_object):
1113  """Proxy of C++ IMP::base::internal::_TestValue class"""
1114  __swig_setmethods__ = {}
1115  __setattr__ = lambda self, name, value: _swig_setattr(self, _TestValue, name, value)
1116  __swig_getmethods__ = {}
1117  __getattr__ = lambda self, name: _swig_getattr(self, _TestValue, name)
1118  def __init__(self, *args):
1119  """__init__(IMP::base::internal::_TestValue self, int i) -> _TestValue"""
1120  this = _IMP_base.new__TestValue(*args)
1121  try: self.this.append(this)
1122  except: self.this = this
1123  def show(self, *args):
1124  """
1125  show(_TestValue self, _ostream out=std::cout)
1126  show(_TestValue self)
1127  """
1128  return _IMP_base._TestValue_show(self, *args)
1129 
1130  def __eq__(self, *args):
1131  """__eq__(_TestValue self, _TestValue o) -> bool"""
1132  return _IMP_base._TestValue___eq__(self, *args)
1133 
1134  def __ne__(self, *args):
1135  """__ne__(_TestValue self, _TestValue o) -> bool"""
1136  return _IMP_base._TestValue___ne__(self, *args)
1137 
1138  def __lt__(self, *args):
1139  """__lt__(_TestValue self, _TestValue o) -> bool"""
1140  return _IMP_base._TestValue___lt__(self, *args)
1141 
1142  def __gt__(self, *args):
1143  """__gt__(_TestValue self, _TestValue o) -> bool"""
1144  return _IMP_base._TestValue___gt__(self, *args)
1145 
1146  def __ge__(self, *args):
1147  """__ge__(_TestValue self, _TestValue o) -> bool"""
1148  return _IMP_base._TestValue___ge__(self, *args)
1149 
1150  def __le__(self, *args):
1151  """__le__(_TestValue self, _TestValue o) -> bool"""
1152  return _IMP_base._TestValue___le__(self, *args)
1153 
1154  def get(self):
1155  """get(_TestValue self) -> int"""
1156  return _IMP_base._TestValue_get(self)
1157 
1158  def get_float(self):
1159  """get_float(_TestValue self) -> IMP::Float const &"""
1160  return _IMP_base._TestValue_get_float(self)
1161 
1162  def __str__(self):
1163  """__str__(_TestValue self) -> std::string"""
1164  return _IMP_base._TestValue___str__(self)
1165 
1166  def __repr__(self):
1167  """__repr__(_TestValue self) -> std::string"""
1168  return _IMP_base._TestValue___repr__(self)
1169 
1170  __swig_destroy__ = _IMP_base.delete__TestValue
1171  __del__ = lambda self : None;
1172 _TestValue_swigregister = _IMP_base._TestValue_swigregister
1173 _TestValue_swigregister(_TestValue)
1174 
1175 
1176 def _pass_plain_pair(*args):
1177  """_pass_plain_pair(IMP::FloatPair p) -> IMP::FloatPair"""
1178  return _IMP_base._pass_plain_pair(*args)
1179 
1180 def _pass_overloaded_strings(*args):
1181  """
1182  _pass_overloaded_strings(IMP::Strings const & a, int arg2) -> IMP::Strings
1183  _pass_overloaded_strings(IMP::Strings const & a) -> IMP::Strings
1184  """
1185  return _IMP_base._pass_overloaded_strings(*args)
1186 
1187 def _pass_pair(*args):
1188  """_pass_pair(IMP::DerivativePair const & p) -> IMP::DerivativePair"""
1189  return _IMP_base._pass_pair(*args)
1190 
1191 def _pass_floats(*args):
1192  """_pass_floats(IMP::Floats const & input) -> IMP::Floats"""
1193  return _IMP_base._pass_floats(*args)
1194 
1195 def _pass_ints(*args):
1196  """_pass_ints(IMP::Ints input) -> IMP::Ints"""
1197  return _IMP_base._pass_ints(*args)
1198 
1199 def _pass_ints_list(*args):
1200  """_pass_ints_list(IMP::IntsList const & input) -> IMP::IntsList"""
1201  return _IMP_base._pass_ints_list(*args)
1202 
1203 def _pass_ints_lists(*args):
1204  """_pass_ints_lists(IMP::IntsLists const & input) -> IMP::IntsLists"""
1205  return _IMP_base._pass_ints_lists(*args)
1206 
1207 def _pass_strings(*args):
1208  """_pass_strings(IMP::Strings const & input) -> IMP::Strings const &"""
1209  return _IMP_base._pass_strings(*args)
1210 class _TestObject(Object):
1211  """Proxy of C++ IMP::base::internal::_TestObject class"""
1212  __swig_setmethods__ = {}
1213  for _s in [Object]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
1214  __setattr__ = lambda self, name, value: _swig_setattr(self, _TestObject, name, value)
1215  __swig_getmethods__ = {}
1216  for _s in [Object]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
1217  __getattr__ = lambda self, name: _swig_getattr(self, _TestObject, name)
1218  def __init__(self):
1219  """__init__(IMP::base::internal::_TestObject self) -> _TestObject"""
1220  this = _IMP_base.new__TestObject()
1221  try: self.this.append(this)
1222  except: self.this = this
1223  def get_version_info(self):
1224  """get_version_info(_TestObject self) -> VersionInfo"""
1225  return _IMP_base._TestObject_get_version_info(self)
1226 
1227  __swig_destroy__ = _IMP_base.delete__TestObject
1228  __del__ = lambda self : None;
1229  def __str__(self):
1230  """__str__(_TestObject self) -> std::string"""
1231  return _IMP_base._TestObject___str__(self)
1232 
1233  def __repr__(self):
1234  """__repr__(_TestObject self) -> std::string"""
1235  return _IMP_base._TestObject___repr__(self)
1236 
1237  def get_from(o):
1238  return _object_cast_to__TestObject(o)
1239  get_from = staticmethod(get_from)
1240 
1241 _TestObject_swigregister = _IMP_base._TestObject_swigregister
1242 _TestObject_swigregister(_TestObject)
1243 
1244 
1245 def get_live_object_names():
1246  """get_live_object_names() -> IMP::Strings"""
1247  return _IMP_base.get_live_object_names()
1248 
1249 def get_live_objects():
1250  """get_live_objects() -> IMP::base::Objects"""
1251  return _IMP_base.get_live_objects()
1252 
1253 def set_show_leaked_objects(*args):
1254  """set_show_leaked_objects(bool tf)"""
1255  return _IMP_base.set_show_leaked_objects(*args)
1256 
1257 def set_deprecation_warnings(*args):
1258  """set_deprecation_warnings(bool tf)"""
1259  return _IMP_base.set_deprecation_warnings(*args)
1260 
1261 def set_deprecation_exceptions(*args):
1262  """set_deprecation_exceptions(bool tf)"""
1263  return _IMP_base.set_deprecation_exceptions(*args)
1264 
1265 def handle_use_deprecated(*args):
1266  """handle_use_deprecated(std::string message)"""
1267  return _IMP_base.handle_use_deprecated(*args)
1268 
1269 def get_number_of_threads():
1270  """get_number_of_threads() -> unsigned int"""
1271  return _IMP_base.get_number_of_threads()
1272 
1273 def set_number_of_threads(*args):
1274  """set_number_of_threads(unsigned int n)"""
1275  return _IMP_base.set_number_of_threads(*args)
1276 class SetNumberOfThreads(_RAII):
1277  """Proxy of C++ IMP::base::SetNumberOfThreads class"""
1278  __swig_setmethods__ = {}
1279  for _s in [_RAII]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
1280  __setattr__ = lambda self, name, value: _swig_setattr(self, SetNumberOfThreads, name, value)
1281  __swig_getmethods__ = {}
1282  for _s in [_RAII]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
1283  __getattr__ = lambda self, name: _swig_getattr(self, SetNumberOfThreads, name)
1284  def __init__(self, *args):
1285  """
1286  __init__(IMP::base::SetNumberOfThreads self) -> SetNumberOfThreads
1287  __init__(IMP::base::SetNumberOfThreads self, unsigned int n) -> SetNumberOfThreads
1288  """
1289  this = _IMP_base.new_SetNumberOfThreads(*args)
1290  try: self.this.append(this)
1291  except: self.this = this
1292  def set(self, *args):
1293  """set(SetNumberOfThreads self, unsigned int n)"""
1294  return _IMP_base.SetNumberOfThreads_set(self, *args)
1295 
1296  def reset(self):
1297  """reset(SetNumberOfThreads self)"""
1298  return _IMP_base.SetNumberOfThreads_reset(self)
1299 
1300  __swig_destroy__ = _IMP_base.delete_SetNumberOfThreads
1301  __del__ = lambda self : None;
1302  def show(self, *args):
1303  """
1304  show(SetNumberOfThreads self, _ostream out=std::cout)
1305  show(SetNumberOfThreads self)
1306  """
1307  return _IMP_base.SetNumberOfThreads_show(self, *args)
1308 
1309  def __str__(self):
1310  """__str__(SetNumberOfThreads self) -> std::string"""
1311  return _IMP_base.SetNumberOfThreads___str__(self)
1312 
1313  def __repr__(self):
1314  """__repr__(SetNumberOfThreads self) -> std::string"""
1315  return _IMP_base.SetNumberOfThreads___repr__(self)
1316 
1317 SetNumberOfThreads_swigregister = _IMP_base.SetNumberOfThreads_swigregister
1318 SetNumberOfThreads_swigregister(SetNumberOfThreads)
1319 
1320 
1321 def clear_statistics():
1322  """clear_statistics()"""
1323  return _IMP_base.clear_statistics()
1324 
1325 def show_timings(*args):
1326  """show_timings(TextOutput out)"""
1327  return _IMP_base.show_timings(*args)
1328 class Timer(_RAII):
1329  """Proxy of C++ IMP::base::Timer class"""
1330  __swig_setmethods__ = {}
1331  for _s in [_RAII]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
1332  __setattr__ = lambda self, name, value: _swig_setattr(self, Timer, name, value)
1333  __swig_getmethods__ = {}
1334  for _s in [_RAII]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
1335  __getattr__ = lambda self, name: _swig_getattr(self, Timer, name)
1336  __repr__ = _swig_repr
1337  def __init__(self, *args):
1338  """
1339  __init__(IMP::base::Timer self, Object object, std::string operation) -> Timer
1340  __init__(IMP::base::Timer self, std::string operation) -> Timer
1341  """
1342  this = _IMP_base.new_Timer(*args)
1343  try: self.this.append(this)
1344  except: self.this = this
1345  __swig_destroy__ = _IMP_base.delete_Timer
1346  __del__ = lambda self : None;
1347 Timer_swigregister = _IMP_base.Timer_swigregister
1348 Timer_swigregister(Timer)
1349 
1350 import _graph_show
1351 show_altgraph= _graph_show.show_altgraph
1352 show_graphviz= _graph_show.show_graphviz
1353 get_networkx_graph= _graph_show.get_networkx_graph
1354 
1355 
1356 def get_module_version():
1357  """get_module_version() -> std::string const"""
1358  return _IMP_base.get_module_version()
1359 
1360 def get_example_path(*args):
1361  """get_example_path(std::string fname) -> std::string"""
1362  return _IMP_base.get_example_path(*args)
1363 
1364 def get_data_path(*args):
1365  """get_data_path(std::string fname) -> std::string"""
1366  return _IMP_base.get_data_path(*args)
1367 import _version_check
1368 _version_check.check_version(get_module_version())
1369 
1370 # This file is compatible with both classic and new-style classes.
1371 
1372 
TextOutput create_temporary_file(std::string prefix="imp_temp", std::string suffix="")
void show_timings(TextOutput out)
void set_log_timer(bool tb)
Set whether log messages are tagged with the current log time.
size_t get_int_flag(std::string name)
void reset_log_timer()
Reset the log timer.
double get_float_flag(std::string name)
void handle_use_deprecated(std::string message)
void set_log_level(LogLevel l)
Set the current global log level.
void add_float_flag(std::string name, double default_value, std::string description)
bool get_bool_flag(std::string name)
void set_check_level(CheckLevel tf)
Control runtime checks in the code.
std::string create_temporary_file_name(std::string prefix="imp_temp", std::string suffix="")
See IMP.base for more information.
Definition: base/Array.h:20
void set_progress_display(std::string description, unsigned int steps)
LogLevel get_log_level()
Get the currently active global log level.
Definition: base/log.h:93
void set_number_of_threads(unsigned int n)
void add_to_log(LogLevel level, std::string to_write)
Write a string to the log, for python.
std::string get_relative_path(std::string base, std::string relative)
std::string get_string_flag(std::string name)
void add_bool_flag(std::string name, std::string description)
void add_string_flag(std::string name, std::string default_value, std::string description)
std::string get_unique_name(std::string templ)
void set_deprecation_exceptions(bool tf)
void set_show_leaked_objects(bool tf)
void write_help(std::ostream &out=std::cerr)
void set_deprecation_warnings(bool tf)
Toggle printing of warnings on using deprecated classes.
void add_to_progress_display(unsigned int step=1)
void 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.
void setup_from_argv(int argc, char **argv, std::string description)
Objects get_live_objects()
std::string get_executable_name()
Strings get_live_object_names()