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

Class Object::const_iterator

napi.h:1189–1211  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1187
1188#ifdef NODE_ADDON_API_CPP_EXCEPTIONS
1189class Object::const_iterator {
1190 private:
1191 enum class Type { BEGIN, END };
1192
1193 inline const_iterator(const Object* object, const Type type);
1194
1195 public:
1196 inline const_iterator& operator++();
1197
1198 inline bool operator==(const const_iterator& other) const;
1199
1200 inline bool operator!=(const const_iterator& other) const;
1201
1202 inline const std::pair<Value, Object::PropertyLValue<Value>> operator*()
1203 const;
1204
1205 private:
1206 const Napi::Object* _object;
1207 Array _keys;
1208 uint32_t _index;
1209
1210 friend class Object;
1211};
1212
1213class Object::iterator {
1214 private:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected