<!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>ucommon: ucommon/object.h File Reference</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="doxygen.css" rel="stylesheet" type="text/css"/> </head> <body> <!-- Generated by Doxygen 1.6.3 --> <div class="navigation" id="top"> <div class="tabs"> <ul> <li><a href="main.html"><span>Main Page</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li><a href="annotated.html"><span>Data Structures</span></a></li> <li class="current"><a href="files.html"><span>Files</span></a></li> <li><a href="examples.html"><span>Examples</span></a></li> </ul> </div> <div class="tabs"> <ul> <li><a href="files.html"><span>File List</span></a></li> <li><a href="globals.html"><span>Globals</span></a></li> </ul> </div> </div> <div class="contents"> <h1>ucommon/object.h File Reference</h1> <p>A common object base class with auto-pointer support. <a href="#_details">More...</a></p> <code>#include <<a class="el" href="a00194_source.html">ucommon/platform.h</a>></code><br/> <code>#include <<a class="el" href="a00186_source.html">ucommon/generics.h</a>></code><br/> <code>#include <stdlib.h></code><br/> <div class="dynheader"> Include dependency graph for object.h:</div> <div class="dynsection"> <div class="center"><img src="a00249.png" border="0" usemap="#ucommon_2object_8h_map" alt=""/></div> <map name="ucommon_2object_8h_map" id="ucommon_2object_8h"> <area shape="rect" id="node3" href="a00194.html" title="Various miscellaneous platform specific headers and defines." alt="" coords="563,155,765,181"/><area shape="rect" id="node26" href="a00186.html" title="Generic templates for C++." alt="" coords="437,80,640,107"/></map> </div> <div class="dynheader"> This graph shows which files directly or indirectly include this file:</div> <div class="dynsection"> <div class="center"><img src="a00250.png" border="0" usemap="#ucommon_2object_8hdep_map" alt=""/></div> <map name="ucommon_2object_8hdep_map" id="ucommon_2object_8hdep"> <area shape="rect" id="node3" href="a00188.html" title="Linked objects, lists, templates, and containers." alt="" coords="757,80,939,107"/><area shape="rect" id="node7" href="a00204.html" title="Top level include file for the GNU uCommon C++ core library." alt="" coords="903,528,1095,555"/><area shape="rect" id="node58" href="a00201.html" title="A common string class and character string support functions." alt="" coords="1504,229,1685,256"/><area shape="rect" id="node5" href="a00181.html" title="Threadsafe object containers." alt="" coords="360,304,581,331"/><area shape="rect" id="node11" href="a00187.html" title="Parsing of config files that have keyword/value pairs." alt="" coords="43,229,235,256"/><area shape="rect" id="node14" href="a00189.html" title="Support for memory mapped objects." alt="" coords="757,304,939,331"/><area shape="rect" id="node17" href="a00190.html" title="Private heaps, pools, and associations." alt="" coords="260,155,441,181"/><area shape="rect" id="node45" href="a00198.html" title="Common socket class and address manipulation." alt="" coords="1224,304,1405,331"/><area shape="rect" id="node51" href="a00203.html" title="Realtime timers and timer queues." alt="" coords="885,155,1067,181"/><area shape="rect" id="node9" href="a00196.html" title="This library holds basic cryptographic functions and secure socket support for use..." alt="" coords="908,603,1089,629"/><area shape="rect" id="node21" href="a00197.html" title="Generic shell parsing and application services." alt="" coords="1259,453,1429,480"/><area shape="rect" id="node24" href="a00202.html" title="Thread classes and sychronization objects." alt="" coords="604,229,785,256"/><area shape="rect" id="node27" href="a00185.html" title="Thread-aware file system manipulation class." alt="" coords="1013,304,1176,331"/><area shape="rect" id="node34" href="a00200.html" title="Any ucommon streaming classes that are built from std::streamio facilities and that..." alt="" coords="992,379,1173,405"/><area shape="rect" id="node41" href="a00206.html" title="Basic array and reusable object factory heap support." alt="" coords="508,379,689,405"/><area shape="rect" id="node29" href="a00180.html" title="Classes which use the buffer protocol to stream data." alt="" coords="1248,379,1429,405"/><area shape="rect" id="node61" href="a00183.html" title="Basic classes for manipulating time and date based data, particularly that may be..." alt="" coords="1568,453,1771,480"/><area shape="rect" id="node70" href="a00205.html" title="Basic UCommon Unicode support." alt="" coords="1707,379,1899,405"/><area shape="rect" id="node73" href="a00207.html" title="XML "SAX" (stream) parsing support from GNU Common C++." alt="" coords="1852,453,2004,480"/></map> </div> <p><a href="a00192_source.html">Go to the source code of this file.</a></p> <table border="0" cellpadding="0" cellspacing="0"> <tr><td colspan="2"><h2>Data Structures</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><a class="el" href="a00021.html">ucommon::auto_object</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">A general purpose smart pointer helper class. <a href="a00021.html#_details">More...</a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><a class="el" href="a00039.html">ucommon::CountedObject</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">A base class for reference counted objects. <a href="a00039.html#_details">More...</a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><a class="el" href="a00093.html">ucommon::object_pointer< T, P ></a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Typed smart pointer class. <a href="a00093.html#_details">More...</a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><a class="el" href="a00094.html">ucommon::object_value< T, O ></a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Template for embedding a data structure into a reference counted object. <a href="a00094.html#_details">More...</a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><a class="el" href="a00095.html">ucommon::ObjectProtocol</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">A common base class for all managed objects. <a href="a00095.html#_details">More...</a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><a class="el" href="a00117.html">ucommon::sarray< T ></a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Generate a typed sparse managed object array. <a href="a00117.html#_details">More...</a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><a class="el" href="a00142.html">ucommon::sparse_array</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">A sparse array of managed objects. <a href="a00142.html#_details">More...</a><br/></td></tr> <tr><td colspan="2"><h2>Namespaces</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">namespace </td><td class="memItemRight" valign="bottom"><a class="el" href="a00208.html">ucommon</a></td></tr> <p><tr><td class="mdescLeft"> </td><td class="mdescRight"><p>Common namespace for all ucommon objects. </p> <br/></td></tr> </p> <tr><td colspan="2"><h2>Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">ObjectProtocol * </td><td class="memItemRight" valign="bottom"><a class="el" href="a00208.html#aa948d5926268ce79c22778bd81cc6ed9">ucommon::copy</a> (ObjectProtocol *object)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Convenience function to access object copy. <a href="#aa948d5926268ce79c22778bd81cc6ed9"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="a00208.html#a36c7f21e255b789a27b71fe4ce4896a3">ucommon::release</a> (ObjectProtocol *object)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Convenience function to access object release. <a href="#a36c7f21e255b789a27b71fe4ce4896a3"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="a00208.html#a7e79ccf82d8397085e6eecf36edeecc7">ucommon::retain</a> (ObjectProtocol *object)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Convenience function to access object retention. <a href="#a7e79ccf82d8397085e6eecf36edeecc7"></a><br/></td></tr> </table> <hr/><a name="_details"></a><h2>Detailed Description</h2> <p>A common object base class with auto-pointer support. </p> <p>A common object class is used which may be referenced counted and associated with a smart auto-pointer class. A lot of the things found here were inspired by working with Objective-C. Many of the classes are designed to offer automatic heap management through smart pointers and temporary objects controlled through the scope of the stack frame of method calls. </p> <p>Definition in file <a class="el" href="a00192_source.html">object.h</a>.</p> </div> <hr class="footer"/><address style="text-align: right;"><small>Generated on Thu Jul 14 16:39:06 2011 for ucommon by <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.3 </small></address> </body> </html>