174
200
<H3><a name="Pike_nn10"></a>25.2.4 Constants and enumerated types</H3>
177
204
Enumerated types in C/C++ declarations are wrapped as Pike constants,
180
208
<H3><a name="Pike_nn11"></a>25.2.5 Constructors and Destructors</H3>
183
212
Constructors are wrapped as <tt>create()</tt> methods, and destructors are
184
213
wrapped as <tt>destroy()</tt> methods, for Pike classes.
186
216
<H3><a name="Pike_nn12"></a>25.2.6 Static Members</H3>
189
220
Since Pike doesn't support static methods or data for Pike classes, static
190
221
member functions in your C++ classes are wrapped as regular functions and
191
222
static member variables are wrapped as pairs of functions (one to get the
192
223
value of the static member variable, and another to set it). The names of
193
224
these functions are prepended with the name of the class.
194
225
For example, given this C++ class declaration:
205
238
SWIG will generate a <tt>Shape_print()</tt> method that invokes the static
206
239
<tt>Shape::print()</tt> member function, as well as a pair of methods,
207
240
<tt>Shape_nshapes_get()</tt> and <tt>Shape_nshapes_set()</tt>, to get and set
208
241
the value of <tt>Shape::nshapes</tt>.