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