GridGain C++ Client Library
Public Member Functions | List of all members
gridgain::portable::PortableRawWriter Class Reference

Portable raw writer. More...

#include <portable_raw_writer.h>

Public Member Functions

 PortableRawWriter (gridgain::impl::portable::PortableWriterImpl *impl)
 Constructor. More...
 
void WriteInt8 (int8_t val)
 Write 8-byte signed integer. More...
 
void WriteInt8Array (const int8_t *val, int32_t len)
 Write array of 8-byte signed integers. More...
 
void WriteBool (bool val)
 Write bool. More...
 
void WriteBoolArray (const bool *val, int32_t len)
 Write array of bools. More...
 
void WriteInt16 (int16_t val)
 Write 16-byte signed integer. More...
 
void WriteInt16Array (const int16_t *val, int32_t len)
 Write array of 16-byte signed integers. More...
 
void WriteUInt16 (uint16_t val)
 Write 16-byte unsigned integer. More...
 
void WriteUInt16Array (const uint16_t *val, int32_t len)
 Write array of 16-byte unsigned integers. More...
 
void WriteInt32 (int32_t val)
 Write 32-byte signed integer. More...
 
void WriteInt32Array (const int32_t *val, int32_t len)
 Write array of 32-byte signed integers. More...
 
void WriteInt64 (int64_t val)
 Write 64-byte signed integer. More...
 
void WriteInt64Array (const int64_t *val, int32_t len)
 Write array of 64-byte signed integers. More...
 
void WriteFloat (float val)
 Write float. More...
 
void WriteFloatArray (const float *val, int32_t len)
 Write array of floats. More...
 
void WriteDouble (double val)
 Write double. More...
 
void WriteDoubleArray (const double *val, int32_t len)
 Write array of doubles. More...
 
void WriteGuid (const Guid &val)
 Write Guid. More...
 
void WriteGuidArray (const Guid *val, int32_t len)
 Write array of Guids. More...
 
void WriteString (const char *val)
 Write string. More...
 
void WriteString (const char *val, int32_t len)
 Write string. More...
 
void WriteString (const std::string &val)
 Write string. More...
 
PortableStringArrayWriter WriteStringArray ()
 Start string array write. More...
 
void WriteNull ()
 Write NULL value.
 
template<typename T >
PortableArrayWriter< T > WriteArray ()
 Start array write. More...
 
template<typename T >
PortableCollectionWriter< T > WriteCollection ()
 Start collection write. More...
 
template<typename T >
PortableCollectionWriter< T > WriteCollection (CollectionType typ)
 Start collection write. More...
 
template<typename InputIterator >
void WriteCollection (InputIterator first, InputIterator last)
 Write values in interval [first, last). More...
 
template<typename InputIterator >
void WriteCollection (InputIterator first, InputIterator last, CollectionType typ)
 Write values in interval [first, last). More...
 
template<typename K , typename V >
PortableMapWriter< K, V > WriteMap ()
 Start map write. More...
 
template<typename K , typename V >
PortableMapWriter< K, V > WriteMap (MapType typ)
 Start map write. More...
 
template<typename T >
void WriteObject (T val)
 Write object. More...
 

Detailed Description

Portable raw writer.

Constructor & Destructor Documentation

gridgain::portable::PortableRawWriter::PortableRawWriter ( gridgain::impl::portable::PortableWriterImpl *  impl)

Constructor.

Parameters
implImplementation.

Member Function Documentation

template<typename T >
PortableArrayWriter<T> gridgain::portable::PortableRawWriter::WriteArray ( )
inline

Start array write.

Returns
Array writer.
void gridgain::portable::PortableRawWriter::WriteBool ( bool  val)

Write bool.

Maps to "short" type in Java.

Parameters
valValue.
void gridgain::portable::PortableRawWriter::WriteBoolArray ( const bool *  val,
int32_t  len 
)

Write array of bools.

Maps to "bool[]" type in Java.

Parameters
valArray.
lenArray length.
template<typename T >
PortableCollectionWriter<T> gridgain::portable::PortableRawWriter::WriteCollection ( )
inline

Start collection write.

Returns
Collection writer.
template<typename T >
PortableCollectionWriter<T> gridgain::portable::PortableRawWriter::WriteCollection ( CollectionType  typ)
inline

Start collection write.

Parameters
typeCollection type.
Returns
Collection writer.
template<typename InputIterator >
void gridgain::portable::PortableRawWriter::WriteCollection ( InputIterator  first,
InputIterator  last 
)
inline

Write values in interval [first, last).

Parameters
firstIterator pointing to the beginning of the interval.
lastIterator pointing to the end of the interval.
typCollection type.
template<typename InputIterator >
void gridgain::portable::PortableRawWriter::WriteCollection ( InputIterator  first,
InputIterator  last,
CollectionType  typ 
)
inline

Write values in interval [first, last).

Parameters
firstIterator pointing to the beginning of the interval.
lastIterator pointing to the end of the interval.
typCollection type.
void gridgain::portable::PortableRawWriter::WriteDouble ( double  val)

Write double.

Maps to "double" type in Java.

Parameters
valValue.
void gridgain::portable::PortableRawWriter::WriteDoubleArray ( const double *  val,
int32_t  len 
)

Write array of doubles.

Maps to "double[]" type in Java.

Parameters
valArray.
lenArray length.
void gridgain::portable::PortableRawWriter::WriteFloat ( float  val)

Write float.

Maps to "float" type in Java.

Parameters
valValue.
void gridgain::portable::PortableRawWriter::WriteFloatArray ( const float *  val,
int32_t  len 
)

Write array of floats.

Maps to "float[]" type in Java.

Parameters
valArray.
lenArray length.
void gridgain::portable::PortableRawWriter::WriteGuid ( const Guid &  val)

Write Guid.

Maps to "UUID" type in Java.

Parameters
valValue.
void gridgain::portable::PortableRawWriter::WriteGuidArray ( const Guid *  val,
int32_t  len 
)

Write array of Guids.

Maps to "UUID[]" type in Java.

Parameters
valArray.
lenArray length.
void gridgain::portable::PortableRawWriter::WriteInt16 ( int16_t  val)

Write 16-byte signed integer.

Maps to "short" type in Java.

Parameters
valValue.
void gridgain::portable::PortableRawWriter::WriteInt16Array ( const int16_t *  val,
int32_t  len 
)

Write array of 16-byte signed integers.

Maps to "short[]" type in Java.

Parameters
valArray.
lenArray length.
void gridgain::portable::PortableRawWriter::WriteInt32 ( int32_t  val)

Write 32-byte signed integer.

Maps to "int" type in Java.

Parameters
valValue.
void gridgain::portable::PortableRawWriter::WriteInt32Array ( const int32_t *  val,
int32_t  len 
)

Write array of 32-byte signed integers.

Maps to "int[]" type in Java.

Parameters
valArray.
lenArray length.
void gridgain::portable::PortableRawWriter::WriteInt64 ( int64_t  val)

Write 64-byte signed integer.

Maps to "long" type in Java.

Parameters
valValue.
void gridgain::portable::PortableRawWriter::WriteInt64Array ( const int64_t *  val,
int32_t  len 
)

Write array of 64-byte signed integers.

Maps to "long[]" type in Java.

Parameters
valArray.
lenArray length.
void gridgain::portable::PortableRawWriter::WriteInt8 ( int8_t  val)

Write 8-byte signed integer.

Maps to "byte" type in Java.

Parameters
valValue.
void gridgain::portable::PortableRawWriter::WriteInt8Array ( const int8_t *  val,
int32_t  len 
)

Write array of 8-byte signed integers.

Maps to "byte[]" type in Java.

Parameters
valArray.
lenArray length.
template<typename K , typename V >
PortableMapWriter<K, V> gridgain::portable::PortableRawWriter::WriteMap ( )
inline

Start map write.

Parameters
typMap type.
Returns
Map writer.
template<typename K , typename V >
PortableMapWriter<K, V> gridgain::portable::PortableRawWriter::WriteMap ( MapType  typ)
inline

Start map write.

Parameters
typMap type.
Returns
Map writer.
template<typename T >
void gridgain::portable::PortableRawWriter::WriteObject ( T  val)
inline

Write object.

Parameters
valObject.
void gridgain::portable::PortableRawWriter::WriteString ( const char *  val)

Write string.

Parameters
valNull-terminated character array.
void gridgain::portable::PortableRawWriter::WriteString ( const char *  val,
int32_t  len 
)

Write string.

Parameters
valString.
lenString length (characters).
void gridgain::portable::PortableRawWriter::WriteString ( const std::string &  val)
inline

Write string.

Parameters
valString.
PortableStringArrayWriter gridgain::portable::PortableRawWriter::WriteStringArray ( )

Start string array write.

Returns
String array writer.
void gridgain::portable::PortableRawWriter::WriteUInt16 ( uint16_t  val)

Write 16-byte unsigned integer.

Maps to "char" type in Java.

Parameters
valValue.
void gridgain::portable::PortableRawWriter::WriteUInt16Array ( const uint16_t *  val,
int32_t  len 
)

Write array of 16-byte unsigned integers.

Maps to "char[]" type in Java.

Parameters
valArray.
lenArray length.

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