Provides a way for a function to return a sequence of some type T
that can be iterated over.
More...
#include <zorba/xquery_functions.h>
Classes | |
struct | iterator |
Public Types | |
typedef T | value_type |
Public Member Functions | |
bool | next (value_type *result) |
Gets the next element in the sequence. | |
Sequence (iterator *i) | |
Constructs a new Sequence. | |
Sequence (Sequence const &s) | |
Copy constructs a Sequence. |
Provides a way for a function to return a sequence of some type T
that can be iterated over.
T | The type of sequence. |
Definition at line 35 of file xquery_functions.h.
typedef T zorba::Sequence< T >::value_type |
Definition at line 37 of file xquery_functions.h.
zorba::Sequence< T >::Sequence | ( | iterator * | i | ) | [inline] |
Constructs a new Sequence.
This constructor is intended only for function implementors.
i | The iterator that provides the elements of the sequence. Ownership of the iterator is taken. |
Definition at line 51 of file xquery_functions.h.
zorba::Sequence< T >::Sequence | ( | Sequence< T > const & | s | ) | [inline] |
Copy constructs a Sequence.
s | The Sequence to copy from. Note that it is a destructive copy in that the sequence of s is 'i' moved. |
Definition at line 59 of file xquery_functions.h.
bool zorba::Sequence< T >::next | ( | value_type * | result | ) | [inline] |
Gets the next element in the sequence.
result | A pointer to the variable to receive the next element. |
true
only if there is a next element. Definition at line 67 of file xquery_functions.h.