Website Summary Files Commits Branches @commit @diff @stats
path: root / docs / html / OrderedList_8hpp_source.html
diff options
context:
space:
mode:
Commit35831ff8dc30c9884a7c3340414f005a0d4ada10 (patch)
Author
 Syndamia <kamen.d.mladenov@protonmail.com>
2022-05-12 20:21:09 +0300
Committer
 Syndamia <kamen.d.mladenov@protonmail.com>
2022-05-12 20:21:09 +0300
Files07a06c30109e71defbfd305a7a9cca8d36a24e2c /docs/html/OrderedList_8hpp_source.html
FMI-OOP-P1_TicketSystem-35831ff8dc30c9884a7c3340414f005a0d4ada10.tar
FMI-OOP-P1_TicketSystem-35831ff8dc30c9884a7c3340414f005a0d4ada10.tar.gz
FMI-OOP-P1_TicketSystem-35831ff8dc30c9884a7c3340414f005a0d4ada10.zip
Parente2a51e497a2c1313722eb13f37aa682160021c2f (diff)
Completely reworked documentation
1 files changed, 121 insertions, 0 deletions
-rw-r--r--docs/html/OrderedList_8hpp_source.html121
diff --git a/docs/html/OrderedList_8hpp_source.html b/docs/html/OrderedList_8hpp_source.html
new file mode 100644
index 0000000..ea5a0e4
--- /dev/null
+++ b/docs/html/OrderedList_8hpp_source.html
@@ -0,0 +1,121 @@
+<!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">
+<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.3"/>
+<meta name="viewport" content="width=device-width, initial-scale=1"/>
+<title>FMI Ticket System: src/Generic/List/OrderedList.hpp Source File</title>
+<link href="tabs.css" rel="stylesheet" type="text/css"/>
+<script type="text/javascript" src="jquery.js"></script>
+<script type="text/javascript" src="dynsections.js"></script>
+<link href="search/search.css" rel="stylesheet" type="text/css"/>
+<script type="text/javascript" src="search/searchdata.js"></script>
+<script type="text/javascript" src="search/search.js"></script>
+<link href="doxygen.css" rel="stylesheet" type="text/css" />
+</head>
+<body>
+<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
+<div id="titlearea">
+<table cellspacing="0" cellpadding="0">
+ <tbody>
+ <tr id="projectrow">
+ <td id="projectalign">
+ <div id="projectname">FMI Ticket System
+ </div>
+ <div id="projectbrief">| Kamen Mladenov | FMI Computer Science Year 1 Group 6 | Project 1 | Project Topic 4 |</div>
+ </td>
+ </tr>
+ </tbody>
+</table>
+</div>
+<!-- end header part -->
+<!-- Generated by Doxygen 1.9.3 -->
+<script type="text/javascript">
+/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
+var searchBox = new SearchBox("searchBox", "search",'Search','.html');
+/* @license-end */
+</script>
+<script type="text/javascript" src="menudata.js"></script>
+<script type="text/javascript" src="menu.js"></script>
+<script type="text/javascript">
+/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
+$(function() {
+ initMenu('',true,false,'search.php','Search');
+ $(document).ready(function() { init_search(); });
+});
+/* @license-end */
+</script>
+<div id="main-nav"></div>
+<!-- window showing the filter options -->
+<div id="MSearchSelectWindow"
+ onmouseover="return searchBox.OnSearchSelectShow()"
+ onmouseout="return searchBox.OnSearchSelectHide()"
+ onkeydown="return searchBox.OnSearchSelectKey(event)">
+</div>
+
+<!-- iframe showing the search results (closed by default) -->
+<div id="MSearchResultsWindow">
+<iframe src="javascript:void(0)" frameborder="0"
+ name="MSearchResults" id="MSearchResults">
+</iframe>
+</div>
+
+<div id="nav-path" class="navpath">
+ <ul>
+<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_b37d33ceb7f5c107fb027d4db224bc89.html">Generic</a></li><li class="navelem"><a class="el" href="dir_bba1b217f5afc342a21d50631c0a2103.html">List</a></li> </ul>
+</div>
+</div><!-- top -->
+<div class="header">
+ <div class="headertitle"><div class="title">OrderedList.hpp</div></div>
+</div><!--header-->
+<div class="contents">
+<a href="OrderedList_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno"> 1</span><span class="preprocessor">#ifndef HEADER_ORDEREDLIST</span></div>
+<div class="line"><a id="l00002" name="l00002"></a><span class="lineno"> 2</span><span class="preprocessor">#define HEADER_ORDEREDLIST</span></div>
+<div class="line"><a id="l00003" name="l00003"></a><span class="lineno"> 3</span> </div>
+<div class="line"><a id="l00008" name="l00008"></a><span class="lineno"> 8</span><span class="preprocessor">#include &quot;<a class="code" href="List_8hpp.html">List.hpp</a>&quot;</span></div>
+<div class="line"><a id="l00009" name="l00009"></a><span class="lineno"> 9</span> </div>
+<div class="line"><a id="l00015" name="l00015"></a><span class="lineno"> 15</span><span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt;</div>
+<div class="line"><a id="l00016" name="l00016"></a><span class="lineno"><a class="line" href="classOrderedList.html"> 16</a></span><span class="keyword">class </span><a class="code hl_class" href="classOrderedList.html">OrderedList</a> : <span class="keyword">public</span> <a class="code hl_class" href="classList.html">List</a>&lt;T&gt; {</div>
+<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"> 17</span><span class="keyword">public</span>:</div>
+<div class="line"><a id="l00018" name="l00018"></a><span class="lineno"> 18</span> <a class="code hl_class" href="classOrderedList.html">OrderedList</a>();</div>
+<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"> 19</span> <a class="code hl_class" href="classOrderedList.html">OrderedList</a>(<span class="keyword">const</span> T* elements, <span class="keywordtype">unsigned</span> elementsCount);</div>
+<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"> 20</span> </div>
+<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"><a class="line" href="classOrderedList.html#a8b2748c3cdefe4869e0d7a2fc9b4b2cd"> 24</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="classOrderedList.html#a8b2748c3cdefe4869e0d7a2fc9b4b2cd">add</a>(T element) = <span class="keyword">delete</span>;</div>
+<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"><a class="line" href="classOrderedList.html#a45af729846bacc77fc8292e5d0690f99"> 28</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="classOrderedList.html#a45af729846bacc77fc8292e5d0690f99">insertAt</a>(T element, <span class="keywordtype">unsigned</span> index) = <span class="keyword">delete</span>;</div>
+<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span> </div>
+<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"><a class="line" href="classOrderedList.html#a1132cd9c92901e9b9950a4a409b0fc8b"> 31</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="classOrderedList.html#a1132cd9c92901e9b9950a4a409b0fc8b">insert</a>(T element);</div>
+<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"> 32</span>};</div>
+<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"> 33</span> </div>
+<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"> 34</span><span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt;</div>
+<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"> 35</span><a class="code hl_class" href="classOrderedList.html">OrderedList&lt;T&gt;::OrderedList</a>() : <a class="code hl_class" href="classOrderedList.html">OrderedList</a>(nullptr, 0) {}</div>
+<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"> 36</span> </div>
+<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"> 37</span><span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt;</div>
+<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"> 38</span><a class="code hl_class" href="classOrderedList.html">OrderedList&lt;T&gt;::OrderedList</a>(<span class="keyword">const</span> T* elements, <span class="keywordtype">unsigned</span> elementsCount) : <a class="code hl_class" href="classList.html">List</a>&lt;T&gt;::<a class="code hl_class" href="classList.html">List</a>(elements, elementsCount) {}</div>
+<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"> 39</span> </div>
+<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"> 44</span><span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt;</div>
+<div class="line"><a id="l00045" name="l00045"></a><span class="lineno"><a class="line" href="classOrderedList.html#a1132cd9c92901e9b9950a4a409b0fc8b"> 45</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="classOrderedList.html#a1132cd9c92901e9b9950a4a409b0fc8b">OrderedList&lt;T&gt;::insert</a>(T element) {</div>
+<div class="line"><a id="l00046" name="l00046"></a><span class="lineno"> 46</span> <span class="keywordflow">if</span> (<a class="code hl_class" href="classList.html">List&lt;T&gt;::length</a> == <a class="code hl_class" href="classList.html">List&lt;T&gt;::count</a>) <a class="code hl_class" href="classList.html">List&lt;T&gt;::resize</a>();</div>
+<div class="line"><a id="l00047" name="l00047"></a><span class="lineno"> 47</span> </div>
+<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"> 48</span> <span class="keywordtype">unsigned</span> insertionInd = 0;</div>
+<div class="line"><a id="l00049" name="l00049"></a><span class="lineno"> 49</span> <span class="keywordflow">while</span> (insertionInd &lt; <a class="code hl_class" href="classList.html">List&lt;T&gt;::count</a> &amp;&amp; <a class="code hl_class" href="classList.html">List&lt;T&gt;::elements</a>[insertionInd].compare(element) &lt; 0)</div>
+<div class="line"><a id="l00050" name="l00050"></a><span class="lineno"> 50</span> insertionInd++;</div>
+<div class="line"><a id="l00051" name="l00051"></a><span class="lineno"> 51</span> </div>
+<div class="line"><a id="l00052" name="l00052"></a><span class="lineno"> 52</span> <a class="code hl_function" href="classList.html#ae4586debf72af33bccb3c2fbfce420e8">List&lt;T&gt;::insertAt</a>(element, insertionInd);</div>
+<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"> 53</span>}</div>
+<div class="line"><a id="l00054" name="l00054"></a><span class="lineno"> 54</span> </div>
+<div class="line"><a id="l00055" name="l00055"></a><span class="lineno"> 55</span><span class="preprocessor">#endif</span></div>
+<div class="ttc" id="aList_8hpp_html"><div class="ttname"><a href="List_8hpp.html">List.hpp</a></div><div class="ttdoc">Stores declaration and definition of templated class List.</div></div>
+<div class="ttc" id="aclassList_html"><div class="ttname"><a href="classList.html">List</a></div><div class="ttdoc">Templated class that stores an array of elements in dynamic memory.</div><div class="ttdef"><b>Definition:</b> List.hpp:22</div></div>
+<div class="ttc" id="aclassList_html_ae4586debf72af33bccb3c2fbfce420e8"><div class="ttname"><a href="classList.html#ae4586debf72af33bccb3c2fbfce420e8">List::insertAt</a></div><div class="ttdeci">void insertAt(const T &amp;element, unsigned index)</div><div class="ttdoc">Inserts element at given index.</div><div class="ttdef"><b>Definition:</b> List.hpp:132</div></div>
+<div class="ttc" id="aclassOrderedList_html"><div class="ttname"><a href="classOrderedList.html">OrderedList</a></div><div class="ttdoc">Inherits List, but contains it's elements in a sorted manner.</div><div class="ttdef"><b>Definition:</b> OrderedList.hpp:16</div></div>
+<div class="ttc" id="aclassOrderedList_html_a1132cd9c92901e9b9950a4a409b0fc8b"><div class="ttname"><a href="classOrderedList.html#a1132cd9c92901e9b9950a4a409b0fc8b">OrderedList::insert</a></div><div class="ttdeci">void insert(T element)</div><div class="ttdoc">Inserts an element at a sorted position.</div><div class="ttdef"><b>Definition:</b> OrderedList.hpp:45</div></div>
+<div class="ttc" id="aclassOrderedList_html_a45af729846bacc77fc8292e5d0690f99"><div class="ttname"><a href="classOrderedList.html#a45af729846bacc77fc8292e5d0690f99">OrderedList::insertAt</a></div><div class="ttdeci">void insertAt(T element, unsigned index)=delete</div></div>
+<div class="ttc" id="aclassOrderedList_html_a8b2748c3cdefe4869e0d7a2fc9b4b2cd"><div class="ttname"><a href="classOrderedList.html#a8b2748c3cdefe4869e0d7a2fc9b4b2cd">OrderedList::add</a></div><div class="ttdeci">void add(T element)=delete</div></div>
+</div><!-- fragment --></div><!-- contents -->
+<!-- start footer part -->
+<hr class="footer"/><address class="footer"><small>
+Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.3
+</small></address>
+</body>
+</html>