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

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

?? netlist.cpp

?? gspiceui電子CAD仿真程序.用于電路參數模擬仿真
?? CPP
?? 第 1 頁 / 共 2 頁
字號:
//*****************************************************************************//                                 NetList.cpp                                *//                                -------------                               *//  Started     : 01/09/2003                                                  *//  Last Update : 14/07/2005                                                  *//  Copyright   : (C) 2003 by MSWaters                                        *//  Email       : M.Waters@bom.gov.au                                         *//*****************************************************************************//*****************************************************************************//                                                                            *//    This program is free software; you can redistribute it and/or modify    *//    it under the terms of the GNU General Public License as published by    *//    the Free Software Foundation; either version 2 of the License, or       *//    (at your option) any later version.                                     *//                                                                            *//*****************************************************************************#include "NetList.hpp"//*****************************************************************************// Constructor.NetList::NetList( void ){}//*****************************************************************************// Destructor.NetList::~NetList( ){}//*****************************************************************************// Compare algorithm for sorting strings alpha/numerically.//// Arguments://   ros1 - a reference to the first  string to be compared//   ros2 - a reference to the second string to be compared//// Return Values://   >0 - ros1 is greater than ros2//   =0 - ros1 is equal to     ros2//   <0 - ros1 is less    than ros2int  NetList::iCompare( const wxString & ros1, const wxString & ros2 ){  unsigned long  ulNum1, ulNum2;  size_t    szt1, szt2;  wxString  osNum1;  wxString  osNum2;  for( szt1=0; szt1<ros1.Length( ) && szt1<ros2.Length( ); szt1++ )  {    // Compare numbers as a whole    if( isdigit( ros1[szt1] ) && isdigit( ros2[szt1] ) )    {      // Extract the number from each string      osNum1 += osNum2 = wxT("");      for( szt2=szt1; szt2<ros1.Length( ); szt2++ ) osNum1 += ros1[szt2];      for( szt2=szt1; szt2<ros2.Length( ); szt2++ ) osNum2 += ros2[szt2];      // Convert to unsigned long integers      osNum1.ToULong( &ulNum1 );      osNum2.ToULong( &ulNum2 );      // Compare the two numbers      if( ulNum1 > ulNum2 ) return(  1 );      if( ulNum1 < ulNum2 ) return( -1 );      // Increment the loop counter      szt1 = osNum1.Length( ) - 1;      continue;    }    // Compare characters one at a time    if( ros1[szt1] > ros2[szt1] ) return(  1 );    if( ros1[szt1] < ros2[szt1] ) return( -1 );  }  // If characters match compare string length  if( ros1.Length( ) > ros2.Length( ) ) return(  1 );  if( ros1.Length( ) < ros2.Length( ) ) return( -1 );  // The strings are identical  return( 0 );}//*****************************************************************************// This function indicates whether a line in a sequence of line falls within a // sub-circuit definition block.//// Argument List://   A line in a sequence of lines to be tested//// Return Values://   TRUE  - The line does    falls within a su-circuit definition block//   FALSE - The line doesn't falls within a su-circuit definition blockbool  NetList::bIsSubCkt( wxString & roLine ){  static  bool  bIsSubCkt=FALSE;  wxString  os1;  os1 = roLine;  os1.MakeUpper( );  if( os1.StartsWith( wxT(".SUBCKT") ) ) bIsSubCkt = TRUE;  if( os1.StartsWith( wxT(".ENDS") ) )   bIsSubCkt = FALSE;  return( bIsSubCkt );}//*****************************************************************************// Extract the title for the circuit description which is traditionally the// first line in the file. An '*' seems to be used as a comment designator.//// Return Values://   TRUE  - Success//   FALSE - Failurebool  NetList::bExtractTitle( void ){  // Check that the circuit isn't empty  if( IsEmpty( ) )     return( FALSE );  // If the first line is empty assume there is no title  wxString  os1 = Item( 0 );  if( os1.IsEmpty( ) ) return( FALSE );  // If the first line doesn't begin with an '*' assume first line is the title  if( os1.GetChar( 0 ) != wxT('*') )  {    m_oasTitle.Add( os1 );    return( TRUE );  }  // Take all lines beginning with an '*" as the title  for( size_t szt1=0; szt1<GetCount( ); szt1++ )  {    os1 = Item( szt1 );    if( os1.IsEmpty( ) )               break;    if( os1.GetChar( 0 ) != wxT('*') ) break;    m_oasTitle.Add( os1 );  }  if( m_oasTitle.IsEmpty( ) ) return( FALSE );  return( TRUE );}//*****************************************************************************// Extract any include directives.//// Return Values://   TRUE  - Success//   FALSE - Failurebool  NetList::bExtractIncludes( void ){  wxString  os1, os2;  size_t    szt1;  // Need at least a title line, 2 components and an include directive  if( GetCount( ) < 4 ) return( TRUE ); // There are no include directives  // Scan circuit description for include directives  for( szt1=0; szt1<GetCount( ); szt1++ )  {    os1 = Item( szt1 );    if( bIsSubCkt( os1 ) ) continue;    if( os1.IsEmpty( )   ) continue;    os2 = os1;    os2.MakeUpper( );    if( os2.StartsWith( wxT(".INCLUDE ") ) ) m_oasIncludes.Add( os1 );  }  return( TRUE );}//*****************************************************************************// Extract all the component description lines from the circuit description.// A component line is identified if the first character in the line is an// alpha character and its length is greater than 8. The following examples// shows a component description of minimum length (a resistor connected to// nodes 1 and 0 of value 9 Ohm):////   R1 1 0 9//// Return Values://   TRUE  - Success//   FALSE - Failurebool  NetList::bExtractCpnts( void ){  wxString   os1, os2;  size_t     szt1;  Component  oCpnt;  // Need at least a title line and 2 components  if( GetCount( ) < 3 ) return( FALSE ); // There are insufficient lines  // Reset sub-circuit detection function  os1 = wxT(".ENDS");  bIsSubCkt( os1 );  // Scan circuit description for components  for( szt1=0; szt1<GetCount( ); szt1++ )  {    // Retrieve the next line from the net list    os1 = Item( szt1 );    // Ignore all component definitions inside a sub-circuit block    if( bIsSubCkt( os1 ) ) continue;    // Determine if this line is a component description    if( ! oCpnt.bSetLine( os1.c_str( ) ) ) continue;    // A component description was found    os1.Trim( );    m_oasCpnts.Add( os1 );  }  // Circuit description must have components  if( m_oasCpnts.IsEmpty( ) ) return( FALSE );  m_oasCpnts.Sort( &iCompare );  return( TRUE );}//*****************************************************************************// Extract all the model description lines from the circuit description.// A model description can consist of 1 or more lines and is identified if the// line begins with ".MODEL ". Subsequent lines beginning with a '+' character// are appended to the model description. The format is illustrated in the// following example:////   .MODEL CMOSN NMOS (LEVEL=2 LD=0.265073u TOX=418.0e-10//   + NSUB=1.53142e+16 VTO=0.844345 KP=4.15964e-05 GAMMA=0.863074//   + CJ=0.0003844 MJ=0.488400 CJSW=5.272e-10 MJSW=0.300200 PB=0.700000)//// Return Values://   TRUE  - Success//   FALSE - Failurebool  NetList::bExtractModels( void ){  wxString  osModel;  wxString  os1, os2;  size_t    szt1;  // Need at least a title line, 2 components and a model description line  if( GetCount( ) < 4 ) return( TRUE ); // There are no model descriptions  // Reset sub-circuit detection function  os1 = wxT(".ENDS");  bIsSubCkt( os1 );  // Scan circuit description for models  for( szt1=0; szt1<GetCount( ); szt1++ )  {    os1 = Item( szt1 );    if( bIsSubCkt( os1 ) )                     continue;    if( os1.IsEmpty( ) && osModel.IsEmpty( ) ) continue;    os2 = os1;    os2.MakeUpper( );    if( os2.StartsWith( wxT(".MODEL ") ) )    { // First line of model description found      if( ! osModel.IsEmpty( ) ) m_oasModels.Add( osModel );      osModel = os1;    }    else if( os1.GetChar( 0 ) == wxT('+') )    { // Intermediate line of model description found      if( osModel.Length( ) > 1 ) osModel << wxT('\n') << os1;    }    else if( ! osModel.IsEmpty( ) )    { // Last line of model description found      m_oasModels.Add( osModel );      osModel.Empty( );    }  }  return( TRUE );}//*****************************************************************************// Extract any sub-circuit descriptions from the circuit description (net list).// The format of a sub-circuit description is illustrated in the following// example:////   .SUBCKT CCTNAME 1 5//   R1 1 2 1K//   R2 2 3 2K//   R3 3 4 3K//   R4 4 5 4K//   .ENDS CCTNAME//// Return Values://   TRUE  - Success//   FALSE - Failurebool  NetList::bExtractSubCcts( void ){  wxString  osSubCct;  wxString  os1, os2;  size_t    szt1;  // Need at least a title line, 2 components and a sub-circuit description  // containing 2 lines  if( GetCount( ) < 7 ) return( TRUE ); // There are no sub-cct descriptions  // Scan circuit description for sub-circuits  for( szt1=0; szt1<GetCount( ); szt1++ )  {    os1 = Item( szt1 );    if( os1.IsEmpty( ) && osSubCct.IsEmpty( ) ) continue;    os2 = os1;    os2.MakeUpper( );    if( os2.StartsWith( wxT(".SUBCKT ") ) )    { // First line in sub-circuit description found      osSubCct = os1;    }    else if( os2.StartsWith( wxT(".ENDS") ) )    { // Last line in sub-circuit description found      if( ! osSubCct.IsEmpty( ) )      {        osSubCct << wxT('\n') << os1;        m_oasSubCcts.Add( osSubCct );        osSubCct.Empty( );      }    }    else if( ! osSubCct.IsEmpty( ) )    { // Intermediate line in sub-circuit description found      osSubCct << wxT('\n') << os1;    }  }  return( TRUE );}//*****************************************************************************// Extract all nodes labels from the component line string array.//// Return Values://   TRUE  - Success//   FALSE - Failurebool  NetList::bExtractNodeLbls( void ){  // Check that there are some components  if( m_oasCpnts.GetCount( ) <= 0 ) return( FALSE );  wxStringTokenizer  oStrTok;  wxString  os1;  size_t    szt1;  char      cCpnt;  for( szt1=0; szt1<m_oasCpnts.GetCount( ); szt1++ )  {    os1 = m_oasCpnts.Item( szt1 );    oStrTok.SetString( os1 );    // Need at least 3 fields the first is assumed to be the component label    if( oStrTok.CountTokens( ) < 3 ) continue;    os1 = oStrTok.GetNextToken( ); // Discard component label

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美日韩一区精品| 亚洲天堂免费在线观看视频| 一区二区三区在线视频免费观看| 国产一区二区看久久| 精品毛片乱码1区2区3区| 久久精品理论片| 国产三区在线成人av| 97久久精品人人澡人人爽| 樱花影视一区二区| www亚洲一区| 欧美午夜不卡视频| 国产精品一区二区久久不卡| 亚洲一区视频在线观看视频| wwwwxxxxx欧美| 国产欧美一区二区三区沐欲| 欧美高清精品3d| 成人精品小蝌蚪| 蜜桃视频一区二区三区| 亚洲精品五月天| 亚洲一区二区三区视频在线播放 | 国产女主播在线一区二区| 久久亚洲春色中文字幕久久久| 中文字幕精品一区二区精品绿巨人| 欧美人妇做爰xxxⅹ性高电影| 波多野结衣中文字幕一区二区三区| 天堂va蜜桃一区二区三区 | 亚洲丰满少妇videoshd| 久久午夜羞羞影院免费观看| 国产精品久久三| 精品99999| 日韩一级大片在线| 欧美视频一区二| 欧美成人官网二区| 亚洲手机成人高清视频| 日韩不卡一区二区三区| 婷婷夜色潮精品综合在线| 综合久久综合久久| 伦理电影国产精品| 色综合中文综合网| 国产日韩欧美一区二区三区乱码| 国产欧美日韩卡一| 亚洲午夜精品久久久久久久久| 精品一区精品二区高清| 一区二区三区在线看| 性欧美疯狂xxxxbbbb| 洋洋av久久久久久久一区| 久久精品久久精品| 97精品国产露脸对白| 欧美精品一区二区精品网| 亚洲一区二区三区四区在线观看 | 日韩精品亚洲专区| www.99精品| 在线日韩国产精品| 欧美日韩一区二区三区免费看 | 91在线精品一区二区| 日韩免费观看高清完整版| 欧美va天堂va视频va在线| 亚洲综合一区二区三区| a亚洲天堂av| 国产视频视频一区| 精品一区二区三区久久| 日韩欧美色综合| 日韩电影在线一区二区| 欧美理论在线播放| 亚洲成人动漫在线免费观看| 色丁香久综合在线久综合在线观看| 欧美四级电影网| 亚洲一区二区欧美| 欧美日韩一区二区三区免费看| 一区二区三区国产精品| 91国模大尺度私拍在线视频| 亚洲三级理论片| 欧美中文字幕一区| 水蜜桃久久夜色精品一区的特点| 欧美日韩情趣电影| 亚洲超碰精品一区二区| 制服丝袜亚洲色图| 国产精品久久久久一区二区三区共 | 石原莉奈在线亚洲二区| 亚洲va欧美va人人爽午夜| 国产一区二区91| 久久美女高清视频| 亚洲在线中文字幕| 欧美色视频在线观看| 亚洲综合激情网| 在线播放91灌醉迷j高跟美女| 日韩激情av在线| 精品国产区一区| 国产精品一区二区久久精品爱涩| 中国色在线观看另类| 日本美女一区二区三区视频| 欧美一卡二卡三卡四卡| 亚洲欧美日韩综合aⅴ视频| 人人精品人人爱| 日本久久电影网| 亚洲在线视频免费观看| 欧美一级在线视频| 国产成人免费高清| 26uuu国产在线精品一区二区| 国产在线不卡视频| 中文字幕欧美一| 国产精品系列在线观看| 亚洲私人影院在线观看| 欧美猛男超大videosgay| 久久99精品久久久久婷婷| 国产精品欧美综合在线| 欧美无砖专区一中文字| 国产剧情一区在线| 一区二区三区中文字幕在线观看| 日韩午夜激情av| 成人网页在线观看| 日韩av电影免费观看高清完整版| 日本一区二区三区视频视频| 欧美日韩夫妻久久| 丁香桃色午夜亚洲一区二区三区| 欧美一级片在线看| 成人av在线播放网址| 婷婷国产在线综合| 最新国产精品久久精品| 欧美r级在线观看| 欧美日韩综合在线| 91网站在线播放| 国产精品久久一卡二卡| 欧美一区二区三区免费观看视频 | 国产香蕉久久精品综合网| 欧美日韩一区小说| 96av麻豆蜜桃一区二区| 国产主播一区二区三区| 久久久电影一区二区三区| 欧美日韩大陆一区二区| 成人av电影免费在线播放| 久久国产精品99精品国产| 一个色综合av| 亚洲四区在线观看| 国产精品乱码人人做人人爱| 精品国产免费人成电影在线观看四季 | 欧美精品在线观看播放| 91日韩一区二区三区| 国产盗摄一区二区| 国产呦精品一区二区三区网站| 日韩和欧美一区二区| 亚洲成人av在线电影| 一区二区三区久久| 亚洲日本在线观看| 亚洲欧美日韩国产中文在线| 国产精品免费久久| 国产精品久久久久永久免费观看| 国产日韩欧美精品电影三级在线 | 欧美男生操女生| 欧美日韩在线免费视频| 欧美视频在线一区| 欧美日韩一区不卡| 欧美亚洲一区二区在线| 欧美三级日韩三级| 欧美日韩日日摸| 欧美肥妇bbw| 日韩一区二区免费在线观看| 日韩欧美综合在线| 精品久久一区二区三区| 国产欧美精品国产国产专区 | 三级一区在线视频先锋| 亚洲高清免费一级二级三级| 亚洲国产cao| 免费的成人av| 成人性视频免费网站| 不卡的av在线| 欧美系列一区二区| 欧美一级二级在线观看| 精品成人在线观看| 日本一区二区不卡视频| 一区二区三区四区不卡视频 | 国产馆精品极品| 不卡的av中国片| 欧美日本免费一区二区三区| 91精品国产91热久久久做人人| 精品国产91九色蝌蚪| 国产精品乱码妇女bbbb| 一区二区三区 在线观看视频 | 久久精品一区二区| 亚洲免费成人av| 麻豆成人91精品二区三区| 国产成人精品免费看| 欧美在线免费视屏| 欧美tk—视频vk| 依依成人综合视频| 九色综合狠狠综合久久| 99热这里都是精品| 日韩美女一区二区三区| 亚洲日本一区二区| 久久国产精品99精品国产| 日本高清不卡视频| 久久综合成人精品亚洲另类欧美 | 极品少妇xxxx精品少妇| 色综合色狠狠天天综合色| 丁香亚洲综合激情啪啪综合| 欧美在线视频不卡| 欧美激情综合五月色丁香| 日韩成人午夜精品| 91在线丨porny丨国产| 欧美成人一区二区三区片免费|