Definition at line 2855 of file mainRepository.cpp. References Impala::Persistency::KernelMatrixLocator::GetFeature(), Impala::CmdOptions::GetInstance(), GetKernelMatrixLocator(), GetRawDataSet(), and ILOG_VAR. Referenced by mainRepository(). 02856 { 02857 ILOG_VAR(Impala.Application.Repository.DoDeleteKernelMatrix); 02858 CmdOptions& options = CmdOptions::GetInstance(); 02859 02860 KernelMatrixLocator loc = GetKernelMatrixLocator(options, true); 02861 if (loc.GetFeature() == "ALL") // This is a bit rude, use with care 02862 return KernelMatrixRepository().Delete(loc); 02863 RawDataSet* dataSet = GetRawDataSet(options, false); 02864 if (!dataSet) 02865 return; 02866 02867 String container = loc.GetContainer(); 02868 int nrContainers = (container == "ALL") ? dataSet->GetNrContainers() : 1; 02869 for (int i=0 ; i<nrContainers ; i++) 02870 { 02871 String cur = (container == "ALL") ? dataSet->GetContainer(i) : container; 02872 loc.SetContainer(cur); 02873 KernelMatrixRepository().Delete(loc); 02874 } 02875 }
Here is the call graph for this function: ![]()
|