MCPcopy Create free account
hub / github.com/OpenArkStudio/ARK / FindDouble

Method FindDouble

src/plugin/kernel/src/AFCTable.cpp:219–233  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

217}
218
219uint32_t AFCTable::FindDouble(const uint32_t index, double value) const
220{
221 for (auto iter : data_)
222 {
223 auto pRowData = iter.second;
224 ARK_ASSERT_RET_VAL(pRowData != nullptr, 0u);
225
226 if (pRowData->GetDouble(index) == value)
227 {
228 return iter.first;
229 }
230 }
231
232 return 0u;
233}
234
235uint32_t AFCTable::FindString(const uint32_t index, const std::string& value) const
236{

Callers

nothing calls this directly

Calls 1

GetDoubleMethod · 0.45

Tested by

no test coverage detected