GridGain C++ Client Library
Public Member Functions | List of all members
gridgain::portable::PortableMapReader< K, V > Class Template Reference

Portable map reader. More...

#include <portable_containers.h>

Public Member Functions

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

Detailed Description

template<typename K, typename V>
class gridgain::portable::PortableMapReader< K, V >

Portable map reader.

Constructor & Destructor Documentation

template<typename K, typename V>
gridgain::portable::PortableMapReader< K, V >::PortableMapReader ( impl::portable::PortableReaderImpl *  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 gridgain::portable::PortableMapReader< K, V >::GetNext ( K *  key,
V *  val 
)
inline

Read next element.

Parameters
keyKey.
valValue.
template<typename K, typename V>
int32_t gridgain::portable::PortableMapReader< K, V >::GetSize ( ) const
inline

Get map size.

Returns
Size or -1 if map is NULL.
template<typename K, typename V>
MapType gridgain::portable::PortableMapReader< K, V >::GetType ( ) const
inline

Get map type.

Returns
Type.
template<typename K, typename V>
bool gridgain::portable::PortableMapReader< K, V >::HasNext ( ) const
inline

Check whether next element is available for read.

Returns
True if available.

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