VMware GemFire Native Client Cache Reference  9.0.6
SelectResultsIterator.hpp
Go to the documentation of this file.
1 #ifndef __GEMFIRE_SELECTRESULTSITERATOR_H__
2 #define __GEMFIRE_SELECTRESULTSITERATOR_H__
3 /*=========================================================================
4  * Copyright (c) 2002-2014 Pivotal Software, Inc. All Rights Reserved.
5  * This product is protected by U.S. and international copyright
6  * and intellectual property laws. Pivotal products are covered by
7  * more patents listed at http://www.pivotal.io/patents.
8  *========================================================================
9  */
10 
15 #include "gfcpp_globals.hpp"
16 #include "gf_types.hpp"
17 #include "ExceptionTypes.hpp"
18 #include "Serializable.hpp"
19 
20 #include "SelectResults.hpp"
21 #include "CacheableBuiltins.hpp"
22 
23 namespace gemfire
24 {
25 
26 class ResultSetImpl;
27 class StructSetImpl;
28 
35 {
36 public:
37 
43  bool hasNext() const;
44 
50  const SerializablePtr next();
51 
57  bool moveNext();
58 
64  const SerializablePtr current() const;
65 
69  void reset();
70 
71 private:
72 
77 
78  CacheableVectorPtr m_vectorSR;
79  int32_t m_nextIndex;
80  // this is to ensure that a reference of SelectResults is kept alive
81  // if an iterator object is present
82  SelectResultsPtr m_srp;
83 
84  friend class ResultSetImpl;
85  friend class StructSetImpl;
86 };
87 
88 } //namespace gemfire
89 
90 #endif //ifndef __GEMFIRE_SELECTRESULTSITERATOR_H__
Contains generic template definitions for Cacheable types and instantiations for built-in types...
A SelectResultsIterator is obtained from a ResultSet or StructSet and is used to iterate over the ite...
Definition: SelectResultsIterator.hpp:34
This namespace contains all the GemFire C++ API classes, enumerations and globals.
Definition: Assert.hpp:19
#define CPPCACHE_EXPORT
Defines a GemFire CPPCACHE export.
Definition: gf_base.hpp:51
This abstract base class is the base class of all user objects that have the shared capability of ref...
Definition: SharedBase.hpp:31
Defines a reference counted shared pointer.
Definition: SharedPtr.hpp:35

GemFire C++ Cache API Documentation