Red Hat Data Grid HotRod C++ Client  7.2.0
Public Member Functions | Static Public Member Functions | List of all members
infinispan::hotrod::Marshaller< T > Class Template Referenceabstract

#include <Marshaller.h>

Inheritance diagram for infinispan::hotrod::Marshaller< T >:
infinispan::hotrod::BasicMarshaller< T > infinispan::hotrod::JBasicMarshaller< T > infinispan::hotrod::ProtoStreamMarshaller< T, TypeId >

Public Member Functions

virtual void marshall (const T &obj, std::vector< char > &buff)=0
 
virtual T * unmarshall (const std::vector< char > &buff)=0
 
virtual ~Marshaller ()
 

Static Public Member Functions

static void destroy (Marshaller< T > *marshaller)
 

Detailed Description

template<class T>
class infinispan::hotrod::Marshaller< T >

Marshaller is the interface definition for a generic Marshaller

Constructor & Destructor Documentation

template<class T>
virtual infinispan::hotrod::Marshaller< T >::~Marshaller ( )
inlinevirtual

Member Function Documentation

template<class T>
static void infinispan::hotrod::Marshaller< T >::destroy ( Marshaller< T > *  marshaller)
inlinestatic
template<class T>
virtual void infinispan::hotrod::Marshaller< T >::marshall ( const T &  obj,
std::vector< char > &  buff 
)
pure virtual

Given an object of type T populate the vector<char> with the equivalent representation.

Parameters
objthe initial object
buffthe vector to be populated

Implemented in infinispan::hotrod::BasicMarshaller< T >.

template<class T>
virtual T* infinispan::hotrod::Marshaller< T >::unmarshall ( const std::vector< char > &  buff)
pure virtual

Given vector<char> return a new type T object

Parameters
buffthe vector representing the object
Returns
the object equivalent to the vector

Implemented in infinispan::hotrod::BasicMarshaller< T >.


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