VMware Tanzu GemFire Native C++ Reference  10.1.5
apache::geode::client::CqResults Class Referenceabstract

A CqResults is obtained by executing a Query on the server. More...

Inherits apache::geode::client::SelectResults.

Inherited by apache::geode::client::StructSet.

Public Types

typedef std::vector< std::shared_ptr< Cacheable > >::iterator iterator
 Interface of an iterator for SelectResults. More...
 

Public Member Functions

virtual iterator begin ()=0
 Get an iterator pointing to the start of SelectResults. More...
 
virtual iterator end ()=0
 Get an iterator pointing to the end of SelectResults. More...
 
virtual const std::shared_ptr< Serializableoperator[] (size_t index) const =0
 Index operator to directly access an item in the SelectResults. More...
 
virtual size_t size () const =0
 Get the size of the SelectResults. More...
 

Detailed Description

A CqResults is obtained by executing a Query on the server.

This will be a StructSet.

Member Typedef Documentation

◆ iterator

typedef std::vector<std::shared_ptr<Cacheable> >::iterator apache::geode::client::SelectResults::iterator
inherited

Interface of an iterator for SelectResults.

Member Function Documentation

◆ begin()

virtual iterator apache::geode::client::SelectResults::begin ( )
pure virtualinherited

Get an iterator pointing to the start of SelectResults.

◆ end()

virtual iterator apache::geode::client::SelectResults::end ( )
pure virtualinherited

Get an iterator pointing to the end of SelectResults.

◆ operator[]()

virtual const std::shared_ptr<Serializable> apache::geode::client::SelectResults::operator[] ( size_t  index) const
pure virtualinherited

Index operator to directly access an item in the SelectResults.

Parameters
indexthe index number of the required item.
Exceptions
IllegalArgumentExceptionif the index is out of bounds.
Returns
A smart pointer to the item indexed.

◆ size()

virtual size_t apache::geode::client::SelectResults::size ( ) const
pure virtualinherited

Get the size of the SelectResults.

Returns
the number of items in the SelectResults.

Apache Geode C++ Cache API Documentation