8 #ifndef SAXON_XDM_MAP_h
9 #define SAXON_XDM_MAP_h
12 #include "XdmFunctionItem.h"
64 XdmMap(std::map<XdmAtomicValue *, XdmValue*> map);
158 std::set<XdmAtomicValue*>
keySet();
260 std::map<XdmAtomicValue *, XdmValue*> data;
Definition: XdmAtomicValue.h:26
Definition: XdmFunctionItem.h:23
jobject value
Definition: XdmItem.h:163
const char * toString()
The toString() method returns a simple XML serialization of the node with defaulted serialization par...
Definition: XdmMap.cpp:25
virtual ~XdmMap()
Destructor.
Definition: XdmMap.h:49
XdmMap * put(XdmAtomicValue *key, XdmValue *value)
Create a new map containing an additional (key, value) pair.
Definition: XdmMap.cpp:422
std::set< XdmAtomicValue * > keySet()
Get the keys present in the map in the form of an unordered std::set.
Definition: XdmMap.cpp:476
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:71
bool isFunction()
Determine whether the item is a function or some other type of item.
Definition: XdmMap.h:210
bool isEmpty()
Returns true if this map contains no key-value mappings.
Definition: XdmMap.cpp:550
int mapSize()
Get the number of entries in the map.
Definition: XdmMap.cpp:48
XdmMap * remove(XdmAtomicValue *key)
Create a new map in which the entry for a given key has been removed.
Definition: XdmMap.cpp:450
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:591
XdmValue ** values()
Returns a pointer array containing the values found in this map, that is, the value parts of the key-...
Definition: XdmMap.cpp:626
bool isMap()
Determine whether the item is a map or some other type of item.
Definition: XdmMap.h:219
XdmMap()
Default constructor.
Definition: XdmMap.cpp:10
XDM_TYPE getType()
Get the type of the object.
Definition: XdmMap.h:224
bool containsKey(XdmAtomicValue *key)
Returns true if this map contains a mapping for the specified key.
Definition: XdmMap.cpp:569
XdmAtomicValue ** keys()
Get the keys present in the map in the form of an unordered pointer array of XdmAtomicValue.
Definition: XdmMap.cpp:513
XdmMap(std::map< XdmAtomicValue *, XdmValue * > map)
Create an XdmMap supplying the entries in the form of a std::map, where the keys and values in the st...
Definition: XdmValue.h:50