Home
last modified time | relevance | path

Searched refs:e_ (Results 1 – 2 of 2) sorted by relevance

/system/bt/gd/packet/parser/
Denum_gen.cc23 EnumGen::EnumGen(EnumDef e) : e_(std::move(e)) {} in EnumGen()
27 stream << e_.name_; in GenDefinition()
28 stream << " : " << util::GetTypeForSize(e_.size_); in GenDefinition()
30 for (const auto& pair : e_.constants_) { in GenDefinition()
37 stream << "py::enum_<" << e_.name_ << ">(m, \"" << e_.name_ << "\")"; in GenDefinitionPybind11()
38 for (const auto& pair : e_.constants_) { in GenDefinitionPybind11()
39 stream << ".value(\"" << pair.second << "\", " << e_.name_ << "::" << pair.second << ")"; in GenDefinitionPybind11()
46 stream << "inline std::string " << e_.name_ << "Text(const " << e_.name_ << "& param) {"; in GenLogging()
48 for (const auto& pair : e_.constants_) { in GenLogging()
49 stream << "case " << e_.name_ << "::" << pair.second << ":"; in GenLogging()
[all …]
Denum_gen.h34 EnumDef e_; variable