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.
18
#include "runtime/dctx/dctx.h"
20
#include "system/globalenv.h"
22
#include "runtime/visitors/planiter_visitor.h"
24
#include "context/dynamic_context.h"
25
#include "context/static_context.h"
27
#include "store/api/item_factory.h"
28
#include "zorbatypes/integer.h"
34
DctxSnapshotIdIterator::nextImpl(store::Item_t& result, PlanState& planState) const
36
PlanIteratorState *state;
37
DEFAULT_STACK_INIT( PlanIteratorState, state, planState );
38
GENV_ITEMFACTORY->createUnsignedLong( result, xs_unsignedLong(planState.theGlobalDynCtx->getSnapshotID()) );
39
STACK_PUSH( true, state );
43
}/* namespace zorba */
44
/* vim:set et sw=2 ts=2: */