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

Method __init__

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

for_evaluationFunction · 0.85

Tested by

no test coverage detected