mirror of
https://github.com/TheAlgorithms/C-Plus-Plus.git
synced 2026-07-17 12:02:22 +08:00
Documentation for db149bf3b7
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
|
||||
<meta name="generator" content="Doxygen 1.9.4"/>
|
||||
<meta name="generator" content="Doxygen 1.9.5"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>Algorithms_in_C++: Trie Class Reference</title>
|
||||
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
|
||||
@@ -41,10 +41,10 @@ MathJax.Hub.Config({
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.9.4 -->
|
||||
<!-- Generated by Doxygen 1.9.5 -->
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
var searchBox = new SearchBox("searchBox", "../../search",'Search','.html');
|
||||
var searchBox = new SearchBox("searchBox", "../../search/",'.html');
|
||||
/* @license-end */
|
||||
</script>
|
||||
<script type="text/javascript" src="../../menudata.js"></script>
|
||||
@@ -84,9 +84,16 @@ $(document).ready(function(){initNavTree('dd/d2f/class_trie.html','../../'); ini
|
||||
|
||||
<!-- iframe showing the search results (closed by default) -->
|
||||
<div id="MSearchResultsWindow">
|
||||
<iframe src="javascript:void(0)" frameborder="0"
|
||||
name="MSearchResults" id="MSearchResults">
|
||||
</iframe>
|
||||
<div id="MSearchResults">
|
||||
<div class="SRPage">
|
||||
<div id="SRIndex">
|
||||
<div id="SRResults"></div>
|
||||
<div class="SRStatus" id="Loading">Loading...</div>
|
||||
<div class="SRStatus" id="Searching">Searching...</div>
|
||||
<div class="SRStatus" id="NoMatches">No Matches</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="header">
|
||||
@@ -104,7 +111,7 @@ $(document).ready(function(){initNavTree('dd/d2f/class_trie.html','../../'); ini
|
||||
<div class="dynheader">
|
||||
Collaboration diagram for Trie:</div>
|
||||
<div class="dyncontent">
|
||||
<div class="center"><iframe scrolling="no" frameborder="0" src="../../d8/d61/class_trie__coll__graph.svg" width="218" height="142"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
|
||||
<div class="center"><iframe scrolling="no" frameborder="0" src="../../d8/d61/class_trie__coll__graph.svg" width="218" height="139"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
|
||||
</div>
|
||||
<center><span class="legend">[<a target="top" href="../../graph_legend.html">legend</a>]</span></center></div>
|
||||
<table class="memberdecls">
|
||||
@@ -151,7 +158,7 @@ static constexpr size_t </td><td class="memItemRight" valign="bottom"><b>AL
|
||||
<div class="textblock"><p >A basic implementation of trie class to store only lower-case strings. You can extend the implementation to all the ASCII characters by changing the value of @ ALPHABETS to 128. </p>
|
||||
</div><h2 class="groupheader">Constructor & Destructor Documentation</h2>
|
||||
<a id="a6af57e9f25d0d0a2d59eea5a4a802908" name="a6af57e9f25d0d0a2d59eea5a4a802908"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a6af57e9f25d0d0a2d59eea5a4a802908">◆ </a></span>Trie()</h2>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a6af57e9f25d0d0a2d59eea5a4a802908">◆ </a></span>Trie()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
@@ -180,7 +187,7 @@ static constexpr size_t </td><td class="memItemRight" valign="bottom"><b>AL
|
||||
</div>
|
||||
<h2 class="groupheader">Member Function Documentation</h2>
|
||||
<a id="a6d10eb1669453395d1900ebd401954fb" name="a6d10eb1669453395d1900ebd401954fb"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a6d10eb1669453395d1900ebd401954fb">◆ </a></span>hasChildren()</h2>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a6d10eb1669453395d1900ebd401954fb">◆ </a></span>hasChildren()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
@@ -224,7 +231,7 @@ static constexpr size_t </td><td class="memItemRight" valign="bottom"><b>AL
|
||||
</div>
|
||||
</div>
|
||||
<a id="afd8b79959009b554e98ea7128b2886f2" name="afd8b79959009b554e98ea7128b2886f2"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#afd8b79959009b554e98ea7128b2886f2">◆ </a></span>insert()</h2>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#afd8b79959009b554e98ea7128b2886f2">◆ </a></span>insert()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
@@ -271,7 +278,7 @@ static constexpr size_t </td><td class="memItemRight" valign="bottom"><b>AL
|
||||
</div>
|
||||
</div>
|
||||
<a id="a734a08b52b8ad73bdd1f36ae8348056e" name="a734a08b52b8ad73bdd1f36ae8348056e"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a734a08b52b8ad73bdd1f36ae8348056e">◆ </a></span>removeWord()</h2>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a734a08b52b8ad73bdd1f36ae8348056e">◆ </a></span>removeWord()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
@@ -301,7 +308,7 @@ static constexpr size_t </td><td class="memItemRight" valign="bottom"><b>AL
|
||||
</div>
|
||||
</div>
|
||||
<a id="a26941759ecf94d67a27d4a610bc0f63d" name="a26941759ecf94d67a27d4a610bc0f63d"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a26941759ecf94d67a27d4a610bc0f63d">◆ </a></span>removeWordHelper()</h2>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a26941759ecf94d67a27d4a610bc0f63d">◆ </a></span>removeWordHelper()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
@@ -396,14 +403,14 @@ static constexpr size_t </td><td class="memItemRight" valign="bottom"><b>AL
|
||||
</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="../../dd/d2f/class_trie_a26941759ecf94d67a27d4a610bc0f63d_cgraph.svg" width="343" height="139"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
|
||||
<div class="center"><iframe scrolling="no" frameborder="0" src="../../dd/d2f/class_trie_a26941759ecf94d67a27d4a610bc0f63d_cgraph.svg" width="343" height="135"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="a411e77126930a0942dd7b65e96b15206" name="a411e77126930a0942dd7b65e96b15206"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a411e77126930a0942dd7b65e96b15206">◆ </a></span>search()</h2>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a411e77126930a0942dd7b65e96b15206">◆ </a></span>search()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
@@ -460,7 +467,7 @@ False if word is not found in trie or isEndOfWord is set to false. </dd></dl>
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
<ul>
|
||||
<li class="navelem"><a class="el" href="../../dd/d2f/class_trie.html">Trie</a></li>
|
||||
<li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="../../doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.4 </li>
|
||||
<li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="../../doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.5 </li>
|
||||
</ul>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<map id="Trie::removeWordHelper" name="Trie::removeWordHelper">
|
||||
<area shape="rect" id="node1" title=" " alt="" coords="5,56,168,83"/>
|
||||
<area shape="rect" id="node2" href="$dd/d2f/class_trie.html#a6d10eb1669453395d1900ebd401954fb" title=" " alt="" coords="216,5,337,32"/>
|
||||
<area shape="rect" id="node3" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/utility/move.html#" title=" " alt="" coords="237,56,317,83"/>
|
||||
<area shape="rect" id="node4" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/string/basic_string/size.html#" title=" " alt="" coords="221,107,333,133"/>
|
||||
<area shape="rect" id="node1" title=" " alt="" coords="5,55,168,80"/>
|
||||
<area shape="rect" id="node2" href="$dd/d2f/class_trie.html#a6d10eb1669453395d1900ebd401954fb" title=" " alt="" coords="216,5,337,31"/>
|
||||
<area shape="rect" id="node3" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/utility/move.html#" title=" " alt="" coords="237,55,317,80"/>
|
||||
<area shape="rect" id="node4" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/string/basic_string/size.html#" title=" " alt="" coords="221,104,333,129"/>
|
||||
</map>
|
||||
|
||||
@@ -1 +1 @@
|
||||
49f37747ae0a788844deebf481f9c846
|
||||
26a1d978c1622bdea9729f6791bc9b4b
|
||||
@@ -1,73 +1,72 @@
|
||||
<?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 5.0.0 (20220707.1540)
|
||||
<!-- Generated by graphviz version 5.0.1 (20220820.1526)
|
||||
-->
|
||||
<!-- Title: Trie::removeWordHelper Pages: 1 -->
|
||||
<svg width="257pt" height="104pt"
|
||||
viewBox="0.00 0.00 257.00 104.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 100)">
|
||||
<svg width="257pt" height="101pt"
|
||||
viewBox="0.00 0.00 257.00 101.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 97)">
|
||||
<title>Trie::removeWordHelper</title>
|
||||
<polygon fill="white" stroke="transparent" points="-4,4 -4,-100 253,-100 253,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,-38.5 0,-57.5 122,-57.5 122,-38.5 0,-38.5"/>
|
||||
<text text-anchor="middle" x="61" y="-45.5" font-family="Helvetica,sans-Serif" font-size="10.00">Trie::removeWordHelper</text>
|
||||
<polygon fill="#999999" stroke="#666666" points="122,-56 0,-56 0,-37 122,-37 122,-56"/>
|
||||
<text text-anchor="middle" x="61" y="-44" font-family="Helvetica,sans-Serif" font-size="10.00">Trie::removeWordHelper</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node1 -->
|
||||
<g id="edge3" class="edge">
|
||||
<title>Node1->Node1</title>
|
||||
<path fill="none" stroke="midnightblue" d="M39.11,-57.76C28.47,-66.57 35.76,-76 61,-76 77.56,-76 86.4,-71.94 87.51,-66.65"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="90.6,-65.02 82.89,-57.76 84.39,-68.24 90.6,-65.02"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M39.11,-56.08C28.47,-64.73 35.76,-74 61,-74 77.17,-74 85.97,-70.2 87.41,-65.19"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="90.47,-63.48 82.89,-56.08 84.2,-66.6 90.47,-63.48"/>
|
||||
</g>
|
||||
<!-- Node2 -->
|
||||
<g id="node2" class="node">
|
||||
<title>Node2</title>
|
||||
<g id="a_node2"><a xlink:href="../../dd/d2f/class_trie.html#a6d10eb1669453395d1900ebd401954fb" target="_top" xlink:title=" ">
|
||||
<polygon fill="white" stroke="black" points="158,-76.5 158,-95.5 249,-95.5 249,-76.5 158,-76.5"/>
|
||||
<text text-anchor="middle" x="203.5" y="-83.5" font-family="Helvetica,sans-Serif" font-size="10.00">Trie::hasChildren</text>
|
||||
<polygon fill="white" stroke="#666666" points="249,-93 158,-93 158,-74 249,-74 249,-93"/>
|
||||
<text text-anchor="middle" x="203.5" y="-81" font-family="Helvetica,sans-Serif" font-size="10.00">Trie::hasChildren</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node2 -->
|
||||
<g id="edge1" class="edge">
|
||||
<title>Node1->Node2</title>
|
||||
<path fill="none" stroke="midnightblue" d="M97.45,-57.59C115.59,-62.49 137.87,-68.52 157.23,-73.76"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="156.49,-77.18 167.06,-76.41 158.32,-70.42 156.49,-77.18"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M98.18,-56.03C115.83,-60.67 137.25,-66.32 156.09,-71.28"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="155.39,-74.71 165.95,-73.88 157.17,-67.94 155.39,-74.71"/>
|
||||
</g>
|
||||
<!-- Node3 -->
|
||||
<g id="node3" class="node">
|
||||
<title>Node3</title>
|
||||
<g id="a_node3"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/utility/move.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="black" points="173.5,-38.5 173.5,-57.5 233.5,-57.5 233.5,-38.5 173.5,-38.5"/>
|
||||
<text text-anchor="middle" x="203.5" y="-45.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::move</text>
|
||||
<polygon fill="white" stroke="#666666" points="233.5,-56 173.5,-56 173.5,-37 233.5,-37 233.5,-56"/>
|
||||
<text text-anchor="middle" x="203.5" y="-44" font-family="Helvetica,sans-Serif" font-size="10.00">std::move</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node3 -->
|
||||
<g id="edge2" class="edge">
|
||||
<title>Node1->Node3</title>
|
||||
<path fill="none" stroke="midnightblue" d="M122.4,-48C136.23,-48 150.58,-48 163.25,-48"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="163.44,-51.5 173.44,-48 163.44,-44.5 163.44,-51.5"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M122.4,-46.5C136.23,-46.5 150.58,-46.5 163.25,-46.5"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="163.44,-50 173.44,-46.5 163.44,-43 163.44,-50"/>
|
||||
</g>
|
||||
<!-- Node4 -->
|
||||
<g id="node4" class="node">
|
||||
<title>Node4</title>
|
||||
<g id="a_node4"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/string/basic_string/size.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="black" points="161.5,-0.5 161.5,-19.5 245.5,-19.5 245.5,-0.5 161.5,-0.5"/>
|
||||
<text text-anchor="middle" x="203.5" y="-7.5" font-family="Helvetica,sans-Serif" font-size="10.00">std::string::size</text>
|
||||
<polygon fill="white" stroke="#666666" points="245.5,-19 161.5,-19 161.5,0 245.5,0 245.5,-19"/>
|
||||
<text text-anchor="middle" x="203.5" y="-7" font-family="Helvetica,sans-Serif" font-size="10.00">std::string::size</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node4 -->
|
||||
<g id="edge4" class="edge">
|
||||
<title>Node1->Node4</title>
|
||||
<path fill="none" stroke="midnightblue" d="M97.45,-38.41C115.59,-33.51 137.87,-27.48 157.23,-22.24"/>
|
||||
<polygon fill="midnightblue" stroke="midnightblue" points="158.32,-25.58 167.06,-19.59 156.49,-18.82 158.32,-25.58"/>
|
||||
<path fill="none" stroke="#63b8ff" d="M98.18,-36.97C115.83,-32.33 137.25,-26.68 156.09,-21.72"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="157.17,-25.06 165.95,-19.12 155.39,-18.29 157.17,-25.06"/>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
||||
|
Before Width: | Height: | Size: 3.4 KiB After Width: | Height: | Size: 3.3 KiB |
Reference in New Issue
Block a user