#include "search/pre_ranking_info.hpp" #include namespace search { std::string DebugPrint(PreRankingInfo const & info) { std::ostringstream os; os << "PreRankingInfo ["; os << "m_distanceToPivot:" << info.m_distanceToPivot << ","; for (size_t i = 0; i < static_cast(Model::TYPE_COUNT); ++i) { if (info.m_tokenRange[i].Empty()) continue; auto const type = static_cast(i); os << "m_tokenRange[" << DebugPrint(type) << "]:" << DebugPrint(info.m_tokenRange[i]) << ","; } os << "m_rank:" << static_cast(info.m_rank) << ","; os << "m_type:" << info.m_type; os << "]"; return os.str(); } } // namespace search