aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/others/irrlicht-1.8.1/doc/html/classirr_1_1_i_reference_counted.html
diff options
context:
space:
mode:
Diffstat (limited to 'src/others/irrlicht-1.8.1/doc/html/classirr_1_1_i_reference_counted.html')
-rw-r--r--src/others/irrlicht-1.8.1/doc/html/classirr_1_1_i_reference_counted.html391
1 files changed, 391 insertions, 0 deletions
diff --git a/src/others/irrlicht-1.8.1/doc/html/classirr_1_1_i_reference_counted.html b/src/others/irrlicht-1.8.1/doc/html/classirr_1_1_i_reference_counted.html
new file mode 100644
index 0000000..7fa862e
--- /dev/null
+++ b/src/others/irrlicht-1.8.1/doc/html/classirr_1_1_i_reference_counted.html
@@ -0,0 +1,391 @@
1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2<html xmlns="http://www.w3.org/1999/xhtml">
3<head>
4<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
5<title>Irrlicht 3D Engine: irr::IReferenceCounted Class Reference</title>
6
7<link href="tabs.css" rel="stylesheet" type="text/css"/>
8<link href="doxygen.css" rel="stylesheet" type="text/css" />
9<link href="navtree.css" rel="stylesheet" type="text/css"/>
10<script type="text/javascript" src="jquery.js"></script>
11<script type="text/javascript" src="resize.js"></script>
12<script type="text/javascript" src="navtree.js"></script>
13<script type="text/javascript">
14 $(document).ready(initResizable);
15</script>
16<link href="search/search.css" rel="stylesheet" type="text/css"/>
17<script type="text/javascript" src="search/search.js"></script>
18<script type="text/javascript">
19 $(document).ready(function() { searchBox.OnSelectItem(0); });
20</script>
21
22</head>
23<body>
24<div id="top"><!-- do not remove this div! -->
25
26
27<div id="titlearea">
28<table cellspacing="0" cellpadding="0">
29 <tbody>
30 <tr style="height: 56px;">
31
32 <td id="projectlogo"><img alt="Logo" src="irrlichtlogo.png"/></td>
33
34
35 <td style="padding-left: 0.5em;">
36 <div id="projectname">Irrlicht 3D Engine
37
38 </div>
39
40 </td>
41
42
43
44
45 <td> <div id="MSearchBox" class="MSearchBoxInactive">
46 <span class="left">
47 <img id="MSearchSelect" src="search/mag_sel.png"
48 onmouseover="return searchBox.OnSearchSelectShow()"
49 onmouseout="return searchBox.OnSearchSelectHide()"
50 alt=""/>
51 <input type="text" id="MSearchField" value="Search" accesskey="S"
52 onfocus="searchBox.OnSearchFieldFocus(true)"
53 onblur="searchBox.OnSearchFieldFocus(false)"
54 onkeyup="searchBox.OnSearchFieldChange(event)"/>
55 </span><span class="right">
56 <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
57 </span>
58 </div>
59</td>
60
61
62 </tr>
63 </tbody>
64</table>
65</div>
66
67<!-- Generated by Doxygen 1.7.5.1 -->
68<script type="text/javascript">
69var searchBox = new SearchBox("searchBox", "search",false,'Search');
70</script>
71<script type="text/javascript" src="dynsections.js"></script>
72</div>
73<div id="side-nav" class="ui-resizable side-nav-resizable">
74 <div id="nav-tree">
75 <div id="nav-tree-contents">
76 </div>
77 </div>
78 <div id="splitbar" style="-moz-user-select:none;"
79 class="ui-resizable-handle">
80 </div>
81</div>
82<script type="text/javascript">
83 initNavTree('classirr_1_1_i_reference_counted.html','');
84</script>
85<div id="doc-content">
86<div class="header">
87 <div class="summary">
88<a href="#pub-methods">Public Member Functions</a> &#124;
89<a href="#pro-methods">Protected Member Functions</a> </div>
90 <div class="headertitle">
91<div class="title">irr::IReferenceCounted Class Reference</div> </div>
92</div>
93<div class="contents">
94<!-- doxytag: class="irr::IReferenceCounted" -->
95<p>Base class of most objects of the Irrlicht Engine.
96 <a href="classirr_1_1_i_reference_counted.html#details">More...</a></p>
97
98<p><code>#include &lt;<a class="el" href="_i_reference_counted_8h_source.html">IReferenceCounted.h</a>&gt;</code></p>
99<div id="dynsection-0" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
100 <img id="dynsection-0-trigger" src="closed.png" alt="+"/> Inheritance diagram for irr::IReferenceCounted:</div>
101<div id="dynsection-0-summary" class="dynsummary" style="display:block;">
102</div>
103<div id="dynsection-0-content" class="dyncontent" style="display:none;">
104 <div class="center">
105 <img src="classirr_1_1_i_reference_counted.png" usemap="#irr::IReferenceCounted_map" alt=""/>
106 <map id="irr::IReferenceCounted_map" name="irr::IReferenceCounted_map">
107<area href="classirr_1_1gui_1_1_i_cursor_control.html" title="Interface to manipulate the mouse cursor." alt="irr::gui::ICursorControl" shape="rect" coords="250,56,490,80"/>
108<area href="classirr_1_1gui_1_1_i_g_u_i_element_factory.html" title="Interface making it possible to dynamically create GUI elements." alt="irr::gui::IGUIElementFactory" shape="rect" coords="250,112,490,136"/>
109<area href="classirr_1_1gui_1_1_i_g_u_i_environment.html" title="GUI Environment. Used as factory and manager of all other GUI elements." alt="irr::gui::IGUIEnvironment" shape="rect" coords="250,168,490,192"/>
110<area href="classirr_1_1gui_1_1_i_g_u_i_font.html" title="Font interface." alt="irr::gui::IGUIFont" shape="rect" coords="250,224,490,248"/>
111<area href="classirr_1_1gui_1_1_i_g_u_i_image_list.html" title="Font interface." alt="irr::gui::IGUIImageList" shape="rect" coords="250,280,490,304"/>
112<area href="classirr_1_1gui_1_1_i_g_u_i_sprite_bank.html" title="Sprite bank interface." alt="irr::gui::IGUISpriteBank" shape="rect" coords="250,336,490,360"/>
113<area href="classirr_1_1gui_1_1_i_g_u_i_tree_view_node.html" title="Node for gui tree view." alt="irr::gui::IGUITreeViewNode" shape="rect" coords="250,392,490,416"/>
114<area href="classirr_1_1_i_logger.html" title="Interface for logging messages, warnings and errors." alt="irr::ILogger" shape="rect" coords="250,448,490,472"/>
115<area href="classirr_1_1io_1_1_i_archive_loader.html" title="Class which is able to create an archive from a file." alt="irr::io::IArchiveLoader" shape="rect" coords="250,504,490,528"/>
116<area href="classirr_1_1io_1_1_i_attribute_exchanging_object.html" title="An object which is able to serialize and deserialize its attributes into an attributes object..." alt="irr::io::IAttributeExchangingObject" shape="rect" coords="250,560,490,584"/>
117<area href="classirr_1_1io_1_1_i_attributes.html" title="Provides a generic interface for attributes and their values and the possiblity to serialize them..." alt="irr::io::IAttributes" shape="rect" coords="250,616,490,640"/>
118<area href="classirr_1_1io_1_1_i_file_archive.html" title="The FileArchive manages archives and provides access to files inside them." alt="irr::io::IFileArchive" shape="rect" coords="250,672,490,696"/>
119<area href="classirr_1_1io_1_1_i_file_list.html" title="Provides a list of files and folders." alt="irr::io::IFileList" shape="rect" coords="250,728,490,752"/>
120<area href="classirr_1_1io_1_1_i_file_system.html" title="The FileSystem manages files and archives and provides access to them." alt="irr::io::IFileSystem" shape="rect" coords="250,784,490,808"/>
121<area href="classirr_1_1io_1_1_i_read_file.html" title="Interface providing read acess to a file." alt="irr::io::IReadFile" shape="rect" coords="250,840,490,864"/>
122<area href="classirr_1_1io_1_1_i_write_file.html" title="Interface providing write access to a file." alt="irr::io::IWriteFile" shape="rect" coords="250,896,490,920"/>
123<area href="classirr_1_1io_1_1_i_x_m_l_writer.html" title="Interface providing methods for making it easier to write XML files." alt="irr::io::IXMLWriter" shape="rect" coords="250,952,490,976"/>
124<area href="classirr_1_1_i_o_s_operator.html" title="The Operating system operator provides operation system specific methods and informations." alt="irr::IOSOperator" shape="rect" coords="250,1008,490,1032"/>
125<area href="classirr_1_1_i_randomizer.html" title="Interface for generating random numbers." alt="irr::IRandomizer" shape="rect" coords="250,1064,490,1088"/>
126<area href="classirr_1_1_irrlicht_device.html" title="The Irrlicht device. You can create it with createDevice() or createDeviceEx()." alt="irr::IrrlichtDevice" shape="rect" coords="250,1120,490,1144"/>
127<area href="classirr_1_1_i_timer.html" title="Interface for getting and manipulating the virtual time." alt="irr::ITimer" shape="rect" coords="250,1176,490,1200"/>
128<area href="classirr_1_1scene_1_1_i_animation_end_call_back.html" title="Callback interface for catching events of ended animations." alt="irr::scene::IAnimationEndCallBack" shape="rect" coords="250,1232,490,1256"/>
129<area href="classirr_1_1scene_1_1_i_collada_mesh_writer_names.html" title="Callback interface to use custom names on collada writing." alt="irr::scene::IColladaMeshWriterNames" shape="rect" coords="250,1288,490,1312"/>
130<area href="classirr_1_1scene_1_1_i_collada_mesh_writer_properties.html" title="Callback interface for properties which can be used to influence collada writing." alt="irr::scene::IColladaMeshWriterProperties" shape="rect" coords="250,1344,490,1368"/>
131<area href="classirr_1_1scene_1_1_i_collision_callback.html" title="Callback interface for catching events of collisions." alt="irr::scene::ICollisionCallback" shape="rect" coords="250,1400,490,1424"/>
132<area href="classirr_1_1scene_1_1_i_geometry_creator.html" title="Helper class for creating geometry on the fly." alt="irr::scene::IGeometryCreator" shape="rect" coords="250,1456,490,1480"/>
133<area href="classirr_1_1scene_1_1_i_index_buffer.html" alt="irr::scene::IIndexBuffer" shape="rect" coords="250,1512,490,1536"/>
134<area href="classirr_1_1scene_1_1_i_light_manager.html" title="ILightManager provides an interface for user applications to manipulate the list of lights in the sce..." alt="irr::scene::ILightManager" shape="rect" coords="250,1568,490,1592"/>
135<area href="classirr_1_1scene_1_1_i_mesh.html" title="Class which holds the geometry of an object." alt="irr::scene::IMesh" shape="rect" coords="250,1624,490,1648"/>
136<area href="classirr_1_1scene_1_1_i_mesh_buffer.html" title="Struct for holding a mesh with a single material." alt="irr::scene::IMeshBuffer" shape="rect" coords="250,1680,490,1704"/>
137<area href="classirr_1_1scene_1_1_i_mesh_cache.html" title="The mesh cache stores already loaded meshes and provides an interface to them." alt="irr::scene::IMeshCache" shape="rect" coords="250,1736,490,1760"/>
138<area href="classirr_1_1scene_1_1_i_mesh_loader.html" title="Class which is able to load an animated mesh from a file." alt="irr::scene::IMeshLoader" shape="rect" coords="250,1792,490,1816"/>
139<area href="classirr_1_1scene_1_1_i_mesh_manipulator.html" title="An interface for easy manipulation of meshes." alt="irr::scene::IMeshManipulator" shape="rect" coords="250,1848,490,1872"/>
140<area href="classirr_1_1scene_1_1_i_mesh_writer.html" title="Interface for writing meshes." alt="irr::scene::IMeshWriter" shape="rect" coords="250,1904,490,1928"/>
141<area href="classirr_1_1scene_1_1_i_scene_collision_manager.html" title="The Scene Collision Manager provides methods for performing collision tests and picking on scene node..." alt="irr::scene::ISceneCollisionManager" shape="rect" coords="250,1960,490,1984"/>
142<area href="classirr_1_1scene_1_1_i_scene_loader.html" title="Class which can load a scene into the scene manager." alt="irr::scene::ISceneLoader" shape="rect" coords="250,2016,490,2040"/>
143<area href="classirr_1_1scene_1_1_i_scene_manager.html" title="The Scene Manager manages scene nodes, mesh recources, cameras and all the other stuff." alt="irr::scene::ISceneManager" shape="rect" coords="250,2072,490,2096"/>
144<area href="classirr_1_1scene_1_1_i_scene_node_animator_factory.html" title="Interface for dynamic creation of scene node animators." alt="irr::scene::ISceneNodeAnimatorFactory" shape="rect" coords="250,2128,490,2152"/>
145<area href="classirr_1_1scene_1_1_i_scene_node_factory.html" title="Interface for dynamic creation of scene nodes." alt="irr::scene::ISceneNodeFactory" shape="rect" coords="250,2184,490,2208"/>
146<area href="classirr_1_1scene_1_1_i_triangle_selector.html" title="Interface to return triangles with specific properties." alt="irr::scene::ITriangleSelector" shape="rect" coords="250,2240,490,2264"/>
147<area href="classirr_1_1scene_1_1_i_vertex_buffer.html" alt="irr::scene::IVertexBuffer" shape="rect" coords="250,2296,490,2320"/>
148<area href="classirr_1_1scene_1_1quake3_1_1_i_shader_manager.html" title="Manages various Quake3 Shader Styles." alt="irr::scene::quake3::IShaderManager" shape="rect" coords="250,2352,490,2376"/>
149<area href="structirr_1_1scene_1_1quake3_1_1_s_var_group_list.html" title="holding a group a variable" alt="irr::scene::quake3::SVarGroupList" shape="rect" coords="250,2408,490,2432"/>
150<area href="structirr_1_1scene_1_1_s_m_d3_mesh.html" title="Holding Frames Buffers and Tag Infos." alt="irr::scene::SMD3Mesh" shape="rect" coords="250,2464,490,2488"/>
151<area href="structirr_1_1scene_1_1_s_m_d3_mesh_buffer.html" title="Holding Frame Data for a Mesh." alt="irr::scene::SMD3MeshBuffer" shape="rect" coords="250,2520,490,2544"/>
152<area href="classirr_1_1video_1_1_i_image.html" title="Interface for software image data." alt="irr::video::IImage" shape="rect" coords="250,2576,490,2600"/>
153<area href="classirr_1_1video_1_1_i_image_loader.html" title="Class which is able to create a image from a file." alt="irr::video::IImageLoader" shape="rect" coords="250,2632,490,2656"/>
154<area href="classirr_1_1video_1_1_i_image_writer.html" title="Interface for writing software image data." alt="irr::video::IImageWriter" shape="rect" coords="250,2688,490,2712"/>
155<area href="classirr_1_1video_1_1_i_material_renderer.html" title="Interface for material rendering." alt="irr::video::IMaterialRenderer" shape="rect" coords="250,2744,490,2768"/>
156<area href="classirr_1_1video_1_1_i_shader_constant_set_call_back.html" title="Interface making it possible to set constants for gpu programs every frame." alt="irr::video::IShaderConstantSetCallBack" shape="rect" coords="250,2800,490,2824"/>
157<area href="classirr_1_1video_1_1_i_texture.html" title="Interface of a Video Driver dependent Texture." alt="irr::video::ITexture" shape="rect" coords="250,2856,490,2880"/>
158<area href="classirr_1_1video_1_1_i_video_driver.html" title="Interface to driver which is able to perform 2d and 3d graphics functions." alt="irr::video::IVideoDriver" shape="rect" coords="250,2912,490,2936"/>
159<area href="classirr_1_1video_1_1_i_video_mode_list.html" title="A list of all available video modes." alt="irr::video::IVideoModeList" shape="rect" coords="250,2968,490,2992"/>
160</map>
161 </div></div>
162
163<p><a href="classirr_1_1_i_reference_counted-members.html">List of all members.</a></p>
164<h2><a name="pub-methods"></a>
165Public Member Functions</h2>
166<ul>
167<li><a class="el" href="classirr_1_1_i_reference_counted.html#a8411682018e68a2752d4c82675c71040">IReferenceCounted</a> ()
168<dl class="el"><dd class="mdescRight">Constructor. <a href="#a8411682018e68a2752d4c82675c71040"></a><br/></dl><li>virtual <a class="el" href="classirr_1_1_i_reference_counted.html#a78abc75801cbb13d9db0955b3c07251c">~IReferenceCounted</a> ()
169<dl class="el"><dd class="mdescRight">Destructor. <a href="#a78abc75801cbb13d9db0955b3c07251c"></a><br/></dl><li>bool <a class="el" href="classirr_1_1_i_reference_counted.html#afb169a857e0d2cdb96b8821cb9bff17a">drop</a> () const
170<dl class="el"><dd class="mdescRight">Drops the object. Decrements the reference counter by one. <a href="#afb169a857e0d2cdb96b8821cb9bff17a"></a><br/></dl><li>const <a class="el" href="namespaceirr.html#a9395eaea339bcb546b319e9c96bf7410">c8</a> * <a class="el" href="classirr_1_1_i_reference_counted.html#a768e697e55d496e396b3acc5003d2bea">getDebugName</a> () const
171<dl class="el"><dd class="mdescRight">Returns the debug name of the object. <a href="#a768e697e55d496e396b3acc5003d2bea"></a><br/></dl><li><a class="el" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6">s32</a> <a class="el" href="classirr_1_1_i_reference_counted.html#a198560456588db46331f06eda909a399">getReferenceCount</a> () const
172<dl class="el"><dd class="mdescRight">Get the reference count. <a href="#a198560456588db46331f06eda909a399"></a><br/></dl><li>void <a class="el" href="classirr_1_1_i_reference_counted.html#a2b7a035532e5f409ca9482dab79185f4">grab</a> () const
173<dl class="el"><dd class="mdescRight">Grabs the object. Increments the reference counter by one. <a href="#a2b7a035532e5f409ca9482dab79185f4"></a><br/></dl></ul>
174<h2><a name="pro-methods"></a>
175Protected Member Functions</h2>
176<ul>
177<li>void <a class="el" href="classirr_1_1_i_reference_counted.html#a704c5042d399fe8cd3bdd65a0559002a">setDebugName</a> (const <a class="el" href="namespaceirr.html#a9395eaea339bcb546b319e9c96bf7410">c8</a> *newName)
178<dl class="el"><dd class="mdescRight">Sets the debug name of the object. <a href="#a704c5042d399fe8cd3bdd65a0559002a"></a><br/></dl></ul>
179<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
180<div class="textblock"><p>Base class of most objects of the Irrlicht Engine. </p>
181<p>This class provides reference counting through the methods <a class="el" href="classirr_1_1_i_reference_counted.html#a2b7a035532e5f409ca9482dab79185f4" title="Grabs the object. Increments the reference counter by one.">grab()</a> and <a class="el" href="classirr_1_1_i_reference_counted.html#afb169a857e0d2cdb96b8821cb9bff17a" title="Drops the object. Decrements the reference counter by one.">drop()</a>. It also is able to store a debug string for every instance of an object. Most objects of the Irrlicht Engine are derived from <a class="el" href="classirr_1_1_i_reference_counted.html" title="Base class of most objects of the Irrlicht Engine.">IReferenceCounted</a>, and so they are reference counted.</p>
182<p>When you create an object in the Irrlicht engine, calling a method which starts with 'create', an object is created, and you get a pointer to the new object. If you no longer need the object, you have to call <a class="el" href="classirr_1_1_i_reference_counted.html#afb169a857e0d2cdb96b8821cb9bff17a" title="Drops the object. Decrements the reference counter by one.">drop()</a>. This will destroy the object, if <a class="el" href="classirr_1_1_i_reference_counted.html#a2b7a035532e5f409ca9482dab79185f4" title="Grabs the object. Increments the reference counter by one.">grab()</a> was not called in another part of you program, because this part still needs the object. Note, that you only need to call <a class="el" href="classirr_1_1_i_reference_counted.html#afb169a857e0d2cdb96b8821cb9bff17a" title="Drops the object. Decrements the reference counter by one.">drop()</a> to the object, if you created it, and the method had a 'create' in it.</p>
183<p>A simple example:</p>
184<p>If you want to create a texture, you may want to call an imaginable method IDriver::createTexture. You call ITexture* texture = driver-&gt;createTexture(dimension2d&lt;u32&gt;(128, 128)); If you no longer need the texture, call texture-&gt;<a class="el" href="classirr_1_1_i_reference_counted.html#afb169a857e0d2cdb96b8821cb9bff17a" title="Drops the object. Decrements the reference counter by one.">drop()</a>.</p>
185<p>If you want to load a texture, you may want to call imaginable method IDriver::loadTexture. You do this like ITexture* texture = driver-&gt;loadTexture("example.jpg"); You will not have to drop the pointer to the loaded texture, because the name of the method does not start with 'create'. The texture is stored somewhere by the driver. </p>
186
187<p>Definition at line <a class="el" href="_i_reference_counted_8h_source.html#l00041">41</a> of file <a class="el" href="_i_reference_counted_8h_source.html">IReferenceCounted.h</a>.</p>
188</div><hr/><h2>Constructor &amp; Destructor Documentation</h2>
189<a class="anchor" id="a8411682018e68a2752d4c82675c71040"></a><!-- doxytag: member="irr::IReferenceCounted::IReferenceCounted" ref="a8411682018e68a2752d4c82675c71040" args="()" -->
190<div class="memitem">
191<div class="memproto">
192 <table class="memname">
193 <tr>
194 <td class="memname">irr::IReferenceCounted::IReferenceCounted </td>
195 <td>(</td>
196 <td class="paramname"></td><td>)</td>
197 <td><code> [inline]</code></td>
198 </tr>
199 </table>
200</div>
201<div class="memdoc">
202
203<p>Constructor. </p>
204
205<p>Definition at line <a class="el" href="_i_reference_counted_8h_source.html#l00046">46</a> of file <a class="el" href="_i_reference_counted_8h_source.html">IReferenceCounted.h</a>.</p>
206
207</div>
208</div>
209<a class="anchor" id="a78abc75801cbb13d9db0955b3c07251c"></a><!-- doxytag: member="irr::IReferenceCounted::~IReferenceCounted" ref="a78abc75801cbb13d9db0955b3c07251c" args="()" -->
210<div class="memitem">
211<div class="memproto">
212 <table class="memname">
213 <tr>
214 <td class="memname">virtual irr::IReferenceCounted::~IReferenceCounted </td>
215 <td>(</td>
216 <td class="paramname"></td><td>)</td>
217 <td><code> [inline, virtual]</code></td>
218 </tr>
219 </table>
220</div>
221<div class="memdoc">
222
223<p>Destructor. </p>
224
225<p>Definition at line <a class="el" href="_i_reference_counted_8h_source.html#l00052">52</a> of file <a class="el" href="_i_reference_counted_8h_source.html">IReferenceCounted.h</a>.</p>
226
227</div>
228</div>
229<hr/><h2>Member Function Documentation</h2>
230<a class="anchor" id="afb169a857e0d2cdb96b8821cb9bff17a"></a><!-- doxytag: member="irr::IReferenceCounted::drop" ref="afb169a857e0d2cdb96b8821cb9bff17a" args="() const " -->
231<div class="memitem">
232<div class="memproto">
233 <table class="memname">
234 <tr>
235 <td class="memname">bool irr::IReferenceCounted::drop </td>
236 <td>(</td>
237 <td class="paramname"></td><td>)</td>
238 <td> const<code> [inline]</code></td>
239 </tr>
240 </table>
241</div>
242<div class="memdoc">
243
244<p>Drops the object. Decrements the reference counter by one. </p>
245<p>The <a class="el" href="classirr_1_1_i_reference_counted.html" title="Base class of most objects of the Irrlicht Engine.">IReferenceCounted</a> class provides a basic reference counting mechanism with its methods <a class="el" href="classirr_1_1_i_reference_counted.html#a2b7a035532e5f409ca9482dab79185f4" title="Grabs the object. Increments the reference counter by one.">grab()</a> and <a class="el" href="classirr_1_1_i_reference_counted.html#afb169a857e0d2cdb96b8821cb9bff17a" title="Drops the object. Decrements the reference counter by one.">drop()</a>. Most objects of the Irrlicht Engine are derived from <a class="el" href="classirr_1_1_i_reference_counted.html" title="Base class of most objects of the Irrlicht Engine.">IReferenceCounted</a>, and so they are reference counted.</p>
246<p>When you create an object in the Irrlicht engine, calling a method which starts with 'create', an object is created, and you get a pointer to the new object. If you no longer need the object, you have to call <a class="el" href="classirr_1_1_i_reference_counted.html#afb169a857e0d2cdb96b8821cb9bff17a" title="Drops the object. Decrements the reference counter by one.">drop()</a>. This will destroy the object, if <a class="el" href="classirr_1_1_i_reference_counted.html#a2b7a035532e5f409ca9482dab79185f4" title="Grabs the object. Increments the reference counter by one.">grab()</a> was not called in another part of you program, because this part still needs the object. Note, that you only need to call <a class="el" href="classirr_1_1_i_reference_counted.html#afb169a857e0d2cdb96b8821cb9bff17a" title="Drops the object. Decrements the reference counter by one.">drop()</a> to the object, if you created it, and the method had a 'create' in it.</p>
247<p>A simple example:</p>
248<p>If you want to create a texture, you may want to call an imaginable method IDriver::createTexture. You call ITexture* texture = driver-&gt;createTexture(dimension2d&lt;u32&gt;(128, 128)); If you no longer need the texture, call texture-&gt;<a class="el" href="classirr_1_1_i_reference_counted.html#afb169a857e0d2cdb96b8821cb9bff17a" title="Drops the object. Decrements the reference counter by one.">drop()</a>. If you want to load a texture, you may want to call imaginable method IDriver::loadTexture. You do this like ITexture* texture = driver-&gt;loadTexture("example.jpg"); You will not have to drop the pointer to the loaded texture, because the name of the method does not start with 'create'. The texture is stored somewhere by the driver. </p>
249<dl class="return"><dt><b>Returns:</b></dt><dd>True, if the object was deleted. </dd></dl>
250
251<p>Definition at line <a class="el" href="_i_reference_counted_8h_source.html#l00116">116</a> of file <a class="el" href="_i_reference_counted_8h_source.html">IReferenceCounted.h</a>.</p>
252
253<p>References <a class="el" href="irr_types_8h_source.html#l00178">_IRR_DEBUG_BREAK_IF</a>.</p>
254
255<p>Referenced by <a class="el" href="_s_mesh_8h_source.html#l00037">irr::scene::SMesh::clear()</a>, <a class="el" href="_i_scene_node_8h_source.html#l00757">irr::scene::ISceneNode::cloneMembers()</a>, <a class="el" href="_i_q3_shader_8h_source.html#l00770">irr::scene::quake3::getTextures()</a>, <a class="el" href="_i_collada_mesh_writer_8h_source.html#l00378">irr::scene::IColladaMeshWriter::setDefaultNameGenerator()</a>, <a class="el" href="_i_collada_mesh_writer_8h_source.html#l00366">irr::scene::IColladaMeshWriter::setDefaultProperties()</a>, <a class="el" href="_c_dynamic_mesh_buffer_8h_source.html#l00057">irr::scene::CDynamicMeshBuffer::setIndexBuffer()</a>, <a class="el" href="_i_collada_mesh_writer_8h_source.html#l00335">irr::scene::IColladaMeshWriter::setNameGenerator()</a>, <a class="el" href="_i_scene_node_8h_source.html#l00596">irr::scene::ISceneNode::setParent()</a>, <a class="el" href="_i_collada_mesh_writer_8h_source.html#l00310">irr::scene::IColladaMeshWriter::setProperties()</a>, <a class="el" href="_i_scene_node_8h_source.html#l00635">irr::scene::ISceneNode::setTriangleSelector()</a>, <a class="el" href="_c_dynamic_mesh_buffer_8h_source.html#l00047">irr::scene::CDynamicMeshBuffer::setVertexBuffer()</a>, <a class="el" href="_c_dynamic_mesh_buffer_8h_source.html#l00029">irr::scene::CDynamicMeshBuffer::~CDynamicMeshBuffer()</a>, <a class="el" href="_i_collada_mesh_writer_8h_source.html#l00214">irr::scene::IColladaMeshWriter::~IColladaMeshWriter()</a>, <a class="el" href="_i_scene_node_8h_source.html#l00062">irr::scene::ISceneNode::~ISceneNode()</a>, <a class="el" href="_s_animated_mesh_8h_source.html#l00032">irr::scene::SAnimatedMesh::~SAnimatedMesh()</a>, <a class="el" href="_i_animated_mesh_m_d3_8h_source.html#l00272">irr::scene::SMD3Mesh::~SMD3Mesh()</a>, and <a class="el" href="_s_mesh_8h_source.html#l00029">irr::scene::SMesh::~SMesh()</a>.</p>
256
257</div>
258</div>
259<a class="anchor" id="a768e697e55d496e396b3acc5003d2bea"></a><!-- doxytag: member="irr::IReferenceCounted::getDebugName" ref="a768e697e55d496e396b3acc5003d2bea" args="() const " -->
260<div class="memitem">
261<div class="memproto">
262 <table class="memname">
263 <tr>
264 <td class="memname">const <a class="el" href="namespaceirr.html#a9395eaea339bcb546b319e9c96bf7410">c8</a>* irr::IReferenceCounted::getDebugName </td>
265 <td>(</td>
266 <td class="paramname"></td><td>)</td>
267 <td> const<code> [inline]</code></td>
268 </tr>
269 </table>
270</div>
271<div class="memdoc">
272
273<p>Returns the debug name of the object. </p>
274<p>The Debugname may only be set and changed by the object itself. This method should only be used in Debug mode. </p>
275<dl class="return"><dt><b>Returns:</b></dt><dd>Returns a string, previously set by <a class="el" href="classirr_1_1_i_reference_counted.html#a704c5042d399fe8cd3bdd65a0559002a" title="Sets the debug name of the object.">setDebugName()</a>; </dd></dl>
276
277<p>Definition at line <a class="el" href="_i_reference_counted_8h_source.html#l00142">142</a> of file <a class="el" href="_i_reference_counted_8h_source.html">IReferenceCounted.h</a>.</p>
278
279</div>
280</div>
281<a class="anchor" id="a198560456588db46331f06eda909a399"></a><!-- doxytag: member="irr::IReferenceCounted::getReferenceCount" ref="a198560456588db46331f06eda909a399" args="() const " -->
282<div class="memitem">
283<div class="memproto">
284 <table class="memname">
285 <tr>
286 <td class="memname"><a class="el" href="namespaceirr.html#ac66849b7a6ed16e30ebede579f9b47c6">s32</a> irr::IReferenceCounted::getReferenceCount </td>
287 <td>(</td>
288 <td class="paramname"></td><td>)</td>
289 <td> const<code> [inline]</code></td>
290 </tr>
291 </table>
292</div>
293<div class="memdoc">
294
295<p>Get the reference count. </p>
296<dl class="return"><dt><b>Returns:</b></dt><dd>Current value of the reference counter. </dd></dl>
297
298<p>Definition at line <a class="el" href="_i_reference_counted_8h_source.html#l00133">133</a> of file <a class="el" href="_i_reference_counted_8h_source.html">IReferenceCounted.h</a>.</p>
299
300</div>
301</div>
302<a class="anchor" id="a2b7a035532e5f409ca9482dab79185f4"></a><!-- doxytag: member="irr::IReferenceCounted::grab" ref="a2b7a035532e5f409ca9482dab79185f4" args="() const " -->
303<div class="memitem">
304<div class="memproto">
305 <table class="memname">
306 <tr>
307 <td class="memname">void irr::IReferenceCounted::grab </td>
308 <td>(</td>
309 <td class="paramname"></td><td>)</td>
310 <td> const<code> [inline]</code></td>
311 </tr>
312 </table>
313</div>
314<div class="memdoc">
315
316<p>Grabs the object. Increments the reference counter by one. </p>
317<p>Someone who calls <a class="el" href="classirr_1_1_i_reference_counted.html#a2b7a035532e5f409ca9482dab79185f4" title="Grabs the object. Increments the reference counter by one.">grab()</a> to an object, should later also call <a class="el" href="classirr_1_1_i_reference_counted.html#afb169a857e0d2cdb96b8821cb9bff17a" title="Drops the object. Decrements the reference counter by one.">drop()</a> to it. If an object never gets as much <a class="el" href="classirr_1_1_i_reference_counted.html#afb169a857e0d2cdb96b8821cb9bff17a" title="Drops the object. Decrements the reference counter by one.">drop()</a> as <a class="el" href="classirr_1_1_i_reference_counted.html#a2b7a035532e5f409ca9482dab79185f4" title="Grabs the object. Increments the reference counter by one.">grab()</a> calls, it will never be destroyed. The <a class="el" href="classirr_1_1_i_reference_counted.html" title="Base class of most objects of the Irrlicht Engine.">IReferenceCounted</a> class provides a basic reference counting mechanism with its methods <a class="el" href="classirr_1_1_i_reference_counted.html#a2b7a035532e5f409ca9482dab79185f4" title="Grabs the object. Increments the reference counter by one.">grab()</a> and <a class="el" href="classirr_1_1_i_reference_counted.html#afb169a857e0d2cdb96b8821cb9bff17a" title="Drops the object. Decrements the reference counter by one.">drop()</a>. Most objects of the Irrlicht Engine are derived from <a class="el" href="classirr_1_1_i_reference_counted.html" title="Base class of most objects of the Irrlicht Engine.">IReferenceCounted</a>, and so they are reference counted.</p>
318<p>When you create an object in the Irrlicht engine, calling a method which starts with 'create', an object is created, and you get a pointer to the new object. If you no longer need the object, you have to call <a class="el" href="classirr_1_1_i_reference_counted.html#afb169a857e0d2cdb96b8821cb9bff17a" title="Drops the object. Decrements the reference counter by one.">drop()</a>. This will destroy the object, if <a class="el" href="classirr_1_1_i_reference_counted.html#a2b7a035532e5f409ca9482dab79185f4" title="Grabs the object. Increments the reference counter by one.">grab()</a> was not called in another part of you program, because this part still needs the object. Note, that you only need to call <a class="el" href="classirr_1_1_i_reference_counted.html#afb169a857e0d2cdb96b8821cb9bff17a" title="Drops the object. Decrements the reference counter by one.">drop()</a> to the object, if you created it, and the method had a 'create' in it.</p>
319<p>A simple example:</p>
320<p>If you want to create a texture, you may want to call an imaginable method IDriver::createTexture. You call ITexture* texture = driver-&gt;createTexture(dimension2d&lt;u32&gt;(128, 128)); If you no longer need the texture, call texture-&gt;<a class="el" href="classirr_1_1_i_reference_counted.html#afb169a857e0d2cdb96b8821cb9bff17a" title="Drops the object. Decrements the reference counter by one.">drop()</a>. If you want to load a texture, you may want to call imaginable method IDriver::loadTexture. You do this like ITexture* texture = driver-&gt;loadTexture("example.jpg"); You will not have to drop the pointer to the loaded texture, because the name of the method does not start with 'create'. The texture is stored somewhere by the driver. </p>
321
322<p>Definition at line <a class="el" href="_i_reference_counted_8h_source.html#l00086">86</a> of file <a class="el" href="_i_reference_counted_8h_source.html">IReferenceCounted.h</a>.</p>
323
324<p>Referenced by <a class="el" href="_i_scene_node_8h_source.html#l00348">irr::scene::ISceneNode::addAnimator()</a>, <a class="el" href="_i_scene_node_8h_source.html#l00280">irr::scene::ISceneNode::addChild()</a>, <a class="el" href="_i_g_u_i_element_8h_source.html#l00818">irr::gui::IGUIElement::addChildToEnd()</a>, <a class="el" href="_s_animated_mesh_8h_source.html#l00078">irr::scene::SAnimatedMesh::addMesh()</a>, <a class="el" href="_s_mesh_8h_source.html#l00098">irr::scene::SMesh::addMeshBuffer()</a>, <a class="el" href="_i_collada_mesh_writer_8h_source.html#l00378">irr::scene::IColladaMeshWriter::setDefaultNameGenerator()</a>, <a class="el" href="_i_collada_mesh_writer_8h_source.html#l00366">irr::scene::IColladaMeshWriter::setDefaultProperties()</a>, <a class="el" href="_c_dynamic_mesh_buffer_8h_source.html#l00057">irr::scene::CDynamicMeshBuffer::setIndexBuffer()</a>, <a class="el" href="_i_collada_mesh_writer_8h_source.html#l00335">irr::scene::IColladaMeshWriter::setNameGenerator()</a>, <a class="el" href="_i_scene_node_8h_source.html#l00596">irr::scene::ISceneNode::setParent()</a>, <a class="el" href="_i_collada_mesh_writer_8h_source.html#l00310">irr::scene::IColladaMeshWriter::setProperties()</a>, <a class="el" href="_i_scene_node_8h_source.html#l00635">irr::scene::ISceneNode::setTriangleSelector()</a>, and <a class="el" href="_c_dynamic_mesh_buffer_8h_source.html#l00047">irr::scene::CDynamicMeshBuffer::setVertexBuffer()</a>.</p>
325
326</div>
327</div>
328<a class="anchor" id="a704c5042d399fe8cd3bdd65a0559002a"></a><!-- doxytag: member="irr::IReferenceCounted::setDebugName" ref="a704c5042d399fe8cd3bdd65a0559002a" args="(const c8 *newName)" -->
329<div class="memitem">
330<div class="memproto">
331 <table class="memname">
332 <tr>
333 <td class="memname">void irr::IReferenceCounted::setDebugName </td>
334 <td>(</td>
335 <td class="paramtype">const <a class="el" href="namespaceirr.html#a9395eaea339bcb546b319e9c96bf7410">c8</a> *&#160;</td>
336 <td class="paramname"><em>newName</em></td><td>)</td>
337 <td><code> [inline, protected]</code></td>
338 </tr>
339 </table>
340</div>
341<div class="memdoc">
342
343<p>Sets the debug name of the object. </p>
344<p>The Debugname may only be set and changed by the object itself. This method should only be used in Debug mode. </p>
345<dl><dt><b>Parameters:</b></dt><dd>
346 <table class="params">
347 <tr><td class="paramname">newName,:</td><td>New debug name to set. </td></tr>
348 </table>
349 </dd>
350</dl>
351
352<p>Definition at line <a class="el" href="_i_reference_counted_8h_source.html#l00153">153</a> of file <a class="el" href="_i_reference_counted_8h_source.html">IReferenceCounted.h</a>.</p>
353
354<p>Referenced by <a class="el" href="_c_mesh_buffer_8h_source.html#l00021">irr::scene::CMeshBuffer&lt; T &gt;::CMeshBuffer()</a>, <a class="el" href="_i_g_u_i_element_8h_source.html#l00030">irr::gui::IGUIElement::IGUIElement()</a>, <a class="el" href="_s_animated_mesh_8h_source.html#l00022">irr::scene::SAnimatedMesh::SAnimatedMesh()</a>, <a class="el" href="_s_mesh_8h_source.html#l00021">irr::scene::SMesh::SMesh()</a>, <a class="el" href="_s_shared_mesh_buffer_8h_source.html#l00019">irr::scene::SSharedMeshBuffer::SSharedMeshBuffer()</a>, and <a class="el" href="_s_skin_mesh_buffer_8h_source.html#l00022">irr::scene::SSkinMeshBuffer::SSkinMeshBuffer()</a>.</p>
355
356</div>
357</div>
358<hr/>The documentation for this class was generated from the following file:<ul>
359<li><a class="el" href="_i_reference_counted_8h_source.html">IReferenceCounted.h</a></li>
360</ul>
361</div>
362</div>
363 <div id="nav-path" class="navpath">
364 <ul>
365 <li class="navelem"><a class="el" href="namespaceirr.html">irr</a> </li>
366 <li class="navelem"><a class="el" href="classirr_1_1_i_reference_counted.html">IReferenceCounted</a> </li>
367<!-- window showing the filter options -->
368<div id="MSearchSelectWindow"
369 onmouseover="return searchBox.OnSearchSelectShow()"
370 onmouseout="return searchBox.OnSearchSelectHide()"
371 onkeydown="return searchBox.OnSearchSelectKey(event)">
372<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark">&#160;</span>Defines</a></div>
373
374<!-- iframe showing the search results (closed by default) -->
375<div id="MSearchResultsWindow">
376<iframe src="javascript:void(0)" frameborder="0"
377 name="MSearchResults" id="MSearchResults">
378</iframe>
379</div>
380
381
382 <li class="footer">
383<a href="http://irrlicht.sourceforge.net" target="_blank">Irrlicht
384Engine</a> Documentation &copy; 2003-2012 by Nikolaus Gebhardt. Generated on Sun Nov 17 2013 20:18:43 for Irrlicht 3D Engine by
385<a href="http://www.doxygen.org/index.html" target="_blank">Doxygen</a> 1.7.5.1 </li>
386 </ul>
387 </div>
388
389
390</body>
391</html>