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