MCPcopy Create free account
hub / github.com/GeoDaCenter/geoda / FillStringAndIntegerColIdMap

Method FillStringAndIntegerColIdMap

DataViewer/OGRTable.cpp:399–418  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

397}
398
399void OGRTable::FillStringAndIntegerColIdMap(std::vector<int>& col_map)
400{
401 std::vector<int> t;
402 FillColIdMap(t);
403 int numeric_cnt = 0;
404 for (int i=0, iend=t.size(); i<iend; i++) {
405 if (GetColType(t[i]) == GdaConst::long64_type ||
406 GetColType(t[i]) == GdaConst::string_type) {
407 numeric_cnt++;
408 }
409 }
410 col_map.resize(numeric_cnt);
411 int cnt=0;
412 for (int i=0, iend=t.size(); i<iend; i++) {
413 if (GetColType(t[i]) == GdaConst::long64_type ||
414 GetColType(t[i]) == GdaConst::string_type) {
415 col_map[cnt++] = t[i];
416 }
417 }
418}
419
420void OGRTable::FillStringColIdMap(std::vector<int>& col_map)
421{

Callers 5

CreateControlsMethod · 0.80
InitVariableListBoxMethod · 0.80
CreateControlsMethod · 0.80
GdaInitContentMethod · 0.80
GdaInitContentMethod · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected