MLCompilerBridge
Tools for streamlining communication with ML models for compiler optimizations.
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
MLBridge::BaseSerDes Class Referenceabstract

#include <baseSerDes.h>

Inheritance diagram for MLBridge::BaseSerDes:
Inheritance graph
[legend]

Public Member Functions

SerDesKind getKind () const
 
virtual void setFeature (const std::string &name, const google::protobuf::Message *value)
 
virtual void setFeature (const std::string &name, const std::vector< google::protobuf::Message * > &value)
 
virtual void setRequest (void *Request)
 
virtual void setResponse (void *Response)
 
virtual void * getSerializedData ()=0
 
virtual void * deserializeUntyped (void *data)=0
 
size_t getMessageLength ()
 
virtual void * getRequest ()
 
virtual void * getResponse ()
 

Protected Member Functions

 BaseSerDes (SerDesKind Type)
 
virtual void cleanDataStructures ()=0
 

Protected Attributes

const SerDesKind Type
 
void * RequestVoid
 
void * ResponseVoid
 
size_t MessageLength
 

Detailed Description

Definition at line 47 of file baseSerDes.h.

Constructor & Destructor Documentation

◆ BaseSerDes()

MLBridge::BaseSerDes::BaseSerDes ( SerDesKind Type)
inlineprotected

Definition at line 78 of file baseSerDes.h.

Member Function Documentation

◆ cleanDataStructures()

virtual void MLBridge::BaseSerDes::cleanDataStructures ( )
protectedpure virtual

◆ deserializeUntyped()

virtual void * MLBridge::BaseSerDes::deserializeUntyped ( void * data)
pure virtual

◆ getKind()

SerDesKind MLBridge::BaseSerDes::getKind ( ) const
inline

Definition at line 49 of file baseSerDes.h.

◆ getMessageLength()

size_t MLBridge::BaseSerDes::getMessageLength ( )
inline

Definition at line 73 of file baseSerDes.h.

◆ getRequest()

virtual void * MLBridge::BaseSerDes::getRequest ( )
inlinevirtual

Reimplemented in MLBridge::ProtobufSerDes.

Definition at line 74 of file baseSerDes.h.

◆ getResponse()

virtual void * MLBridge::BaseSerDes::getResponse ( )
inlinevirtual

Reimplemented in MLBridge::ProtobufSerDes.

Definition at line 75 of file baseSerDes.h.

◆ getSerializedData()

virtual void * MLBridge::BaseSerDes::getSerializedData ( )
pure virtual

◆ setFeature() [1/2]

virtual void MLBridge::BaseSerDes::setFeature ( const std::string & name,
const google::protobuf::Message * value )
inlinevirtual

Reimplemented in MLBridge::ProtobufSerDes.

Definition at line 60 of file baseSerDes.h.

◆ setFeature() [2/2]

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

Reimplemented in MLBridge::ProtobufSerDes.

Definition at line 63 of file baseSerDes.h.

◆ setRequest()

virtual void MLBridge::BaseSerDes::setRequest ( void * Request)
inlinevirtual

Reimplemented in MLBridge::ProtobufSerDes, and MLBridge::TensorflowSerDes.

Definition at line 67 of file baseSerDes.h.

◆ setResponse()

virtual void MLBridge::BaseSerDes::setResponse ( void * Response)
inlinevirtual

Reimplemented in MLBridge::ProtobufSerDes.

Definition at line 70 of file baseSerDes.h.

Member Data Documentation

◆ MessageLength

size_t MLBridge::BaseSerDes::MessageLength
protected

Definition at line 85 of file baseSerDes.h.

◆ RequestVoid

void* MLBridge::BaseSerDes::RequestVoid
protected

Definition at line 83 of file baseSerDes.h.

◆ ResponseVoid

void* MLBridge::BaseSerDes::ResponseVoid
protected

Definition at line 84 of file baseSerDes.h.

◆ Type

const SerDesKind MLBridge::BaseSerDes::Type
protected

Definition at line 82 of file baseSerDes.h.


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