Lines Matching refs:name
32 void AddTypeDef(std::string name, TypeDef* def) { in AddTypeDef() argument
33 auto it = type_defs_.find(name); in AddTypeDef()
35 ERROR() << "Redefinition of Type " << name; in AddTypeDef()
37 type_defs_.insert(std::pair(name, def)); in AddTypeDef()
38 type_defs_queue_.push_back(std::pair(name, def)); in AddTypeDef()
41 TypeDef* GetTypeDef(const std::string& name) { in GetTypeDef() argument
42 auto it = type_defs_.find(name); in GetTypeDef()
50 void AddPacketDef(std::string name, PacketDef def) { in AddPacketDef() argument
51 auto it = packet_defs_.find(name); in AddPacketDef()
53 ERROR() << "Redefinition of Packet " << name; in AddPacketDef()
55 packet_defs_.insert(std::pair(name, def)); in AddPacketDef()
56 packet_defs_queue_.push_back(std::pair(name, def)); in AddPacketDef()
59 PacketDef* GetPacketDef(const std::string& name) { in GetPacketDef() argument
60 auto it = packet_defs_.find(name); in GetPacketDef()
68 void AddGroupDef(std::string name, FieldList* group_def) { in AddGroupDef() argument
69 auto it = group_defs_.find(name); in AddGroupDef()
71 ERROR() << "Redefinition of group " << name; in AddGroupDef()
73 group_defs_.insert(std::pair(name, group_def)); in AddGroupDef()
76 FieldList* GetGroupDef(std::string name) { in GetGroupDef() argument
77 if (group_defs_.find(name) == group_defs_.end()) { in GetGroupDef()
81 return group_defs_.at(name); in GetGroupDef()