NeoCpp
result_iterator_interface.h
1 /*
2 Apache 2.0 License
3 
4 Copyright 2018 Alex Barry
5 
6 Licensed under the Apache License, Version 2.0 (the "License");
7 you may not use this file except in compliance with the License.
8 You may obtain a copy of the License at
9 
10  http://www.apache.org/licenses/LICENSE-2.0
11 
12 Unless required by applicable law or agreed to in writing, software
13 distributed under the License is distributed on an "AS IS" BASIS,
14 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 See the License for the specific language governing permissions and
16 limitations under the License.
17 
18 */
19 
20 #include "neocpp/data/interface/result_tree_interface.h"
21 
22 #ifndef NEOCPP_DATA_INTERFACE_RESULT_ITERATOR_INTERFACE_H_
23 #define NEOCPP_DATA_INTERFACE_RESULT_ITERATOR_INTERFACE_H_
24 
25 namespace Neocpp {
26 
28 
33  public:
34  virtual ~ResultsIteratorInterface() {}
35 
37  virtual void clear() = 0;
38 
40 
43  virtual bool empty() = 0;
44 
46  virtual unsigned int length() = 0;
47 
49  virtual ResultTreeInterface* next() = 0;
50 };
51 
52 } // namespace Neocpp
53 
54 #endif // NEOCPP_DATA_INTERFACE_RESULT_ITERATOR_INTERFACE_H_
virtual void clear()=0
Clear the results iterator of all values.
Results Iterator for viewing query results.
Definition: result_iterator_interface.h:32
virtual unsigned int length()=0
Get the number of results in the query.
Tree of Query Results.
Definition: result_tree_interface.h:31
virtual ResultTreeInterface * next()=0
Get the next query result.
virtual bool empty()=0
Is the iterator empty?
Definition: neo4j_interface.h:28