MCPcopy Create free account
hub / github.com/apache/arrow / __init__

Method __init__

cpp/gdb_arrow.py:433–445  ·  view source on GitHub ↗
(self, val)

Source from the content-addressed store, hash-verified

431 """
432
433 def __init__(self, val):
434 self.val = val
435 try:
436 # libstdc++ internals
437 self.index = val['_M_index']
438 except gdb.error:
439 # fallback for other C++ standard libraries
440 self.index = gdb.parse_and_eval(f"{for_evaluation(val)}.index()")
441 try:
442 self.value_type = self.val.type.template_argument(self.index)
443 except RuntimeError:
444 # Index out of bounds
445 self.value_type = None
446
447 @property
448 def value(self):

Callers

nothing calls this directly

Calls 1

for_evaluationFunction · 0.85

Tested by

no test coverage detected