Home | History | Annotate | Download | only in protobuf_c

Lines Matching defs:RefCounted

26 ** upb::RefCounted (upb_refcounted)
1333 class RefCounted;
1338 UPB_DECLARE_TYPE(upb::RefCounted, upb_refcounted)
1344 class upb::RefCounted {
1350 * already own a ref (and should not itself be a refcounted object if the ref
1369 UPB_DISALLOW_POD_OPS(RefCounted, upb::RefCounted)
1446 return upb::upcast_to<const upb::RefCounted>(this)->IsFrozen(); \
1449 return upb::upcast_to<const upb::RefCounted>(this)->Ref(owner); \
1452 return upb::upcast_to<const upb::RefCounted>(this)->Unref(owner); \
1455 return upb::upcast_to<const upb::RefCounted>(this)->DonateRef(from, to); \
1458 return upb::upcast_to<const upb::RefCounted>(this)->CheckRef(owner); \
1476 /* Initializes the refcounted with a single ref for the given owner. Returns
1482 /* Adds a ref from one refcounted object to another ("from" must not already
1515 /* Shared by all compiled-in refcounted objects. */
1523 inline bool RefCounted::IsFrozen() const {
1526 inline void RefCounted::Ref(const void *owner) const {
1529 inline void RefCounted::Unref(const void *owner) const {
1532 inline void RefCounted::DonateRef(const void *from, const void *to) const {
1535 inline void RefCounted::CheckRef(const void *owner) const {
1548 /* Provides RAII semantics for upb refcounted objects. Each reffed_ptr owns a
1663 UPB_DECLARE_DERIVED_TYPE(upb::Def, upb::RefCounted, upb_def, upb_refcounted)
1664 UPB_DECLARE_DERIVED_TYPE(upb::OneofDef, upb::RefCounted, upb_oneofdef,
1666 UPB_DECLARE_DERIVED_TYPE(upb::FileDef, upb::RefCounted, upb_filedef,
1695 /* The base class of all defs. Its base is upb::RefCounted (use upb::upcast()
1703 /* upb::RefCounted methods like Ref()/Unref(). */
1823 UPB_DEFINE_CLASS2(cppname, upb::Def, upb::RefCounted, cppmethods, \
1828 UPB_DECLARE_DERIVED_TYPE2(cppname, upb::Def, upb::RefCounted, \
1943 /* upb::RefCounted methods like Ref()/Unref(). */
2307 /* upb::RefCounted methods like Ref()/Unref(). */
2660 /* upb::RefCounted methods like Ref()/Unref(). */
2788 /* upb::RefCounted methods like Ref()/Unref(). */
2942 /* upb::RefCounted methods like Ref()/Unref(). */
3897 UPB_DECLARE_DERIVED_TYPE(upb::Handlers, upb::RefCounted,
4147 /* Functionality from upb::RefCounted. */
4540 /* Include refcounted methods like upb_handlers_ref(). */
6416 UPB_DECLARE_DERIVED_TYPE(upb::SymbolTable, upb::RefCounted,
6434 /* Include RefCounted base methods. */
6525 /* Include refcounted methods like upb_symtab_ref(). */
7363 UPB_DECLARE_DERIVED_TYPE(upb::pb::DecoderMethod, upb::RefCounted,
7547 /* Include refcounted methods like upb_pbdecodermethod_ref(). */
7650 UPB_DECLARE_DERIVED_TYPE(upb::pb::MessageGroup, upb::RefCounted,
8387 UPB_DECLARE_DERIVED_TYPE(upb::json::ParserMethod, upb::RefCounted,
8449 /* Include refcounted methods like upb_json_parsermethod_ref(). */