| 1187 | |
| 1188 | #ifdef NODE_ADDON_API_CPP_EXCEPTIONS |
| 1189 | class 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 | |
| 1213 | class Object::iterator { |
| 1214 | private: |
nothing calls this directly
no outgoing calls
no test coverage detected