10#ifndef SAXON_XDM_MAP_h
11#define SAXON_XDM_MAP_h
14#include "XdmFunctionItem.h"
64 XdmMap(std::map<XdmAtomicValue *, XdmValue *> map);
169 std::set<XdmAtomicValue *>
keySet();
270 std::map<XdmAtomicValue *, XdmValue *>
Definition XdmAtomicValue.h:26
Definition XdmFunctionItem.h:25
int64_t value
Definition XdmItem.h:170
const char * toString()
Definition XdmMap.cpp:19
virtual ~XdmMap()
Destructor.
Definition XdmMap.h:48
XdmMap * put(XdmAtomicValue *key, XdmValue *value)
Create a new map containing an additional (key, value) pair.
Definition XdmMap.cpp:79
std::set< XdmAtomicValue * > keySet()
Get the keys present in the map in the form of an unordered std::set.
Definition XdmMap.cpp:105
XdmValue * get(XdmAtomicValue *key)
Definition XdmMap.cpp:34
bool isFunction()
Determine whether the item is a function or some other type of item.
Definition XdmMap.h:229
bool isEmpty()
Returns true if this map contains no key-value mappings.
Definition XdmMap.cpp:149
int mapSize()
Get the number of entries in the map.
Definition XdmMap.cpp:27
XdmMap * remove(XdmAtomicValue *key)
Create a new map in which the entry for a given key has been removed.
Definition XdmMap.cpp:92
std::list< XdmValue * > valuesAsList()
Definition XdmMap.cpp:162
XdmValue ** values()
Definition XdmMap.cpp:182
bool isMap()
Determine whether the item is a map or some other type of item.
Definition XdmMap.h:236
XdmMap()
Default constructor.
Definition XdmMap.cpp:9
XDM_TYPE getType()
Get the type of the object.
Definition XdmMap.h:239
bool containsKey(XdmAtomicValue *key)
Definition XdmMap.cpp:155
XdmAtomicValue ** keys()
Definition XdmMap.cpp:125
XdmMap(std::map< XdmAtomicValue *, XdmValue * > map)