tr_mm_new_2.cc
来自「这是处理语音信号的程序」· CC 代码 · 共 55 行
CC
55 行
// file: tr_mm_new_2.cc// // isip include files//#include "train_memory_manager.h"#include "train_memory_manager_constants.h"#include <train_lex_node.h>// method: new_lex_cc//// arguments: none//// return: a Lex* pointer to a new lex node//// this method outputs a new empty lex node, and creates them whenever// necessary//Train_Lex_node* Train_Memory_manager::new_lex_cc() { // if there are no free lex nodes available, create a few // if (lex_count_d == (int_4)0) { grow_lex_cc(); } // get a lex node off the list // Train_Link_node* lnd = lex_list_d; lex_list_d = lex_list_d->get_next_cc(); // adjust params // lnd->set_next_cc((Train_Link_node*)NULL); lnd->set_prev_cc((Train_Link_node*)NULL); // get the lexical node here // Train_Lex_node* lxn = (Train_Lex_node*)(lnd->get_item_cc()); lxn->set_status_cc(ISIP_FALSE); // return the link node to the free node list // delete_cc(lnd); // decrement free lex node count // lex_count_d --; // return the lex node and exit gracefully // return lxn;}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?