MLCompilerBridge
Tools for streamlining communication with ML models for compiler optimizations.
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
MLBridge::ProtobufSerDes Class Reference

ProtobufSerDes - Protobuf Serialization/Deserialization to support gRPC communication. More...

#include <protobufSerDes.h>

Inheritance diagram for MLBridge::ProtobufSerDes:
Inheritance graph
[legend]
Collaboration diagram for MLBridge::ProtobufSerDes:
Collaboration graph
[legend]

Public Member Functions

 ProtobufSerDes ()
 
void setRequest (void *Request) override
 
void setResponse (void *Response) override
 
void * getRequest () override
 
void * getResponse () override
 
void setFeature (const std::string &name, const google::protobuf::Message *value) override
 
void setFeature (const std::string &name, const std::vector< google::protobuf::Message * > &value) override
 
void * getSerializedData () override
 
void cleanDataStructures () override
 
Message * getMessage ()
 
- Public Member Functions inherited from MLBridge::BaseSerDes
SerDesKind getKind () const
 
size_t getMessageLength ()
 

Static Public Member Functions

static bool classof (const BaseSerDes *S)
 

Private Member Functions

void * deserializeUntyped (void *data) override
 

Private Attributes

Message * Response
 
Message * Request
 

Additional Inherited Members

- Protected Member Functions inherited from MLBridge::BaseSerDes
 BaseSerDes (SerDesKind Type)
 
- Protected Attributes inherited from MLBridge::BaseSerDes
const SerDesKind Type
 
void * RequestVoid
 
void * ResponseVoid
 
size_t MessageLength
 

Detailed Description

ProtobufSerDes - Protobuf Serialization/Deserialization to support gRPC communication.

Definition at line 26 of file protobufSerDes.h.

Constructor & Destructor Documentation

◆ ProtobufSerDes()

MLBridge::ProtobufSerDes::ProtobufSerDes ( )
inline

Definition at line 28 of file protobufSerDes.h.

Member Function Documentation

◆ classof()

static bool MLBridge::ProtobufSerDes::classof ( const BaseSerDes * S)
inlinestatic

Definition at line 30 of file protobufSerDes.h.

◆ cleanDataStructures()

void MLBridge::ProtobufSerDes::cleanDataStructures ( )
overridevirtual

Implements MLBridge::BaseSerDes.

Definition at line 244 of file protobufSerDes.cpp.

◆ deserializeUntyped()

void * MLBridge::ProtobufSerDes::deserializeUntyped ( void * data)
overrideprivatevirtual

Implements MLBridge::BaseSerDes.

Definition at line 143 of file protobufSerDes.cpp.

◆ getMessage()

Message * MLBridge::ProtobufSerDes::getMessage ( )
inline

Definition at line 57 of file protobufSerDes.h.

◆ getRequest()

void * MLBridge::ProtobufSerDes::getRequest ( )
inlineoverridevirtual

Reimplemented from MLBridge::BaseSerDes.

Definition at line 37 of file protobufSerDes.h.

◆ getResponse()

void * MLBridge::ProtobufSerDes::getResponse ( )
inlineoverridevirtual

Reimplemented from MLBridge::BaseSerDes.

Definition at line 39 of file protobufSerDes.h.

◆ getSerializedData()

void * MLBridge::ProtobufSerDes::getSerializedData ( )
overridevirtual

Implements MLBridge::BaseSerDes.

Definition at line 108 of file protobufSerDes.cpp.

◆ setFeature() [1/2]

void MLBridge::ProtobufSerDes::setFeature ( const std::string & name,
const google::protobuf::Message * value )
overridevirtual

Reimplemented from MLBridge::BaseSerDes.

Definition at line 115 of file protobufSerDes.cpp.

◆ setFeature() [2/2]

void MLBridge::ProtobufSerDes::setFeature ( const std::string & name,
const std::vector< google::protobuf::Message * > & value )
overridevirtual

Reimplemented from MLBridge::BaseSerDes.

Definition at line 123 of file protobufSerDes.cpp.

◆ setRequest()

void MLBridge::ProtobufSerDes::setRequest ( void * Request)
inlineoverridevirtual

Reimplemented from MLBridge::BaseSerDes.

Definition at line 135 of file protobufSerDes.cpp.

◆ setResponse()

void MLBridge::ProtobufSerDes::setResponse ( void * Response)
inlineoverridevirtual

Reimplemented from MLBridge::BaseSerDes.

Definition at line 139 of file protobufSerDes.cpp.

Member Data Documentation

◆ Request

Message* MLBridge::ProtobufSerDes::Request
private

Definition at line 62 of file protobufSerDes.h.

◆ Response

Message* MLBridge::ProtobufSerDes::Response
private

Definition at line 61 of file protobufSerDes.h.


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