00714.html
来自「这是一本关于verilog编程语言的教程,对学习verilog语言有帮助」· HTML 代码 · 共 228 行 · 第 1/2 页
HTML
228 行
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN">
<html>
<head>
<title>D.5 List methods</title>
<meta http-equiv="Content-Type" content="text/html; charset=GB2312" />
<meta name="generator" content="Doc-O-Matic" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<link rel="STYLESHEET" href="default.css" type="text/css" />
<script type="text/javascript" src="scripts.js"></script>
</head>
<body class="Element700" onload="onBodyLoadEx('systemverilog31a.html', 'topic', '00714.html');" onmousedown="onBodyMouseDown();">
<!-- Begin Popups -->
<div class="Element801" id="popup00743">
<div class="Element800">
<div class="Element14">
链接</div>
<div class="Element11">
<div class="Element10">
<a href="00882.html" target="topic">附录D 链表</a>, <a href="01030.html" target="topic">主题</a></div>
</div>
</div>
</div>
<!-- End Popups -->
<!-- Begin Page Header -->
<div class="Element710" id="areafixed">
<div class="Element92">
<table width="100%" cellspacing="0" cellpadding="0">
<tr><td width="33%">
<div class="Element1">
<a href="#" onmousedown="showPopup(this, 'popup00743');"><img src="seealsolink.png" border="0" alt="" title=""></a> SystemVerilog 3.1a语言参考手册</div>
</td><td width="34%">
<div class="Element2">
</div>
</td><td width="33%">
<div class="Element90">
<a href="00713.html" target="topic"><img src="btn_prev_lightblue.gif" border="0" alt="Previous" title="Previous" onmouseover="switchImage(this, 'btn_prev_lightblue_hover.gif');" onmouseout="switchImage(this, 'btn_prev_lightblue.gif');"></a><a href="00882.html" target="topic"><img src="btn_up_lightblue.gif" border="0" alt="Up" title="Up" onmouseover="switchImage(this, 'btn_up_lightblue_hover.gif');" onmouseout="switchImage(this, 'btn_up_lightblue.gif');"></a><a href="00715.html" target="topic"><img src="btn_next_lightblue.gif" border="0" alt="Next" title="Next" onmouseover="switchImage(this, 'btn_next_lightblue_hover.gif');" onmouseout="switchImage(this, 'btn_next_lightblue.gif');"></a></div>
</td></tr></table><div class="Element5">
D.5 List methods</div>
</div>
</div>
<!-- End Page Header -->
<!-- Begin Client Area -->
<div class="Element720" id="areascroll">
<div class="Element721">
<!-- Begin Page Content -->
<div class="Element58">
<a name="描述"></a><div class="Element11">
<div class="Element10">
<p class="Element10">
The List class provides methods to query the size of the list, obtain iterators to the head or tail of the list,retrieve the data stored in the list, and methods to add, remove, and reorder the elements of the list.</p></div>
</div>
<a name="Group"></a><div class="Element14">
<a onclick="toggleVisibilityStored('Group');" class="a_Element14"><img src="sectionminus.png" border="0" alt="" title="" id="imgGroup">Group</a></div>
<div id="divGroup">
<div class="Element11">
<div class="Element10">
<p class="Element10">
<a href="00882.html" target="topic">附录D 链表</a></p></div>
</div>
</div>
<a name="主题"></a><div class="Element14">
<a onclick="toggleVisibilityStored('主题');" class="a_Element14"><img src="sectionminus.png" border="0" alt="" title="" id="img主题">主题</a></div>
<div id="div主题">
<div class="Element11">
<div class="Element10">
<div class="Element212">
<div class="TableDiv">
<table cellspacing="0" class="Table0">
<tr>
<td class="Element200" valign="top" width="50%">
<div class="Element201">
主题 </div></td><td class="Element204" valign="top" width="50%">
<div class="Element205">
描述 </div></td></tr><tr>
<td class="Element202" valign="top" width="50%">
<div class="Element203">
<a href="00715.html" target="topic">D.5.1 size()</a> </div></td><td class="Element206" valign="top" width="50%">
<div class="Element207">
function int size();<br>size returns the number of elements stored in the list.<br>while ( list1.size > 0 ) begin // loop while still elements in the list<br>...<br>end </div></td></tr><tr>
<td class="Element202" valign="top" width="50%">
<div class="Element203">
<a href="00725.html" target="topic">D.5.2 empty()</a> </div></td><td class="Element206" valign="top" width="50%">
<div class="Element207">
function int empty();<br>empty returns 1 if the number elements stored in the list is zero, 0 otherwise.<br>if ( list1.empty )<br>$display( "list is empty" ); </div></td></tr><tr>
<td class="Element202" valign="top" width="50%">
<div class="Element203">
<a href="00726.html" target="topic">D.5.3 push_front()</a> </div></td><td class="Element206" valign="top" width="50%">
<div class="Element207">
function void push_front( T value );<br>push_front inserts the specified value at the front of the list.<br>List#(int) numbers;<br>numbers.push_front(10);<br>numbers.push_front(5); // numbers contains { 5 , 10 } </div></td></tr><tr>
<td class="Element202" valign="top" width="50%">
<div class="Element203">
<a href="00727.html" target="topic">D.5.4 push_back()</a> </div></td><td class="Element206" valign="top" width="50%">
<div class="Element207">
function void push_back( T value );<br>push_back inserts the specified value at the end of the list.<br>List#(string) names;<br>names.push_back("Donald");<br>names.push_back("Mickey"); // names contains { "Donald", "Mickey" } </div></td></tr><tr>
<td class="Element202" valign="top" width="50%">
<div class="Element203">
<a href="00728.html" target="topic">D.5.5 front()</a> </div></td><td class="Element206" valign="top" width="50%">
<div class="Element207">
function T front();<br>front returns the data stored in the first element of the list (valid only if the list is not empty). </div></td></tr><tr>
<td class="Element202" valign="top" width="50%">
<div class="Element203">
<a href="00729.html" target="topic">D.5.6 back()</a> </div></td><td class="Element206" valign="top" width="50%">
<div class="Element207">
function T back();<br>back returns the data stored in the last element of the list (valid only if the list is not empty).<br>List#(int) numbers;<br>numbers.push_front(3);<br>numbers.push_front(2);<br>numbers.push_front(1);<br>$display( numbers.front, numbers.back ); // displays 1 3 </div></td></tr><tr>
<td class="Element202" valign="top" width="50%">
<div class="Element203">
<a href="00730.html" target="topic">D.5.7 pop_front()</a> </div></td><td class="Element206" valign="top" width="50%">
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?