mirror of
https://github.com/TheAlgorithms/C-Plus-Plus.git
synced 2026-05-12 11:37:18 +08:00
Documentation for b4bbe9dc4e
This commit is contained in:
@@ -143,22 +143,29 @@ Functions</h2></td></tr>
|
||||
</div><div class="memdoc">
|
||||
<p>Main function </p>
|
||||
<div class="fragment"><div class="line"><a name="l00160"></a><span class="lineno"> 160</span>  {</div>
|
||||
<div class="line"><a name="l00161"></a><span class="lineno"> 161</span>  <a class="code" href="../../dd/d2f/class_trie.html">Trie</a> <a class="code" href="../../d4/dd9/structtrie.html">trie</a>;</div>
|
||||
<div class="line"><a name="l00162"></a><span class="lineno"> 162</span>  <a class="code" href="../../d4/dd9/structtrie.html">trie</a>.insert(<span class="stringliteral">"hel"</span>);</div>
|
||||
<div class="line"><a name="l00163"></a><span class="lineno"> 163</span>  <a class="code" href="../../d4/dd9/structtrie.html">trie</a>.insert(<span class="stringliteral">"hello"</span>);</div>
|
||||
<div class="line"><a name="l00164"></a><span class="lineno"> 164</span>  <a class="code" href="../../d4/dd9/structtrie.html">trie</a>.removeWord(<span class="stringliteral">"hel"</span>);</div>
|
||||
<div class="line"><a name="l00165"></a><span class="lineno"> 165</span>  <a class="codeRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> << <a class="code" href="../../d4/dd9/structtrie.html">trie</a>.search(<span class="stringliteral">"hello"</span>) << <span class="charliteral">'\n'</span>;</div>
|
||||
<div class="line"><a name="l00161"></a><span class="lineno"> 161</span>  <a class="code" href="../../dd/d2f/class_trie.html">Trie</a> trie;</div>
|
||||
<div class="line"><a name="l00162"></a><span class="lineno"> 162</span>  trie.<a class="code" href="../../dd/d2f/class_trie.html#afd8b79959009b554e98ea7128b2886f2">insert</a>(<span class="stringliteral">"hel"</span>);</div>
|
||||
<div class="line"><a name="l00163"></a><span class="lineno"> 163</span>  trie.<a class="code" href="../../dd/d2f/class_trie.html#afd8b79959009b554e98ea7128b2886f2">insert</a>(<span class="stringliteral">"hello"</span>);</div>
|
||||
<div class="line"><a name="l00164"></a><span class="lineno"> 164</span>  trie.removeWord(<span class="stringliteral">"hel"</span>);</div>
|
||||
<div class="line"><a name="l00165"></a><span class="lineno"> 165</span>  <a class="codeRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> << trie.<a class="code" href="../../dd/d2f/class_trie.html#a411e77126930a0942dd7b65e96b15206">search</a>(<span class="stringliteral">"hello"</span>) << <span class="charliteral">'\n'</span>;</div>
|
||||
<div class="line"><a name="l00166"></a><span class="lineno"> 166</span>  </div>
|
||||
<div class="line"><a name="l00167"></a><span class="lineno"> 167</span>  <span class="keywordflow">return</span> 0;</div>
|
||||
<div class="line"><a name="l00168"></a><span class="lineno"> 168</span> }</div>
|
||||
</div><!-- fragment -->
|
||||
</div><!-- fragment --><div class="dynheader">
|
||||
Here is the call graph for this function:</div>
|
||||
<div class="dyncontent">
|
||||
<div class="center"><iframe scrolling="no" frameborder="0" src="../../dc/d93/trie__modern_8cpp_ae66f6b31b5ad750f1fe042a706a4e3d4_cgraph.svg" width="200" height="88"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div><!-- contents -->
|
||||
</div><!-- doc-content -->
|
||||
<div class="ttc" id="astructtrie_html"><div class="ttname"><a href="../../d4/dd9/structtrie.html">trie</a></div><div class="ttdef"><b>Definition:</b> trie_tree.cpp:8</div></div>
|
||||
<div class="ttc" id="aclass_trie_html"><div class="ttname"><a href="../../dd/d2f/class_trie.html">Trie</a></div><div class="ttdef"><b>Definition:</b> trie_modern.cpp:16</div></div>
|
||||
<div class="ttc" id="aclass_trie_html_afd8b79959009b554e98ea7128b2886f2"><div class="ttname"><a href="../../dd/d2f/class_trie.html#afd8b79959009b554e98ea7128b2886f2">Trie::insert</a></div><div class="ttdeci">void insert(const std::string &word)</div><div class="ttdef"><b>Definition:</b> trie_modern.cpp:109</div></div>
|
||||
<div class="ttc" id="abasic_ostream_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a></div></div>
|
||||
<div class="ttc" id="aclass_trie_html_a411e77126930a0942dd7b65e96b15206"><div class="ttname"><a href="../../dd/d2f/class_trie.html#a411e77126930a0942dd7b65e96b15206">Trie::search</a></div><div class="ttdeci">bool search(const std::string &word)</div><div class="ttdef"><b>Definition:</b> trie_modern.cpp:132</div></div>
|
||||
<!-- start footer part -->
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
<ul>
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
<map id="main" name="main">
|
||||
<area shape="rect" id="node1" title=" " alt="" coords="5,31,56,57"/>
|
||||
<area shape="rect" id="node2" href="$dd/d2f/class_trie.html#afd8b79959009b554e98ea7128b2886f2" title=" " alt="" coords="107,5,191,32"/>
|
||||
<area shape="rect" id="node3" href="$dd/d2f/class_trie.html#a411e77126930a0942dd7b65e96b15206" title=" " alt="" coords="104,56,195,83"/>
|
||||
</map>
|
||||
@@ -0,0 +1 @@
|
||||
f3bf3e1e4f86696de6035ab996b758f5
|
||||
@@ -0,0 +1,52 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
|
||||
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||
<!-- Generated by graphviz version 2.44.1 (20200629.0846)
|
||||
-->
|
||||
<!-- Title: main Pages: 1 -->
|
||||
<svg width="150pt" height="66pt"
|
||||
viewBox="0.00 0.00 150.00 66.00" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 62)">
|
||||
<title>main</title>
|
||||
<polygon fill="white" stroke="transparent" points="-4,4 -4,-62 146,-62 146,4 -4,4"/>
|
||||
<!-- Node1 -->
|
||||
<g id="node1" class="node">
|
||||
<title>Node1</title>
|
||||
<g id="a_node1"><a xlink:title=" ">
|
||||
<polygon fill="#bfbfbf" stroke="black" points="0,-19.5 0,-38.5 38,-38.5 38,-19.5 0,-19.5"/>
|
||||
<text text-anchor="middle" x="19" y="-26.5" font-family="Helvetica,sans-Serif" font-size="10.00">main</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2 -->
|
||||
<g id="node2" class="node">
|
||||
<title>Node2</title>
|
||||
<g id="a_node2"><a xlink:href="../../dd/d2f/class_trie.html#afd8b79959009b554e98ea7128b2886f2" target="_top" xlink:title=" ">
|
||||
<polygon fill="white" stroke="black" points="76.5,-38.5 76.5,-57.5 139.5,-57.5 139.5,-38.5 76.5,-38.5"/>
|
||||
<text text-anchor="middle" x="108" y="-45.5" font-family="Helvetica,sans-Serif" font-size="10.00">Trie::insert</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node2 -->
|
||||
<g id="edge1" class="edge">
|
||||
<title>Node1->Node2</title>
|
||||
<path fill="none" stroke="midnightblue" d="M38.03,-32.94C46.31,-34.75 56.5,-36.97 66.49,-39.15"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="65.8,-42.58 76.32,-41.3 67.29,-35.75 65.8,-42.58"/>
|
||||
</g>
|
||||
<!-- Node3 -->
|
||||
<g id="node3" class="node">
|
||||
<title>Node3</title>
|
||||
<g id="a_node3"><a xlink:href="../../dd/d2f/class_trie.html#a411e77126930a0942dd7b65e96b15206" target="_top" xlink:title=" ">
|
||||
<polygon fill="white" stroke="black" points="74,-0.5 74,-19.5 142,-19.5 142,-0.5 74,-0.5"/>
|
||||
<text text-anchor="middle" x="108" y="-7.5" font-family="Helvetica,sans-Serif" font-size="10.00">Trie::search</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node3 -->
|
||||
<g id="edge2" class="edge">
|
||||
<title>Node1->Node3</title>
|
||||
<path fill="none" stroke="midnightblue" d="M38.03,-25.06C45.63,-23.4 54.83,-21.39 64.01,-19.39"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="64.85,-22.79 73.88,-17.23 63.36,-15.95 64.85,-22.79"/>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 2.3 KiB |
@@ -141,7 +141,7 @@ char </td><td class="memItemRight" valign="bottom"><a class="el" href="../.
|
||||
<dl class="section note"><dt>Note</dt><dd>Do not know the application of this, however. </dd>
|
||||
<dd>
|
||||
Implementation is C-type and does not utilize the C++ constructs </dd></dl>
|
||||
<dl class="todo"><dt><b><a class="el" href="../../dd/da0/todo.html#_todo000008">Todo:</a></b></dt><dd>implement as a C++ class </dd></dl>
|
||||
<dl class="todo"><dt><b><a class="el" href="../../dd/da0/todo.html#_todo000009">Todo:</a></b></dt><dd>implement as a C++ class </dd></dl>
|
||||
</div><h2 class="groupheader">Macro Definition Documentation</h2>
|
||||
<a id="a392fb874e547e582e9c66a08a1f23326"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a392fb874e547e582e9c66a08a1f23326">◆ </a></span>MAX</h2>
|
||||
|
||||
@@ -185,7 +185,7 @@ Functions</h2></td></tr>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
<p>get_input function is to receive input from standard IO </p><dl class="todo"><dt><b><a class="el" href="../../dd/da0/todo.html#_todo000013">Todo:</a></b></dt><dd>@christianbender Get input from STDIO or write input to memory as done above. </dd></dl>
|
||||
<p>get_input function is to receive input from standard IO </p><dl class="todo"><dt><b><a class="el" href="../../dd/da0/todo.html#_todo000014">Todo:</a></b></dt><dd>@christianbender Get input from STDIO or write input to memory as done above. </dd></dl>
|
||||
<div class="fragment"><div class="line"><a name="l00036"></a><span class="lineno"> 36</span> {}</div>
|
||||
</div><!-- fragment -->
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user