⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tr_latn_size_0.cc

📁 这是处理语音信号的程序
💻 CC
字号:
// file: tr_latn_size_0.cc//// isip include files//#include "train_lattice_node.h"#include "train_lattice_node_constants.h"#include <train_lex_tree.h>#include <train_lex_tree_constants.h>// method: size_cc//// arguments: none//// return: an int_4 with number of bytes used by this object//// this method counts the size of the current object in bytes//int_4 Train_Lattice_node::size_cc() {  // set the size variable  //  int_4 size = 0;    // add the size of each constituent data  //  // add the size of all numeric data  //  size += sizeof(int_4);                         // type_d  size += sizeof(Train_Word*);                         // word_d  size += sizeof(int_4);                         // pron_variant_d  size += sizeof(int_4);                         // frame_d  size += sizeof(int_4);                         // node_index_d  size += sizeof(int_4);                         // num of incoming arcs  size += sizeof(int_4);                         // num of outgoing arcs  // loop over all nodes in the linked list  //  if (prev_nodes_d != (Train_Link_list*)NULL) {    for (Train_Link_node* node = prev_nodes_d->get_head_cc();	 node != (Train_Link_node*)NULL; node = node->get_next_cc()) {      size += node->size_cc();    }  }  if (next_nodes_d != (Train_Link_list*)NULL) {    for (Train_Link_node* node = next_nodes_d->get_head_cc();	 node != (Train_Link_node*)NULL; node = node->get_next_cc()) {      size += node->size_cc();    }  }  // add the size of the lexical tree  //  size += sizeof(Train_Lex_tree*);                         // lex_tree_d  if (lex_tree_d != (Train_Lex_tree*)NULL) {    size += lex_tree_d->size_cc();  }  // add the size of the lm and ac scores array;  //  size += num_arcs_out_d*sizeof(float_8);  size += num_arcs_out_d*sizeof(float_8);    // exit gracefully  //  return size;}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -