MCPcopy Create free account
hub / github.com/nodejs/node-addon-api / Object::iterator

Class Object::iterator

napi.h:1213–1234  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1211};
1212
1213class Object::iterator {
1214 private:
1215 enum class Type { BEGIN, END };
1216
1217 inline iterator(Object* object, const Type type);
1218
1219 public:
1220 inline iterator& operator++();
1221
1222 inline bool operator==(const iterator& other) const;
1223
1224 inline bool operator!=(const iterator& other) const;
1225
1226 inline std::pair<Value, Object::PropertyLValue<Value>> operator*();
1227
1228 private:
1229 Napi::Object* _object;
1230 Array _keys;
1231 uint32_t _index;
1232
1233 friend class Object;
1234};
1235#endif // NODE_ADDON_API_CPP_EXCEPTIONS
1236
1237#ifdef NODE_API_EXPERIMENTAL_HAS_SHAREDARRAYBUFFER

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected