VMware GemFire Native C++ Reference  9.1
apache::geode::client::SelectResultsIterator Class Reference

A SelectResultsIterator is obtained from a ResultSet or StructSet and is used to iterate over the items available in them. More...

Inherits apache::geode::client::SharedBase.

Public Member Functions

const SerializablePtr current () const
 Get the current item pointed to by the SelectResultsIterator. More...
 
bool hasNext () const
 Check whether the SelectResultsIterator has another item to get. More...
 
bool moveNext ()
 Move the iterator to point to the next item to get. More...
 
const SerializablePtr next ()
 Get the next item from the SelectResultsIterator. More...
 
void preserveSB () const
 Atomically increment reference count. More...
 
int32_t refCount ()
 
void releaseSB () const
 Atomically decrement reference count, the SharedBase object is automatically deleted when its reference count goes to zero. More...
 
void reset ()
 Reset the SelectResultsIterator to point to the start of the items. More...
 

Detailed Description

A SelectResultsIterator is obtained from a ResultSet or StructSet and is used to iterate over the items available in them.

Member Function Documentation

const SerializablePtr apache::geode::client::SelectResultsIterator::current ( ) const

Get the current item pointed to by the SelectResultsIterator.

Returns
A smart pointer to the current item pointed to by the SelectResultsIterator.
bool apache::geode::client::SelectResultsIterator::hasNext ( ) const

Check whether the SelectResultsIterator has another item to get.

Returns
true if another item is available otherwise false.
bool apache::geode::client::SelectResultsIterator::moveNext ( )

Move the iterator to point to the next item to get.

Returns
true if another item was available to move to otherwise false.
const SerializablePtr apache::geode::client::SelectResultsIterator::next ( )

Get the next item from the SelectResultsIterator.

Returns
a smart pointer to the next item from the iterator or NULLPTR if no further items are available.
void apache::geode::client::SharedBase::preserveSB ( ) const
inherited

Atomically increment reference count.

int32_t apache::geode::client::SharedBase::refCount ( )
inlineinherited
Returns
the reference count
void apache::geode::client::SharedBase::releaseSB ( ) const
inherited

Atomically decrement reference count, the SharedBase object is automatically deleted when its reference count goes to zero.

void apache::geode::client::SelectResultsIterator::reset ( )

Reset the SelectResultsIterator to point to the start of the items.


Pivotal GemFire C++ Cache API Documentation