32 #ifndef _QORE_QOREHASHMAPOPERATORNODE_H
33 #define _QORE_QOREHASHMAPOPERATORNODE_H
35 #include "qore/intern/AbstractIteratorHelper.h"
37 class QoreHashMapOperatorNode :
public QoreNOperatorNodeBase<3> {
40 QoreNOperatorNodeBase<3>(loc, p0, QoreSimpleValue().assign(p1), QoreSimpleValue().assign(p2)) {
47 DLLLOCAL
virtual const char* getTypeName()
const {
48 return map_str.getBuffer();
51 DLLLOCAL
virtual QoreOperatorNode* copyBackground(
ExceptionSink* xsink)
const {
52 ValueHolder n_e0(copy_value_and_resolve_lvar_refs(e[0], xsink), xsink);
55 ValueHolder n_e1(copy_value_and_resolve_lvar_refs(e[1], xsink), xsink);
58 ValueHolder n_e2(copy_value_and_resolve_lvar_refs(e[2], xsink), xsink);
61 return new QoreHashMapOperatorNode(loc, n_e0.release(), n_e1.release(), n_e2.release());
64 DLLLOCAL
static const QoreTypeInfo* setReturnTypeInfo(
const QoreTypeInfo*& returnTypeInfo,
const QoreTypeInfo* expTypeInfo2,
const QoreTypeInfo* iteratorTypeInfo);
66 DLLLOCAL
virtual bool hasEffectAsRoot()
const {
71 const QoreTypeInfo* returnTypeInfo =
nullptr;
79 DLLLOCAL
virtual ~QoreHashMapOperatorNode() {
82 DLLLOCAL
virtual int parseInitImpl(
QoreValue& val, QoreParseContext& parse_context);
84 inline DLLLOCAL
virtual const QoreTypeInfo* getTypeInfo()
const {
85 return returnTypeInfo;
container for holding Qore-language exception information and also for registering a "thread_exit" ca...
Definition: ExceptionSink.h:48
This is the hash or associative list container type in Qore, dynamically allocated only,...
Definition: QoreHashNode.h:50
Qore's string type supported by the QoreEncoding class.
Definition: QoreString.h:93
holds an object and dereferences it in the destructor
Definition: QoreValue.h:476
The main value class in Qore, designed to be passed by value.
Definition: QoreValue.h:275