GridGain C++ Client Library
Public Member Functions | List of all members
gridgain::portable::PortableCollectionReader< T > Class Template Reference

Portable collection reader. More...

#include <portable_containers.h>

Public Member Functions

 PortableCollectionReader (impl::portable::PortableReaderImpl *impl, int32_t id, CollectionType type, int32_t size)
 Constructor. More...
 
bool HasNext () const
 Check whether next element is available for read. More...
 
T GetNext ()
 Read next element. More...
 
CollectionType GetType () const
 Get collection type. More...
 
int32_t GetSize () const
 Get collection size. More...
 
bool IsNull () const
 Whether collection is NULL.
 

Detailed Description

template<typename T>
class gridgain::portable::PortableCollectionReader< T >

Portable collection reader.

Constructor & Destructor Documentation

template<typename T>
gridgain::portable::PortableCollectionReader< T >::PortableCollectionReader ( impl::portable::PortableReaderImpl *  impl,
int32_t  id,
CollectionType  type,
int32_t  size 
)
inline

Constructor.

Parameters
implReader.
idIdentifier.
typeCollection type.
sizeCollection size.

Member Function Documentation

template<typename T>
T gridgain::portable::PortableCollectionReader< T >::GetNext ( )
inline

Read next element.

Returns
Next element.
template<typename T>
int32_t gridgain::portable::PortableCollectionReader< T >::GetSize ( ) const
inline

Get collection size.

Returns
Size or -1 if collection is NULL.
template<typename T>
CollectionType gridgain::portable::PortableCollectionReader< T >::GetType ( ) const
inline

Get collection type.

Returns
Type.
template<typename T>
bool gridgain::portable::PortableCollectionReader< T >::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: