'cxx_type' : str,
'cxx_header' : str,
'type' : str,
- 'cxx_bases' : list,
+ 'cxx_extra_bases' : list,
'cxx_exports' : list,
'cxx_param_exports' : list,
}
value_dict[key] = val
if 'abstract' not in value_dict:
value_dict['abstract'] = False
- if 'cxx_bases' not in value_dict:
- value_dict['cxx_bases'] = []
+ if 'cxx_extra_bases' not in value_dict:
+ value_dict['cxx_extra_bases'] = []
if 'cxx_exports' not in value_dict:
value_dict['cxx_exports'] = cxx_exports
else:
code()
code.dedent()
- bases = [ cls._base.cxx_class ] + cls.cxx_bases if cls._base else \
- cls.cxx_bases
+ bases = [ cls._base.cxx_class ] + cls.cxx_extra_bases if \
+ cls._base else cls.cxx_extra_bases
if bases:
base_str = ", ".join(bases)
code('py::class_<${{cls.cxx_class}}, ${base_str}, ' \
abstract = True
cxx_header = "sim/sim_object.hh"
- cxx_bases = [ "Drainable", "Serializable" ]
+ cxx_extra_bases = [ "Drainable", "Serializable" ]
eventq_index = Param.UInt32(Parent.eventq_index, "Event Queue Index")
cxx_exports = [