MCPcopy Create free account
hub / github.com/creatale/node-dv / SetMap

Method SetMap

deps/tesseract/ccutil/indexmapbidi.cpp:88–90  ·  view source on GitHub ↗

Sets a given index in the sparse_map_ to be mapped or not.

Source from the content-addressed store, hash-verified

86
87// Sets a given index in the sparse_map_ to be mapped or not.
88void IndexMapBiDi::SetMap(int sparse_index, bool mapped) {
89 sparse_map_[sparse_index] = mapped ? 0 : -1;
90}
91
92// Sets up the sparse_map_ and compact_map_ properly after Init and
93// some calls to SetMap. Assumes an ordered 1-1 map from set indices

Callers 3

SetupForClusteringMethod · 0.80
FindNZFeatureMappingMethod · 0.80
SetupFontIdMapMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected