(self,
               enums_dict=None,
               consts_dict=None,
               typedefs_dict=None,
               hints_dict=None,
               types_dict=None,
               funcs_dict=None,
               strings_dict=None,
               func_ptrs_dict=None,
               index_dict=None)
Constructs a new HeaderParser instance.

    The optional arguments listed below can be used to passing in dict-like
    objects specifying pre-defined declarations. By default empty
    UniqueOrderedDicts will be instantiated and then populated according to the
    contents of the headers.

    Args:
      enums_dict: Nested mappings from {enum_name: {member_name: value}}.
      consts_dict: Mapping from {const_name: value}.
      typedefs_dict: Mapping from {type_name: ctypes_typename}.
      hints_dict: Mapping from {var_name: shape_tuple}.
      types_dict: Mapping from {type_name: type_instance}.
      funcs_dict: Mapping from {func_name: Function_instance}.
      strings_dict: Mapping from {var_name: StaticStringArray_instance}.
      func_ptrs_dict: Mapping from {var_name: FunctionPtr_instance}.
      index_dict: Mapping from {lowercase_struct_name: {var_name: shape_tuple}}.
Constructs a new HeaderParser instance.
Constructs a new HeaderParser instance .
def __init__(self,
               enums_dict=None,
               consts_dict=None,
               typedefs_dict=None,
               hints_dict=None,
               types_dict=None,
               funcs_dict=None,
               strings_dict=None,
               func_ptrs_dict=None,
               index_dict=None):
    """Constructs a new HeaderParser instance.

    The optional arguments listed below can be used to passing in dict-like
    objects specifying pre-defined declarations. By default empty
    UniqueOrderedDicts will be instantiated and then populated according to the
    contents of the headers.

    Args:
      enums_dict: Nested mappings from {enum_name: {member_name: value}}.
      consts_dict: Mapping from {const_name: value}.
      typedefs_dict: Mapping from {type_name: ctypes_typename}.
      hints_dict: Mapping from {var_name: shape_tuple}.
      types_dict: Mapping from {type_name: type_instance}.
      funcs_dict: Mapping from {func_name: Function_instance}.
      strings_dict: Mapping from {var_name: StaticStringArray_instance}.
      func_ptrs_dict: Mapping from {var_name: FunctionPtr_instance}.
      index_dict: Mapping from {lowercase_struct_name: {var_name: shape_tuple}}.
    """
    self.enums_dict = (enums_dict if enums_dict is not None
                       else codegen_util.UniqueOrderedDict())
    self.consts_dict = (consts_dict if consts_dict is not None
                        else codegen_util.UniqueOrderedDict())
    self.typedefs_dict = (typedefs_dict if typedefs_dict is not None
                          else codegen_util.UniqueOrderedDict())
    self.hints_dict = (hints_dict if hints_dict is not None
                       else codegen_util.UniqueOrderedDict())
    self.types_dict = (types_dict if types_dict is not None
                       else codegen_util.UniqueOrderedDict())
    self.funcs_dict = (funcs_dict if funcs_dict is not None
                       else codegen_util.UniqueOrderedDict())
    self.strings_dict = (strings_dict if strings_dict is not None
                         else codegen_util.UniqueOrderedDict())
    self.func_ptrs_dict = (func_ptrs_dict if func_ptrs_dict is not None
                           else codegen_util.UniqueOrderedDict())
    self.index_dict = (index_dict if index_dict is not None
                       else codegen_util.UniqueOrderedDict())
def __init__ ( self , enums_dict = None , consts_dict = None , typedefs_dict = None , hints_dict = None , types_dict = None , funcs_dict = None , strings_dict = None , func_ptrs_dict = None , index_dict = None ) : self . enums_dict = ( enums_dict if enums_dict is not None else codegen_util . UniqueOrderedDict ( ) ) self . consts_dict = ( consts_dict if consts_dict is not None else codegen_util . UniqueOrderedDict ( ) ) self . typedefs_dict = ( typedefs_dict if typedefs_dict is not None else codegen_util . UniqueOrderedDict ( ) ) self . hints_dict = ( hints_dict if hints_dict is not None else codegen_util . UniqueOrderedDict ( ) ) self . types_dict = ( types_dict if types_dict is not None else codegen_util . UniqueOrderedDict ( ) ) self . funcs_dict = ( funcs_dict if funcs_dict is not None else codegen_util . UniqueOrderedDict ( ) ) self . strings_dict = ( strings_dict if strings_dict is not None else codegen_util . UniqueOrderedDict ( ) ) self . func_ptrs_dict = ( func_ptrs_dict if func_ptrs_dict is not None else codegen_util . UniqueOrderedDict ( ) ) self . index_dict = ( index_dict if index_dict is not None else codegen_util . UniqueOrderedDict ( ) )