1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2<html xml:lang="en-US" lang="en-US" xmlns="http://www.w3.org/1999/xhtml">
3  <head>
4    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5    <meta http-equiv="Content-Style-Type" content="text/css" />
6    <link rel="stylesheet" href="../../../css/manpage.css" type="text/css" />
7    <style type="text/css"><!--
8      span.static_style
9      {
10        font-size			: 8pt;
11        color				: white;
12        font-weight			: bold;
13        background			: #44f;
14        border-left			: solid 1px #aaf;
15        border-top			: solid 1px #aaf;
16        border-right		: solid 1px #00c;
17        border-bottom		: solid 1px #00c;
18        padding-left		: 2px;
19        padding-right		: 2px;
20      }
21      span.virtual_style
22      {
23        font-size			 : 8pt;
24        color				 : white;
25        font-weight			: bold;
26        background			: #0a0;
27        border-left			: solid 1px #0f0;
28        border-top			: solid 1px #0f0;
29        border-right		: solid 1px #060;
30        border-bottom		: solid 1px #060;
31        padding-left		: 2px;
32        padding-right		: 2px;
33      }
34      span.protected_style
35      {
36        font-size			 : 8pt;
37        color				 : white;
38        font-weight			: bold;
39        background			: #444;
40        border-left			: solid 1px #ccc;
41        border-top			: solid 1px #ccc;
42        border-right		: solid 1px #222;
43        border-bottom		: solid 1px #222;
44        padding-left		: 2px;
45        padding-right		: 2px;
46      }
47        --></style>
48    <title>nw::os::IAllocator</title>
49  </head>
50  <body>
51    <h1><CODE><a href="../../../nw/Overview.html">nw</a>::<a href="../../../nw/os/Overview.html">os</a>::IAllocator</CODE> Class</h1>
52    <h2>Syntax</h2>
53    <div class="section">
54      <pre class="definition">class IAllocator</pre>
55    </div>
56    <h2>Description</h2>
57    <div class="section">
58      <p>The memory allocator interface.</p>
59    </div>
60    <a name="constant" id="constant">
61      <h2>Member Constants</h2>
62      <div class="section">
63        <table class="members">
64          <tr>
65            <td width="100">
66              <span class="static_style" title="static">S</span>
67            </td>
68            <th>
69              <span class="argument"><a href="../../../nw/os/IAllocator/DEFAULT_ALIGNMENT.html">DEFAULT_ALIGNMENT</a></span>
70            </th>
71            <td width="100"><CODE>const int</CODE></td>
72            <td>The default value when the alignment specification has been omitted.</td>
73          </tr>
74          <tr>
75            <td width="100">
76              <span class="static_style" title="static">S</span>
77            </td>
78            <th>
79              <span class="argument"><a href="../../../nw/os/IAllocator/CACHE_LINE_ALIGNMENT.html">CACHE_LINE_ALIGNMENT</a></span>
80            </th>
81            <td width="100"><CODE>const int</CODE></td>
82            <td>Cache alignment.</td>
83          </tr> </table>
84      </div>
85    </a> <a name="function" id="function">
86      <h2>Member Functions</h2>
87      <div class="section">
88        <table class="members">
89          <tr>
90            <th class="category" colspan="3">Allocating and Freeing Memory</th>
91          </tr>
92          <tr>
93            <td width="100"> <span class="virtual_style" title="pure-virtual">PV</span>
94            </td>
95            <th>
96              <a href="../../../nw/os/IAllocator/Alloc.html"><CODE>Alloc</CODE></a>
97            </th>
98            <td>Allocates memory.</td>
99          </tr>
100          <tr>
101            <td width="100"> <span class="virtual_style" title="pure-virtual">PV</span>
102            </td>
103            <th>
104              <a href="../../../nw/os/IAllocator/Free.html">Free</a>
105            </th>
106            <td>Frees memory.</td>
107          </tr>
108          <tr>
109            <th class="category" colspan="3">Utilities</th>
110          </tr>
111          <tr>
112            <td width="100">  </td>
113            <th>
114              <a href="../../../nw/os/IAllocator/Alloc.html"><CODE>Alloc</CODE></a>
115            </th>
116            <td>Allocates memory when the alignment specification has been omitted.</td>
117          </tr>
118          <tr>
119            <td width="100">  </td>
120            <th>
121              <a href="../../../nw/os/IAllocator/AllocAndClear.html">AllocAndClear</a>
122            </th>
123            <td>Allocates memory and clears with the specified byte data.</td>
124          </tr>
125          <tr>
126            <td width="100">  </td>
127            <th>
128              <a href="../../../nw/os/IAllocator/AllocAndConstruct.html">AllocAndConstruct</a>
129            </th>
130            <td>Allocates the memory required for the specified number of objects and calls a constructor.</td>
131          </tr>
132          <tr>
133            <td width="100">  </td>
134            <th>
135              <a href="../../../nw/os/IAllocator/AllocAndFill.html">AllocAndFill</a>
136            </th>
137            <td>Allocates the memory required for the specified number of objects and copies the specified object.</td>
138          </tr>
139          <tr>
140            <td width="100">  </td>
141            <th>
142              <a href="../../../nw/os/IAllocator/DestructAndFree.html">DestructAndFree</a>
143            </th>
144            <td>Calls a destructor for the specified number of objects and frees memory.</td>
145          </tr>
146          <tr>
147            <th class="category" colspan="3">Other</th>
148          </tr>
149          <tr>
150            <td width="100"> <span class="virtual_style" title="virtual">V</span>
151            </td>
152            <th>
153              <a href="../../../nw/os/IAllocator/~IAllocator.html">~IAllocator</a>
154            </th>
155            <td>Destructor.</td>
156          </tr> </table>
157      </div>
158    </a>
159  <hr><p>CONFIDENTIAL</p></body>
160</html>
161