| 92 | } |
| 93 | |
| 94 | const ScriptDataBase *getScriptHeader(uint32_t addressNum, DedupAddressType::Enum type) const { |
| 95 | static auto &scriptDataBaseTable = *[]() { |
| 96 | auto table = make_dynamic_table<DedupAddressType, internal::ScriptDataBaseFunctor>(); |
| 97 | return new decltype(table){table}; |
| 98 | }(); |
| 99 | auto index = static_cast<size_t>(type); |
| 100 | return scriptDataBaseTable.at(index)(addressNum, *this); |
| 101 | } |
| 102 | |
| 103 | std::array<uint32_t, DedupAddressType::size> scriptCounts() const { |
| 104 | return make_static_table<DedupAddressType, internal::ScriptCountFunctor>(*this); |
no outgoing calls
no test coverage detected