Infinispan HotRod C++ Client  8.2.1.Final
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | List of all members
infinispan::hotrod::BasicMarshaller< T > Class Template Reference

#include <BasicMarshaller.h>

Inheritance diagram for infinispan::hotrod::BasicMarshaller< T >:
infinispan::hotrod::Marshaller< T >

Public Member Functions

void marshall (const T &s, std::vector< char > &b)
 
T * unmarshall (const std::vector< char > &b)
 
- Public Member Functions inherited from infinispan::hotrod::Marshaller< T >
virtual ~Marshaller ()
 

Additional Inherited Members

- Static Public Member Functions inherited from infinispan::hotrod::Marshaller< T >
static void destroy (Marshaller< T > *marshaller)
 

Detailed Description

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

A marshaller that works with very simple object types: all the trivially copiable object, plus a specialization for std::string.

Member Function Documentation

template<class T >
void infinispan::hotrod::BasicMarshaller< T >::marshall ( const T &  obj,
std::vector< char > &  buff 
)
inlinevirtual

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

Parameters
objthe initial object
buffthe vector to be populated

Implements infinispan::hotrod::Marshaller< T >.

template<class T >
T* infinispan::hotrod::BasicMarshaller< T >::unmarshall ( const std::vector< char > &  buff)
inlinevirtual

Given vector<char> return a new type T object

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

Implements infinispan::hotrod::Marshaller< T >.


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