Apache Ignite C++
Public Member Functions | List of all members
ignite::binary::BinaryMapReader< K, V > Class Template Reference

Binary map reader. More...

#include <binary_containers.h>

Public Member Functions

 BinaryMapReader (impl::binary::BinaryReaderImpl *impl, int32_t id, MapType type, int32_t size)
 Constructor. More...
 
bool HasNext ()
 Check whether next element is available for read. More...
 
void GetNext (K *key, V *val)
 Read next element. More...
 
MapType GetType ()
 Get map type. More...
 
int32_t GetSize ()
 Get map size. More...
 
bool IsNull ()
 Whether map is NULL.
 

Detailed Description

template<typename K, typename V>
class ignite::binary::BinaryMapReader< K, V >

Binary map reader.

Constructor & Destructor Documentation

template<typename K, typename V>
ignite::binary::BinaryMapReader< K, V >::BinaryMapReader ( impl::binary::BinaryReaderImpl *  impl,
int32_t  id,
MapType  type,
int32_t  size 
)
inline

Constructor.

Parameters
implReader.
idIdentifier.
typeMap type.
sizeMap size.

Member Function Documentation

template<typename K, typename V>
void ignite::binary::BinaryMapReader< K, V >::GetNext ( K *  key,
V *  val 
)
inline

Read next element.

Parameters
keyKey.
valValue.
template<typename K, typename V>
int32_t ignite::binary::BinaryMapReader< K, V >::GetSize ( )
inline

Get map size.

Returns
Size or -1 if map is NULL.
template<typename K, typename V>
MapType ignite::binary::BinaryMapReader< K, V >::GetType ( )
inline

Get map type.

Returns
Type.
template<typename K, typename V>
bool ignite::binary::BinaryMapReader< K, V >::HasNext ( )
inline

Check whether next element is available for read.

Returns
True if available.

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