Qore DataProvider Module Reference  1.0
DefaultRecordIterator.qc.dox.h
1 // -*- mode: c++; indent-tabs-mode: nil -*-
3 
25 // assume local scope for variables, do not use "$" signs
26 // require type definitions everywhere
28 // enable all warnings
29 
31 namespace DataProvider {
34 
35 public:
36 protected:
37  AbstractIterator i;
38  *hash<auto> where_cond;
39  *hash<auto> search_options;
40 
41 public:
42 
44 
48  constructor(AbstractIterator i, *hash<auto> where_cond, *hash<auto> search_options);
49 
50 
52 
59  bool next();
60 
61 
63 
66  bool valid();
67 
68 
70 
72  hash<auto> getValue();
73 
74 
76 
82  auto memberGate(string key);
83 
84 };
85 };
DataProvider::DefaultRecordIterator::next
bool next()
Moves the current position to the next element; returns False if there are no more elements.
DataProvider
Qore AbstractDataField class definition.
Definition: AbstractDataField.qc.dox.h:32
DataProvider::DefaultRecordIterator::constructor
constructor(AbstractIterator i, *hash< auto > where_cond, *hash< auto > search_options)
Returns an iterator for zero or more records matching the search options.
DataProvider::DefaultRecordIterator::valid
bool valid()
returns True if the iterator is currently pointing at a valid element, False if not
DataProvider::AbstractDataProviderRecordIterator
Defines the abstract class for data provider iterators; the destructor releases the iterator.
Definition: AbstractDataProviderRecordIterator.qc.dox.h:33
DataProvider::DefaultRecordIterator
Default record iterator class for data providers that do not support custom read / search APIs.
Definition: DefaultRecordIterator.qc.dox.h:33
DataProvider::DefaultRecordIterator::memberGate
auto memberGate(string key)
Returns the value of the given field in the current record, if the iterator is valid.
DataProvider::DefaultRecordIterator::getValue
hash< auto > getValue()
returns a single record if the iterator is valid