MCPcopy Create free account
hub / github.com/NodeRT/NodeRT / Init

Method Init

src/NodeRTLib/ProjectFiles/CollectionsWrap.h:206–227  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

204class IteratorWrapper : NodeRT::WrapperBase {
205 public:
206 static void Init() {
207 HandleScope scope;
208
209 Local<FunctionTemplate> localRef = Nan::New<FunctionTemplate>(New);
210 s_constructorTemplate.Reset(localRef);
211 localRef->SetClassName(
212 Nan::New<String>("Windows::Foundation::Collections:IIterator")
213 .ToLocalChecked());
214 localRef->InstanceTemplate()->SetInternalFieldCount(1);
215
216 Nan::SetPrototypeMethod(localRef, "getMany", GetMany);
217 Nan::SetPrototypeMethod(localRef, "moveNext", MoveNext);
218
219 Nan::SetAccessor(localRef->PrototypeTemplate(),
220 Nan::New<String>("current").ToLocalChecked(),
221 CurrentGetter);
222 Nan::SetAccessor(localRef->PrototypeTemplate(),
223 Nan::New<String>("hasCurrent").ToLocalChecked(),
224 HasCurrentGetter);
225
226 return;
227 }
228
229 static Local<Value> CreateIteratorWrapper(
230 ::Windows::Foundation::Collections::IIterator<T> ^ winRtInstance,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected