Public Types | Public Member Functions | Static Protected Member Functions | Private Member Functions | Friends | List of all members
google::protobuf::MessageLite Class Referenceabstract

#include <message_lite.h>

Inheritance diagram for google::protobuf::MessageLite:
Inheritance graph
[legend]

Public Types

enum  ParseFlags {
  kMerge = 0, kParse = 1, kMergePartial = 2, kParsePartial = 3,
  kMergeWithAliasing = 4, kParseWithAliasing = 5, kMergePartialWithAliasing = 6, kParsePartialWithAliasing = 7
}
 

Public Member Functions

bool AppendPartialToString (std::string *output) const
 
bool AppendToString (std::string *output) const
 
int ByteSize () const
 
virtual size_t ByteSizeLong () const =0
 
virtual void CheckTypeAndMergeFrom (const MessageLite &other)=0
 
virtual void Clear ()=0
 
std::string DebugString () const
 
virtual Arena * GetArena () const
 
virtual int GetCachedSize () const =0
 
virtual voidGetMaybeArenaPointer () const
 
virtual std::string GetTypeName () const =0
 
virtual std::string InitializationErrorString () const
 
virtual uint8InternalSerializeWithCachedSizesToArray (uint8 *target) const
 
virtual bool IsInitialized () const =0
 
bool MergeFromBoundedZeroCopyStream (io::ZeroCopyInputStream *input, int size)
 
bool MergeFromCodedStream (io::CodedInputStream *input)
 
bool MergeFromString (const std::string &data)
 
bool MergePartialFromBoundedZeroCopyStream (io::ZeroCopyInputStream *input, int size)
 
virtual bool MergePartialFromCodedStream (io::CodedInputStream *input)=0
 
 MessageLite ()
 
virtual MessageLiteNew () const =0
 
virtual MessageLiteNew (Arena *arena) const
 
template<ParseFlags flags, typename T >
bool ParseFrom (const T &input)
 
bool ParseFromArray (const void *data, int size)
 
bool ParseFromBoundedZeroCopyStream (io::ZeroCopyInputStream *input, int size)
 
bool ParseFromCodedStream (io::CodedInputStream *input)
 
bool ParseFromFileDescriptor (int file_descriptor)
 
bool ParseFromIstream (std::istream *input)
 
bool ParseFromString (const std::string &data)
 
bool ParseFromZeroCopyStream (io::ZeroCopyInputStream *input)
 
bool ParsePartialFromArray (const void *data, int size)
 
bool ParsePartialFromBoundedZeroCopyStream (io::ZeroCopyInputStream *input, int size)
 
bool ParsePartialFromCodedStream (io::CodedInputStream *input)
 
bool ParsePartialFromFileDescriptor (int file_descriptor)
 
bool ParsePartialFromIstream (std::istream *input)
 
bool ParsePartialFromString (const std::string &data)
 
bool ParsePartialFromZeroCopyStream (io::ZeroCopyInputStream *input)
 
std::string SerializeAsString () const
 
std::string SerializePartialAsString () const
 
bool SerializePartialToArray (void *data, int size) const
 
bool SerializePartialToCodedStream (io::CodedOutputStream *output) const
 
bool SerializePartialToFileDescriptor (int file_descriptor) const
 
bool SerializePartialToOstream (std::ostream *output) const
 
bool SerializePartialToString (std::string *output) const
 
bool SerializePartialToZeroCopyStream (io::ZeroCopyOutputStream *output) const
 
bool SerializeToArray (void *data, int size) const
 
bool SerializeToCodedStream (io::CodedOutputStream *output) const
 
bool SerializeToFileDescriptor (int file_descriptor) const
 
bool SerializeToOstream (std::ostream *output) const
 
bool SerializeToString (std::string *output) const
 
bool SerializeToZeroCopyStream (io::ZeroCopyOutputStream *output) const
 
virtual void SerializeWithCachedSizes (io::CodedOutputStream *output) const
 
virtual uint8SerializeWithCachedSizesToArray (uint8 *target) const
 
std::string ShortDebugString () const
 
std::string Utf8DebugString () const
 
virtual ~MessageLite ()
 

Static Protected Member Functions

template<typename T >
static const internal::RepeatedPtrFieldBaseCastToBase (const RepeatedPtrField< T > &repeated)
 
template<typename T >
static internal::RepeatedPtrFieldBaseCastToBase (RepeatedPtrField< T > *repeated)
 
template<typename T >
static TCreateMaybeMessage (Arena *arena)
 

Private Member Functions

 GOOGLE_DISALLOW_EVIL_CONSTRUCTORS (MessageLite)
 
virtual const voidInternalGetTable () const
 
bool IsInitializedWithErrors () const
 
void LogInitializationErrorMessage () const
 

Friends

class internal::WeakFieldMap
 
class internal::WireFormatLite
 
class Message
 

Detailed Description

Definition at line 183 of file message_lite.h.

Member Enumeration Documentation

◆ ParseFlags

Enumerator
kMerge 
kParse 
kMergePartial 
kParsePartial 
kMergeWithAliasing 
kParseWithAliasing 
kMergePartialWithAliasing 
kParsePartialWithAliasing 

Definition at line 466 of file message_lite.h.

Constructor & Destructor Documentation

◆ MessageLite()

google::protobuf::MessageLite::MessageLite ( )
inline

Definition at line 185 of file message_lite.h.

◆ ~MessageLite()

virtual google::protobuf::MessageLite::~MessageLite ( )
inlinevirtual

Definition at line 186 of file message_lite.h.

Member Function Documentation

◆ AppendPartialToString()

bool google::protobuf::MessageLite::AppendPartialToString ( std::string output) const

Definition at line 447 of file message_lite.cc.

◆ AppendToString()

bool google::protobuf::MessageLite::AppendToString ( std::string output) const

Definition at line 442 of file message_lite.cc.

◆ ByteSize()

int google::protobuf::MessageLite::ByteSize ( ) const
inline

Definition at line 405 of file message_lite.h.

◆ ByteSizeLong()

virtual size_t google::protobuf::MessageLite::ByteSizeLong ( ) const
pure virtual

◆ CastToBase() [1/2]

template<typename T >
static const internal::RepeatedPtrFieldBase& google::protobuf::MessageLite::CastToBase ( const RepeatedPtrField< T > &  repeated)
inlinestaticprotected

Definition at line 455 of file message_lite.h.

◆ CastToBase() [2/2]

template<typename T >
static internal::RepeatedPtrFieldBase* google::protobuf::MessageLite::CastToBase ( RepeatedPtrField< T > *  repeated)
inlinestaticprotected

Definition at line 450 of file message_lite.h.

◆ CheckTypeAndMergeFrom()

virtual void google::protobuf::MessageLite::CheckTypeAndMergeFrom ( const MessageLite other)
pure virtual

◆ Clear()

virtual void google::protobuf::MessageLite::Clear ( )
pure virtual

◆ CreateMaybeMessage()

template<typename T >
static T* google::protobuf::MessageLite::CreateMaybeMessage ( Arena *  arena)
inlinestaticprotected

Definition at line 461 of file message_lite.h.

◆ DebugString()

std::string google::protobuf::MessageLite::DebugString ( ) const

Definition at line 67 of file message_lite.cc.

◆ GetArena()

virtual Arena* google::protobuf::MessageLite::GetArena ( ) const
inlinevirtual

◆ GetCachedSize()

virtual int google::protobuf::MessageLite::GetCachedSize ( ) const
pure virtual

◆ GetMaybeArenaPointer()

virtual void* google::protobuf::MessageLite::GetMaybeArenaPointer ( ) const
inlinevirtual

Definition at line 217 of file message_lite.h.

◆ GetTypeName()

virtual std::string google::protobuf::MessageLite::GetTypeName ( ) const
pure virtual

◆ GOOGLE_DISALLOW_EVIL_CONSTRUCTORS()

google::protobuf::MessageLite::GOOGLE_DISALLOW_EVIL_CONSTRUCTORS ( MessageLite  )
private

◆ InitializationErrorString()

std::string google::protobuf::MessageLite::InitializationErrorString ( ) const
virtual

Reimplemented in google::protobuf::Message.

Definition at line 63 of file message_lite.cc.

◆ InternalGetTable()

virtual const void* google::protobuf::MessageLite::InternalGetTable ( ) const
inlineprivatevirtual

Definition at line 482 of file message_lite.h.

◆ InternalSerializeWithCachedSizesToArray()

uint8 * google::protobuf::MessageLite::InternalSerializeWithCachedSizesToArray ( uint8 target) const
virtual

Definition at line 528 of file message_lite.cc.

◆ IsInitialized()

virtual bool google::protobuf::MessageLite::IsInitialized ( ) const
pure virtual

◆ IsInitializedWithErrors()

bool google::protobuf::MessageLite::IsInitializedWithErrors ( ) const
inlineprivate

Definition at line 493 of file message_lite.h.

◆ LogInitializationErrorMessage()

void google::protobuf::MessageLite::LogInitializationErrorMessage ( ) const
private

Definition at line 122 of file message_lite.cc.

◆ MergeFromBoundedZeroCopyStream()

bool google::protobuf::MessageLite::MergeFromBoundedZeroCopyStream ( io::ZeroCopyInputStream input,
int  size 
)

Definition at line 306 of file message_lite.cc.

◆ MergeFromCodedStream()

bool google::protobuf::MessageLite::MergeFromCodedStream ( io::CodedInputStream input)

Definition at line 258 of file message_lite.cc.

◆ MergeFromString()

bool google::protobuf::MessageLite::MergeFromString ( const std::string data)

Definition at line 337 of file message_lite.cc.

◆ MergePartialFromBoundedZeroCopyStream()

bool google::protobuf::MessageLite::MergePartialFromBoundedZeroCopyStream ( io::ZeroCopyInputStream input,
int  size 
)

Definition at line 301 of file message_lite.cc.

◆ MergePartialFromCodedStream()

virtual bool google::protobuf::MessageLite::MergePartialFromCodedStream ( io::CodedInputStream input)
pure virtual

◆ New() [1/2]

virtual MessageLite* google::protobuf::MessageLite::New ( ) const
pure virtual

◆ New() [2/2]

MessageLite * google::protobuf::MessageLite::New ( Arena *  arena) const
virtual

◆ ParseFrom()

template<MessageLite::ParseFlags flags, typename T >
bool google::protobuf::MessageLite::ParseFrom ( const T input)

Definition at line 543 of file message_lite.h.

◆ ParseFromArray()

bool google::protobuf::MessageLite::ParseFromArray ( const void data,
int  size 
)

Definition at line 329 of file message_lite.cc.

◆ ParseFromBoundedZeroCopyStream()

bool google::protobuf::MessageLite::ParseFromBoundedZeroCopyStream ( io::ZeroCopyInputStream input,
int  size 
)

Definition at line 311 of file message_lite.cc.

◆ ParseFromCodedStream()

bool google::protobuf::MessageLite::ParseFromCodedStream ( io::CodedInputStream input)

Definition at line 262 of file message_lite.cc.

◆ ParseFromFileDescriptor()

bool google::protobuf::MessageLite::ParseFromFileDescriptor ( int  file_descriptor)

Definition at line 281 of file message_lite.cc.

◆ ParseFromIstream()

bool google::protobuf::MessageLite::ParseFromIstream ( std::istream *  input)

Definition at line 291 of file message_lite.cc.

◆ ParseFromString()

bool google::protobuf::MessageLite::ParseFromString ( const std::string data)

Definition at line 321 of file message_lite.cc.

◆ ParseFromZeroCopyStream()

bool google::protobuf::MessageLite::ParseFromZeroCopyStream ( io::ZeroCopyInputStream input)

Definition at line 272 of file message_lite.cc.

◆ ParsePartialFromArray()

bool google::protobuf::MessageLite::ParsePartialFromArray ( const void data,
int  size 
)

Definition at line 333 of file message_lite.cc.

◆ ParsePartialFromBoundedZeroCopyStream()

bool google::protobuf::MessageLite::ParsePartialFromBoundedZeroCopyStream ( io::ZeroCopyInputStream input,
int  size 
)

Definition at line 316 of file message_lite.cc.

◆ ParsePartialFromCodedStream()

bool google::protobuf::MessageLite::ParsePartialFromCodedStream ( io::CodedInputStream input)

Definition at line 267 of file message_lite.cc.

◆ ParsePartialFromFileDescriptor()

bool google::protobuf::MessageLite::ParsePartialFromFileDescriptor ( int  file_descriptor)

Definition at line 286 of file message_lite.cc.

◆ ParsePartialFromIstream()

bool google::protobuf::MessageLite::ParsePartialFromIstream ( std::istream *  input)

Definition at line 296 of file message_lite.cc.

◆ ParsePartialFromString()

bool google::protobuf::MessageLite::ParsePartialFromString ( const std::string data)

Definition at line 325 of file message_lite.cc.

◆ ParsePartialFromZeroCopyStream()

bool google::protobuf::MessageLite::ParsePartialFromZeroCopyStream ( io::ZeroCopyInputStream input)

Definition at line 276 of file message_lite.cc.

◆ SerializeAsString()

std::string google::protobuf::MessageLite::SerializeAsString ( ) const

Definition at line 497 of file message_lite.cc.

◆ SerializePartialAsString()

std::string google::protobuf::MessageLite::SerializePartialAsString ( ) const

Definition at line 507 of file message_lite.cc.

◆ SerializePartialToArray()

bool google::protobuf::MessageLite::SerializePartialToArray ( void data,
int  size 
) const

Definition at line 481 of file message_lite.cc.

◆ SerializePartialToCodedStream()

bool google::protobuf::MessageLite::SerializePartialToCodedStream ( io::CodedOutputStream output) const

Definition at line 373 of file message_lite.cc.

◆ SerializePartialToFileDescriptor()

bool google::protobuf::MessageLite::SerializePartialToFileDescriptor ( int  file_descriptor) const

Definition at line 424 of file message_lite.cc.

◆ SerializePartialToOstream()

bool google::protobuf::MessageLite::SerializePartialToOstream ( std::ostream *  output) const

Definition at line 437 of file message_lite.cc.

◆ SerializePartialToString()

bool google::protobuf::MessageLite::SerializePartialToString ( std::string output) const

Definition at line 471 of file message_lite.cc.

◆ SerializePartialToZeroCopyStream()

bool google::protobuf::MessageLite::SerializePartialToZeroCopyStream ( io::ZeroCopyOutputStream output) const

Definition at line 413 of file message_lite.cc.

◆ SerializeToArray()

bool google::protobuf::MessageLite::SerializeToArray ( void data,
int  size 
) const

Definition at line 476 of file message_lite.cc.

◆ SerializeToCodedStream()

bool google::protobuf::MessageLite::SerializeToCodedStream ( io::CodedOutputStream output) const

Definition at line 368 of file message_lite.cc.

◆ SerializeToFileDescriptor()

bool google::protobuf::MessageLite::SerializeToFileDescriptor ( int  file_descriptor) const

Definition at line 419 of file message_lite.cc.

◆ SerializeToOstream()

bool google::protobuf::MessageLite::SerializeToOstream ( std::ostream *  output) const

Definition at line 429 of file message_lite.cc.

◆ SerializeToString()

bool google::protobuf::MessageLite::SerializeToString ( std::string output) const

Definition at line 466 of file message_lite.cc.

◆ SerializeToZeroCopyStream()

bool google::protobuf::MessageLite::SerializeToZeroCopyStream ( io::ZeroCopyOutputStream output) const

Definition at line 407 of file message_lite.cc.

◆ SerializeWithCachedSizes()

void google::protobuf::MessageLite::SerializeWithCachedSizes ( io::CodedOutputStream output) const
virtual

◆ SerializeWithCachedSizesToArray()

uint8 * google::protobuf::MessageLite::SerializeWithCachedSizesToArray ( uint8 target) const
virtual

Definition at line 344 of file message_lite.cc.

◆ ShortDebugString()

std::string google::protobuf::MessageLite::ShortDebugString ( ) const
inline

Definition at line 248 of file message_lite.h.

◆ Utf8DebugString()

std::string google::protobuf::MessageLite::Utf8DebugString ( ) const
inline

Definition at line 251 of file message_lite.h.

Friends And Related Function Documentation

◆ internal::WeakFieldMap

friend class internal::WeakFieldMap
friend

Definition at line 491 of file message_lite.h.

◆ internal::WireFormatLite

friend class internal::WireFormatLite
friend

Definition at line 489 of file message_lite.h.

◆ Message

friend class Message
friend

Definition at line 490 of file message_lite.h.


The documentation for this class was generated from the following files:


libaditof
Author(s):
autogenerated on Wed May 21 2025 02:07:08