Lines Matching refs:Handlers

3888 class Handlers;
3897 UPB_DECLARE_DERIVED_TYPE(upb::Handlers, upb::RefCounted,
4103 class upb::Handlers {
4136 static reffed_ptr<Handlers> New(const MessageDef *m);
4143 static reffed_ptr<const Handlers> NewFrozen(const MessageDef *m,
4165 static bool Freeze(Handlers*const* handlers, int n, Status* s);
4166 static bool Freeze(const std::vector<Handlers*>& handlers, Status* s);
4334 bool SetSubHandlers(const FieldDef* f, const Handlers* sub);
4335 const Handlers* GetSubHandlers(const FieldDef* f) const;
4339 const Handlers* GetSubHandlers(Selector startsubmsg) const;
4369 UPB_DISALLOW_POD_OPS(Handlers, upb::Handlers)
4469 void AddCleanup(Handlers* h) const {
4477 friend class Handlers;
5489 inline bool Handlers::SetValueHandler<vtype>( \
5491 const Handlers::utype ## Handler& handler) { \
5525 inline bool Handlers::Set##utype##Handler(const FieldDef *f, \
5656 inline reffed_ptr<Handlers> Handlers::New(const MessageDef *m) {
5658 return reffed_ptr<Handlers>(h, &h);
5660 inline reffed_ptr<const Handlers> Handlers::NewFrozen(
5664 return reffed_ptr<const Handlers>(h, &h);
5666 inline const Status* Handlers::status() {
5669 inline void Handlers::ClearError() {
5672 inline bool Handlers::Freeze(Status *s) {
5673 upb::Handlers* h = this;
5676 inline bool Handlers::Freeze(Handlers *const *handlers, int n, Status *s) {
5679 inline bool Handlers::Freeze(const std::vector<Handlers*>& h, Status* status) {
5680 return upb_handlers_freeze((Handlers* const*)&h[0], h.size(), status);
5682 inline const MessageDef *Handlers::message_def() const {
5685 inline bool Handlers::AddCleanup(void *p, upb_handlerfree *func) {
5688 inline bool Handlers::SetStartMessageHandler(
5689 const Handlers::StartMessageHandler &handler) {
5695 inline bool Handlers::SetEndMessageHandler(
5696 const Handlers::EndMessageHandler &handler) {
5702 inline bool Handlers::SetStartStringHandler(const FieldDef *f,
5709 inline bool Handlers::SetEndStringHandler(const FieldDef *f,
5716 inline bool Handlers::SetStringHandler(const FieldDef *f,
5723 inline bool Handlers::SetStartSequenceHandler(
5730 inline bool Handlers::SetStartSubMessageHandler(
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 {
5757 inline const Handlers *Handlers::GetSubHandlers(Handlers::Selector sel) const {
5760 inline bool Handlers::GetSelector(const FieldDef *f, Handlers::Type type,
5761 Handlers::Selector *s) {
5764 inline Handlers::Selector Handlers::GetEndSelector(Handlers::Selector start) {
5767 inline Handlers::GenericFunction *Handlers::GetHandler(
5768 Handlers::Selector selector) {
5771 inline const void *Handlers::GetHandlerData(Handlers::Selector selector) {
5880 template <class T> Sink(const Handlers* handlers, T* closure);
5883 template <class T> void Reset(const Handlers* handlers, T* closure);
5913 bool PutInt32(Handlers::Selector s, int32_t val);
5914 bool PutInt64(Handlers::Selector s, int64_t val);
5915 bool PutUInt32(Handlers::Selector s, uint32_t val);
5916 bool PutUInt64(Handlers::Selector s, uint64_t val);
5917 bool PutFloat(Handlers::Selector s, float val);
5918 bool PutDouble(Handlers::Selector s, double val);
5919 bool PutBool(Handlers::Selector s, bool val);
5926 bool StartString(Handlers::Selector s, size_t size_hint, Sink* sub);
5927 size_t PutStringBuffer(Handlers::Selector s, const char *buf, size_t len,
5929 bool EndString(Handlers::Selector s);
5936 bool StartSubMessage(Handlers::Selector s, Sink* sub);
5937 bool EndSubMessage(Handlers::Selector s);
5945 bool StartSequence(Handlers::Selector s, Sink* sub);
5946 bool EndSequence(Handlers::Selector s);
6240 template <class T> Sink::Sink(const Handlers* handlers, T* closure) {
6244 inline void Sink::Reset(const Handlers* handlers, T* closure) {
6253 inline bool Sink::PutInt32(Handlers::Selector sel, int32_t val) {
6256 inline bool Sink::PutInt64(Handlers::Selector sel, int64_t val) {
6259 inline bool Sink::PutUInt32(Handlers::Selector sel, uint32_t val) {
6262 inline bool Sink::PutUInt64(Handlers::Selector sel, uint64_t val) {
6265 inline bool Sink::PutFloat(Handlers::Selector sel, float val) {
6268 inline bool Sink::PutDouble(Handlers::Selector sel, double val) {
6271 inline bool Sink::PutBool(Handlers::Selector sel, bool val) {
6274 inline bool Sink::StartString(Handlers::Selector sel, size_t size_hint,
6278 inline size_t Sink::PutStringBuffer(Handlers::Selector sel, const char *buf,
6282 inline bool Sink::EndString(Handlers::Selector sel) {
6285 inline bool Sink::StartSubMessage(Handlers::Selector sel, Sink* sub) {
6288 inline bool Sink::EndSubMessage(Handlers::Selector sel) {
6291 inline bool Sink::StartSequence(Handlers::Selector sel, Sink* sub) {
6294 inline bool Sink::EndSequence(Handlers::Selector sel) {
6358 static bool Set(Handlers *h, const FieldDef *f, size_t ofs, int32_t hasbit);
6362 static const Data* GetData(const Handlers* h, Handlers::Selector s,
6383 inline bool Shim::Set(Handlers* h, const FieldDef* f, size_t ofs,
6387 inline const Shim::Data* Shim::GetData(const Handlers* h, Handlers::Selector s,
6623 static Reader* Create(Environment* env, const Handlers* handlers);
6633 static Handlers* NewHandlers(const void* owner);
6656 inline Reader* Reader::Create(Environment* e, const Handlers *h) {
7382 explicit DecoderMethodOptions(const Handlers* dest_handlers);
7407 const Handlers* dest_handlers() const;
7595 inline DecoderMethodOptions::DecoderMethodOptions(const Handlers* h) {
7602 inline const Handlers* DecoderMethod::dest_handlers() const {
8167 static Encoder* Create(Environment* env, const Handlers* handlers,
8174 static reffed_ptr<const Handlers> NewHandlers(const MessageDef* msg);
8198 inline Encoder* Encoder::Create(Environment* env, const Handlers* handlers,
8205 inline reffed_ptr<const Handlers> Encoder::NewHandlers(
8207 const Handlers* h = upb_pb_encoder_newhandlers(md, &h);
8208 return reffed_ptr<const Handlers>(h, &h);
8313 static TextPrinter *Create(Environment *env, const upb::Handlers *handlers,
8322 static reffed_ptr<const Handlers> NewHandlers(const MessageDef* md);
8345 const upb::Handlers *handlers,
8355 inline reffed_ptr<const Handlers> TextPrinter::NewHandlers(
8357 const Handlers* h = upb_textprinter_newhandlers(md, &h);
8358 return reffed_ptr<const Handlers>(h, &h);
8424 const Handlers* dest_handlers() const;
8466 inline const Handlers* ParserMethod::dest_handlers() const {
8516 static Printer* Create(Environment* env, const upb::Handlers* handlers,
8526 static reffed_ptr<const Handlers> NewHandlers(const upb::MessageDef* md,
8553 inline Printer* Printer::Create(Environment* env, const upb::Handlers* handlers,
8558 inline reffed_ptr<const Handlers> Printer::NewHandlers(
8560 const Handlers* h = upb_json_printer_newhandlers(
8562 return reffed_ptr<const Handlers>(h, &h);