parameters: (self, val)
docstring: Extract all the necessary information
docstring_summary: Extract all the necessary information
docstring_tokens: Extract all the necessary information
function: def __init__(self, val):
  		"Extract all the necessary information"
  		# The gdb extension does not support value template arguments - need to extract them by hand
  		type = val.type
  		if type.code == gdb.TYPE_CODE_REF:
  			type = type.target()
  		self.type = type.unqualified().strip_typedefs()
  		self.innerType = self.type.template_argument(0)
  		self.val = val
  		
  		# Quaternions have a struct as their storage, so we need to walk through this
  		self.data = self.val['m_coeffs']['m_storage']['m_data']['array']
  		self.data = self.data.cast(self.innerType.pointer())
function_tokens: def __init__ ( self , val ) : # The gdb extension does not support value template arguments - need to extract them by hand type = val . type if type . code == gdb . TYPE_CODE_REF : type = type . target ( ) self . type = type . unqualified ( ) . strip_typedefs ( ) self . innerType = self . type . template_argument ( 0 ) self . val = val # Quaternions have a struct as their storage, so we need to walk through this self . data = self . val [ 'm_coeffs' ] [ 'm_storage' ] [ 'm_data' ] [ 'array' ] self . data = self . data . cast ( self . innerType . pointer ( ) )