NeoCpp
result_tree_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/object_interface.h"
21 
22 #ifndef NEOCPP_DATA_INTERFACE_RESULT_TREE_INTERFACE_H_
23 #define NEOCPP_DATA_INTERFACE_RESULT_TREE_INTERFACE_H_
24 
25 namespace Neocpp {
26 
28 
29 // Represents a single query Result, returned by the iterator
30 // Consists of a set of nodes and edges
32  public:
33  virtual ~ResultTreeInterface() {}
34 
36  virtual DbObjectInterface* get(int index) = 0;
37 
38  virtual bool exists() = 0;
39 };
40 
41 } // namespace Neocpp
42 
43 #endif // NEOCPP_DATA_INTERFACE_RESULT_TREE_INTERFACE_H_
Tree of Query Results.
Definition: result_tree_interface.h:31
A Neo4j Object.
Definition: object_interface.h:33
Definition: neo4j_interface.h:28