• Home
  • Raw
  • Download

Lines Matching refs:Handlers

4128 class Handlers;
4137 UPB_DECLARE_DERIVED_TYPE(upb::Handlers, upb::RefCounted,
4344 class upb::Handlers {
4377 static reffed_ptr<Handlers> New(const MessageDef *m);
4384 static reffed_ptr<const Handlers> NewFrozen(const MessageDef *m,
4406 static bool Freeze(Handlers*const* handlers, int n, Status* s);
4407 static bool Freeze(const std::vector<Handlers*>& handlers, Status* s);
4575 bool SetSubHandlers(const FieldDef* f, const Handlers* sub);
4576 const Handlers* GetSubHandlers(const FieldDef* f) const;
4580 const Handlers* GetSubHandlers(Selector startsubmsg) const;
4610 UPB_DISALLOW_POD_OPS(Handlers, upb::Handlers)
4710 void AddCleanup(Handlers* h) const {
4718 friend class Handlers;
5762 inline bool Handlers::SetValueHandler<vtype>( \
5764 const Handlers::utype ## Handler& handler) { \
5798 inline bool Handlers::Set##utype##Handler(const FieldDef *f, \
5929 inline reffed_ptr<Handlers> Handlers::New(const MessageDef *m) {
5931 return reffed_ptr<Handlers>(h, &h);
5933 inline reffed_ptr<const Handlers> Handlers::NewFrozen(
5937 return reffed_ptr<const Handlers>(h, &h);
5939 inline const Status* Handlers::status() {
5942 inline void Handlers::ClearError() {
5945 inline bool Handlers::Freeze(Status *s) {
5946 upb::Handlers* h = this;
5949 inline bool Handlers::Freeze(Handlers *const *handlers, int n, Status *s) {
5952 inline bool Handlers::Freeze(const std::vector<Handlers*>& h, Status* status) {
5953 return upb_handlers_freeze((Handlers* const*)&h[0], h.size(), status);
5955 inline const MessageDef *Handlers::message_def() const {
5958 inline bool Handlers::AddCleanup(void *p, upb_handlerfree *func) {
5961 inline bool Handlers::SetStartMessageHandler(
5962 const Handlers::StartMessageHandler &handler) {
5968 inline bool Handlers::SetEndMessageHandler(
5969 const Handlers::EndMessageHandler &handler) {
5975 inline bool Handlers::SetStartStringHandler(const FieldDef *f,
5982 inline bool Handlers::SetEndStringHandler(const FieldDef *f,
5989 inline bool Handlers::SetStringHandler(const FieldDef *f,
5996 inline bool Handlers::SetStartSequenceHandler(
6003 inline bool Handlers::SetStartSubMessageHandler(
6010 inline bool Handlers::SetEndSubMessageHandler(const FieldDef *f,
6017 inline bool Handlers::SetEndSequenceHandler(const FieldDef *f,
6024 inline bool Handlers::SetSubHandlers(const FieldDef *f, const Handlers *sub) {
6027 inline const Handlers *Handlers::GetSubHandlers(const FieldDef *f) const {
6030 inline const Handlers *Handlers::GetSubHandlers(Handlers::Selector sel) const {
6033 inline bool Handlers::GetSelector(const FieldDef *f, Handlers::Type type,
6034 Handlers::Selector *s) {
6037 inline Handlers::Selector Handlers::GetEndSelector(Handlers::Selector start) {
6040 inline Handlers::GenericFunction *Handlers::GetHandler(
6041 Handlers::Selector selector) {
6044 inline const void *Handlers::GetHandlerData(Handlers::Selector selector) {
6155 template <class T> Sink(const Handlers* handlers, T* closure);
6158 template <class T> void Reset(const Handlers* handlers, T* closure);
6188 bool PutInt32(Handlers::Selector s, int32_t val);
6189 bool PutInt64(Handlers::Selector s, int64_t val);
6190 bool PutUInt32(Handlers::Selector s, uint32_t val);
6191 bool PutUInt64(Handlers::Selector s, uint64_t val);
6192 bool PutFloat(Handlers::Selector s, float val);
6193 bool PutDouble(Handlers::Selector s, double val);
6194 bool PutBool(Handlers::Selector s, bool val);
6201 bool StartString(Handlers::Selector s, size_t size_hint, Sink* sub);
6202 size_t PutStringBuffer(Handlers::Selector s, const char *buf, size_t len,
6204 bool EndString(Handlers::Selector s);
6211 bool StartSubMessage(Handlers::Selector s, Sink* sub);
6212 bool EndSubMessage(Handlers::Selector s);
6220 bool StartSequence(Handlers::Selector s, Sink* sub);
6221 bool EndSequence(Handlers::Selector s);
6518 template <class T> Sink::Sink(const Handlers* handlers, T* closure) {
6522 inline void Sink::Reset(const Handlers* handlers, T* closure) {
6531 inline bool Sink::PutInt32(Handlers::Selector sel, int32_t val) {
6534 inline bool Sink::PutInt64(Handlers::Selector sel, int64_t val) {
6537 inline bool Sink::PutUInt32(Handlers::Selector sel, uint32_t val) {
6540 inline bool Sink::PutUInt64(Handlers::Selector sel, uint64_t val) {
6543 inline bool Sink::PutFloat(Handlers::Selector sel, float val) {
6546 inline bool Sink::PutDouble(Handlers::Selector sel, double val) {
6549 inline bool Sink::PutBool(Handlers::Selector sel, bool val) {
6552 inline bool Sink::StartString(Handlers::Selector sel, size_t size_hint,
6556 inline size_t Sink::PutStringBuffer(Handlers::Selector sel, const char *buf,
6560 inline bool Sink::EndString(Handlers::Selector sel) {
6563 inline bool Sink::StartSubMessage(Handlers::Selector sel, Sink* sub) {
6566 inline bool Sink::EndSubMessage(Handlers::Selector sel) {
6569 inline bool Sink::StartSequence(Handlers::Selector sel, Sink* sub) {
6572 inline bool Sink::EndSequence(Handlers::Selector sel) {
8760 static Reader* Create(Environment* env, const Handlers* handlers);
8770 static Handlers* NewHandlers(const void* owner);
8793 inline Reader* Reader::Create(Environment* e, const Handlers *h) {
9474 explicit DecoderMethodOptions(const Handlers* dest_handlers);
9499 const Handlers* dest_handlers() const;
9687 inline DecoderMethodOptions::DecoderMethodOptions(const Handlers* h) {
9694 inline const Handlers* DecoderMethod::dest_handlers() const {
10229 static Encoder* Create(Environment* env, const Handlers* handlers,
10236 static reffed_ptr<const Handlers> NewHandlers(const MessageDef* msg);
10260 inline Encoder* Encoder::Create(Environment* env, const Handlers* handlers,
10267 inline reffed_ptr<const Handlers> Encoder::NewHandlers(
10269 const Handlers* h = upb_pb_encoder_newhandlers(md, &h);
10270 return reffed_ptr<const Handlers>(h, &h);
10375 static TextPrinter *Create(Environment *env, const upb::Handlers *handlers,
10384 static reffed_ptr<const Handlers> NewHandlers(const MessageDef* md);
10407 const upb::Handlers *handlers,
10417 inline reffed_ptr<const Handlers> TextPrinter::NewHandlers(
10419 const Handlers* h = upb_textprinter_newhandlers(md, &h);
10420 return reffed_ptr<const Handlers>(h, &h);
10487 const Handlers* dest_handlers() const;
10533 inline const Handlers* ParserMethod::dest_handlers() const {
10583 static Printer* Create(Environment* env, const upb::Handlers* handlers,
10593 static reffed_ptr<const Handlers> NewHandlers(const upb::MessageDef* md,
10620 inline Printer* Printer::Create(Environment* env, const upb::Handlers* handlers,
10625 inline reffed_ptr<const Handlers> Printer::NewHandlers(
10627 const Handlers* h = upb_json_printer_newhandlers(
10629 return reffed_ptr<const Handlers>(h, &h);