<divclass="center"><iframescrolling="no"frameborder="0"src="../../da/ded/vector_8c__incl.svg"width="254"height="110"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
<trclass="memitem:a27a32c68950e464846b6730512968e4b"><tdclass="memItemLeft"align="right"valign="top">void </td><tdclass="memItemRight"valign="bottom"><aclass="el"href="../../df/dfa/vector_8c.html#a27a32c68950e464846b6730512968e4b">init</a> (<aclass="el"href="../../d4/d06/struct_vector.html">Vector</a> *vec, int val)</td></tr>
<trclass="memdesc:a27a32c68950e464846b6730512968e4b"><tdclass="mdescLeft"> </td><tdclass="mdescRight">This function initilaizes the vector and gives it a size of 1 and initializes the first index to 0. <br/></td></tr>
<trclass="memdesc:a2191fb0b42377eb385e1daf04bdfb939"><tdclass="mdescLeft"> </td><tdclass="mdescRight">This function clears the heap memory allocated by the <aclass="el"href="../../d4/d06/struct_vector.html"title="for IO operations">Vector</a>. <br/></td></tr>
<trclass="memdesc:ab9dfc1249180f1e924b7333a4e5d133a"><tdclass="mdescLeft"> </td><tdclass="mdescRight">This function clears the contents of the <aclass="el"href="../../d4/d06/struct_vector.html"title="for IO operations">Vector</a>. <br/></td></tr>
<trclass="memdesc:a6f8a49f17bf315bdc30749a57bc7bc93"><tdclass="mdescLeft"> </td><tdclass="mdescRight">This function returns the length the <aclass="el"href="../../d4/d06/struct_vector.html"title="for IO operations">Vector</a>. <br/></td></tr>
<trclass="memitem:a878dddf838dbd6d5a9a1da77a362ce56"><tdclass="memItemLeft"align="right"valign="top">void </td><tdclass="memItemRight"valign="bottom"><aclass="el"href="../../df/dfa/vector_8c.html#a878dddf838dbd6d5a9a1da77a362ce56">push</a> (<aclass="el"href="../../d4/d06/struct_vector.html">Vector</a> *vec, int val)</td></tr>
<trclass="memdesc:a878dddf838dbd6d5a9a1da77a362ce56"><tdclass="mdescLeft"> </td><tdclass="mdescRight">This function pushes a value to the end of the <aclass="el"href="../../d4/d06/struct_vector.html"title="for IO operations">Vector</a>. <br/></td></tr>
<trclass="memitem:a15f534ebe962fda31cc191852befc250"><tdclass="memItemLeft"align="right"valign="top">int </td><tdclass="memItemRight"valign="bottom"><aclass="el"href="../../df/dfa/vector_8c.html#a15f534ebe962fda31cc191852befc250">get</a> (<aclass="el"href="../../d4/d06/struct_vector.html">Vector</a> *vec, int index)</td></tr>
<trclass="memdesc:a15f534ebe962fda31cc191852befc250"><tdclass="mdescLeft"> </td><tdclass="mdescRight">This function get the item at the specified index of the <aclass="el"href="../../d4/d06/struct_vector.html"title="for IO operations">Vector</a>. <br/></td></tr>
<trclass="memitem:a6facac5424445995bd2f8bb03ffcb548"><tdclass="memItemLeft"align="right"valign="top">void </td><tdclass="memItemRight"valign="bottom"><aclass="el"href="../../df/dfa/vector_8c.html#a6facac5424445995bd2f8bb03ffcb548">set</a> (<aclass="el"href="../../d4/d06/struct_vector.html">Vector</a> *vec, int index, int val)</td></tr>
<trclass="memdesc:a6facac5424445995bd2f8bb03ffcb548"><tdclass="mdescLeft"> </td><tdclass="mdescRight">This function sets an item at the specified index of the <aclass="el"href="../../d4/d06/struct_vector.html"title="for IO operations">Vector</a>. <br/></td></tr>
<trclass="memdesc:af2f92e8cc55e764980bc0573ab5cd06f"><tdclass="mdescLeft"> </td><tdclass="mdescRight">This function gets the next item from the <aclass="el"href="../../d4/d06/struct_vector.html"title="for IO operations">Vector</a> each time it's called. <br/></td></tr>
<trclass="memdesc:a1afee8aaf33d741df31a73048cff4473"><tdclass="mdescLeft"> </td><tdclass="mdescRight">This function returns the pointer to the begining of the <aclass="el"href="../../d4/d06/struct_vector.html"title="for IO operations">Vector</a>. <br/></td></tr>
<trclass="memdesc:abdb067a98f90bcd9b0aa4ceb364d607f"><tdclass="mdescLeft"> </td><tdclass="mdescRight">This function prints the entire <aclass="el"href="../../d4/d06/struct_vector.html"title="for IO operations">Vector</a> as a list. <br/></td></tr>
<trclass="memdesc:aa8dca7b867074164d5f45b0f3851269d"><tdclass="mdescLeft"> </td><tdclass="mdescRight">This function tests the functions used to work with Vectors. <br/></td></tr>
<p>This function returns the pointer to the begining of the <aclass="el"href="../../d4/d06/struct_vector.html"title="for IO operations">Vector</a>. </p>
<p>@params Vector* (a pointer to the <aclass="el"href="../../d4/d06/struct_vector.html"title="for IO operations">Vector</a> struct) </p><dlclass="section return"><dt>Returns</dt><dd>: void* </dd></dl>
<p>@params Vector* (a pointer to the <aclass="el"href="../../d4/d06/struct_vector.html"title="for IO operations">Vector</a> struct) </p><dlclass="section return"><dt>Returns</dt><dd>: none </dd></dl>
<divclass="ttc"id="avector_8c_html_a27a32c68950e464846b6730512968e4b"><divclass="ttname"><ahref="../../df/dfa/vector_8c.html#a27a32c68950e464846b6730512968e4b">init</a></div><divclass="ttdeci">void init(Vector *vec, int val)</div><divclass="ttdoc">This function initilaizes the vector and gives it a size of 1 and initializes the first index to 0.</div><divclass="ttdef"><b>Definition:</b> vector.c:25</div></div>
</div><!-- fragment --><divclass="dynheader">
Here is the call graph for this function:</div>
<divclass="dyncontent">
<divclass="center"><iframescrolling="no"frameborder="0"src="../../df/dfa/vector_8c_ab9dfc1249180f1e924b7333a4e5d133a_cgraph.svg"width="148"height="36"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
<p>@params Vector* (a pointer to the <aclass="el"href="../../d4/d06/struct_vector.html"title="for IO operations">Vector</a> struct) </p><dlclass="section return"><dt>Returns</dt><dd>: none </dd></dl>
<divclass="ttc"id="amalloc__dbg_8h_html_a9cc854374299a1dd933bf62029761768"><divclass="ttname"><ahref="../../d2/ddd/malloc__dbg_8h.html#a9cc854374299a1dd933bf62029761768">free</a></div><divclass="ttdeci">#define free(ptr)</div><divclass="ttdoc">This macro replace the standard free function with free_dbg.</div><divclass="ttdef"><b>Definition:</b> malloc_dbg.h:26</div></div>
<p>This function get the item at the specified index of the <aclass="el"href="../../d4/d06/struct_vector.html"title="for IO operations">Vector</a>. </p>
<p>@params Vector* (a pointer to the <aclass="el"href="../../d4/d06/struct_vector.html"title="for IO operations">Vector</a> struct) @params int (the index to get value from) </p><dlclass="section return"><dt>Returns</dt><dd>: int </dd></dl>
<p>@params Vector* (a pointer to the <aclass="el"href="../../d4/d06/struct_vector.html"title="for IO operations">Vector</a> struct) @params int (the actual data to be passed to the vector) </p><dlclass="section return"><dt>Returns</dt><dd>none </dd></dl>
<divclass="ttc"id="amalloc__dbg_8h_html_a725f50ecaf1959d96de79b36b4788fee"><divclass="ttname"><ahref="../../d2/ddd/malloc__dbg_8h.html#a725f50ecaf1959d96de79b36b4788fee">malloc</a></div><divclass="ttdeci">#define malloc(bytes)</div><divclass="ttdoc">This macro replace the standard malloc function with malloc_dbg.</div><divclass="ttdef"><b>Definition:</b> malloc_dbg.h:18</div></div>
<divclass="ttc"id="astruct_vector_html_a55870593ddea19c96770c2521b075059"><divclass="ttname"><ahref="../../d4/d06/struct_vector.html#a55870593ddea19c96770c2521b075059">Vector::len</a></div><divclass="ttdeci">int len</div><divclass="ttdoc">contains the length of the vector</div><divclass="ttdef"><b>Definition:</b> vector.c:13</div></div>
<divclass="ttc"id="astruct_vector_html_a8cb577f14bea1a6c1fbf85717b3ee4f9"><divclass="ttname"><ahref="../../d4/d06/struct_vector.html#a8cb577f14bea1a6c1fbf85717b3ee4f9">Vector::current</a></div><divclass="ttdeci">int current</div><divclass="ttdoc">holds the current item</div><divclass="ttdef"><b>Definition:</b> vector.c:14</div></div>
<p>@params Vector* (a pointer to the <aclass="el"href="../../d4/d06/struct_vector.html"title="for IO operations">Vector</a> struct) </p><dlclass="section return"><dt>Returns</dt><dd>: int </dd></dl>
<divclass="ttc"id="avector_8c_html_a6facac5424445995bd2f8bb03ffcb548"><divclass="ttname"><ahref="../../df/dfa/vector_8c.html#a6facac5424445995bd2f8bb03ffcb548">set</a></div><divclass="ttdeci">void set(Vector *vec, int index, int val)</div><divclass="ttdoc">This function sets an item at the specified index of the Vector.</div><divclass="ttdef"><b>Definition:</b> vector.c:91</div></div>
<divclass="ttc"id="avector_8c_html_aa8dca7b867074164d5f45b0f3851269d"><divclass="ttname"><ahref="../../df/dfa/vector_8c.html#aa8dca7b867074164d5f45b0f3851269d">test</a></div><divclass="ttdeci">static void test()</div><divclass="ttdoc">This function tests the functions used to work with Vectors.</div><divclass="ttdef"><b>Definition:</b> vector.c:138</div></div>
<divclass="ttc"id="avector_8c_html_abdb067a98f90bcd9b0aa4ceb364d607f"><divclass="ttname"><ahref="../../df/dfa/vector_8c.html#abdb067a98f90bcd9b0aa4ceb364d607f">print</a></div><divclass="ttdeci">void print(Vector *vec)</div><divclass="ttdoc">This function prints the entire Vector as a list.</div><divclass="ttdef"><b>Definition:</b> vector.c:125</div></div>
</div><!-- fragment --><divclass="dynheader">
Here is the call graph for this function:</div>
<divclass="dyncontent">
<divclass="center"><iframescrolling="no"frameborder="0"src="../../df/dfa/vector_8c_ae66f6b31b5ad750f1fe042a706a4e3d4_cgraph.svg"width="255"height="262"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
<p>This function gets the next item from the <aclass="el"href="../../d4/d06/struct_vector.html"title="for IO operations">Vector</a> each time it's called. </p>
<p>@params Vector* (a pointer to the <aclass="el"href="../../d4/d06/struct_vector.html"title="for IO operations">Vector</a> struct) </p><dlclass="section return"><dt>Returns</dt><dd>: int </dd></dl>
<p>@params Vector* (a pointer to the <aclass="el"href="../../d4/d06/struct_vector.html"title="for IO operations">Vector</a> struct) </p><dlclass="section return"><dt>Returns</dt><dd>: none </dd></dl>
<p>@params Vector* (a pointer to the <aclass="el"href="../../d4/d06/struct_vector.html"title="for IO operations">Vector</a> struct) @params int (the value to be pushed) </p><dlclass="section return"><dt>Returns</dt><dd>: none </dd></dl>
<divclass="center"><iframescrolling="no"frameborder="0"src="../../df/dfa/vector_8c_a878dddf838dbd6d5a9a1da77a362ce56_cgraph.svg"width="160"height="60"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
<p>This function sets an item at the specified index of the <aclass="el"href="../../d4/d06/struct_vector.html"title="for IO operations">Vector</a>. </p>
<p>@params Vector* (a pointer to the <aclass="el"href="../../d4/d06/struct_vector.html"title="for IO operations">Vector</a> struct) @params int (the index to set value at) </p><dlclass="section return"><dt>Returns</dt><dd>: none </dd></dl>
<divclass="ttc"id="avector_8c_html_a15f534ebe962fda31cc191852befc250"><divclass="ttname"><ahref="../../df/dfa/vector_8c.html#a15f534ebe962fda31cc191852befc250">get</a></div><divclass="ttdeci">int get(Vector *vec, int index)</div><divclass="ttdoc">This function get the item at the specified index of the Vector.</div><divclass="ttdef"><b>Definition:</b> vector.c:78</div></div>
<divclass="ttc"id="avector_8c_html_af2f92e8cc55e764980bc0573ab5cd06f"><divclass="ttname"><ahref="../../df/dfa/vector_8c.html#af2f92e8cc55e764980bc0573ab5cd06f">next</a></div><divclass="ttdeci">int next(Vector *vec)</div><divclass="ttdoc">This function gets the next item from the Vector each time it's called.</div><divclass="ttdef"><b>Definition:</b> vector.c:102</div></div>
</div><!-- fragment --><divclass="dynheader">
Here is the call graph for this function:</div>
<divclass="dyncontent">
<divclass="center"><iframescrolling="no"frameborder="0"src="../../df/dfa/vector_8c_aa8dca7b867074164d5f45b0f3851269d_cgraph.svg"width="154"height="258"><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 -->
<!-- start footer part -->
<divid="nav-path"class="navpath"><!-- id is needed for treeview function! -->
<liclass="footer">Generated by <ahref="https://www.doxygen.org/index.html"><imgclass="footer"src="../../doxygen.svg"width="104"height="31"alt="doxygen"/></a> 1.9.6 </li>