| 185 | } |
| 186 | |
| 187 | uint32_t AFCTable::FindBool(const uint32_t index, bool value) const |
| 188 | { |
| 189 | for (auto iter : data_) |
| 190 | { |
| 191 | auto pRowData = iter.second; |
| 192 | ARK_ASSERT_RET_VAL(pRowData != nullptr, 0u); |
| 193 | |
| 194 | if (pRowData->GetBool(index) == value) |
| 195 | { |
| 196 | return iter.first; |
| 197 | } |
| 198 | } |
| 199 | |
| 200 | return 0u; |
| 201 | } |
| 202 | |
| 203 | uint32_t AFCTable::FindFloat(const uint32_t index, float value) const |
| 204 | { |