SaxonC 12.5
Saxon Processor library for C/C++, PHP and Python
Loading...
Searching...
No Matches
XdmItem.h
1
2// Copyright (c) 2022 - 2023 Saxonica Limited.
3// This Source Code Form is subject to the terms of the Mozilla Public License,
4// v. 2.0. If a copy of the MPL was not distributed with this file, You can
5// obtain one at http://mozilla.org/MPL/2.0/. This Source Code Form is
6// "Incompatible With Secondary Licenses", as defined by the Mozilla Public
7// License, v. 2.0.
9
10#ifndef SAXON_XDMITEM_h
11#define SAXON_XDMITEM_h
12
13#include "XdmValue.h"
14
15class SaxonProcessor;
16
30class XdmItem : public XdmValue {
31
32public:
34
37 XdmItem();
38
41
47 explicit XdmItem(int64_t);
48
50
53 XdmItem(const XdmItem &item);
54
56
59 virtual ~XdmItem();
60
63
66 virtual void incrementRefCount();
67
70
73 virtual void decrementRefCount();
74
81 virtual bool isAtomic();
82
89 virtual bool isNode();
90
97 virtual bool isFunction();
98
104 virtual bool isMap();
105
112 virtual bool isArray();
113
118 virtual int64_t getUnderlyingValue();
119
121
132 virtual const char *getStringValue();
133
137 const char *toString();
138
143 virtual XdmItem *getHead();
144
155 XdmItem *itemAt(int n);
156
162 int size();
163
167 virtual XDM_TYPE getType();
168
169protected:
170 int64_t value;
171 const char *stringValue;
173 const char *itemToString;
175};
176
177#endif
Definition SaxonProcessor.h:117
Definition XdmItem.h:30
virtual bool isNode()
Definition XdmItem.cpp:33
virtual bool isFunction()
Definition XdmItem.cpp:35
XdmItem * itemAt(int n)
Definition XdmItem.cpp:43
const char * toString()
Definition XdmItem.cpp:72
virtual XDM_TYPE getType()
Definition XdmItem.cpp:85
virtual bool isMap()
Definition XdmItem.cpp:37
int64_t value
Definition XdmItem.h:170
virtual bool isArray()
Definition XdmItem.cpp:39
int size()
Definition XdmItem.cpp:50
XdmItem()
XdmItem default constructor.
Definition XdmItem.cpp:5
virtual void incrementRefCount()
Definition XdmItem.cpp:115
const char * stringValue
Definition XdmItem.h:171
virtual XdmItem * getHead()
Definition XdmItem.cpp:41
virtual void decrementRefCount()
Definition XdmItem.cpp:123
virtual ~XdmItem()
Destructor.
Definition XdmItem.cpp:87
virtual int64_t getUnderlyingValue()
Definition XdmItem.cpp:52
virtual bool isAtomic()
Definition XdmItem.cpp:31
const char * itemToString
Definition XdmItem.h:173
virtual const char * getStringValue()
Get the string value of the item.
Definition XdmItem.cpp:59
Definition XdmValue.h:42