2
* Copyright 2006-2008 The FLWOR Foundation.
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
8
* http://www.apache.org/licenses/LICENSE-2.0
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.
16
#ifndef ZORBA_RUNTIME_FUNCTION_ITEM_ITER_H
17
#define ZORBA_RUNTIME_FUNCTION_ITEM_ITER_H
19
#include "common/shared_types.h"
21
#include "runtime/base/narybase.h"
26
class FunctionItemInfo;
28
typedef rchandle<FunctionItemInfo> FunctionItemInfo_t;
31
/*******************************************************************************
32
An iterator that creates and returns dynamic function items
33
********************************************************************************/
34
class FunctionItemIterator : public NaryBaseIterator<FunctionItemIterator,
38
FunctionItemInfo_t theFunctionItemInfo;
41
SERIALIZABLE_CLASS(FunctionItemIterator)
42
SERIALIZABLE_CLASS_CONSTRUCTOR2T(FunctionItemIterator,
43
NaryBaseIterator<FunctionItemIterator, PlanIteratorState>)
44
void serialize(::zorba::serialization::Archiver& ar);
50
FunctionItemInfo* fnInfo);
52
virtual ~FunctionItemIterator();
54
const FunctionItemInfo_t getFunctionItemInfo() const
56
return theFunctionItemInfo;
59
void accept(PlanIterVisitor& v) const;
61
bool nextImpl(store::Item_t& result, PlanState& planState) const;
67
static_context* importSctx,
68
dynamic_context* evalDctx) const;
72
}//end of zorba namespace
75
/* vim:set et sw=2 ts=2: */