Lines Matching refs:FieldDef
1656 class FieldDef;
1832 UPB_DECLARE_DEF_TYPE(upb::FieldDef, fielddef, FIELD)
1913 class upb::FieldDef {
1934 static reffed_ptr<FieldDef> New();
1941 FieldDef* Dup(const void* owner) const;
2188 UPB_DISALLOW_POD_OPS(FieldDef, upb::FieldDef)
2342 bool AddField(FieldDef* f, Status* s);
2343 bool AddField(const reffed_ptr<FieldDef>& f, Status* s);
2366 FieldDef* FindFieldByNumber(uint32_t number);
2367 FieldDef* FindFieldByName(const char *name, size_t len);
2368 const FieldDef* FindFieldByNumber(uint32_t number) const;
2369 const FieldDef* FindFieldByName(const char* name, size_t len) const;
2372 FieldDef* FindFieldByName(const char *name) {
2375 const FieldDef* FindFieldByName(const char *name) const {
2380 FieldDef* FindFieldByName(const T& str) {
2384 const FieldDef* FindFieldByName(const T& str) const {
2423 : public std::iterator<std::forward_iterator_tag, FieldDef*> {
2429 FieldDef* operator*() const;
2438 : public std::iterator<std::forward_iterator_tag, const FieldDef*> {
2444 const FieldDef* operator*() const;
2454 : public std::iterator<std::forward_iterator_tag, FieldDef*> {
2469 : public std::iterator<std::forward_iterator_tag, const FieldDef*> {
2815 bool AddField(FieldDef* field, Status* s);
2816 bool AddField(const reffed_ptr<FieldDef>& field, Status* s);
2819 const FieldDef* FindFieldByName(const char* name, size_t len) const;
2820 FieldDef* FindFieldByName(const char* name, size_t len);
2821 const FieldDef* FindFieldByName(const char* name) const {
2824 FieldDef* FindFieldByName(const char* name) {
2829 FieldDef* FindFieldByName(const T& str) {
2833 const FieldDef* FindFieldByName(const T& str) const {
2838 const FieldDef* FindFieldByNumber(uint32_t num) const;
2845 class iterator : public std::iterator<std::forward_iterator_tag, FieldDef*> {
2851 FieldDef* operator*() const;
2860 : public std::iterator<std::forward_iterator_tag, const FieldDef*> {
2866 const FieldDef* operator*() const;
2979 bool AddExtension(FieldDef* f, Status* s);
3071 inline bool FieldDef::CheckType(int32_t val) {
3074 inline bool FieldDef::CheckLabel(int32_t val) {
3077 inline bool FieldDef::CheckDescriptorType(int32_t val) {
3080 inline bool FieldDef::CheckIntegerFormat(int32_t val) {
3083 inline FieldDef::Type FieldDef::ConvertType(int32_t val) {
3085 return static_cast<FieldDef::Type>(val);
3087 inline FieldDef::Label FieldDef::ConvertLabel(int32_t val) {
3089 return static_cast<FieldDef::Label>(val);
3091 inline FieldDef::DescriptorType FieldDef::ConvertDescriptorType(int32_t val) {
3093 return static_cast<FieldDef::DescriptorType>(val);
3095 inline FieldDef::IntegerFormat FieldDef::ConvertIntegerFormat(int32_t val) {
3097 return static_cast<FieldDef::IntegerFormat>(val);
3100 inline reffed_ptr<FieldDef> FieldDef::New() {
3102 return reffed_ptr<FieldDef>(f, &f);
3104 inline FieldDef* FieldDef::Dup(const void* owner) const {
3107 inline const char* FieldDef::full_name() const {
3110 inline bool FieldDef::set_full_name(const char* fullname, Status* s) {
3113 inline bool FieldDef::set_full_name(const std::string& fullname, Status* s) {
3116 inline bool FieldDef::type_is_set() const {
3119 inline FieldDef::Type FieldDef::type() const { return upb_fielddef_type(this); }
3120 inline FieldDef::DescriptorType FieldDef::descriptor_type() const {
3123 inline FieldDef::Label FieldDef::label() const {
3126 inline uint32_t FieldDef::number() const { return upb_fielddef_number(this); }
3127 inline const char* FieldDef::name() const { return upb_fielddef_name(this); }
3128 inline bool FieldDef::is_extension() const {
3131 inline size_t FieldDef::GetJsonName(char* buf, size_t len) const {
3134 inline bool FieldDef::lazy() const {
3137 inline void FieldDef::set_lazy(bool lazy) {
3140 inline bool FieldDef::packed() const {
3143 inline uint32_t FieldDef::index() const {
3146 inline void FieldDef::set_packed(bool packed) {
3149 inline const MessageDef* FieldDef::containing_type() const {
3152 inline const OneofDef* FieldDef::containing_oneof() const {
3155 inline const char* FieldDef::containing_type_name() {
3158 inline bool FieldDef::set_number(uint32_t number, Status* s) {
3161 inline bool FieldDef::set_name(const char *name, Status* s) {
3164 inline bool FieldDef::set_name(const std::string& name, Status* s) {
3167 inline bool FieldDef::set_json_name(const char *name, Status* s) {
3170 inline bool FieldDef::set_json_name(const std::string& name, Status* s) {
3173 inline void FieldDef::clear_json_name() {
3176 inline bool FieldDef::set_containing_type_name(const char *name, Status* s) {
3179 inline bool FieldDef::set_containing_type_name(const std::string &name,
3183 inline void FieldDef::set_type(upb_fieldtype_t type) {
3186 inline void FieldDef::set_is_extension(bool is_extension) {
3189 inline void FieldDef::set_descriptor_type(FieldDef::DescriptorType type) {
3192 inline void FieldDef::set_label(upb_label_t label) {
3195 inline bool FieldDef::IsSubMessage() const {
3198 inline bool FieldDef::IsString() const { return upb_fielddef_isstring(this); }
3199 inline bool FieldDef::IsSequence() const { return upb_fielddef_isseq(this); }
3200 inline bool FieldDef::IsMap() const { return upb_fielddef_ismap(this); }
3201 inline int64_t FieldDef::default_int64() const {
3204 inline int32_t FieldDef::default_int32() const {
3207 inline uint64_t FieldDef::default_uint64() const {
3210 inline uint32_t FieldDef::default_uint32() const {
3213 inline bool FieldDef::default_bool() const {
3216 inline float FieldDef::default_float() const {
3219 inline double FieldDef::default_double() const {
3222 inline const char* FieldDef::default_string(size_t* len) const {
3225 inline void FieldDef::set_default_int64(int64_t value) {
3228 inline void FieldDef::set_default_int32(int32_t value) {
3231 inline void FieldDef::set_default_uint64(uint64_t value) {
3234 inline void FieldDef::set_default_uint32(uint32_t value) {
3237 inline void FieldDef::set_default_bool(bool value) {
3240 inline void FieldDef::set_default_float(float value) {
3243 inline void FieldDef::set_default_double(double value) {
3246 inline bool FieldDef::set_default_string(const void *str, size_t len,
3250 inline bool FieldDef::set_default_string(const std::string& str, Status* s) {
3253 inline void FieldDef::set_default_cstr(const char* str, Status* s) {
3256 inline bool FieldDef::HasSubDef() const { return upb_fielddef_hassubdef(this); }
3257 inline const Def* FieldDef::subdef() const { return upb_fielddef_subdef(this); }
3258 inline const MessageDef *FieldDef::message_subdef() const {
3261 inline const EnumDef *FieldDef::enum_subdef() const {
3264 inline const char* FieldDef::subdef_name() const {
3267 inline bool FieldDef::set_subdef(const Def* subdef, Status* s) {
3270 inline bool FieldDef::set_enum_subdef(const EnumDef* subdef, Status* s) {
3273 inline bool FieldDef::set_message_subdef(const MessageDef* subdef, Status* s) {
3276 inline bool FieldDef::set_subdef_name(const char* name, Status* s) {
3279 inline bool FieldDef::set_subdef_name(const std::string& name, Status* s) {
3317 inline bool MessageDef::AddField(const reffed_ptr<FieldDef>& f, Status* s) {
3326 inline FieldDef* MessageDef::FindFieldByNumber(uint32_t number) {
3329 inline FieldDef* MessageDef::FindFieldByName(const char* name, size_t len) {
3332 inline const FieldDef* MessageDef::FindFieldByNumber(uint32_t number) const {
3335 inline const FieldDef *MessageDef::FindFieldByName(const char *name,
3390 inline FieldDef* MessageDef::field_iterator::operator*() const {
3415 inline const FieldDef* MessageDef::const_field_iterator::operator*() const {
3554 inline bool OneofDef::AddField(FieldDef* field, Status* s) {
3557 inline bool OneofDef::AddField(const reffed_ptr<FieldDef>& field, Status* s) {
3560 inline const FieldDef* OneofDef::FindFieldByName(const char* name,
3564 inline const FieldDef* OneofDef::FindFieldByNumber(uint32_t num) const {
3584 inline FieldDef* OneofDef::iterator::operator*() const {
3604 inline const FieldDef* OneofDef::const_iterator::operator*() const {
3663 inline bool FileDef::AddExtension(FieldDef* f, Status* s) {
4216 bool SetInt32Handler (const FieldDef* f, const Int32Handler& h);
4217 bool SetInt64Handler (const FieldDef* f, const Int64Handler& h);
4218 bool SetUInt32Handler(const FieldDef* f, const UInt32Handler& h);
4219 bool SetUInt64Handler(const FieldDef* f, const UInt64Handler& h);
4220 bool SetFloatHandler (const FieldDef* f, const FloatHandler& h);
4221 bool SetDoubleHandler(const FieldDef* f, const DoubleHandler& h);
4222 bool SetBoolHandler (const FieldDef* f, const BoolHandler& h);
4230 const FieldDef *f,
4269 bool SetStartStringHandler(const FieldDef* f, const StartStringHandler& h);
4270 bool SetStringHandler(const FieldDef* f, const StringHandler& h);
4271 bool SetEndStringHandler(const FieldDef* f, const EndFieldHandler& h);
4287 bool SetStartSequenceHandler(const FieldDef* f, const StartFieldHandler& h);
4304 bool SetStartSubMessageHandler(const FieldDef* f, const StartFieldHandler& h);
4317 bool SetEndSubMessageHandler(const FieldDef *f, const EndFieldHandler &h);
4330 bool SetEndSequenceHandler(const FieldDef* f, const EndFieldHandler& h);
4334 bool SetSubHandlers(const FieldDef* f, const Handlers* sub);
4335 const Handlers* GetSubHandlers(const FieldDef* f) const;
4347 static bool GetSelector(const FieldDef* f, Type type, Selector* s);
5490 const FieldDef *f, \
5525 inline bool Handlers::Set##utype##Handler(const FieldDef *f, \
5702 inline bool Handlers::SetStartStringHandler(const FieldDef *f,
5709 inline bool Handlers::SetEndStringHandler(const FieldDef *f,
5716 inline bool Handlers::SetStringHandler(const FieldDef *f,
5724 const FieldDef *f, const StartFieldHandler &handler) {
5731 const FieldDef *f, const StartFieldHandler &handler) {
5737 inline bool Handlers::SetEndSubMessageHandler(const FieldDef *f,
5744 inline bool Handlers::SetEndSequenceHandler(const FieldDef *f,
5751 inline bool Handlers::SetSubHandlers(const FieldDef *f, const Handlers *sub) {
5754 inline const Handlers *Handlers::GetSubHandlers(const FieldDef *f) const {
5760 inline bool Handlers::GetSelector(const FieldDef *f, Handlers::Type type,
6358 static bool Set(Handlers *h, const FieldDef *f, size_t ofs, int32_t hasbit);
6363 FieldDef::Type* type);
6383 inline bool Shim::Set(Handlers* h, const FieldDef* f, size_t ofs,
6388 FieldDef::Type* type) {