📄 slev_01.cc
字号:
// file: $isip/class/search/SearchLevel/slev_01.cc// version: $Id: slev_01.cc,v 1.6 2002/09/15 03:46:48 parihar Exp $//// isip include files//#include "SearchLevel.h"#ifndef ISIP_CONSOLE#include <Console.h>#endif// method: debug//// arguments:// const unichar* msg: (input) message to print//// return: logical error status//// this is the debug method//boolean SearchLevel::debug(const unichar* msg_a) const { // dump the data // String output; String value; // write the search level index // value.assign((long)level_index_d); output.debugStr(name(), msg_a, L"level_index_d", value); Console::put(output); // write the beam pruning data // value.assign((boolean)use_beam_prune_d); output.debugStr(name(), msg_a, L"use_beam_prune_d", value); Console::put(output); value.assign((float)beam_threshold_d); output.debugStr(name(), msg_a, L"beam_threshold_d", value); Console::put(output); // write the instance pruning data // value.assign((boolean)use_instance_prune_d); output.debugStr(name(), msg_a, L"use_instance_prune_d", value); Console::put(output); value.assign((long)instance_threshold_d); output.debugStr(name(), msg_a, L"instance_threshold_d", value); Console::put(output); // write the context mode data // value.assign((boolean)use_context_d); output.debugStr(name(), msg_a, L"use_context_d", value); Console::put(output); value.assign((long)left_context_d); output.debugStr(name(), msg_a, L"left_context_d", value); Console::put(output); value.assign((long)right_context_d); output.debugStr(name(), msg_a, L"right_context_d", value); Console::put(output); // write the lexical tree data // value.assign((boolean)use_lexical_tree_d); output.debugStr(name(), msg_a, L"use_lexical_tree_d", value); Console::put(output); // write the nsymbol probability // value.assign((boolean)use_nsymbol_d); output.debugStr(name(), msg_a, L"use_nsymbol_d", value); Console::put(output); value.assign((long)nsymbol_order_d); output.debugStr(name(), msg_a, L"nsymbol_order_d", value); Console::put(output); // write the symbol occupancies // value.assign((boolean)write_symbol_occupancy_d); output.debugStr(name(), msg_a, L"write_symbol_occupancy_d", value); Console::put(output); // exit gracefully // return true;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -