10#ifndef SAXON_XDM_MAP_h
11#define SAXON_XDM_MAP_h
13#include "saxonc_export.h"
14#include "saxonc/XdmArray.h"
15#include "saxonc/XdmFunctionItem.h"
61 XdmMap(std::map<XdmAtomicValue *, XdmValue *> map);
166 std::set<XdmAtomicValue *>
keySet();
238 const char *
toString(
const char *encoding =
nullptr);
The class XdmAtomicValue represents an item in an XPath sequence that is an atomic value.
Definition XdmAtomicValue.h:27
XdmFunctionItem()
Default constructor.
Definition XdmFunctionItem.cpp:13
const char * toString(const char *encoding=nullptr)
Create a string representation of the item.
Definition XdmItem.cpp:71
A map in the XDM data model.
Definition XdmMap.h:30
virtual ~XdmMap()
Destructor method for XdmMap.
Definition XdmMap.h:48
XdmMap * put(XdmAtomicValue *key, XdmValue *value)
Create a new map containing an additional (key, value) pair.
Definition XdmMap.cpp:112
std::set< XdmAtomicValue * > keySet()
Get the keys present in the map in the form of an unordered std::set.
Definition XdmMap.cpp:142
XdmValue * get(XdmAtomicValue *key)
Returns the value to which the specified key is mapped, or NULL if this map contains no mapping for t...
Definition XdmMap.cpp:43
bool isFunction()
Determine whether the item is a function or some other type of item.
Definition XdmMap.h:217
bool isEmpty()
Check if this map is empty.
Definition XdmMap.cpp:186
int mapSize()
Get the number of entries in the map.
Definition XdmMap.cpp:36
XdmMap * remove(XdmAtomicValue *key)
Create a new map in which the entry for a given key has been removed.
Definition XdmMap.cpp:128
std::list< XdmValue * > valuesAsList()
Returns a std::list containing the values found in this map, that is, the value parts of the key-valu...
Definition XdmMap.cpp:205
bool isMap()
Determine whether the item is an XDM map or some other type of item.
Definition XdmMap.h:223
XdmMap()
Default constructor.
Definition XdmMap.cpp:9
XDM_TYPE getType()
Get the type of this XDM value.
Definition XdmMap.h:229
bool containsKey(XdmAtomicValue *key)
Returns true if this map contains a mapping for the specified key.
Definition XdmMap.cpp:195
XdmAtomicValue ** keys()
Get the keys present in the map in the form of an unordered pointer array of XdmAtomicValues.
Definition XdmMap.cpp:162
XdmMap(std::map< XdmAtomicValue *, XdmValue * > map)
Create an XdmMap supplying the entries in the form of a std::map.
int64_t value
Definition XdmValue.h:214
XdmItem ** values
Definition XdmValue.h:208
XdmValue()
Default constructor.
Definition XdmValue.h:40