<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> <title>Crystal Space 1.2.1: iArrayChangeElements< T > Struct Template Reference (Crystal Space 1.2.1 Public API Reference)</title> <link href="tabs.css" rel="stylesheet" type="text/css"> <link href="doxygen.css" rel="stylesheet" type="text/css"> </head><body> <table border="0" cellpadding="0" cellspacing="0" width="100%" class="head"> <tr height="59"> <td class="head" width="202" valign="bottom" style="padding-left:0;"><a href="http://www.crystalspace3d.org/"><img src="csblur.png" width="236" height="59" alt="CrystalSpace" border="0"></a></td> <td class="head"><h2>Public API Reference</h2></td> </tr> <tr height="11"> <td colspan="2" class="headshadow" valign="top" style="padding-left:0;"><img src="csblurb.png" width="236" height="11" alt="" border="0"></td> </tr> </table> <div class="content"> <!-- Generated by Doxygen 1.5.3 --> <div class="tabs"> <ul> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="modules.html"><span>Modules</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li class="current"><a href="classes.html"><span>Classes</span></a></li> <li><a href="files.html"><span>Files</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> </ul> </div> <div class="tabs"> <ul> <li><a href="classes.html"><span>Alphabetical List</span></a></li> <li><a href="annotated.html"><span>Class List</span></a></li> <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Class Members</span></a></li> </ul> </div> <h1>iArrayChangeElements< T > Struct Template Reference<br> <small> [<a class="el" href="group__util__containers.html">Containers</a>]</small> </h1><!-- doxytag: class="iArrayChangeElements" --><!-- doxytag: inherits="iArrayReadOnly" -->Array interface template, elements are changeable. <a href="#_details">More...</a> <p> <code>#include <<a class="el" href="iutil_2array_8h-source.html">iutil/array.h</a>></code> <p> <div class="dynheader"> Inheritance diagram for iArrayChangeElements< T >:</div> <div class="dynsection"> <p><center><img src="structiArrayChangeElements__inherit__graph.png" border="0" usemap="#iArrayChangeElements_3_01T_01_4__inherit__map" alt="Inheritance graph"></center> <map name="iArrayChangeElements_3_01T_01_4__inherit__map"> <area shape="rect" href="structiArrayChangeAll.html" title="Array interface template, completely changeable." alt="" coords="29,239,189,265"><area shape="rect" href="structiArrayReadOnly.html" title="Array interface template, read-only." alt="" coords="31,84,188,111"><area shape="rect" href="structiBase.html" title="This is the basic interface: all other interfaces should be derived from this one..." alt="" coords="81,7,137,33"></map> <center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div> <p> <a href="structiArrayChangeElements-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0"> <tr><td></td></tr> <tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual T & </td><td class="memItemRight" valign="bottom"><a class="el" href="structiArrayChangeElements.html#d3277c4249557c0b1a3caa515f23d339">Get</a> (size_t n)=0</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Get an element (non-const). <a href="#d3277c4249557c0b1a3caa515f23d339"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual T & </td><td class="memItemRight" valign="bottom"><a class="el" href="structiArrayChangeElements.html#3cf15a2c1a7cce6057515f1d3e3b38bb">Top</a> ()=0</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Return the top element but do not remove it (non-const). <a href="#3cf15a2c1a7cce6057515f1d3e3b38bb"></a><br></td></tr> </table> <hr><a name="_details"></a><h2>Detailed Description</h2> <h3>template<typename T><br> struct iArrayChangeElements< T ></h3> Array interface template, elements are changeable. <p> Extents <a class="el" href="structiArrayReadOnly.html" title="Array interface template, read-only.">iArrayReadOnly</a> to also support modifying the existing elements; however, new elements can not be added or existing elements removed or reordered.<p> This template can't be used as-is in another interface; rather, it must be derived and specialized before it can be used. Example: <div class="fragment"><pre class="fragment"> <span class="keyword">struct </span>csBar { ... }; <span class="keyword">struct </span>iBarArray : <span class="keyword">public</span> <a class="code" href="structiArrayChangeElements.html" title="Array interface template, elements are changeable.">iArrayChangeElements</a><csBar> { <a class="code" href="group__util__containers.html#gf7ee52958a7049fdb03aa09515593a06" title="Macro to define interface version of an iArrayChangeElements-derived interface.">SCF_IARRAYCHANGEELEMENTS_INTERFACE</a>(iBarArray); }; </pre></div><p> Standard implementations for this interface are <a class="el" href="classscfArray.html" title="Implementation for iArrayReadOnly<>-, iArrayChangeElements<>- and iArrayChangeAll<>...">scfArray</a> and <a class="el" href="classscfArrayWrap.html" title="Implementation for iArrayReadOnly<>-, iArrayChangeElements<>- and iArrayChangeAll<>...">scfArrayWrap</a>. <p>Definition at line <a class="el" href="iutil_2array_8h-source.html#l00115">115</a> of file <a class="el" href="iutil_2array_8h-source.html">array.h</a>.</p> <hr><h2>Member Function Documentation</h2> <a class="anchor" name="d3277c4249557c0b1a3caa515f23d339"></a><!-- doxytag: member="iArrayChangeElements::Get" ref="d3277c4249557c0b1a3caa515f23d339" args="(size_t n)=0" --> <div class="memitem"> <div class="memproto"> <div class="memtemplate"> template<typename T> </div> <table class="memname"> <tr> <td class="memname">virtual T& <a class="el" href="structiArrayChangeElements.html">iArrayChangeElements</a>< T >::Get </td> <td>(</td> <td class="paramtype">size_t </td> <td class="paramname"> <em>n</em> </td> <td> ) </td> <td width="100%"><code> [pure virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Get an element (non-const). <p> </div> </div><p> <a class="anchor" name="3cf15a2c1a7cce6057515f1d3e3b38bb"></a><!-- doxytag: member="iArrayChangeElements::Top" ref="3cf15a2c1a7cce6057515f1d3e3b38bb" args="()=0" --> <div class="memitem"> <div class="memproto"> <div class="memtemplate"> template<typename T> </div> <table class="memname"> <tr> <td class="memname">virtual T& <a class="el" href="structiArrayChangeElements.html">iArrayChangeElements</a>< T >::Top </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"><code> [pure virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Return the top element but do not remove it (non-const). <p> </div> </div><p> <hr>The documentation for this struct was generated from the following file:<ul> <li>iutil/<a class="el" href="iutil_2array_8h-source.html">array.h</a></ul> <hr size="1"><address><small>Generated for Crystal Space 1.2.1 by <a href="http://www.doxygen.org/index.html">doxygen</a> 1.5.3 </small></address> </div></body> </html>