Home | History | Annotate | Download | only in protobuf_c

Lines Matching refs:enumdef

9 ** - upb::EnumDef (upb_enumdef): describes an enum.
1655 class EnumDef;
1834 UPB_DECLARE_DEF_TYPE(upb::EnumDef, enumdef, ENUM)
2073 * default is specified, the "default default" comes from the EnumDef.
2077 * set explicitly, or if we could get the "default default" from the EnumDef.
2078 * Also if you explicitly set the name and we find the number in the EnumDef */
2083 * upb::MessageDef or upb::EnumDef that defines their type. Note that when
2092 const EnumDef* enum_subdef() const;
2182 bool set_enum_subdef(const EnumDef* subdef, Status* s);
2647 /* upb::EnumDef ***************************************************************/
2655 class upb::EnumDef {
2658 static reffed_ptr<EnumDef> New();
2669 /* Call to freeze this EnumDef. */
2700 /* Returns a new EnumDef with all the same values. The new EnumDef will be
2702 EnumDef* Dup(const void* owner) const;
2710 explicit Iterator(const EnumDef*);
2722 UPB_DISALLOW_POD_OPS(EnumDef, upb::EnumDef)
2978 bool AddEnum(EnumDef* e, Status* s);
3261 inline const EnumDef *FieldDef::enum_subdef() const {
3270 inline bool FieldDef::set_enum_subdef(const EnumDef* subdef, Status* s) {
3479 inline reffed_ptr<EnumDef> EnumDef::New() {
3481 return reffed_ptr<EnumDef>(e, &e);
3483 inline const char* EnumDef::full_name() const {
3486 inline const char* EnumDef::name() const {
3489 inline bool EnumDef::set_full_name(const char* fullname, Status* s) {
3492 inline bool EnumDef::set_full_name(const std::string& fullname, Status* s) {
3495 inline bool EnumDef::Freeze(Status* status) {
3498 inline int32_t EnumDef::default_value() const {
3501 inline bool EnumDef::set_default_value(int32_t val, Status* status) {
3504 inline int EnumDef::value_count() const { return upb_enumdef_numvals(this); }
3505 inline bool EnumDef::AddValue(const char* name, int32_t num, Status* status) {
3508 inline bool EnumDef::AddValue(const std::string& name, int32_t num,
3512 inline bool EnumDef::FindValueByName(const char* name, int32_t *num) const {
3515 inline const char* EnumDef::FindValueByNumber(int32_t num) const {
3518 inline EnumDef* EnumDef::Dup(const void* owner) const {
3522 inline EnumDef::Iterator::Iterator(const EnumDef* e) {
3525 inline int32_t EnumDef::Iterator::number() {
3528 inline const char* EnumDef::Iterator::name() {
3531 inline bool EnumDef::Iterator::Done() { return upb_enum_done(&iter_); }
3532 inline void EnumDef::Iterator::Next() { return upb_enum_next(&iter_); }
3660 inline bool FileDef::AddEnum(EnumDef* e, Status* s) {
3741 } sub; /* The msgdef or enumdef for this field, if upb_hassubdef(f). */
6445 * Unlike with upb::MessageDef/upb::EnumDef/etc, freezing a SymbolTable is not
6467 const EnumDef* LookupEnum(const char *sym) const;
6762 /* EnumDefs: call these functions to get a ref to an enumdef. */
7073 class Label : public ::upb::reffed_ptr<const ::upb::EnumDef> {
7075 Label(const ::upb::EnumDef* e, const void *ref_donor = NULL)
7080 const ::upb::EnumDef* e = upbdefs_google_protobuf_FieldDescriptorProto_Label_get(&e);
7085 class Type : public ::upb::reffed_ptr<const ::upb::EnumDef> {
7087 Type(const ::upb::EnumDef* e, const void *ref_donor = NULL)
7092 const ::upb::EnumDef* e = upbdefs_google_protobuf_FieldDescriptorProto_Type_get(&e);
7110 class CType : public ::upb::reffed_ptr<const ::upb::EnumDef> {
7112 CType(const ::upb::EnumDef* e, const void *ref_donor = NULL)
7117 const ::upb::EnumDef* e = upbdefs_google_protobuf_FieldOptions_CType_get(&e);
7122 class JSType : public ::upb::reffed_ptr<const ::upb::EnumDef> {
7124 JSType(const ::upb::EnumDef* e, const void *ref_donor = NULL)
7129 const ::upb::EnumDef* e = upbdefs_google_protobuf_FieldOptions_JSType_get(&e);
7173 class OptimizeMode : public ::upb::reffed_ptr<const ::upb::EnumDef> {
7175 OptimizeMode(const ::upb::EnumDef* e, const void *ref_donor = NULL)
7180 const ::upb::EnumDef* e = upbdefs_google_protobuf_FileOptions_OptimizeMode_get(&e);