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

Method InsertTime

DataViewer/VarOrderMapper.cpp:378–389  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

376}
377
378void VarOrderMapper::InsertTime(int time, const wxString& new_time_id)
379{
380 if (time < 0 || time > time_ids.size()) return;
381 time_ids.insert(time_ids.begin() + time, new_time_id);
382
383 for (VarGroup_container::iterator i=var_grps.begin();
384 i!=var_grps.end(); ++i) {
385 if (!i->IsSimple() && i->GetNumTms() >= time) {
386 i->vars.insert(i->vars.begin() + time, "");
387 }
388 }
389}
390
391void VarOrderMapper::RenameTime(int time, const wxString& new_time_id)
392{

Callers 2

GroupColsMethod · 0.80
InsertTimeStepMethod · 0.80

Calls 4

IsSimpleMethod · 0.80
sizeMethod · 0.45
insertMethod · 0.45
GetNumTmsMethod · 0.45

Tested by

no test coverage detected