亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? pair.h

?? 這是一個從音頻信號里提取特征參量的程序
?? H
字號:
// file: $isip/class/dstr/Pair/Pair.h// version: $Id: Pair.h,v 1.22 2000/12/17 23:28:31 picone Exp $//// make sure definitions are only made once//#ifndef ISIP_PAIR#define ISIP_PAIR// isip include files//#ifndef ISIP_STRING#include <String.h>#endif#ifndef ISIP_CHAR#include <Char.h>#endif#ifndef ISIP_VECTOR#include <Vector.h>#endif#ifndef ISIP_CONSOLE	#include <Console.h>#endif// Pair: a generic pair template class. this is simply a container class// that groups together two arbitrary objects.//template<class T1, class T2>class Pair {  //---------------------------------------------------------------------------  //  // public constants  //  //---------------------------------------------------------------------------public:    // define the class name  //  static const String CLASS_NAME;  //----------------------------------------  //  // i/o related constants  //  //----------------------------------------      static const String DEF_PARAM;  static const String BLOCK_START_STR;  static const String BLOCK_DELIM_STR;  static const String BLOCK_END_STR;  static const String BLOCK_TERM_STR;    //----------------------------------------  //  // default values and arguments  //  //----------------------------------------  // default values  //      // default arguments to methods  //    //----------------------------------------  //  // error codes  //  //----------------------------------------      static const long ERR = 41800;    //---------------------------------------------------------------------------  //  // protected data  //  //---------------------------------------------------------------------------protected:  // define an object of each type  //  T1 obj1_d;  T2 obj2_d;  // define the memory manager  //  static MemoryManager mgr_d;    //---------------------------------------------------------------------------  //  // required public methods  //  //---------------------------------------------------------------------------public:  // static methods:  //  diagnose method is moved outside the class header file and  //  defined in the PairDiagnose.h in order to avoid issues  //  related to preprocessing of the diagnose code.  //  static const String& name();    // method: setDebug  //  static boolean setDebug(Integral::DEBUG debug_level) {    T1::setDebug(debug_level);    T2::setDebug(debug_level);    return true;  }  // other debug methods  //  boolean debug(const unichar* message) const;  // method: destructor  //  ~Pair() {}  // method: default constructor  //  Pair() {}  // method: copy constructor  //  Pair(const Pair<T1,T2>& arg) {    assign(arg);  }    // method: assign  //  boolean assign(const Pair<T1,T2>& arg) {    return (obj1_d.assign(arg.obj1_d) && obj2_d.assign(arg.obj2_d));  }  // method: operator=  //  Pair<T1,T2>& operator=(const Pair<T1,T2>& arg) {    assign(arg);    return *this;  }  // method: eq  //  determines if the contents of the pair are equivalent.  //  this method calls the eq(TObject&) method for the items  //  contained in the respective nodes to determine equivalence.  //  only classes with an eq() method are available for use with  //  this Pair object  //  boolean eq(const Pair<T1,T2>& arg) const {    return (obj1_d.eq(arg.obj1_d) && obj2_d.eq(arg.obj2_d));  }    // method: sofSize  //  long sofSize() const {    return obj1_d.sofSize() + obj2_d.sofSize();  }  // method: read  //  boolean read(Sof& sof, long tag) {    return read(sof, tag, name());  }  // method: write  //  boolean write(Sof& sof, long tag) const {    return write(sof, tag, name());  }  // other i/o methods  //  boolean read(Sof& sof, long tag, const String& name);  boolean write(Sof& sof, long tag, const String& name) const;    boolean readData(Sof& sof, const String& pname = DEF_PARAM, long size =                   SofParser::FULL_OBJECT, boolean param = true,                   boolean nested = false);  boolean writeData(Sof& sof, const String& pname = DEF_PARAM) const;  // method: new  //  static void* operator new(size_t size) {    return mgr_d.get();  }  // method: new[]  //  static void* operator new[](size_t size) {    return mgr_d.getBlock(size);  }  // method: delete  //  static void operator delete(void* ptr) {    mgr_d.release(ptr);  }  // method: delete[]  //  static void operator delete[](void* ptr) {    mgr_d.releaseBlock(ptr);  }  // method: setGrowSize  //  static boolean setGrowSize(long grow_size) {    return mgr_d.setGrow(grow_size);  }  // method: clear  //     boolean clear(Integral::CMODE cmode = Integral::DEF_CMODE) {    return (obj1_d.clear(cmode) && obj2_d.clear(cmode));  }    //---------------------------------------------------------------------------  //  // class-specific public methods:  //  extensions to required methods  //  //---------------------------------------------------------------------------  // method: constructor  //  Pair(const T1& obj1, const T2& obj2) {    assign(obj1, obj2);  }  // method: assign  //  boolean assign(const T1& obj1, const T2& obj2) {    return (obj1_d.assign(obj1) && obj2_d.assign(obj2));  }  //---------------------------------------------------------------------------  //  // class-specific public methods:  //  item access methods  //  //---------------------------------------------------------------------------  // method: first  //  T1& first() {    return obj1_d;  }  // method: first  //  const T1& first() const {    return obj1_d;  }  // method: second  //  T2& second() {    return obj2_d;  }  // method: second  //  const T2& second() const {    return obj2_d;  }    //---------------------------------------------------------------------------  //  // private methods  //  //---------------------------------------------------------------------------private:}; //-----------------------------------------------------------------------------//// we define non-integral constants at the end of class definition for// templates (for non-templates these are defined in the default constructor)//      //-----------------------------------------------------------------------------// constants: required constants such as the class name//template <class T1, class T2>const String Pair<T1, T2>::CLASS_NAME(L"Pair");// constants: required constants for i/o methods//template <class T1, class T2>const String Pair<T1, T2>::DEF_PARAM(L"pair");template <class T1, class T2>const String Pair<T1, T2>::BLOCK_START_STR(L"{");template <class T1, class T2>const String Pair<T1, T2>::BLOCK_DELIM_STR(L"}, {");template <class T1, class T2>const String Pair<T1, T2>::BLOCK_END_STR(L"}");template <class T1, class T2>const String Pair<T1, T2>::BLOCK_TERM_STR(L";\n");// static instantiations: the memory manager//template <class T1, class T2>MemoryManager Pair<T1, T2>::mgr_d(sizeof(Pair<T1, T2>), CLASS_NAME);// below are all the methods for the Pair template class//      //-----------------------------------------------------------------------------//// required static methods////-----------------------------------------------------------------------------// method: name//// arguments: none//// return: a static String& containing the class name//// this method returns the class name//template<class T1, class T2>const String& Pair<T1,T2>::name() {  // create the static name string for this class and return it  //  static String cname(CLASS_NAME);  cname.clear();  cname.concat(CLASS_NAME);  cname.concat(L"<");  cname.concat(T1::name());  cname.concat(L",");  cname.concat(T2::name());  cname.concat(L">");  // return the name  //  return cname;}//----------------------------------------------------------------------//// required debug methods////----------------------------------------------------------------------// method: debug//// arguments://  const unichar* message: (input) information message//// return: a boolean value indicating status//// this method dumps the contents of an object to the console// template<class T1, class T2>boolean Pair<T1,T2>::debug(const unichar* message_a) const {  // local variables  //  String output;  // output the user's message  //  output.debugStr(name(), message_a, L"");  Console::put(output);    // increment the indention level in the console  //  Console::increaseIndention();    // call the debug method of the item  //  obj1_d.debug(L"first");  obj2_d.debug(L"second");    // decrement the indention level in the console  //  Console::decreaseIndention();    // exit gracefully  //   return true;}//------------------------------------------------------------------------//// required i/o methods////------------------------------------------------------------------------// method: read//// arguments://  Sof& sof: (input) sof file object//  long tag: (input) sof object instance tag//  const String& name: (input) sof object instance name//// return: a boolean value indicating status//// this method has the object read itself from an Sof file//template<class T1, class T2>boolean Pair<T1,T2>::read(Sof& sof_a, long tag_a, const String& name_a) {    // get the instance of the object from the Sof file  //  if (!sof_a.find(name_a, tag_a)) {    return false;  }  // read the actual data from the sof file  //  if (!readData(sof_a)) {    return false;  }  // exit gracefully  //  return true;}// method: write//// arguments://  Sof& sof: (input) sof file object//  long tag: (input) sof object instance tag//  const String& name: (input) sof object instance name//// return: a boolean value indicating status//// this method has the object write itself to an Sof file//template<class T1, class T2>boolean Pair<T1,T2>::write(Sof& sof_a, long tag_a, const String& name_a)  const {  // declare a temporary size variable  //  long obj_size = 0;  // switch on ascii or binary mode  //  if (sof_a.isText()) {    // set the size to be dynamic    //    obj_size = Sof::ANY_SIZE;  }  else {    // the size of the binary data to write    //    obj_size = sofSize();  }    // put the object into the sof file's index  //  if (!sof_a.put(name_a, tag_a, obj_size)) {    return false;  }    // exit gracefully  //  return writeData(sof_a);}// method: readData//// arguments://  Sof& sof: (input) sof file object//  const String& pname: (input) parameter name//  long size: (input) size of the object//  boolean param: (input) is the parameter specified?//  boolean nested: (input) is this nested?//// return: a boolean value indicating status//// this method has the object read itself from an Sof file. it assumes// that the Sof file is already positioned correctly.//template<class T1, class T2>boolean Pair<T1,T2>::readData(Sof& sof_a, const String& pname_a, long size_a,				boolean param_a, boolean nested_a) {    // declare local variables  //  SofParser parser;  String pname;    // if param is false, this means implicit parameter  //  if (!param_a) {    parser.setImplicitParam();    pname.assign(parser.implicitPname());  }  else {    pname.assign(pname_a);  }    // configure the parser to read a nested object  //  if (nested_a) {    parser.setNest();  }    // load the parse  //  if (!parser.load(sof_a, size_a)) {    return Error::handle(name(), L"readData", Error::READ,			 __FILE__, __LINE__, Error::WARNING);  }    // read the length first: this differs for text or binary  //  if (sof_a.isText()) {    long new_size = parser.countTokens(pname);    if (new_size != 2) {      return Error::handle(name(), L"readData", Error::READ, __FILE__,			   __LINE__, Error::WARNING);    }  }  // read both objects  //  if (!obj1_d.readData(sof_a, pname, parser.getEntry(sof_a, pname, 0, 1),		       false, true)) {    return Error::handle(name(), L"readData", Error::READ, __FILE__,			 __LINE__, Error::WARNING);  }  if (!obj2_d.readData(sof_a, pname, parser.getEntry(sof_a, pname, 1, 1),		       false, true)) {    return Error::handle(name(), L"readData", Error::READ, __FILE__,			 __LINE__, Error::WARNING);  }  // exit gracefully  //  return true;}// method: writeData//// arguments://  Sof& sof: (input) sof file object//  const String& pname: (input) parameter name//// return: a boolean value indicating status//// this method writes the object to the Sof file. it assumes that the// Sof file is already positioned correctly.//template<class T1, class T2>boolean Pair<T1,T2>::writeData(Sof& sof_a, const String& pname_a) const {  // if text, write a parameter name. this can't be done with  // writeLabelPrefix because an empty list gets no brackets  //  if (sof_a.isText()) {    if (pname_a.length() > 0) {      String output;      output.assign(pname_a);      output.concat(SofParser::SPACE_CHAR);      output.concat(SofParser::DEF_ASSIGNMENT_CHAR);      output.concat(SofParser::SPACE_CHAR);      sof_a.puts(output);    }    sof_a.puts(BLOCK_START_STR);  }  // write the first element  //  if (!obj1_d.writeData(sof_a, String::getEmptyString())) {    return Error::handle(name(), L"writeData",Error::IO, __FILE__, __LINE__);  }  if (sof_a.isText()) {    sof_a.puts(BLOCK_DELIM_STR);  }    // write the second element  //  if (!obj2_d.writeData(sof_a, String::getEmptyString())) {    return Error::handle(name(), L"writeData",Error::IO, __FILE__, __LINE__);  }  if (sof_a.isText()) {        sof_a.puts(BLOCK_END_STR);        // possibly terminate the statement    //    if (pname_a.length() > 0) {      sof_a.puts(BLOCK_TERM_STR);    }  }  // exit gracefully  //  return true;}// end of include file//#endif

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩三区在线观看| 亚洲已满18点击进入久久| 亚洲少妇最新在线视频| 婷婷国产v国产偷v亚洲高清| 国产成人av电影在线播放| 欧美日韩中文国产| 亚洲天天做日日做天天谢日日欢 | 午夜精品视频一区| 成人午夜激情片| 欧美一区二区视频在线观看2022| 日韩一区在线看| 国产精品中文字幕一区二区三区| 欧美精品乱码久久久久久 | 91啦中文在线观看| 亚洲精品一区二区三区蜜桃下载| 亚洲高清不卡在线| 色婷婷综合久久| 中文字幕字幕中文在线中不卡视频| 国内精品视频666| 欧美一区二区三区视频在线| 亚洲一区二区三区在线看| av电影一区二区| 久久精品一级爱片| 韩日精品视频一区| 日韩一区二区三区在线| 亚洲动漫第一页| 欧美伊人久久久久久午夜久久久久| 国产精品蜜臀在线观看| 成人一二三区视频| 久久久久久亚洲综合影院红桃| 韩日av一区二区| 久久久久国产精品人| 狠狠色伊人亚洲综合成人| 欧美xxxx老人做受| 国产最新精品免费| 精品国产电影一区二区| 激情文学综合插| 26uuu国产一区二区三区| 加勒比av一区二区| 精品久久久久久久久久久久久久久 | 国产剧情av麻豆香蕉精品| 精品1区2区在线观看| 国产精品18久久久久久久网站| 精品国产区一区| 国产精品伊人色| 国产精品久久久久影院亚瑟| 91在线视频观看| 亚洲一区二区综合| 欧美一级xxx| 国产一区二区三区国产| 日本一区二区综合亚洲| av一区二区三区四区| 亚洲精品免费视频| 欧美亚洲一区二区三区四区| 日韩精品国产欧美| 久久精品一区四区| 色综合天天综合狠狠| 亚洲高清在线视频| 亚洲精品一区二区在线观看| 成人av网址在线| 水野朝阳av一区二区三区| 欧美zozozo| 99精品欧美一区二区三区小说| 亚洲综合在线视频| 欧美一级生活片| 成人美女在线观看| 日韩在线一区二区三区| 久久青草国产手机看片福利盒子 | 欧美裸体一区二区三区| 国产自产高清不卡| 一区二区成人在线视频| 欧美成人r级一区二区三区| 成人黄色在线看| 偷偷要91色婷婷| 国产精品久久午夜| 欧美一级日韩一级| 色又黄又爽网站www久久| 精品一区免费av| 亚洲精品免费视频| 日韩免费在线观看| 成人18视频在线播放| 日本最新不卡在线| 亚洲日本va午夜在线影院| 日韩视频免费观看高清在线视频| 97超碰欧美中文字幕| 国产一区二区免费视频| 亚洲福利一二三区| 亚洲婷婷综合色高清在线| 2021国产精品久久精品| 欧美精品一卡两卡| 在线视频国内一区二区| 国产成人亚洲精品狼色在线| 蜜桃av一区二区在线观看| 亚洲观看高清完整版在线观看| 国产精品久久久久久久久免费相片| 欧美一区2区视频在线观看| 色视频成人在线观看免| 国产成人丝袜美腿| 麻豆成人91精品二区三区| 亚洲成av人片一区二区三区| 亚洲三级电影全部在线观看高清| 国产偷国产偷亚洲高清人白洁| 91精品啪在线观看国产60岁| 欧美日韩午夜在线视频| 色伊人久久综合中文字幕| www.亚洲色图.com| 成人小视频免费在线观看| 免费一区二区视频| 日本三级韩国三级欧美三级| 水蜜桃久久夜色精品一区的特点| 亚洲国产日韩一区二区| 亚洲国产日日夜夜| 午夜精品免费在线| 亚洲成av人片在线| 视频一区中文字幕| 日av在线不卡| 九九视频精品免费| 麻豆精品在线视频| 国产在线一区二区| 国产 欧美在线| 99r精品视频| 欧美性做爰猛烈叫床潮| 欧美一a一片一级一片| 欧美日韩不卡一区二区| 欧美精品777| 精品剧情在线观看| 久久精品人人做人人综合| 国产日韩欧美精品一区| 最新热久久免费视频| 亚洲一区二区综合| 美女一区二区三区| 国产精品一线二线三线| 成人一区在线观看| 91成人免费电影| 欧美精品日韩一区| 久久综合狠狠综合久久综合88| 国产亚洲精品aa午夜观看| 中文字幕一区二区在线观看| 亚洲国产三级在线| 国产在线一区二区综合免费视频| 高清在线不卡av| 欧美亚洲国产怡红院影院| 7777女厕盗摄久久久| 久久婷婷色综合| 亚洲精品一卡二卡| 捆绑变态av一区二区三区| 风间由美中文字幕在线看视频国产欧美 | 色94色欧美sute亚洲线路二| 欧美夫妻性生活| 国产日韩欧美精品在线| 亚洲午夜视频在线观看| 九九**精品视频免费播放| 96av麻豆蜜桃一区二区| 欧美日韩中文字幕一区二区| 久久久91精品国产一区二区精品 | 欧美专区日韩专区| 欧美一区二区三区人| 国产精品日产欧美久久久久| 视频一区免费在线观看| 国产91精品精华液一区二区三区| 欧美日韩精品综合在线| 国产欧美一区二区在线观看| 亚洲国产欧美一区二区三区丁香婷| 狠狠色丁香婷综合久久| 欧美日韩一区精品| 国产精品乱码一区二区三区软件| 亚洲成a人在线观看| 99久久综合国产精品| 久久综合999| 日韩av成人高清| 欧美最新大片在线看| 日本一区免费视频| 久久精品国产99国产精品| 欧美三级资源在线| 亚洲人成网站精品片在线观看| 狠狠色狠狠色综合| 欧美一二三在线| 日韩精品成人一区二区三区| 91欧美一区二区| 国产精品欧美一区二区三区| 精品亚洲成av人在线观看| 欧美日韩国产精选| 亚洲免费大片在线观看| 波多野结衣中文字幕一区| 国产亚洲成aⅴ人片在线观看 | 国产精品亚洲第一| 精品国产乱码久久久久久久| 日韩电影在线观看一区| 欧美视频在线观看一区二区| 中文字幕佐山爱一区二区免费| 成人免费视频视频| 久久久精品中文字幕麻豆发布| 美女在线视频一区| 欧美岛国在线观看| 另类调教123区| 欧美mv日韩mv国产网站| 久久99国产精品久久99果冻传媒| 欧美一区二区三区影视| 蜜臀久久99精品久久久久久9| 欧美一级一区二区|