<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://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"/> <title>psimpl: psimpl::util::scoped_array< T > Class Template Reference</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="navtree.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="navtree.js"></script> <script type="text/javascript" src="resize.js"></script> <script type="text/javascript"> $(document).ready(initResizable); </script> <link href="doxygen.css" rel="stylesheet" type="text/css"/> </head> <body> <!-- Generated by Doxygen 1.7.4 --> <div id="top"> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td style="padding-left: 0.5em;"> <div id="projectname">psimpl <span id="projectnumber">7</span></div> </td> </tr> </tbody> </table> </div> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li class="current"><a href="annotated.html"><span>Classes</span></a></li> <li><a href="files.html"><span>Files</span></a></li> <li><a href="dirs.html"><span>Directories</span></a></li> </ul> </div> <div id="navrow2" class="tabs2"> <ul class="tablist"> <li><a href="annotated.html"><span>Class List</span></a></li> <li><a href="classes.html"><span>Class Index</span></a></li> <li><a href="functions.html"><span>Class Members</span></a></li> </ul> </div> </div> <div id="side-nav" class="ui-resizable side-nav-resizable"> <div id="nav-tree"> <div id="nav-tree-contents"> </div> </div> <div id="splitbar" style="-moz-user-select:none;" class="ui-resizable-handle"> </div> </div> <script type="text/javascript"> initNavTree('classpsimpl_1_1util_1_1scoped__array.html',''); </script> <div id="doc-content"> <div class="header"> <div class="summary"> <a href="#pub-methods">Public Member Functions</a> | <a href="#pri-methods">Private Member Functions</a> | <a href="#pri-attribs">Private Attributes</a> </div> <div class="headertitle"> <div class="title">psimpl::util::scoped_array< T > Class Template Reference</div> </div> </div> <div class="contents"> <!-- doxytag: class="psimpl::util::scoped_array" --> <p>A smart pointer for holding a dynamically allocated array. <a href="classpsimpl_1_1util_1_1scoped__array.html#details">More...</a></p> <p><code>#include <<a class="el" href="psimpl_8h_source.html">psimpl.h</a>></code></p> <p><a href="classpsimpl_1_1util_1_1scoped__array-members.html">List of all members.</a></p> <table class="memberdecls"> <tr><td colspan="2"><h2><a name="pub-methods"></a> Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classpsimpl_1_1util_1_1scoped__array.html#a7ca257c64e882a9a5973146de5c8055f">scoped_array</a> (unsigned n)</td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classpsimpl_1_1util_1_1scoped__array.html#abc7ca2793c23699c0ba855856af436e8">~scoped_array</a> ()</td></tr> <tr><td class="memItemLeft" align="right" valign="top">T & </td><td class="memItemRight" valign="bottom"><a class="el" href="classpsimpl_1_1util_1_1scoped__array.html#a5fe6ffe5f442f5d8c5c24ef010b276d7">operator[]</a> (int offset)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">const T & </td><td class="memItemRight" valign="bottom"><a class="el" href="classpsimpl_1_1util_1_1scoped__array.html#aa60ac752fe4ebe0a19b9b3e5fd02051c">operator[]</a> (int offset) const </td></tr> <tr><td class="memItemLeft" align="right" valign="top">T * </td><td class="memItemRight" valign="bottom"><a class="el" href="classpsimpl_1_1util_1_1scoped__array.html#a7a4c3a0d4593dd10ddf6d695f2086e67">get</a> () const </td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classpsimpl_1_1util_1_1scoped__array.html#ac97beeefa4563f9b9096df6fac32ce39">swap</a> (<a class="el" href="classpsimpl_1_1util_1_1scoped__array.html">scoped_array</a> &b)</td></tr> <tr><td colspan="2"><h2><a name="pri-methods"></a> Private Member Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classpsimpl_1_1util_1_1scoped__array.html#a5a6f140a2398b3a2551b5803f521f5d9">scoped_array</a> (const <a class="el" href="classpsimpl_1_1util_1_1scoped__array.html">scoped_array</a> &)</td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classpsimpl_1_1util_1_1scoped__array.html">scoped_array</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classpsimpl_1_1util_1_1scoped__array.html#a9d2203f20dd342720a9a26fd329e6266">operator=</a> (const <a class="el" href="classpsimpl_1_1util_1_1scoped__array.html">scoped_array</a> &)</td></tr> <tr><td colspan="2"><h2><a name="pri-attribs"></a> Private Attributes</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">T * </td><td class="memItemRight" valign="bottom"><a class="el" href="classpsimpl_1_1util_1_1scoped__array.html#a804949986114cac19e44e959ed55202a">array</a></td></tr> </table> <hr/><a name="details" id="details"></a><h2>Detailed Description</h2> <div class="textblock"><h3>template<typename T><br/> class psimpl::util::scoped_array< T ></h3> <p>A smart pointer for holding a dynamically allocated array. </p> <p>Similar to boost::scoped_array. </p> </div><hr/><h2>Constructor & Destructor Documentation</h2> <a class="anchor" id="a7ca257c64e882a9a5973146de5c8055f"></a><!-- doxytag: member="psimpl::util::scoped_array::scoped_array" ref="a7ca257c64e882a9a5973146de5c8055f" args="(unsigned n)" --> <div class="memitem"> <div class="memproto"> <div class="memtemplate"> template<typename T> </div> <table class="memname"> <tr> <td class="memname"><a class="el" href="classpsimpl_1_1util_1_1scoped__array.html">psimpl::util::scoped_array</a>< T >::<a class="el" href="classpsimpl_1_1util_1_1scoped__array.html">scoped_array</a> </td> <td>(</td> <td class="paramtype">unsigned </td> <td class="paramname"><em>n</em></td><td>)</td> <td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> </div> </div> <a class="anchor" id="abc7ca2793c23699c0ba855856af436e8"></a><!-- doxytag: member="psimpl::util::scoped_array::~scoped_array" ref="abc7ca2793c23699c0ba855856af436e8" args="()" --> <div class="memitem"> <div class="memproto"> <div class="memtemplate"> template<typename T> </div> <table class="memname"> <tr> <td class="memname"><a class="el" href="classpsimpl_1_1util_1_1scoped__array.html">psimpl::util::scoped_array</a>< T >::~<a class="el" href="classpsimpl_1_1util_1_1scoped__array.html">scoped_array</a> </td> <td>(</td> <td class="paramname"></td><td>)</td> <td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> </div> </div> <a class="anchor" id="a5a6f140a2398b3a2551b5803f521f5d9"></a><!-- doxytag: member="psimpl::util::scoped_array::scoped_array" ref="a5a6f140a2398b3a2551b5803f521f5d9" args="(const scoped_array &)" --> <div class="memitem"> <div class="memproto"> <div class="memtemplate"> template<typename T> </div> <table class="memname"> <tr> <td class="memname"><a class="el" href="classpsimpl_1_1util_1_1scoped__array.html">psimpl::util::scoped_array</a>< T >::<a class="el" href="classpsimpl_1_1util_1_1scoped__array.html">scoped_array</a> </td> <td>(</td> <td class="paramtype">const <a class="el" href="classpsimpl_1_1util_1_1scoped__array.html">scoped_array</a>< T > & </td> <td class="paramname"></td><td>)</td> <td><code> [private]</code></td> </tr> </table> </div> <div class="memdoc"> </div> </div> <hr/><h2>Member Function Documentation</h2> <a class="anchor" id="a7a4c3a0d4593dd10ddf6d695f2086e67"></a><!-- doxytag: member="psimpl::util::scoped_array::get" ref="a7a4c3a0d4593dd10ddf6d695f2086e67" args="() const " --> <div class="memitem"> <div class="memproto"> <div class="memtemplate"> template<typename T> </div> <table class="memname"> <tr> <td class="memname">T* <a class="el" href="classpsimpl_1_1util_1_1scoped__array.html">psimpl::util::scoped_array</a>< T >::get </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> </div> </div> <a class="anchor" id="a9d2203f20dd342720a9a26fd329e6266"></a><!-- doxytag: member="psimpl::util::scoped_array::operator=" ref="a9d2203f20dd342720a9a26fd329e6266" args="(const scoped_array &)" --> <div class="memitem"> <div class="memproto"> <div class="memtemplate"> template<typename T> </div> <table class="memname"> <tr> <td class="memname"><a class="el" href="classpsimpl_1_1util_1_1scoped__array.html">scoped_array</a>& <a class="el" href="classpsimpl_1_1util_1_1scoped__array.html">psimpl::util::scoped_array</a>< T >::operator= </td> <td>(</td> <td class="paramtype">const <a class="el" href="classpsimpl_1_1util_1_1scoped__array.html">scoped_array</a>< T > & </td> <td class="paramname"></td><td>)</td> <td><code> [private]</code></td> </tr> </table> </div> <div class="memdoc"> </div> </div> <a class="anchor" id="aa60ac752fe4ebe0a19b9b3e5fd02051c"></a><!-- doxytag: member="psimpl::util::scoped_array::operator[]" ref="aa60ac752fe4ebe0a19b9b3e5fd02051c" args="(int offset) const " --> <div class="memitem"> <div class="memproto"> <div class="memtemplate"> template<typename T> </div> <table class="memname"> <tr> <td class="memname">const T& <a class="el" href="classpsimpl_1_1util_1_1scoped__array.html">psimpl::util::scoped_array</a>< T >::operator[] </td> <td>(</td> <td class="paramtype">int </td> <td class="paramname"><em>offset</em></td><td>)</td> <td> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> </div> </div> <a class="anchor" id="a5fe6ffe5f442f5d8c5c24ef010b276d7"></a><!-- doxytag: member="psimpl::util::scoped_array::operator[]" ref="a5fe6ffe5f442f5d8c5c24ef010b276d7" args="(int offset)" --> <div class="memitem"> <div class="memproto"> <div class="memtemplate"> template<typename T> </div> <table class="memname"> <tr> <td class="memname">T& <a class="el" href="classpsimpl_1_1util_1_1scoped__array.html">psimpl::util::scoped_array</a>< T >::operator[] </td> <td>(</td> <td class="paramtype">int </td> <td class="paramname"><em>offset</em></td><td>)</td> <td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> </div> </div> <a class="anchor" id="ac97beeefa4563f9b9096df6fac32ce39"></a><!-- doxytag: member="psimpl::util::scoped_array::swap" ref="ac97beeefa4563f9b9096df6fac32ce39" args="(scoped_array &b)" --> <div class="memitem"> <div class="memproto"> <div class="memtemplate"> template<typename T> </div> <table class="memname"> <tr> <td class="memname">void <a class="el" href="classpsimpl_1_1util_1_1scoped__array.html">psimpl::util::scoped_array</a>< T >::swap </td> <td>(</td> <td class="paramtype"><a class="el" href="classpsimpl_1_1util_1_1scoped__array.html">scoped_array</a>< T > & </td> <td class="paramname"><em>b</em></td><td>)</td> <td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> </div> </div> <hr/><h2>Member Data Documentation</h2> <a class="anchor" id="a804949986114cac19e44e959ed55202a"></a><!-- doxytag: member="psimpl::util::scoped_array::array" ref="a804949986114cac19e44e959ed55202a" args="" --> <div class="memitem"> <div class="memproto"> <div class="memtemplate"> template<typename T> </div> <table class="memname"> <tr> <td class="memname">T* <a class="el" href="classpsimpl_1_1util_1_1scoped__array.html">psimpl::util::scoped_array</a>< T >::<a class="el" href="classpsimpl_1_1util_1_1scoped__array.html#a804949986114cac19e44e959ed55202a">array</a><code> [private]</code></td> </tr> </table> </div> <div class="memdoc"> </div> </div> <hr/>The documentation for this class was generated from the following file:<ul> <li>D:/Code/Projects/psimpl/trunk/lib/<a class="el" href="psimpl_8h_source.html">psimpl.h</a></li> </ul> </div> </div> <div id="nav-path" class="navpath"> <ul> <li class="navelem"><a class="el" href="namespacepsimpl.html">psimpl</a> </li> <li class="navelem"><a class="el" href="namespacepsimpl_1_1util.html">util</a> </li> <li class="navelem"><a class="el" href="classpsimpl_1_1util_1_1scoped__array.html">scoped_array</a> </li> <li class="footer">Generated on Fri Jun 24 2011 14:56:29 for psimpl by  <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.4 </li> </ul> </div> </body> </html>
By viewing downloads associated with this article you agree to the Terms of use and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.
This article, along with any associated source code and files, is licensed under The Mozilla Public License 1.1 (MPL 1.1)
Skills that self-taught computer programmers lack