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

Method FillStringColIdMap

DataViewer/OGRTable.cpp:420–435  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

418}
419
420void OGRTable::FillStringColIdMap(std::vector<int>& col_map)
421{
422 std::vector<int> t;
423 FillColIdMap(t);
424 int string_cnt = 0;
425 for (int i=0, iend=t.size(); i<iend; i++) {
426 if (GetColType(t[i]) == GdaConst::string_type)
427 string_cnt++;
428 }
429 col_map.resize(string_cnt);
430 int cnt=0;
431 for (int i=0, iend=t.size(); i<iend; i++) {
432 if (GetColType(t[i]) == GdaConst::string_type)
433 col_map[cnt++] = t[i];
434 }
435}
436
437void OGRTable::FillDateTimeColIdMap(std::vector<int>& col_map)
438{

Callers 2

GdaInitContentMethod · 0.80
GdaInitContentMethod · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected