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

📄 tr_lat_size_0.cc

📁 这是处理语音信号的程序
💻 CC
字号:
// file: tr_lat_size_0.cc//// isip include files//#include "train_lattice.h"#include "train_lattice_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::size_cc() {  // set the size variable  //  int_4 size = 0;    // add the size of all numeric data  //  size += sizeof(int_4);                         // num_arcs_d  size += sizeof(int_4);                         // num_nodes_d  size += sizeof(float_4);                       // lm_scale_d  size += sizeof(float_4);                       // word_penalty_d  // add the size of all character strings  //  if (lang_model_d != (char_1*)NULL) {    size += strlen((char*)lang_model_d)*sizeof(char_1);    // lang_model_d  }  if (utterance_d != (char_1*)NULL) {    size += strlen((char*)utterance_d)*sizeof(char_1);     // utterance_d  }  if (model_set_d != (char_1*)NULL) {        size += strlen((char*)model_set_d)*sizeof(char_1);     // model_set_d  }    // add size of other members which are defined objects  //  size += sizeof(Train_Lattice_node*);                         // start_node_d  size += sizeof(Train_Hash_table*);                           // lnode_d  size += lnode_d->size_cc();    // exit gracefully  //  return size;}

⌨️ 快捷键说明

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