Zorba
The XQuery Processor
Documentation
Live Demo
Modules
Download
Tools
Blog
Code
Main Page
Related Pages
Classes
Files
File List
File Members
swig
ItemSequence.h
Go to the documentation of this file.
1
/*
2
* Copyright 2006-2012 The FLWOR Foundation.
3
*
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
* you may not use this file except in compliance with the License.
6
* You may obtain a copy of the License at
7
*
8
* http://www.apache.org/licenses/LICENSE-2.0
9
*
10
* Unless required by applicable law or agreed to in writing, software
11
* distributed under the License is distributed on an "AS IS" BASIS,
12
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
* See the License for the specific language governing permissions and
14
* limitations under the License.
15
*/
16
#ifndef API_ITEM_SEQUENCE_H
17
#define API_ITEM_SEQUENCE_H
18
19
/**
20
* \brief This interface represents an instance of the XQuery 1.0 and XPath 2.0
21
* Data Model (XDM).
22
*
23
* See http://www.w3.org/TR/xpath-datamodel/.
24
*/
25
class
ItemSequence
26
{
27
friend
class
Collection
;
28
friend
class
CollectionManager
;
29
friend
class
StaticCollectionManager
;
30
private
:
31
zorba::ItemSequence_t theItemSequence;
32
ItemSequence
() {}
33
34
public
:
35
ItemSequence
(
const
ItemSequence
& aItemSequence) : theItemSequence(aItemSequence.theItemSequence) {}
36
ItemSequence
(zorba::ItemSequence_t aItemSequence) : theItemSequence(aItemSequence) {}
37
38
/** \brief Constructor from Item
39
*/
40
ItemSequence
(
const
Item
&aItem);
41
42
/**
43
* \brief get the Iterator over the items
44
*
45
* @return an iterator over the items
46
* @throw Throws zerr::ZAPI0039 if the implementation of the associated
47
* ItemSequence does not allow more than one iterator to be created.
48
*/
49
Iterator
getIterator
();
50
51
};
52
53
#endif
Please enable JavaScript to view the
comments powered by Disqus.
blog comments powered by
Disqus