MCPcopy Index your code
hub / github.com/ColmapView/Colmapview.github.io / setManyStatuses

Function setManyStatuses

src/store/stores/imageMetricsStore.ts:50–60  ·  view source on GitHub ↗
(
  current: Map<ImageId, ImageMetricStatus>,
  imageIds: ImageId[],
  status: ImageMetricStatus
)

Source from the content-addressed store, hash-verified

48}
49
50function setManyStatuses(
51 current: Map<ImageId, ImageMetricStatus>,
52 imageIds: ImageId[],
53 status: ImageMetricStatus
54): Map<ImageId, ImageMetricStatus> {
55 const next = new Map(current);
56 for (const imageId of imageIds) {
57 next.set(imageId, status);
58 }
59 return next;
60}
61
62function deleteImageIds<T>(current: Map<ImageId, T>, imageIds: ImageId[]): Map<ImageId, T> {
63 const next = new Map(current);

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected