Lines Matching refs:name
25 EnumDef::EnumDef(std::string name, int size) : TypeDef(name, size) {} in EnumDef() argument
27 void EnumDef::AddEntry(std::string name, uint32_t value) { in AddEntry() argument
28 if (!util::IsEnumCase(name)) { in AddEntry()
29 …ERROR() << __func__ << ": Enum " << name << "(" << value << ") should be all uppercase with unders… in AddEntry()
32 …ERROR() << __func__ << ": Value of " << name << "(" << value << ") is greater than the max possibl… in AddEntry()
36 constants_.insert(std::pair(value, name)); in AddEntry()
37 entries_.insert(name); in AddEntry()
40 PacketField* EnumDef::GetNewField(const std::string& name, ParseLocation loc) const { in GetNewField() argument
41 return new EnumField(name, *this, "What is this for", loc); in GetNewField()
44 bool EnumDef::HasEntry(std::string name) const { in HasEntry()
45 return entries_.count(name) != 0; in HasEntry()