/[hyperestraier_wrappers]/0.0.13/doc/HyperEstraier__wrap_8cxx-source.html
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Contents of /0.0.13/doc/HyperEstraier__wrap_8cxx-source.html

Parent Directory Parent Directory | Revision Log Revision Log


Revision 14 - (show annotations)
Fri Sep 9 15:26:39 2005 UTC (18 years, 9 months ago) by dpavlin
File MIME type: text/html
File size: 388826 byte(s)
import of 0.0.13
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2 <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
3 <title>HyperEstraierWrapper: HyperEstraier_wrap.cxx Source File</title>
4 <link href="doxygen.css" rel="stylesheet" type="text/css">
5 </head><body>
6 <!-- Generated by Doxygen 1.4.4 -->
7 <div class="qindex"><a class="qindex" href="main.html">Main&nbsp;Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="classes.html">Alphabetical&nbsp;List</a> | <a class="qindex" href="annotated.html">Class&nbsp;List</a> | <a class="qindex" href="dirs.html">Directories</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="namespacemembers.html">Namespace&nbsp;Members</a> | <a class="qindex" href="functions.html">Class&nbsp;Members</a> | <a class="qindex" href="globals.html">File&nbsp;Members</a></div>
8 <div class="nav">
9 <a class="el" href="dir_000001.html">ruby</a></div>
10 <h1>HyperEstraier_wrap.cxx</h1><a href="HyperEstraier__wrap_8cxx.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/* ----------------------------------------------------------------------------</span>
11 <a name="l00002"></a>00002 <span class="comment"> * This file was automatically generated by SWIG (http://www.swig.org).</span>
12 <a name="l00003"></a>00003 <span class="comment"> * Version 1.3.24</span>
13 <a name="l00004"></a>00004 <span class="comment"> * </span>
14 <a name="l00005"></a>00005 <span class="comment"> * This file is not intended to be easily readable and contains a number of </span>
15 <a name="l00006"></a>00006 <span class="comment"> * coding conventions designed to improve portability and efficiency. Do not make</span>
16 <a name="l00007"></a>00007 <span class="comment"> * changes to this file unless you know what you are doing--modify the SWIG </span>
17 <a name="l00008"></a>00008 <span class="comment"> * interface file instead. </span>
18 <a name="l00009"></a>00009 <span class="comment"> * ----------------------------------------------------------------------------- */</span>
19 <a name="l00010"></a>00010
20 <a name="l00011"></a>00011
21 <a name="l00012"></a>00012 <span class="preprocessor">#ifdef __cplusplus</span>
22 <a name="l00013"></a>00013 <span class="preprocessor"></span><span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt; <span class="keyword">class </span>SwigValueWrapper {
23 <a name="l00014"></a>00014 T *tt;
24 <a name="l00015"></a>00015 <span class="keyword">public</span>:
25 <a name="l00016"></a>00016 SwigValueWrapper() : tt(0) { }
26 <a name="l00017"></a>00017 SwigValueWrapper(<span class="keyword">const</span> SwigValueWrapper&lt;T&gt;&amp; rhs) : tt(new T(*rhs.tt)) { }
27 <a name="l00018"></a>00018 SwigValueWrapper(<span class="keyword">const</span> T&amp; t) : tt(new T(t)) { }
28 <a name="l00019"></a>00019 ~SwigValueWrapper() { <span class="keyword">delete</span> tt; }
29 <a name="l00020"></a>00020 SwigValueWrapper&amp; operator=(<span class="keyword">const</span> T&amp; t) { <span class="keyword">delete</span> tt; tt = <span class="keyword">new</span> T(t); <span class="keywordflow">return</span> *<span class="keyword">this</span>; }
30 <a name="l00021"></a>00021 operator T&amp;()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> *tt; }
31 <a name="l00022"></a>00022 T *operator&amp;() { <span class="keywordflow">return</span> tt; }
32 <a name="l00023"></a>00023 <span class="keyword">private</span>:
33 <a name="l00024"></a>00024 SwigValueWrapper&amp; operator=(<span class="keyword">const</span> SwigValueWrapper&lt;T&gt;&amp; rhs);
34 <a name="l00025"></a>00025 };
35 <a name="l00026"></a>00026 <span class="preprocessor">#endif</span>
36 <a name="l00027"></a>00027 <span class="preprocessor"></span>
37 <a name="l00028"></a>00028
38 <a name="l00029"></a>00029 <span class="preprocessor">#ifndef SWIG_TEMPLATE_DISAMBIGUATOR</span>
39 <a name="l00030"></a>00030 <span class="preprocessor"></span><span class="preprocessor"># if defined(__SUNPRO_CC) </span>
40 <a name="l00031"></a>00031 <span class="preprocessor"></span><span class="preprocessor"># define SWIG_TEMPLATE_DISAMBIGUATOR template</span>
41 <a name="l00032"></a>00032 <span class="preprocessor"></span><span class="preprocessor"># else</span>
42 <a name="l00033"></a><a class="code" href="HyperEstraier__wrap_8cxx.html#a0">00033</a> <span class="preprocessor"></span><span class="preprocessor"># define SWIG_TEMPLATE_DISAMBIGUATOR </span>
43 <a name="l00034"></a>00034 <span class="preprocessor"></span><span class="preprocessor"># endif</span>
44 <a name="l00035"></a>00035 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
45 <a name="l00036"></a>00036 <span class="preprocessor"></span>
46 <a name="l00037"></a>00037 <span class="comment">/* ruby.swg */</span>
47 <a name="l00038"></a>00038 <span class="comment">/* Implementation : RUBY */</span>
48 <a name="l00039"></a><a class="code" href="HyperEstraier__wrap_8cxx.html#a1">00039</a> <span class="preprocessor">#define SWIGRUBY 1</span>
49 <a name="l00040"></a>00040 <span class="preprocessor"></span>
50 <a name="l00041"></a>00041 <span class="preprocessor">#include "ruby.h"</span>
51 <a name="l00042"></a>00042
52 <a name="l00043"></a>00043 <span class="comment">/* Flags for pointer conversion */</span>
53 <a name="l00044"></a><a class="code" href="HyperEstraier__wrap_8cxx.html#a2">00044</a> <span class="preprocessor">#define SWIG_POINTER_EXCEPTION 0x1</span>
54 <a name="l00045"></a><a class="code" href="HyperEstraier__wrap_8cxx.html#a3">00045</a> <span class="preprocessor"></span><span class="preprocessor">#define SWIG_POINTER_DISOWN 0x2</span>
55 <a name="l00046"></a>00046 <span class="preprocessor"></span>
56 <a name="l00047"></a><a class="code" href="HyperEstraier__wrap_8cxx.html#a4">00047</a> <span class="preprocessor">#define NUM2USHRT(n) (\</span>
57 <a name="l00048"></a>00048 <span class="preprocessor"> (0 &lt;= NUM2UINT(n) &amp;&amp; NUM2UINT(n) &lt;= USHRT_MAX)\</span>
58 <a name="l00049"></a>00049 <span class="preprocessor"> ? (unsigned short) NUM2UINT(n) \</span>
59 <a name="l00050"></a>00050 <span class="preprocessor"> : (rb_raise(rb_eArgError, "integer %d out of range of `unsigned short'",\</span>
60 <a name="l00051"></a>00051 <span class="preprocessor"> NUM2UINT(n)), (short)0)\</span>
61 <a name="l00052"></a>00052 <span class="preprocessor">)</span>
62 <a name="l00053"></a>00053 <span class="preprocessor"></span>
63 <a name="l00054"></a><a class="code" href="HyperEstraier__wrap_8cxx.html#a5">00054</a> <span class="preprocessor">#define NUM2SHRT(n) (\</span>
64 <a name="l00055"></a>00055 <span class="preprocessor"> (SHRT_MIN &lt;= NUM2INT(n) &amp;&amp; NUM2INT(n) &lt;= SHRT_MAX)\</span>
65 <a name="l00056"></a>00056 <span class="preprocessor"> ? (short)NUM2INT(n)\</span>
66 <a name="l00057"></a>00057 <span class="preprocessor"> : (rb_raise(rb_eArgError, "integer %d out of range of `short'",\</span>
67 <a name="l00058"></a>00058 <span class="preprocessor"> NUM2INT(n)), (short)0)\</span>
68 <a name="l00059"></a>00059 <span class="preprocessor">)</span>
69 <a name="l00060"></a>00060 <span class="preprocessor"></span>
70 <a name="l00061"></a>00061 <span class="comment">/* Ruby 1.7 defines NUM2LL(), LL2NUM() and ULL2NUM() macros */</span>
71 <a name="l00062"></a>00062 <span class="preprocessor">#ifndef NUM2LL</span>
72 <a name="l00063"></a><a class="code" href="HyperEstraier__wrap_8cxx.html#a6">00063</a> <span class="preprocessor"></span><span class="preprocessor">#define NUM2LL(x) NUM2LONG((x))</span>
73 <a name="l00064"></a>00064 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
74 <a name="l00065"></a>00065 <span class="preprocessor"></span><span class="preprocessor">#ifndef LL2NUM</span>
75 <a name="l00066"></a><a class="code" href="HyperEstraier__wrap_8cxx.html#a7">00066</a> <span class="preprocessor"></span><span class="preprocessor">#define LL2NUM(x) INT2NUM((long) (x))</span>
76 <a name="l00067"></a>00067 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
77 <a name="l00068"></a>00068 <span class="preprocessor"></span><span class="preprocessor">#ifndef ULL2NUM</span>
78 <a name="l00069"></a><a class="code" href="HyperEstraier__wrap_8cxx.html#a8">00069</a> <span class="preprocessor"></span><span class="preprocessor">#define ULL2NUM(x) UINT2NUM((unsigned long) (x))</span>
79 <a name="l00070"></a>00070 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
80 <a name="l00071"></a>00071 <span class="preprocessor"></span>
81 <a name="l00072"></a>00072 <span class="comment">/* Ruby 1.7 doesn't (yet) define NUM2ULL() */</span>
82 <a name="l00073"></a>00073 <span class="preprocessor">#ifndef NUM2ULL</span>
83 <a name="l00074"></a>00074 <span class="preprocessor"></span><span class="preprocessor">#ifdef HAVE_LONG_LONG</span>
84 <a name="l00075"></a>00075 <span class="preprocessor"></span><span class="preprocessor">#define NUM2ULL(x) rb_num2ull((x))</span>
85 <a name="l00076"></a>00076 <span class="preprocessor"></span><span class="preprocessor">#else</span>
86 <a name="l00077"></a><a class="code" href="HyperEstraier__wrap_8cxx.html#a9">00077</a> <span class="preprocessor"></span><span class="preprocessor">#define NUM2ULL(x) NUM2ULONG(x)</span>
87 <a name="l00078"></a>00078 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
88 <a name="l00079"></a>00079 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
89 <a name="l00080"></a>00080 <span class="preprocessor"></span>
90 <a name="l00081"></a>00081 <span class="comment">/*</span>
91 <a name="l00082"></a>00082 <span class="comment"> * Need to be very careful about how these macros are defined, especially</span>
92 <a name="l00083"></a>00083 <span class="comment"> * when compiling C++ code or C code with an ANSI C compiler.</span>
93 <a name="l00084"></a>00084 <span class="comment"> *</span>
94 <a name="l00085"></a>00085 <span class="comment"> * VALUEFUNC(f) is a macro used to typecast a C function that implements</span>
95 <a name="l00086"></a>00086 <span class="comment"> * a Ruby method so that it can be passed as an argument to API functions</span>
96 <a name="l00087"></a>00087 <span class="comment"> * like rb_define_method() and rb_define_singleton_method().</span>
97 <a name="l00088"></a>00088 <span class="comment"> *</span>
98 <a name="l00089"></a>00089 <span class="comment"> * VOIDFUNC(f) is a macro used to typecast a C function that implements</span>
99 <a name="l00090"></a>00090 <span class="comment"> * either the "mark" or "free" stuff for a Ruby Data object, so that it</span>
100 <a name="l00091"></a>00091 <span class="comment"> * can be passed as an argument to API functions like Data_Wrap_Struct()</span>
101 <a name="l00092"></a>00092 <span class="comment"> * and Data_Make_Struct().</span>
102 <a name="l00093"></a>00093 <span class="comment"> */</span>
103 <a name="l00094"></a>00094
104 <a name="l00095"></a>00095 <span class="preprocessor">#ifdef __cplusplus</span>
105 <a name="l00096"></a>00096 <span class="preprocessor"></span><span class="preprocessor"># ifndef RUBY_METHOD_FUNC </span><span class="comment">/* These definitions should work for Ruby 1.4.6 */</span>
106 <a name="l00097"></a>00097 <span class="preprocessor"># define PROTECTFUNC(f) ((VALUE (*)()) f)</span>
107 <a name="l00098"></a>00098 <span class="preprocessor"></span><span class="preprocessor"># define VALUEFUNC(f) ((VALUE (*)()) f)</span>
108 <a name="l00099"></a>00099 <span class="preprocessor"></span><span class="preprocessor"># define VOIDFUNC(f) ((void (*)()) f)</span>
109 <a name="l00100"></a>00100 <span class="preprocessor"></span><span class="preprocessor"># else</span>
110 <a name="l00101"></a>00101 <span class="preprocessor"></span><span class="preprocessor"># ifndef ANYARGS </span><span class="comment">/* These definitions should work for Ruby 1.6 */</span>
111 <a name="l00102"></a>00102 <span class="preprocessor"># define PROTECTFUNC(f) ((VALUE (*)()) f)</span>
112 <a name="l00103"></a>00103 <span class="preprocessor"></span><span class="preprocessor"># define VALUEFUNC(f) ((VALUE (*)()) f)</span>
113 <a name="l00104"></a>00104 <span class="preprocessor"></span><span class="preprocessor"># define VOIDFUNC(f) ((RUBY_DATA_FUNC) f)</span>
114 <a name="l00105"></a>00105 <span class="preprocessor"></span><span class="preprocessor"># else </span><span class="comment">/* These definitions should work for Ruby 1.7+ */</span>
115 <a name="l00106"></a>00106 <span class="preprocessor"># define PROTECTFUNC(f) ((VALUE (*)(VALUE)) f)</span>
116 <a name="l00107"></a>00107 <span class="preprocessor"></span><span class="preprocessor"># define VALUEFUNC(f) ((VALUE (*)(ANYARGS)) f)</span>
117 <a name="l00108"></a>00108 <span class="preprocessor"></span><span class="preprocessor"># define VOIDFUNC(f) ((RUBY_DATA_FUNC) f)</span>
118 <a name="l00109"></a>00109 <span class="preprocessor"></span><span class="preprocessor"># endif</span>
119 <a name="l00110"></a>00110 <span class="preprocessor"></span><span class="preprocessor"># endif</span>
120 <a name="l00111"></a>00111 <span class="preprocessor"></span><span class="preprocessor">#else</span>
121 <a name="l00112"></a><a class="code" href="HyperEstraier__wrap_8cxx.html#a10">00112</a> <span class="preprocessor"></span><span class="preprocessor"># define VALUEFUNC(f) (f)</span>
122 <a name="l00113"></a><a class="code" href="HyperEstraier__wrap_8cxx.html#a11">00113</a> <span class="preprocessor"></span><span class="preprocessor"># define VOIDFUNC(f) (f)</span>
123 <a name="l00114"></a>00114 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
124 <a name="l00115"></a>00115 <span class="preprocessor"></span>
125 <a name="l00116"></a><a class="code" href="structswig__class.html">00116</a> <span class="keyword">typedef</span> <span class="keyword">struct </span>{
126 <a name="l00117"></a><a class="code" href="structswig__class.html#o0">00117</a> VALUE klass;
127 <a name="l00118"></a><a class="code" href="structswig__class.html#o1">00118</a> VALUE mImpl;
128 <a name="l00119"></a>00119 void (*mark)(<span class="keywordtype">void</span> *);
129 <a name="l00120"></a>00120 void (*destroy)(<span class="keywordtype">void</span> *);
130 <a name="l00121"></a>00121 } <a class="code" href="structswig__class.html">swig_class</a>;
131 <a name="l00122"></a>00122
132 <a name="l00123"></a>00123 <span class="comment">/* Don't use for expressions have side effect */</span>
133 <a name="l00124"></a>00124 <span class="preprocessor">#ifndef RB_STRING_VALUE</span>
134 <a name="l00125"></a><a class="code" href="HyperEstraier__wrap_8cxx.html#a12">00125</a> <span class="preprocessor"></span><span class="preprocessor">#define RB_STRING_VALUE(s) (TYPE(s) == T_STRING ? (s) : (*(volatile VALUE *)&amp;(s) = rb_str_to_str(s)))</span>
135 <a name="l00126"></a>00126 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
136 <a name="l00127"></a>00127 <span class="preprocessor"></span><span class="preprocessor">#ifndef StringValue</span>
137 <a name="l00128"></a><a class="code" href="HyperEstraier__wrap_8cxx.html#a13">00128</a> <span class="preprocessor"></span><span class="preprocessor">#define StringValue(s) RB_STRING_VALUE(s)</span>
138 <a name="l00129"></a>00129 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
139 <a name="l00130"></a>00130 <span class="preprocessor"></span><span class="preprocessor">#ifndef StringValuePtr</span>
140 <a name="l00131"></a><a class="code" href="HyperEstraier__wrap_8cxx.html#a14">00131</a> <span class="preprocessor"></span><span class="preprocessor">#define StringValuePtr(s) RSTRING(RB_STRING_VALUE(s))-&gt;ptr</span>
141 <a name="l00132"></a>00132 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
142 <a name="l00133"></a>00133 <span class="preprocessor"></span><span class="preprocessor">#ifndef StringValueLen</span>
143 <a name="l00134"></a><a class="code" href="HyperEstraier__wrap_8cxx.html#a15">00134</a> <span class="preprocessor"></span><span class="preprocessor">#define StringValueLen(s) RSTRING(RB_STRING_VALUE(s))-&gt;len</span>
144 <a name="l00135"></a>00135 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
145 <a name="l00136"></a>00136 <span class="preprocessor"></span><span class="preprocessor">#ifndef SafeStringValue</span>
146 <a name="l00137"></a><a class="code" href="HyperEstraier__wrap_8cxx.html#a16">00137</a> <span class="preprocessor"></span><span class="preprocessor">#define SafeStringValue(v) do {\</span>
147 <a name="l00138"></a>00138 <span class="preprocessor"> StringValue(v);\</span>
148 <a name="l00139"></a>00139 <span class="preprocessor"> rb_check_safe_str(v);\</span>
149 <a name="l00140"></a>00140 <span class="preprocessor">} while (0)</span>
150 <a name="l00141"></a>00141 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
151 <a name="l00142"></a>00142 <span class="preprocessor"></span>
152 <a name="l00143"></a>00143 <span class="preprocessor">#ifndef HAVE_RB_DEFINE_ALLOC_FUNC</span>
153 <a name="l00144"></a><a class="code" href="HyperEstraier__wrap_8cxx.html#a17">00144</a> <span class="preprocessor"></span><span class="preprocessor">#define rb_define_alloc_func(klass, func) rb_define_singleton_method((klass), "new", VALUEFUNC((func)), -1)</span>
154 <a name="l00145"></a><a class="code" href="HyperEstraier__wrap_8cxx.html#a18">00145</a> <span class="preprocessor"></span><span class="preprocessor">#define rb_undef_alloc_func(klass) rb_undef_method(CLASS_OF((klass)), "new")</span>
155 <a name="l00146"></a>00146 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
156 <a name="l00147"></a>00147 <span class="preprocessor"></span>
157 <a name="l00148"></a>00148 <span class="comment">/* Contract support */</span>
158 <a name="l00149"></a>00149
159 <a name="l00150"></a><a class="code" href="HyperEstraier__wrap_8cxx.html#a19">00150</a> <span class="preprocessor">#define SWIG_contract_assert(expr, msg) if (!(expr)) { rb_raise(rb_eRuntimeError, (char *) msg ); } else</span>
160 <a name="l00151"></a>00151 <span class="preprocessor"></span>
161 <a name="l00152"></a>00152
162 <a name="l00153"></a>00153 <span class="comment">/***********************************************************************</span>
163 <a name="l00154"></a>00154 <span class="comment"> * swigrun.swg</span>
164 <a name="l00155"></a>00155 <span class="comment"> *</span>
165 <a name="l00156"></a>00156 <span class="comment"> * This file contains generic CAPI SWIG runtime support for pointer</span>
166 <a name="l00157"></a>00157 <span class="comment"> * type checking.</span>
167 <a name="l00158"></a>00158 <span class="comment"> *</span>
168 <a name="l00159"></a>00159 <span class="comment"> ************************************************************************/</span>
169 <a name="l00160"></a>00160
170 <a name="l00161"></a>00161 <span class="comment">/* This should only be incremented when either the layout of swig_type_info changes,</span>
171 <a name="l00162"></a>00162 <span class="comment"> or for whatever reason, the runtime changes incompatibly */</span>
172 <a name="l00163"></a><a class="code" href="HyperEstraier__wrap_8cxx.html#a20">00163</a> <span class="preprocessor">#define SWIG_RUNTIME_VERSION "1"</span>
173 <a name="l00164"></a>00164 <span class="preprocessor"></span>
174 <a name="l00165"></a>00165 <span class="comment">/* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */</span>
175 <a name="l00166"></a>00166 <span class="preprocessor">#ifdef SWIG_TYPE_TABLE</span>
176 <a name="l00167"></a>00167 <span class="preprocessor"></span><span class="preprocessor">#define SWIG_QUOTE_STRING(x) #x</span>
177 <a name="l00168"></a>00168 <span class="preprocessor"></span><span class="preprocessor">#define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)</span>
178 <a name="l00169"></a>00169 <span class="preprocessor"></span><span class="preprocessor">#define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)</span>
179 <a name="l00170"></a>00170 <span class="preprocessor"></span><span class="preprocessor">#else</span>
180 <a name="l00171"></a><a class="code" href="HyperEstraier__wrap_8cxx.html#a21">00171</a> <span class="preprocessor"></span><span class="preprocessor">#define SWIG_TYPE_TABLE_NAME</span>
181 <a name="l00172"></a>00172 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
182 <a name="l00173"></a>00173 <span class="preprocessor"></span>
183 <a name="l00174"></a>00174 <span class="preprocessor">#include &lt;string.h&gt;</span>
184 <a name="l00175"></a>00175
185 <a name="l00176"></a>00176 <span class="preprocessor">#ifndef SWIGINLINE</span>
186 <a name="l00177"></a>00177 <span class="preprocessor"></span><span class="preprocessor">#if defined(__cplusplus) || (defined(__GNUC__) &amp;&amp; !defined(__STRICT_ANSI__))</span>
187 <a name="l00178"></a>00178 <span class="preprocessor"></span><span class="preprocessor"># define SWIGINLINE inline</span>
188 <a name="l00179"></a>00179 <span class="preprocessor"></span><span class="preprocessor">#else</span>
189 <a name="l00180"></a><a class="code" href="HyperEstraier__wrap_8cxx.html#a22">00180</a> <span class="preprocessor"></span><span class="preprocessor"># define SWIGINLINE</span>
190 <a name="l00181"></a>00181 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
191 <a name="l00182"></a>00182 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
192 <a name="l00183"></a>00183 <span class="preprocessor"></span>
193 <a name="l00184"></a>00184 <span class="comment">/*</span>
194 <a name="l00185"></a>00185 <span class="comment"> You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for</span>
195 <a name="l00186"></a>00186 <span class="comment"> creating a static or dynamic library from the swig runtime code.</span>
196 <a name="l00187"></a>00187 <span class="comment"> In 99.9% of the cases, swig just needs to declare them as 'static'.</span>
197 <a name="l00188"></a>00188 <span class="comment"> </span>
198 <a name="l00189"></a>00189 <span class="comment"> But only do this if is strictly necessary, ie, if you have problems</span>
199 <a name="l00190"></a>00190 <span class="comment"> with your compiler or so.</span>
200 <a name="l00191"></a>00191 <span class="comment">*/</span>
201 <a name="l00192"></a>00192 <span class="preprocessor">#ifndef SWIGRUNTIME</span>
202 <a name="l00193"></a><a class="code" href="HyperEstraier__wrap_8cxx.html#a23">00193</a> <span class="preprocessor"></span><span class="preprocessor">#define SWIGRUNTIME static</span>
203 <a name="l00194"></a>00194 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
204 <a name="l00195"></a>00195 <span class="preprocessor"></span><span class="preprocessor">#ifndef SWIGRUNTIMEINLINE</span>
205 <a name="l00196"></a><a class="code" href="HyperEstraier__wrap_8cxx.html#a24">00196</a> <span class="preprocessor"></span><span class="preprocessor">#define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE</span>
206 <a name="l00197"></a>00197 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
207 <a name="l00198"></a>00198 <span class="preprocessor"></span>
208 <a name="l00199"></a>00199 <span class="preprocessor">#ifdef __cplusplus</span>
209 <a name="l00200"></a>00200 <span class="preprocessor"></span><span class="keyword">extern</span> <span class="stringliteral">"C"</span> {
210 <a name="l00201"></a>00201 <span class="preprocessor">#endif</span>
211 <a name="l00202"></a>00202 <span class="preprocessor"></span>
212 <a name="l00203"></a><a class="code" href="HyperEstraier__wrap_8cxx.html#a60">00203</a> <span class="keyword">typedef</span> <span class="keywordtype">void</span> *(*swig_converter_func)(<span class="keywordtype">void</span> *);
213 <a name="l00204"></a><a class="code" href="HyperEstraier__wrap_8cxx.html#a61">00204</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structswig__type__info.html">swig_type_info</a> *(*swig_dycast_func)(<span class="keywordtype">void</span> **);
214 <a name="l00205"></a>00205
215 <a name="l00206"></a>00206 <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structswig__type__info.html">swig_type_info</a> {
216 <a name="l00207"></a><a class="code" href="structswig__type__info.html#o7">00207</a> <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="structswig__type__info.html#o0">name</a>;
217 <a name="l00208"></a>00208 swig_converter_func <a class="code" href="structswig__type__info.html#o1">converter</a>;
218 <a name="l00209"></a><a class="code" href="structswig__type__info.html#o8">00209</a> <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="structswig__type__info.html#o2">str</a>;
219 <a name="l00210"></a><a class="code" href="structswig__type__info.html#o9">00210</a> <span class="keywordtype">void</span> *<a class="code" href="structswig__type__info.html#o3">clientdata</a>;
220 <a name="l00211"></a>00211 swig_dycast_func <a class="code" href="structswig__type__info.html#o4">dcast</a>;
221 <a name="l00212"></a><a class="code" href="structswig__type__info.html#o10">00212</a> <span class="keyword">struct </span><a class="code" href="structswig__type__info.html">swig_type_info</a> *<a class="code" href="structswig__type__info.html#o5">next</a>;
222 <a name="l00213"></a><a class="code" href="structswig__type__info.html#o11">00213</a> <span class="keyword">struct </span><a class="code" href="structswig__type__info.html">swig_type_info</a> *<a class="code" href="structswig__type__info.html#o6">prev</a>;
223 <a name="l00214"></a>00214 } <a class="code" href="structswig__type__info.html">swig_type_info</a>;
224 <a name="l00215"></a>00215
225 <a name="l00216"></a>00216 <span class="comment">/* </span>
226 <a name="l00217"></a>00217 <span class="comment"> Compare two type names skipping the space characters, therefore</span>
227 <a name="l00218"></a>00218 <span class="comment"> "char*" == "char *" and "Class&lt;int&gt;" == "Class&lt;int &gt;", etc.</span>
228 <a name="l00219"></a>00219 <span class="comment"></span>
229 <a name="l00220"></a>00220 <span class="comment"> Return 0 when the two name types are equivalent, as in</span>
230 <a name="l00221"></a>00221 <span class="comment"> strncmp, but skipping ' '.</span>
231 <a name="l00222"></a>00222 <span class="comment">*/</span>
232 <a name="l00223"></a>00223 <a class="code" href="HyperEstraier__wrap_8cpp.html#a4">SWIGRUNTIME</a> <span class="keywordtype">int</span>
233 <a name="l00224"></a><a class="code" href="HyperEstraier__wrap_8cxx.html#a86">00224</a> <a class="code" href="HyperEstraier__wrap_8cpp.html#a88">SWIG_TypeNameComp</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *f1, <span class="keyword">const</span> <span class="keywordtype">char</span> *l1,
234 <a name="l00225"></a>00225 <span class="keyword">const</span> <span class="keywordtype">char</span> *f2, <span class="keyword">const</span> <span class="keywordtype">char</span> *l2) {
235 <a name="l00226"></a>00226 <span class="keywordflow">for</span> (;(f1 != l1) &amp;&amp; (f2 != l2); ++f1, ++f2) {
236 <a name="l00227"></a>00227 <span class="keywordflow">while</span> ((*f1 == <span class="charliteral">' '</span>) &amp;&amp; (f1 != l1)) ++f1;
237 <a name="l00228"></a>00228 <span class="keywordflow">while</span> ((*f2 == <span class="charliteral">' '</span>) &amp;&amp; (f2 != l2)) ++f2;
238 <a name="l00229"></a>00229 <span class="keywordflow">if</span> (*f1 != *f2) <span class="keywordflow">return</span> *f1 - *f2;
239 <a name="l00230"></a>00230 }
240 <a name="l00231"></a>00231 <span class="keywordflow">return</span> (l1 - f1) - (l2 - f2);
241 <a name="l00232"></a>00232 }
242 <a name="l00233"></a>00233
243 <a name="l00234"></a>00234 <span class="comment">/*</span>
244 <a name="l00235"></a>00235 <span class="comment"> Check type equivalence in a name list like &lt;name1&gt;|&lt;name2&gt;|...</span>
245 <a name="l00236"></a>00236 <span class="comment">*/</span>
246 <a name="l00237"></a>00237 <a class="code" href="HyperEstraier__wrap_8cpp.html#a4">SWIGRUNTIME</a> <span class="keywordtype">int</span>
247 <a name="l00238"></a><a class="code" href="HyperEstraier__wrap_8cxx.html#a87">00238</a> <a class="code" href="HyperEstraier__wrap_8cpp.html#a89">SWIG_TypeEquiv</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *nb, <span class="keyword">const</span> <span class="keywordtype">char</span> *tb) {
248 <a name="l00239"></a>00239 <span class="keywordtype">int</span> equiv = 0;
249 <a name="l00240"></a>00240 <span class="keyword">const</span> <span class="keywordtype">char</span>* te = tb + strlen(tb);
250 <a name="l00241"></a>00241 <span class="keyword">const</span> <span class="keywordtype">char</span>* ne = nb;
251 <a name="l00242"></a>00242 <span class="keywordflow">while</span> (!equiv &amp;&amp; *ne) {
252 <a name="l00243"></a>00243 <span class="keywordflow">for</span> (nb = ne; *ne; ++ne) {
253 <a name="l00244"></a>00244 <span class="keywordflow">if</span> (*ne == <span class="charliteral">'|'</span>) <span class="keywordflow">break</span>;
254 <a name="l00245"></a>00245 }
255 <a name="l00246"></a>00246 equiv = <a class="code" href="HyperEstraier__wrap_8cpp.html#a88">SWIG_TypeNameComp</a>(nb, ne, tb, te) == 0;
256 <a name="l00247"></a>00247 <span class="keywordflow">if</span> (*ne) ++ne;
257 <a name="l00248"></a>00248 }
258 <a name="l00249"></a>00249 <span class="keywordflow">return</span> equiv;
259 <a name="l00250"></a>00250 }
260 <a name="l00251"></a>00251
261 <a name="l00252"></a>00252 <span class="comment">/*</span>
262 <a name="l00253"></a>00253 <span class="comment"> Register a type mapping with the type-checking</span>
263 <a name="l00254"></a>00254 <span class="comment">*/</span>
264 <a name="l00255"></a>00255 <a class="code" href="HyperEstraier__wrap_8cpp.html#a4">SWIGRUNTIME</a> <a class="code" href="structswig__type__info.html">swig_type_info</a> *
265 <a name="l00256"></a><a class="code" href="HyperEstraier__wrap_8cxx.html#a88">00256</a> <a class="code" href="HyperEstraier__wrap_8cpp.html#a90">SWIG_TypeRegisterTL</a>(<a class="code" href="structswig__type__info.html">swig_type_info</a> **tl, <a class="code" href="structswig__type__info.html">swig_type_info</a> *ti) {
266 <a name="l00257"></a>00257 <a class="code" href="structswig__type__info.html">swig_type_info</a> *tc, *head, *ret, *<a class="code" href="structswig__type__info.html#o5">next</a>;
267 <a name="l00258"></a>00258 <span class="comment">/* Check to see if this type has already been registered */</span>
268 <a name="l00259"></a>00259 tc = *tl;
269 <a name="l00260"></a>00260 <span class="keywordflow">while</span> (tc) {
270 <a name="l00261"></a>00261 <span class="comment">/* check simple type equivalence */</span>
271 <a name="l00262"></a>00262 <span class="keywordtype">int</span> typeequiv = (strcmp(tc-&gt;<a class="code" href="structswig__type__info.html#o0">name</a>, ti-&gt;<a class="code" href="structswig__type__info.html#o0">name</a>) == 0);
272 <a name="l00263"></a>00263 <span class="comment">/* check full type equivalence, resolving typedefs */</span>
273 <a name="l00264"></a>00264 <span class="keywordflow">if</span> (!typeequiv) {
274 <a name="l00265"></a>00265 <span class="comment">/* only if tc is not a typedef (no '|' on it) */</span>
275 <a name="l00266"></a>00266 <span class="keywordflow">if</span> (tc-&gt;<a class="code" href="structswig__type__info.html#o2">str</a> &amp;&amp; ti-&gt;<a class="code" href="structswig__type__info.html#o2">str</a> &amp;&amp; !strstr(tc-&gt;<a class="code" href="structswig__type__info.html#o2">str</a>,<span class="stringliteral">"|"</span>)) {
276 <a name="l00267"></a>00267 typeequiv = <a class="code" href="HyperEstraier__wrap_8cpp.html#a89">SWIG_TypeEquiv</a>(ti-&gt;<a class="code" href="structswig__type__info.html#o2">str</a>,tc-&gt;<a class="code" href="structswig__type__info.html#o2">str</a>);
277 <a name="l00268"></a>00268 }
278 <a name="l00269"></a>00269 }
279 <a name="l00270"></a>00270 <span class="keywordflow">if</span> (typeequiv) {
280 <a name="l00271"></a>00271 <span class="comment">/* Already exists in the table. Just add additional types to the list */</span>
281 <a name="l00272"></a>00272 <span class="keywordflow">if</span> (ti-&gt;<a class="code" href="structswig__type__info.html#o3">clientdata</a>) tc-&gt;<a class="code" href="structswig__type__info.html#o3">clientdata</a> = ti-&gt;<a class="code" href="structswig__type__info.html#o3">clientdata</a>;
282 <a name="l00273"></a>00273 head = tc;
283 <a name="l00274"></a>00274 next = tc-&gt;<a class="code" href="structswig__type__info.html#o5">next</a>;
284 <a name="l00275"></a>00275 <span class="keywordflow">goto</span> l1;
285 <a name="l00276"></a>00276 }
286 <a name="l00277"></a>00277 tc = tc-&gt;<a class="code" href="structswig__type__info.html#o6">prev</a>;
287 <a name="l00278"></a>00278 }
288 <a name="l00279"></a>00279 head = ti;
289 <a name="l00280"></a>00280 next = 0;
290 <a name="l00281"></a>00281
291 <a name="l00282"></a>00282 <span class="comment">/* Place in list */</span>
292 <a name="l00283"></a>00283 ti-&gt;<a class="code" href="structswig__type__info.html#o6">prev</a> = *tl;
293 <a name="l00284"></a>00284 *tl = ti;
294 <a name="l00285"></a>00285
295 <a name="l00286"></a>00286 <span class="comment">/* Build linked lists */</span>
296 <a name="l00287"></a>00287 l1:
297 <a name="l00288"></a>00288 ret = head;
298 <a name="l00289"></a>00289 tc = ti + 1;
299 <a name="l00290"></a>00290 <span class="comment">/* Patch up the rest of the links */</span>
300 <a name="l00291"></a>00291 <span class="keywordflow">while</span> (tc-&gt;<a class="code" href="structswig__type__info.html#o0">name</a>) {
301 <a name="l00292"></a>00292 head-&gt;<a class="code" href="structswig__type__info.html#o5">next</a> = tc;
302 <a name="l00293"></a>00293 tc-&gt;<a class="code" href="structswig__type__info.html#o6">prev</a> = head;
303 <a name="l00294"></a>00294 head = tc;
304 <a name="l00295"></a>00295 tc++;
305 <a name="l00296"></a>00296 }
306 <a name="l00297"></a>00297 <span class="keywordflow">if</span> (next) next-&gt;<a class="code" href="structswig__type__info.html#o6">prev</a> = head;
307 <a name="l00298"></a>00298 head-&gt;<a class="code" href="structswig__type__info.html#o5">next</a> = next;
308 <a name="l00299"></a>00299
309 <a name="l00300"></a>00300 <span class="keywordflow">return</span> ret;
310 <a name="l00301"></a>00301 }
311 <a name="l00302"></a>00302
312 <a name="l00303"></a>00303 <span class="comment">/*</span>
313 <a name="l00304"></a>00304 <span class="comment"> Check the typename</span>
314 <a name="l00305"></a>00305 <span class="comment">*/</span>
315 <a name="l00306"></a>00306 <a class="code" href="HyperEstraier__wrap_8cpp.html#a4">SWIGRUNTIME</a> <a class="code" href="structswig__type__info.html">swig_type_info</a> *
316 <a name="l00307"></a><a class="code" href="HyperEstraier__wrap_8cxx.html#a89">00307</a> <a class="code" href="HyperEstraier__wrap_8cpp.html#a91">SWIG_TypeCheck</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *c, <a class="code" href="structswig__type__info.html">swig_type_info</a> *ty) {
317 <a name="l00308"></a>00308 <a class="code" href="structswig__type__info.html">swig_type_info</a> *s;
318 <a name="l00309"></a>00309 <span class="keywordflow">if</span> (!ty) <span class="keywordflow">return</span> 0; <span class="comment">/* Void pointer */</span>
319 <a name="l00310"></a>00310 s = ty-&gt;<a class="code" href="structswig__type__info.html#o5">next</a>; <span class="comment">/* First element always just a name */</span>
320 <a name="l00311"></a>00311 <span class="keywordflow">do</span> {
321 <a name="l00312"></a>00312 <span class="keywordflow">if</span> (strcmp(s-&gt;<a class="code" href="structswig__type__info.html#o0">name</a>,c) == 0) {
322 <a name="l00313"></a>00313 <span class="keywordflow">if</span> (s == ty-&gt;<a class="code" href="structswig__type__info.html#o5">next</a>) <span class="keywordflow">return</span> s;
323 <a name="l00314"></a>00314 <span class="comment">/* Move s to the top of the linked list */</span>
324 <a name="l00315"></a>00315 s-&gt;<a class="code" href="structswig__type__info.html#o6">prev</a>-&gt;<a class="code" href="structswig__type__info.html#o5">next</a> = s-&gt;<a class="code" href="structswig__type__info.html#o5">next</a>;
325 <a name="l00316"></a>00316 <span class="keywordflow">if</span> (s-&gt;<a class="code" href="structswig__type__info.html#o5">next</a>) {
326 <a name="l00317"></a>00317 s-&gt;<a class="code" href="structswig__type__info.html#o5">next</a>-&gt;<a class="code" href="structswig__type__info.html#o6">prev</a> = s-&gt;<a class="code" href="structswig__type__info.html#o6">prev</a>;
327 <a name="l00318"></a>00318 }
328 <a name="l00319"></a>00319 <span class="comment">/* Insert s as second element in the list */</span>
329 <a name="l00320"></a>00320 s-&gt;<a class="code" href="structswig__type__info.html#o5">next</a> = ty-&gt;<a class="code" href="structswig__type__info.html#o5">next</a>;
330 <a name="l00321"></a>00321 <span class="keywordflow">if</span> (ty-&gt;<a class="code" href="structswig__type__info.html#o5">next</a>) ty-&gt;<a class="code" href="structswig__type__info.html#o5">next</a>-&gt;<a class="code" href="structswig__type__info.html#o6">prev</a> = s;
331 <a name="l00322"></a>00322 ty-&gt;<a class="code" href="structswig__type__info.html#o5">next</a> = s;
332 <a name="l00323"></a>00323 s-&gt;<a class="code" href="structswig__type__info.html#o6">prev</a> = ty;
333 <a name="l00324"></a>00324 <span class="keywordflow">return</span> s;
334 <a name="l00325"></a>00325 }
335 <a name="l00326"></a>00326 s = s-&gt;<a class="code" href="structswig__type__info.html#o5">next</a>;
336 <a name="l00327"></a>00327 } <span class="keywordflow">while</span> (s &amp;&amp; (s != ty-&gt;<a class="code" href="structswig__type__info.html#o5">next</a>));
337 <a name="l00328"></a>00328 <span class="keywordflow">return</span> 0;
338 <a name="l00329"></a>00329 }
339 <a name="l00330"></a>00330
340 <a name="l00331"></a>00331 <span class="comment">/*</span>
341 <a name="l00332"></a>00332 <span class="comment"> Cast a pointer up an inheritance hierarchy</span>
342 <a name="l00333"></a>00333 <span class="comment">*/</span>
343 <a name="l00334"></a>00334 <a class="code" href="HyperEstraier__wrap_8cpp.html#a5">SWIGRUNTIMEINLINE</a> <span class="keywordtype">void</span> *
344 <a name="l00335"></a><a class="code" href="HyperEstraier__wrap_8cxx.html#a90">00335</a> <a class="code" href="HyperEstraier__wrap_8cpp.html#a92">SWIG_TypeCast</a>(<a class="code" href="structswig__type__info.html">swig_type_info</a> *ty, <span class="keywordtype">void</span> *ptr) {
345 <a name="l00336"></a>00336 <span class="keywordflow">return</span> ((!ty) || (!ty-&gt;<a class="code" href="structswig__type__info.html#o1">converter</a>)) ? ptr : (*ty-&gt;<a class="code" href="structswig__type__info.html#o1">converter</a>)(ptr);
346 <a name="l00337"></a>00337 }
347 <a name="l00338"></a>00338
348 <a name="l00339"></a>00339 <span class="comment">/* </span>
349 <a name="l00340"></a>00340 <span class="comment"> Dynamic pointer casting. Down an inheritance hierarchy</span>
350 <a name="l00341"></a>00341 <span class="comment">*/</span>
351 <a name="l00342"></a>00342 <a class="code" href="HyperEstraier__wrap_8cpp.html#a4">SWIGRUNTIME</a> <a class="code" href="structswig__type__info.html">swig_type_info</a> *
352 <a name="l00343"></a><a class="code" href="HyperEstraier__wrap_8cxx.html#a91">00343</a> <a class="code" href="HyperEstraier__wrap_8cpp.html#a93">SWIG_TypeDynamicCast</a>(<a class="code" href="structswig__type__info.html">swig_type_info</a> *ty, <span class="keywordtype">void</span> **ptr) {
353 <a name="l00344"></a>00344 <a class="code" href="structswig__type__info.html">swig_type_info</a> *lastty = ty;
354 <a name="l00345"></a>00345 <span class="keywordflow">if</span> (!ty || !ty-&gt;<a class="code" href="structswig__type__info.html#o4">dcast</a>) <span class="keywordflow">return</span> ty;
355 <a name="l00346"></a>00346 <span class="keywordflow">while</span> (ty &amp;&amp; (ty-&gt;<a class="code" href="structswig__type__info.html#o4">dcast</a>)) {
356 <a name="l00347"></a>00347 ty = (*ty-&gt;<a class="code" href="structswig__type__info.html#o4">dcast</a>)(ptr);
357 <a name="l00348"></a>00348 <span class="keywordflow">if</span> (ty) lastty = ty;
358 <a name="l00349"></a>00349 }
359 <a name="l00350"></a>00350 <span class="keywordflow">return</span> lastty;
360 <a name="l00351"></a>00351 }
361 <a name="l00352"></a>00352
362 <a name="l00353"></a>00353 <span class="comment">/*</span>
363 <a name="l00354"></a>00354 <span class="comment"> Return the name associated with this type</span>
364 <a name="l00355"></a>00355 <span class="comment">*/</span>
365 <a name="l00356"></a>00356 <a class="code" href="HyperEstraier__wrap_8cpp.html#a5">SWIGRUNTIMEINLINE</a> <span class="keyword">const</span> <span class="keywordtype">char</span> *
366 <a name="l00357"></a><a class="code" href="HyperEstraier__wrap_8cxx.html#a92">00357</a> <a class="code" href="HyperEstraier__wrap_8cpp.html#a94">SWIG_TypeName</a>(<span class="keyword">const</span> <a class="code" href="structswig__type__info.html">swig_type_info</a> *ty) {
367 <a name="l00358"></a>00358 <span class="keywordflow">return</span> ty-&gt;<a class="code" href="structswig__type__info.html#o0">name</a>;
368 <a name="l00359"></a>00359 }
369 <a name="l00360"></a>00360
370 <a name="l00361"></a>00361 <span class="comment">/*</span>
371 <a name="l00362"></a>00362 <span class="comment"> Return the pretty name associated with this type,</span>
372 <a name="l00363"></a>00363 <span class="comment"> that is an unmangled type name in a form presentable to the user.</span>
373 <a name="l00364"></a>00364 <span class="comment">*/</span>
374 <a name="l00365"></a>00365 <a class="code" href="HyperEstraier__wrap_8cpp.html#a4">SWIGRUNTIME</a> <span class="keyword">const</span> <span class="keywordtype">char</span> *
375 <a name="l00366"></a><a class="code" href="HyperEstraier__wrap_8cxx.html#a93">00366</a> <a class="code" href="HyperEstraier__wrap_8cpp.html#a95">SWIG_TypePrettyName</a>(<span class="keyword">const</span> <a class="code" href="structswig__type__info.html">swig_type_info</a> *type) {
376 <a name="l00367"></a>00367 <span class="comment">/* The "str" field contains the equivalent pretty names of the</span>
377 <a name="l00368"></a>00368 <span class="comment"> type, separated by vertical-bar characters. We choose</span>
378 <a name="l00369"></a>00369 <span class="comment"> to print the last name, as it is often (?) the most</span>
379 <a name="l00370"></a>00370 <span class="comment"> specific. */</span>
380 <a name="l00371"></a>00371 <span class="keywordflow">if</span> (type-&gt;<a class="code" href="structswig__type__info.html#o2">str</a> != NULL) {
381 <a name="l00372"></a>00372 <span class="keyword">const</span> <span class="keywordtype">char</span> *last_name = type-&gt;<a class="code" href="structswig__type__info.html#o2">str</a>;
382 <a name="l00373"></a>00373 <span class="keyword">const</span> <span class="keywordtype">char</span> *s;
383 <a name="l00374"></a>00374 <span class="keywordflow">for</span> (s = type-&gt;<a class="code" href="structswig__type__info.html#o2">str</a>; *s; s++)
384 <a name="l00375"></a>00375 <span class="keywordflow">if</span> (*s == <span class="charliteral">'|'</span>) last_name = s+1;
385 <a name="l00376"></a>00376 <span class="keywordflow">return</span> last_name;
386 <a name="l00377"></a>00377 }
387 <a name="l00378"></a>00378 <span class="keywordflow">else</span>
388 <a name="l00379"></a>00379 <span class="keywordflow">return</span> type-&gt;<a class="code" href="structswig__type__info.html#o0">name</a>;
389 <a name="l00380"></a>00380 }
390 <a name="l00381"></a>00381
391 <a name="l00382"></a>00382 <span class="comment">/*</span>
392 <a name="l00383"></a>00383 <span class="comment"> Search for a swig_type_info structure</span>
393 <a name="l00384"></a>00384 <span class="comment">*/</span>
394 <a name="l00385"></a>00385 <a class="code" href="HyperEstraier__wrap_8cpp.html#a4">SWIGRUNTIME</a> <a class="code" href="structswig__type__info.html">swig_type_info</a> *
395 <a name="l00386"></a><a class="code" href="HyperEstraier__wrap_8cxx.html#a94">00386</a> <a class="code" href="HyperEstraier__wrap_8cpp.html#a96">SWIG_TypeQueryTL</a>(<a class="code" href="structswig__type__info.html">swig_type_info</a> *tl, <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="structswig__type__info.html#o0">name</a>) {
396 <a name="l00387"></a>00387 <a class="code" href="structswig__type__info.html">swig_type_info</a> *ty = tl;
397 <a name="l00388"></a>00388 <span class="keywordflow">while</span> (ty) {
398 <a name="l00389"></a>00389 <span class="keywordflow">if</span> (ty-&gt;<a class="code" href="structswig__type__info.html#o2">str</a> &amp;&amp; (<a class="code" href="HyperEstraier__wrap_8cpp.html#a89">SWIG_TypeEquiv</a>(ty-&gt;<a class="code" href="structswig__type__info.html#o2">str</a>,name))) <span class="keywordflow">return</span> ty;
399 <a name="l00390"></a>00390 <span class="keywordflow">if</span> (ty-&gt;<a class="code" href="structswig__type__info.html#o0">name</a> &amp;&amp; (strcmp(name,ty-&gt;<a class="code" href="structswig__type__info.html#o0">name</a>) == 0)) <span class="keywordflow">return</span> ty;
400 <a name="l00391"></a>00391 ty = ty-&gt;<a class="code" href="structswig__type__info.html#o6">prev</a>;
401 <a name="l00392"></a>00392 }
402 <a name="l00393"></a>00393 <span class="keywordflow">return</span> 0;
403 <a name="l00394"></a>00394 }
404 <a name="l00395"></a>00395
405 <a name="l00396"></a>00396 <span class="comment">/* </span>
406 <a name="l00397"></a>00397 <span class="comment"> Set the clientdata field for a type</span>
407 <a name="l00398"></a>00398 <span class="comment">*/</span>
408 <a name="l00399"></a>00399 <a class="code" href="HyperEstraier__wrap_8cpp.html#a4">SWIGRUNTIME</a> <span class="keywordtype">void</span>
409 <a name="l00400"></a><a class="code" href="HyperEstraier__wrap_8cxx.html#a95">00400</a> <a class="code" href="HyperEstraier__wrap_8cpp.html#a97">SWIG_TypeClientDataTL</a>(<a class="code" href="structswig__type__info.html">swig_type_info</a> *tl, <a class="code" href="structswig__type__info.html">swig_type_info</a> *ti, <span class="keywordtype">void</span> *<a class="code" href="structswig__type__info.html#o3">clientdata</a>) {
410 <a name="l00401"></a>00401 <a class="code" href="structswig__type__info.html">swig_type_info</a> *tc, *equiv;
411 <a name="l00402"></a>00402 <span class="keywordflow">if</span> (ti-&gt;<a class="code" href="structswig__type__info.html#o3">clientdata</a>) <span class="keywordflow">return</span>;
412 <a name="l00403"></a>00403 <span class="comment">/* if (ti-&gt;clientdata == clientdata) return; */</span>
413 <a name="l00404"></a>00404 ti-&gt;<a class="code" href="structswig__type__info.html#o3">clientdata</a> = clientdata;
414 <a name="l00405"></a>00405 equiv = ti-&gt;<a class="code" href="structswig__type__info.html#o5">next</a>;
415 <a name="l00406"></a>00406 <span class="keywordflow">while</span> (equiv) {
416 <a name="l00407"></a>00407 <span class="keywordflow">if</span> (!equiv-&gt;<a class="code" href="structswig__type__info.html#o1">converter</a>) {
417 <a name="l00408"></a>00408 tc = tl;
418 <a name="l00409"></a>00409 <span class="keywordflow">while</span> (tc) {
419 <a name="l00410"></a>00410 <span class="keywordflow">if</span> ((strcmp(tc-&gt;<a class="code" href="structswig__type__info.html#o0">name</a>, equiv-&gt;<a class="code" href="structswig__type__info.html#o0">name</a>) == 0))
420 <a name="l00411"></a>00411 <a class="code" href="HyperEstraier__wrap_8cpp.html#a97">SWIG_TypeClientDataTL</a>(tl,tc,clientdata);
421 <a name="l00412"></a>00412 tc = tc-&gt;<a class="code" href="structswig__type__info.html#o6">prev</a>;
422 <a name="l00413"></a>00413 }
423 <a name="l00414"></a>00414 }
424 <a name="l00415"></a>00415 equiv = equiv-&gt;<a class="code" href="structswig__type__info.html#o5">next</a>;
425 <a name="l00416"></a>00416 }
426 <a name="l00417"></a>00417 }
427 <a name="l00418"></a>00418
428 <a name="l00419"></a>00419 <span class="comment">/* </span>
429 <a name="l00420"></a>00420 <span class="comment"> Pack binary data into a string</span>
430 <a name="l00421"></a>00421 <span class="comment">*/</span>
431 <a name="l00422"></a>00422 <a class="code" href="HyperEstraier__wrap_8cpp.html#a4">SWIGRUNTIME</a> <span class="keywordtype">char</span> *
432 <a name="l00423"></a><a class="code" href="HyperEstraier__wrap_8cxx.html#a96">00423</a> <a class="code" href="HyperEstraier__wrap_8cpp.html#a98">SWIG_PackData</a>(<span class="keywordtype">char</span> *c, <span class="keywordtype">void</span> *ptr, size_t sz) {
433 <a name="l00424"></a>00424 <span class="keyword">static</span> <span class="keywordtype">char</span> hex[17] = <span class="stringliteral">"0123456789abcdef"</span>;
434 <a name="l00425"></a>00425 <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *u = (<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *) ptr;
435 <a name="l00426"></a>00426 <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *eu = u + sz;
436 <a name="l00427"></a>00427 <span class="keyword">register</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> uu;
437 <a name="l00428"></a>00428 <span class="keywordflow">for</span> (; u != eu; ++u) {
438 <a name="l00429"></a>00429 uu = *u;
439 <a name="l00430"></a>00430 *(c++) = hex[(uu &amp; 0xf0) &gt;&gt; 4];
440 <a name="l00431"></a>00431 *(c++) = hex[uu &amp; 0xf];
441 <a name="l00432"></a>00432 }
442 <a name="l00433"></a>00433 <span class="keywordflow">return</span> c;
443 <a name="l00434"></a>00434 }
444 <a name="l00435"></a>00435
445 <a name="l00436"></a>00436 <span class="comment">/* </span>
446 <a name="l00437"></a>00437 <span class="comment"> Unpack binary data from a string</span>
447 <a name="l00438"></a>00438 <span class="comment">*/</span>
448 <a name="l00439"></a>00439 <a class="code" href="HyperEstraier__wrap_8cpp.html#a4">SWIGRUNTIME</a> <span class="keyword">const</span> <span class="keywordtype">char</span> *
449 <a name="l00440"></a><a class="code" href="HyperEstraier__wrap_8cxx.html#a97">00440</a> <a class="code" href="HyperEstraier__wrap_8cpp.html#a99">SWIG_UnpackData</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *c, <span class="keywordtype">void</span> *ptr, size_t sz) {
450 <a name="l00441"></a>00441 <span class="keyword">register</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *u = (<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *) ptr;
451 <a name="l00442"></a>00442 <span class="keyword">register</span> <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *eu = u + sz;
452 <a name="l00443"></a>00443 <span class="keywordflow">for</span> (; u != eu; ++u) {
453 <a name="l00444"></a>00444 <span class="keyword">register</span> <span class="keywordtype">int</span> d = *(c++);
454 <a name="l00445"></a>00445 <span class="keyword">register</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> uu = 0;
455 <a name="l00446"></a>00446 <span class="keywordflow">if</span> ((d &gt;= <span class="charliteral">'0'</span>) &amp;&amp; (d &lt;= <span class="charliteral">'9'</span>))
456 <a name="l00447"></a>00447 uu = ((d - <span class="charliteral">'0'</span>) &lt;&lt; 4);
457 <a name="l00448"></a>00448 <span class="keywordflow">else</span> <span class="keywordflow">if</span> ((d &gt;= <span class="charliteral">'a'</span>) &amp;&amp; (d &lt;= <span class="charliteral">'f'</span>))
458 <a name="l00449"></a>00449 uu = ((d - (<span class="charliteral">'a'</span>-10)) &lt;&lt; 4);
459 <a name="l00450"></a>00450 <span class="keywordflow">else</span>
460 <a name="l00451"></a>00451 <span class="keywordflow">return</span> (<span class="keywordtype">char</span> *) 0;
461 <a name="l00452"></a>00452 d = *(c++);
462 <a name="l00453"></a>00453 <span class="keywordflow">if</span> ((d &gt;= <span class="charliteral">'0'</span>) &amp;&amp; (d &lt;= <span class="charliteral">'9'</span>))
463 <a name="l00454"></a>00454 uu |= (d - <span class="charliteral">'0'</span>);
464 <a name="l00455"></a>00455 <span class="keywordflow">else</span> <span class="keywordflow">if</span> ((d &gt;= <span class="charliteral">'a'</span>) &amp;&amp; (d &lt;= <span class="charliteral">'f'</span>))
465 <a name="l00456"></a>00456 uu |= (d - (<span class="charliteral">'a'</span>-10));
466 <a name="l00457"></a>00457 <span class="keywordflow">else</span>
467 <a name="l00458"></a>00458 <span class="keywordflow">return</span> (<span class="keywordtype">char</span> *) 0;
468 <a name="l00459"></a>00459 *u = uu;
469 <a name="l00460"></a>00460 }
470 <a name="l00461"></a>00461 <span class="keywordflow">return</span> c;
471 <a name="l00462"></a>00462 }
472 <a name="l00463"></a>00463
473 <a name="l00464"></a>00464 <span class="comment">/*</span>
474 <a name="l00465"></a>00465 <span class="comment"> This function will propagate the clientdata field of type to any new</span>
475 <a name="l00466"></a>00466 <span class="comment"> swig_type_info structures that have been added into the list of</span>
476 <a name="l00467"></a>00467 <span class="comment"> equivalent types. It is like calling SWIG_TypeClientData(type,</span>
477 <a name="l00468"></a>00468 <span class="comment"> clientdata) a second time.</span>
478 <a name="l00469"></a>00469 <span class="comment">*/</span>
479 <a name="l00470"></a>00470 <a class="code" href="HyperEstraier__wrap_8cpp.html#a4">SWIGRUNTIME</a> <span class="keywordtype">void</span>
480 <a name="l00471"></a><a class="code" href="HyperEstraier__wrap_8cxx.html#a98">00471</a> <a class="code" href="HyperEstraier__wrap_8cpp.html#a100">SWIG_PropagateClientDataTL</a>(<a class="code" href="structswig__type__info.html">swig_type_info</a> *tl, <a class="code" href="structswig__type__info.html">swig_type_info</a> *type) {
481 <a name="l00472"></a>00472 <a class="code" href="structswig__type__info.html">swig_type_info</a> *equiv = type-&gt;<a class="code" href="structswig__type__info.html#o5">next</a>;
482 <a name="l00473"></a>00473 <a class="code" href="structswig__type__info.html">swig_type_info</a> *tc;
483 <a name="l00474"></a>00474 <span class="keywordflow">if</span> (!type-&gt;<a class="code" href="structswig__type__info.html#o3">clientdata</a>) <span class="keywordflow">return</span>;
484 <a name="l00475"></a>00475 <span class="keywordflow">while</span> (equiv) {
485 <a name="l00476"></a>00476 <span class="keywordflow">if</span> (!equiv-&gt;<a class="code" href="structswig__type__info.html#o1">converter</a>) {
486 <a name="l00477"></a>00477 tc = tl;
487 <a name="l00478"></a>00478 <span class="keywordflow">while</span> (tc) {
488 <a name="l00479"></a>00479 <span class="keywordflow">if</span> ((strcmp(tc-&gt;<a class="code" href="structswig__type__info.html#o0">name</a>, equiv-&gt;<a class="code" href="structswig__type__info.html#o0">name</a>) == 0) &amp;&amp; !tc-&gt;<a class="code" href="structswig__type__info.html#o3">clientdata</a>)
489 <a name="l00480"></a>00480 <a class="code" href="HyperEstraier__wrap_8cpp.html#a97">SWIG_TypeClientDataTL</a>(tl,tc, type-&gt;<a class="code" href="structswig__type__info.html#o3">clientdata</a>);
490 <a name="l00481"></a>00481 tc = tc-&gt;<a class="code" href="structswig__type__info.html#o6">prev</a>;
491 <a name="l00482"></a>00482 }
492 <a name="l00483"></a>00483 }
493 <a name="l00484"></a>00484 equiv = equiv-&gt;<a class="code" href="structswig__type__info.html#o5">next</a>;
494 <a name="l00485"></a>00485 }
495 <a name="l00486"></a>00486 }
496 <a name="l00487"></a>00487
497 <a name="l00488"></a>00488 <span class="comment">/* </span>
498 <a name="l00489"></a>00489 <span class="comment"> Pack 'void *' into a string buffer.</span>
499 <a name="l00490"></a>00490 <span class="comment">*/</span>
500 <a name="l00491"></a>00491 <a class="code" href="HyperEstraier__wrap_8cpp.html#a4">SWIGRUNTIME</a> <span class="keywordtype">char</span> *
501 <a name="l00492"></a><a class="code" href="HyperEstraier__wrap_8cxx.html#a99">00492</a> <a class="code" href="HyperEstraier__wrap_8cpp.html#a101">SWIG_PackVoidPtr</a>(<span class="keywordtype">char</span> *buff, <span class="keywordtype">void</span> *ptr, <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="structswig__type__info.html#o0">name</a>, size_t bsz) {
502 <a name="l00493"></a>00493 <span class="keywordtype">char</span> *r = buff;
503 <a name="l00494"></a>00494 <span class="keywordflow">if</span> ((2*<span class="keyword">sizeof</span>(<span class="keywordtype">void</span> *) + 2) &gt; bsz) <span class="keywordflow">return</span> 0;
504 <a name="l00495"></a>00495 *(r++) = <span class="charliteral">'_'</span>;
505 <a name="l00496"></a>00496 r = <a class="code" href="HyperEstraier__wrap_8cpp.html#a98">SWIG_PackData</a>(r,&amp;ptr,<span class="keyword">sizeof</span>(<span class="keywordtype">void</span> *));
506 <a name="l00497"></a>00497 <span class="keywordflow">if</span> (strlen(name) + 1 &gt; (bsz - (r - buff))) <span class="keywordflow">return</span> 0;
507 <a name="l00498"></a>00498 strcpy(r,name);
508 <a name="l00499"></a>00499 <span class="keywordflow">return</span> buff;
509 <a name="l00500"></a>00500 }
510 <a name="l00501"></a>00501
511 <a name="l00502"></a>00502 <a class="code" href="HyperEstraier__wrap_8cpp.html#a4">SWIGRUNTIME</a> <span class="keyword">const</span> <span class="keywordtype">char</span> *
512 <a name="l00503"></a><a class="code" href="HyperEstraier__wrap_8cxx.html#a100">00503</a> <a class="code" href="HyperEstraier__wrap_8cpp.html#a102">SWIG_UnpackVoidPtr</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *c, <span class="keywordtype">void</span> **ptr, <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="structswig__type__info.html#o0">name</a>) {
513 <a name="l00504"></a>00504 <span class="keywordflow">if</span> (*c != <span class="charliteral">'_'</span>) {
514 <a name="l00505"></a>00505 <span class="keywordflow">if</span> (strcmp(c,<span class="stringliteral">"NULL"</span>) == 0) {
515 <a name="l00506"></a>00506 *ptr = (<span class="keywordtype">void</span> *) 0;
516 <a name="l00507"></a>00507 <span class="keywordflow">return</span> name;
517 <a name="l00508"></a>00508 } <span class="keywordflow">else</span> {
518 <a name="l00509"></a>00509 <span class="keywordflow">return</span> 0;
519 <a name="l00510"></a>00510 }
520 <a name="l00511"></a>00511 }
521 <a name="l00512"></a>00512 <span class="keywordflow">return</span> <a class="code" href="HyperEstraier__wrap_8cpp.html#a99">SWIG_UnpackData</a>(++c,ptr,<span class="keyword">sizeof</span>(<span class="keywordtype">void</span> *));
522 <a name="l00513"></a>00513 }
523 <a name="l00514"></a>00514
524 <a name="l00515"></a>00515 <a class="code" href="HyperEstraier__wrap_8cpp.html#a4">SWIGRUNTIME</a> <span class="keywordtype">char</span> *
525 <a name="l00516"></a><a class="code" href="HyperEstraier__wrap_8cxx.html#a101">00516</a> <a class="code" href="HyperEstraier__wrap_8cpp.html#a103">SWIG_PackDataName</a>(<span class="keywordtype">char</span> *buff, <span class="keywordtype">void</span> *ptr, size_t sz, <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="structswig__type__info.html#o0">name</a>, size_t bsz) {
526 <a name="l00517"></a>00517 <span class="keywordtype">char</span> *r = buff;
527 <a name="l00518"></a>00518 size_t lname = (name ? strlen(name) : 0);
528 <a name="l00519"></a>00519 <span class="keywordflow">if</span> ((2*sz + 2 + lname) &gt; bsz) <span class="keywordflow">return</span> 0;
529 <a name="l00520"></a>00520 *(r++) = <span class="charliteral">'_'</span>;
530 <a name="l00521"></a>00521 r = <a class="code" href="HyperEstraier__wrap_8cpp.html#a98">SWIG_PackData</a>(r,ptr,sz);
531 <a name="l00522"></a>00522 <span class="keywordflow">if</span> (lname) {
532 <a name="l00523"></a>00523 strncpy(r,name,lname+1);
533 <a name="l00524"></a>00524 } <span class="keywordflow">else</span> {
534 <a name="l00525"></a>00525 *r = 0;
535 <a name="l00526"></a>00526 }
536 <a name="l00527"></a>00527 <span class="keywordflow">return</span> buff;
537 <a name="l00528"></a>00528 }
538 <a name="l00529"></a>00529
539 <a name="l00530"></a>00530 <a class="code" href="HyperEstraier__wrap_8cpp.html#a4">SWIGRUNTIME</a> <span class="keyword">const</span> <span class="keywordtype">char</span> *
540 <a name="l00531"></a><a class="code" href="HyperEstraier__wrap_8cxx.html#a102">00531</a> <a class="code" href="HyperEstraier__wrap_8cpp.html#a104">SWIG_UnpackDataName</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *c, <span class="keywordtype">void</span> *ptr, size_t sz, <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="structswig__type__info.html#o0">name</a>) {
541 <a name="l00532"></a>00532 <span class="keywordflow">if</span> (*c != <span class="charliteral">'_'</span>) {
542 <a name="l00533"></a>00533 <span class="keywordflow">if</span> (strcmp(c,<span class="stringliteral">"NULL"</span>) == 0) {
543 <a name="l00534"></a>00534 memset(ptr,0,sz);
544 <a name="l00535"></a>00535 <span class="keywordflow">return</span> name;
545 <a name="l00536"></a>00536 } <span class="keywordflow">else</span> {
546 <a name="l00537"></a>00537 <span class="keywordflow">return</span> 0;
547 <a name="l00538"></a>00538 }
548 <a name="l00539"></a>00539 }
549 <a name="l00540"></a>00540 <span class="keywordflow">return</span> <a class="code" href="HyperEstraier__wrap_8cpp.html#a99">SWIG_UnpackData</a>(++c,ptr,sz);
550 <a name="l00541"></a>00541 }
551 <a name="l00542"></a>00542
552 <a name="l00543"></a>00543 <span class="preprocessor">#ifdef __cplusplus</span>
553 <a name="l00544"></a>00544 <span class="preprocessor"></span>}
554 <a name="l00545"></a>00545 <span class="preprocessor">#endif</span>
555 <a name="l00546"></a>00546 <span class="preprocessor"></span>
556 <a name="l00547"></a>00547 <span class="comment">/***********************************************************************</span>
557 <a name="l00548"></a>00548 <span class="comment"> * common.swg</span>
558 <a name="l00549"></a>00549 <span class="comment"> *</span>
559 <a name="l00550"></a>00550 <span class="comment"> * This file contains generic SWIG runtime support for pointer</span>
560 <a name="l00551"></a>00551 <span class="comment"> * type checking as well as a few commonly used macros to control</span>
561 <a name="l00552"></a>00552 <span class="comment"> * external linkage.</span>
562 <a name="l00553"></a>00553 <span class="comment"> *</span>
563 <a name="l00554"></a>00554 <span class="comment"> * Author : David Beazley (beazley@cs.uchicago.edu)</span>
564 <a name="l00555"></a>00555 <span class="comment"> *</span>
565 <a name="l00556"></a>00556 <span class="comment"> * Copyright (c) 1999-2000, The University of Chicago</span>
566 <a name="l00557"></a>00557 <span class="comment"> * </span>
567 <a name="l00558"></a>00558 <span class="comment"> * This file may be freely redistributed without license or fee provided</span>
568 <a name="l00559"></a>00559 <span class="comment"> * this copyright message remains intact.</span>
569 <a name="l00560"></a>00560 <span class="comment"> ************************************************************************/</span>
570 <a name="l00561"></a>00561
571 <a name="l00562"></a>00562
572 <a name="l00563"></a>00563 <span class="preprocessor">#if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)</span>
573 <a name="l00564"></a>00564 <span class="preprocessor"></span><span class="preprocessor"># if !defined(STATIC_LINKED)</span>
574 <a name="l00565"></a>00565 <span class="preprocessor"></span><span class="preprocessor"># define SWIGEXPORT(a) __declspec(dllexport) a</span>
575 <a name="l00566"></a>00566 <span class="preprocessor"></span><span class="preprocessor"># else</span>
576 <a name="l00567"></a>00567 <span class="preprocessor"></span><span class="preprocessor"># define SWIGEXPORT(a) a</span>
577 <a name="l00568"></a>00568 <span class="preprocessor"></span><span class="preprocessor"># endif</span>
578 <a name="l00569"></a>00569 <span class="preprocessor"></span><span class="preprocessor">#else</span>
579 <a name="l00570"></a><a class="code" href="HyperEstraier__wrap_8cxx.html#a25">00570</a> <span class="preprocessor"></span><span class="preprocessor"># define SWIGEXPORT(a) a</span>
580 <a name="l00571"></a>00571 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
581 <a name="l00572"></a>00572 <span class="preprocessor"></span>
582 <a name="l00573"></a>00573 <span class="preprocessor">#ifdef __cplusplus</span>
583 <a name="l00574"></a>00574 <span class="preprocessor"></span><span class="keyword">extern</span> <span class="stringliteral">"C"</span> {
584 <a name="l00575"></a>00575 <span class="preprocessor">#endif</span>
585 <a name="l00576"></a>00576 <span class="preprocessor"></span>
586 <a name="l00577"></a>00577
587 <a name="l00578"></a>00578 <span class="comment">/*************************************************************************/</span>
588 <a name="l00579"></a>00579
589 <a name="l00580"></a>00580
590 <a name="l00581"></a>00581 <span class="comment">/* The static type info list */</span>
591 <a name="l00582"></a>00582
592 <a name="l00583"></a><a class="code" href="HyperEstraier__wrap_8cxx.html#a63">00583</a> <span class="keyword">static</span> <a class="code" href="structswig__type__info.html">swig_type_info</a> *<a class="code" href="HyperEstraier__wrap_8cpp.html#a67">swig_type_list</a> = 0;
593 <a name="l00584"></a><a class="code" href="HyperEstraier__wrap_8cxx.html#a64">00584</a> <span class="keyword">static</span> <a class="code" href="structswig__type__info.html">swig_type_info</a> **<a class="code" href="HyperEstraier__wrap_8cpp.html#a68">swig_type_list_handle</a> = &amp;swig_type_list;
594 <a name="l00585"></a>00585
595 <a name="l00586"></a>00586
596 <a name="l00587"></a>00587 <span class="comment">/* Register a type mapping with the type-checking */</span>
597 <a name="l00588"></a>00588 <span class="keyword">static</span> <a class="code" href="structswig__type__info.html">swig_type_info</a> *
598 <a name="l00589"></a><a class="code" href="HyperEstraier__wrap_8cxx.html#a103">00589</a> <a class="code" href="HyperEstraier__wrap_8cpp.html#a105">SWIG_TypeRegister</a>(<a class="code" href="structswig__type__info.html">swig_type_info</a> *ti) {
599 <a name="l00590"></a>00590 <span class="keywordflow">return</span> <a class="code" href="HyperEstraier__wrap_8cpp.html#a90">SWIG_TypeRegisterTL</a>(swig_type_list_handle, ti);
600 <a name="l00591"></a>00591 }
601 <a name="l00592"></a>00592
602 <a name="l00593"></a>00593 <span class="comment">/* Search for a swig_type_info structure */</span>
603 <a name="l00594"></a>00594 <span class="keyword">static</span> <a class="code" href="structswig__type__info.html">swig_type_info</a> *
604 <a name="l00595"></a><a class="code" href="HyperEstraier__wrap_8cxx.html#a104">00595</a> <a class="code" href="HyperEstraier__wrap_8cpp.html#a106">SWIG_TypeQuery</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="structswig__type__info.html#o0">name</a>) {
605 <a name="l00596"></a>00596 <span class="keywordflow">return</span> <a class="code" href="HyperEstraier__wrap_8cpp.html#a96">SWIG_TypeQueryTL</a>(*swig_type_list_handle, name);
606 <a name="l00597"></a>00597 }
607 <a name="l00598"></a>00598
608 <a name="l00599"></a>00599 <span class="comment">/* Set the clientdata field for a type */</span>
609 <a name="l00600"></a>00600 <span class="keyword">static</span> <span class="keywordtype">void</span>
610 <a name="l00601"></a><a class="code" href="HyperEstraier__wrap_8cxx.html#a105">00601</a> <a class="code" href="HyperEstraier__wrap_8cpp.html#a107">SWIG_TypeClientData</a>(<a class="code" href="structswig__type__info.html">swig_type_info</a> *ti, <span class="keywordtype">void</span> *<a class="code" href="structswig__type__info.html#o3">clientdata</a>) {
611 <a name="l00602"></a>00602 <a class="code" href="HyperEstraier__wrap_8cpp.html#a97">SWIG_TypeClientDataTL</a>(*swig_type_list_handle, ti, clientdata);
612 <a name="l00603"></a>00603 }
613 <a name="l00604"></a>00604
614 <a name="l00605"></a>00605 <span class="comment">/* This function will propagate the clientdata field of type to</span>
615 <a name="l00606"></a>00606 <span class="comment">* any new swig_type_info structures that have been added into the list</span>
616 <a name="l00607"></a>00607 <span class="comment">* of equivalent types. It is like calling</span>
617 <a name="l00608"></a>00608 <span class="comment">* SWIG_TypeClientData(type, clientdata) a second time.</span>
618 <a name="l00609"></a>00609 <span class="comment">*/</span>
619 <a name="l00610"></a>00610 <span class="keyword">static</span> <span class="keywordtype">void</span>
620 <a name="l00611"></a><a class="code" href="HyperEstraier__wrap_8cxx.html#a106">00611</a> <a class="code" href="HyperEstraier__wrap_8cpp.html#a108">SWIG_PropagateClientData</a>(<a class="code" href="structswig__type__info.html">swig_type_info</a> *type) {
621 <a name="l00612"></a>00612 <a class="code" href="HyperEstraier__wrap_8cpp.html#a100">SWIG_PropagateClientDataTL</a>(*swig_type_list_handle, type);
622 <a name="l00613"></a>00613 }
623 <a name="l00614"></a>00614
624 <a name="l00615"></a>00615 <span class="preprocessor">#ifdef __cplusplus</span>
625 <a name="l00616"></a>00616 <span class="preprocessor"></span>}
626 <a name="l00617"></a>00617 <span class="preprocessor">#endif</span>
627 <a name="l00618"></a>00618 <span class="preprocessor"></span>
628 <a name="l00619"></a>00619 <span class="comment">/* Common SWIG API */</span>
629 <a name="l00620"></a><a class="code" href="HyperEstraier__wrap_8cxx.html#a26">00620</a> <span class="preprocessor">#define SWIG_ConvertPtr(obj, pp, type, flags) \</span>
630 <a name="l00621"></a>00621 <span class="preprocessor"> SWIG_Ruby_ConvertPtr(obj, pp, type, flags)</span>
631 <a name="l00622"></a><a class="code" href="HyperEstraier__wrap_8cxx.html#a27">00622</a> <span class="preprocessor"></span><span class="preprocessor">#define SWIG_NewPointerObj(p, type, flags) \</span>
632 <a name="l00623"></a>00623 <span class="preprocessor"> SWIG_Ruby_NewPointerObj(p, type, flags)</span>
633 <a name="l00624"></a><a class="code" href="HyperEstraier__wrap_8cxx.html#a28">00624</a> <span class="preprocessor"></span><span class="preprocessor">#define SWIG_MustGetPtr(p, type, argnum, flags) \</span>
634 <a name="l00625"></a>00625 <span class="preprocessor"> SWIG_Ruby_MustGetPtr(p, type, argnum, flags)</span>
635 <a name="l00626"></a>00626 <span class="preprocessor"></span>
636 <a name="l00627"></a>00627 <span class="comment">/* Ruby-specific SWIG API */</span>
637 <a name="l00628"></a>00628
638 <a name="l00629"></a><a class="code" href="HyperEstraier__wrap_8cxx.html#a29">00629</a> <span class="preprocessor">#define SWIG_InitRuntime() \</span>
639 <a name="l00630"></a>00630 <span class="preprocessor"> SWIG_Ruby_InitRuntime()</span>
640 <a name="l00631"></a><a class="code" href="HyperEstraier__wrap_8cxx.html#a30">00631</a> <span class="preprocessor"></span><span class="preprocessor">#define SWIG_define_class(ty) \</span>
641 <a name="l00632"></a>00632 <span class="preprocessor"> SWIG_Ruby_define_class(ty)</span>
642 <a name="l00633"></a><a class="code" href="HyperEstraier__wrap_8cxx.html#a31">00633</a> <span class="preprocessor"></span><span class="preprocessor">#define SWIG_NewClassInstance(value, ty) \</span>
643 <a name="l00634"></a>00634 <span class="preprocessor"> SWIG_Ruby_NewClassInstance(value, ty)</span>
644 <a name="l00635"></a><a class="code" href="HyperEstraier__wrap_8cxx.html#a32">00635</a> <span class="preprocessor"></span><span class="preprocessor">#define SWIG_MangleStr(value) \</span>
645 <a name="l00636"></a>00636 <span class="preprocessor"> SWIG_Ruby_MangleStr(value)</span>
646 <a name="l00637"></a><a class="code" href="HyperEstraier__wrap_8cxx.html#a33">00637</a> <span class="preprocessor"></span><span class="preprocessor">#define SWIG_CheckConvert(value, ty) \</span>
647 <a name="l00638"></a>00638 <span class="preprocessor"> SWIG_Ruby_CheckConvert(value, ty)</span>
648 <a name="l00639"></a><a class="code" href="HyperEstraier__wrap_8cxx.html#a34">00639</a> <span class="preprocessor"></span><span class="preprocessor">#define SWIG_NewPackedObj(ptr, sz, ty) \</span>
649 <a name="l00640"></a>00640 <span class="preprocessor"> SWIG_Ruby_NewPackedObj(ptr, sz, ty)</span>
650 <a name="l00641"></a><a class="code" href="HyperEstraier__wrap_8cxx.html#a35">00641</a> <span class="preprocessor"></span><span class="preprocessor">#define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \</span>
651 <a name="l00642"></a>00642 <span class="preprocessor"> SWIG_Ruby_ConvertPacked(obj, ptr, sz, ty, flags)</span>
652 <a name="l00643"></a>00643 <span class="preprocessor"></span>
653 <a name="l00644"></a>00644 <span class="comment">/* rubydef.swg */</span>
654 <a name="l00645"></a>00645 <span class="preprocessor">#ifdef __cplusplus</span>
655 <a name="l00646"></a>00646 <span class="preprocessor"></span><span class="keyword">extern</span> <span class="stringliteral">"C"</span> {
656 <a name="l00647"></a>00647 <span class="preprocessor">#endif</span>
657 <a name="l00648"></a>00648 <span class="preprocessor"></span>
658 <a name="l00649"></a><a class="code" href="HyperEstraier__wrap_8cxx.html#a65">00649</a> <span class="keyword">static</span> VALUE <a class="code" href="HyperEstraier__wrap_8cxx.html#a65">_mSWIG</a> = Qnil;
659 <a name="l00650"></a><a class="code" href="HyperEstraier__wrap_8cxx.html#a66">00650</a> <span class="keyword">static</span> VALUE <a class="code" href="HyperEstraier__wrap_8cxx.html#a66">_cSWIG_Pointer</a> = Qnil;
660 <a name="l00651"></a><a class="code" href="HyperEstraier__wrap_8cxx.html#a67">00651</a> <span class="keyword">static</span> VALUE <a class="code" href="HyperEstraier__wrap_8cxx.html#a67">swig_runtime_data_type_pointer</a> = Qnil;
661 <a name="l00652"></a>00652
662 <a name="l00653"></a>00653 <span class="comment">/* Initialize Ruby runtime support */</span>
663 <a name="l00654"></a>00654 <span class="keyword">static</span> <span class="keywordtype">void</span>
664 <a name="l00655"></a><a class="code" href="HyperEstraier__wrap_8cxx.html#a107">00655</a> <a class="code" href="HyperEstraier__wrap_8cxx.html#a107">SWIG_Ruby_InitRuntime</a>(<span class="keywordtype">void</span>)
665 <a name="l00656"></a>00656 {
666 <a name="l00657"></a>00657 VALUE pointer;
667 <a name="l00658"></a>00658
668 <a name="l00659"></a>00659 <span class="keywordflow">if</span> (_mSWIG == Qnil) {
669 <a name="l00660"></a>00660 _mSWIG = rb_define_module(<span class="stringliteral">"SWIG"</span>);
670 <a name="l00661"></a>00661 }
671 <a name="l00662"></a>00662
672 <a name="l00663"></a>00663 <span class="comment">/* first check if pointer already created */</span>
673 <a name="l00664"></a>00664 pointer = rb_gv_get(<span class="stringliteral">"$swig_runtime_data_type_pointer"</span> <a class="code" href="HyperEstraier__wrap_8cpp.html#a1">SWIG_RUNTIME_VERSION</a> <a class="code" href="HyperEstraier__wrap_8cpp.html#a2">SWIG_TYPE_TABLE_NAME</a>);
674 <a name="l00665"></a>00665 <span class="keywordflow">if</span> (pointer != Qnil) {
675 <a name="l00666"></a>00666 Data_Get_Struct(pointer, <a class="code" href="structswig__type__info.html">swig_type_info</a> *, <a class="code" href="HyperEstraier__wrap_8cpp.html#a68">swig_type_list_handle</a>);
676 <a name="l00667"></a>00667 } <span class="keywordflow">else</span> {
677 <a name="l00668"></a>00668 <span class="comment">/* register a new class */</span>
678 <a name="l00669"></a>00669 VALUE cl = rb_define_class(<span class="stringliteral">"swig_runtime_data"</span>, rb_cObject);
679 <a name="l00670"></a>00670 <span class="comment">/* create and store the structure pointer to a global variable */</span>
680 <a name="l00671"></a>00671 swig_runtime_data_type_pointer = Data_Wrap_Struct(cl, 0, 0, <a class="code" href="HyperEstraier__wrap_8cpp.html#a68">swig_type_list_handle</a>);
681 <a name="l00672"></a>00672 rb_define_readonly_variable(<span class="stringliteral">"$swig_runtime_data_type_pointer"</span> <a class="code" href="HyperEstraier__wrap_8cpp.html#a1">SWIG_RUNTIME_VERSION</a> SWIG_TYPE_TABLE_NAME, &amp;swig_runtime_data_type_pointer);
682 <a name="l00673"></a>00673 }
683 <a name="l00674"></a>00674 }
684 <a name="l00675"></a>00675
685 <a name="l00676"></a>00676 <span class="comment">/* Define Ruby class for C type */</span>
686 <a name="l00677"></a>00677 <span class="keyword">static</span> <span class="keywordtype">void</span>
687 <a name="l00678"></a><a class="code" href="HyperEstraier__wrap_8cxx.html#a108">00678</a> <a class="code" href="HyperEstraier__wrap_8cxx.html#a108">SWIG_Ruby_define_class</a>(<a class="code" href="structswig__type__info.html">swig_type_info</a> *type)
688 <a name="l00679"></a>00679 {
689 <a name="l00680"></a>00680 VALUE klass;
690 <a name="l00681"></a>00681 <span class="keywordtype">char</span> *klass_name = (<span class="keywordtype">char</span> *) malloc(4 + strlen(type-&gt;<a class="code" href="structswig__type__info.html#o0">name</a>) + 1);
691 <a name="l00682"></a>00682 sprintf(klass_name, <span class="stringliteral">"TYPE%s"</span>, type-&gt;<a class="code" href="structswig__type__info.html#o0">name</a>);
692 <a name="l00683"></a>00683 <span class="keywordflow">if</span> (NIL_P(_cSWIG_Pointer)) {
693 <a name="l00684"></a>00684 _cSWIG_Pointer = rb_define_class_under(_mSWIG, <span class="stringliteral">"Pointer"</span>, rb_cObject);
694 <a name="l00685"></a>00685 rb_undef_method(CLASS_OF(_cSWIG_Pointer), <span class="stringliteral">"new"</span>);
695 <a name="l00686"></a>00686 }
696 <a name="l00687"></a>00687 klass = rb_define_class_under(_mSWIG, klass_name, _cSWIG_Pointer);
697 <a name="l00688"></a>00688 free((<span class="keywordtype">void</span> *) klass_name);
698 <a name="l00689"></a>00689 }
699 <a name="l00690"></a>00690
700 <a name="l00691"></a>00691 <span class="comment">/* Create a new pointer object */</span>
701 <a name="l00692"></a>00692 <span class="keyword">static</span> VALUE
702 <a name="l00693"></a><a class="code" href="HyperEstraier__wrap_8cxx.html#a109">00693</a> <a class="code" href="HyperEstraier__wrap_8cxx.html#a109">SWIG_Ruby_NewPointerObj</a>(<span class="keywordtype">void</span> *ptr, <a class="code" href="structswig__type__info.html">swig_type_info</a> *type, <span class="keywordtype">int</span> own)
703 <a name="l00694"></a>00694 {
704 <a name="l00695"></a>00695 <span class="keywordtype">char</span> *klass_name;
705 <a name="l00696"></a>00696 <a class="code" href="structswig__class.html">swig_class</a> *sklass;
706 <a name="l00697"></a>00697 VALUE klass;
707 <a name="l00698"></a>00698 VALUE obj;
708 <a name="l00699"></a>00699
709 <a name="l00700"></a>00700 <span class="keywordflow">if</span> (!ptr)
710 <a name="l00701"></a>00701 <span class="keywordflow">return</span> Qnil;
711 <a name="l00702"></a>00702
712 <a name="l00703"></a>00703 <span class="keywordflow">if</span> (type-&gt;<a class="code" href="structswig__type__info.html#o3">clientdata</a>) {
713 <a name="l00704"></a>00704 sklass = (<a class="code" href="structswig__class.html">swig_class</a> *) type-&gt;<a class="code" href="structswig__type__info.html#o3">clientdata</a>;
714 <a name="l00705"></a>00705 obj = Data_Wrap_Struct(sklass-&gt;<a class="code" href="structswig__class.html#o0">klass</a>, <a class="code" href="HyperEstraier__wrap_8cxx.html#a11">VOIDFUNC</a>(sklass-&gt;<a class="code" href="structswig__class.html#o2">mark</a>), (own ? <a class="code" href="HyperEstraier__wrap_8cxx.html#a11">VOIDFUNC</a>(sklass-&gt;<a class="code" href="structswig__class.html#o3">destroy</a>) : 0), ptr);
715 <a name="l00706"></a>00706 } <span class="keywordflow">else</span> {
716 <a name="l00707"></a>00707 klass_name = (<span class="keywordtype">char</span> *) malloc(4 + strlen(type-&gt;<a class="code" href="structswig__type__info.html#o0">name</a>) + 1);
717 <a name="l00708"></a>00708 sprintf(klass_name, <span class="stringliteral">"TYPE%s"</span>, type-&gt;<a class="code" href="structswig__type__info.html#o0">name</a>);
718 <a name="l00709"></a>00709 klass = rb_const_get(_mSWIG, rb_intern(klass_name));
719 <a name="l00710"></a>00710 free((<span class="keywordtype">void</span> *) klass_name);
720 <a name="l00711"></a>00711 obj = Data_Wrap_Struct(klass, 0, 0, ptr);
721 <a name="l00712"></a>00712 }
722 <a name="l00713"></a>00713 rb_iv_set(obj, <span class="stringliteral">"__swigtype__"</span>, rb_str_new2(type-&gt;<a class="code" href="structswig__type__info.html#o0">name</a>));
723 <a name="l00714"></a>00714 <span class="keywordflow">return</span> obj;
724 <a name="l00715"></a>00715 }
725 <a name="l00716"></a>00716
726 <a name="l00717"></a>00717 <span class="comment">/* Create a new class instance (always owned) */</span>
727 <a name="l00718"></a>00718 <span class="keyword">static</span> VALUE
728 <a name="l00719"></a><a class="code" href="HyperEstraier__wrap_8cxx.html#a110">00719</a> <a class="code" href="HyperEstraier__wrap_8cxx.html#a110">SWIG_Ruby_NewClassInstance</a>(VALUE klass, <a class="code" href="structswig__type__info.html">swig_type_info</a> *type)
729 <a name="l00720"></a>00720 {
730 <a name="l00721"></a>00721 VALUE obj;
731 <a name="l00722"></a>00722 <a class="code" href="structswig__class.html">swig_class</a> *sklass = (<a class="code" href="structswig__class.html">swig_class</a> *) type-&gt;<a class="code" href="structswig__type__info.html#o3">clientdata</a>;
732 <a name="l00723"></a>00723 obj = Data_Wrap_Struct(klass, <a class="code" href="HyperEstraier__wrap_8cxx.html#a11">VOIDFUNC</a>(sklass-&gt;<a class="code" href="structswig__class.html#o2">mark</a>), <a class="code" href="HyperEstraier__wrap_8cxx.html#a11">VOIDFUNC</a>(sklass-&gt;<a class="code" href="structswig__class.html#o3">destroy</a>), 0);
733 <a name="l00724"></a>00724 rb_iv_set(obj, <span class="stringliteral">"__swigtype__"</span>, rb_str_new2(type-&gt;<a class="code" href="structswig__type__info.html#o0">name</a>));
734 <a name="l00725"></a>00725 <span class="keywordflow">return</span> obj;
735 <a name="l00726"></a>00726 }
736 <a name="l00727"></a>00727
737 <a name="l00728"></a>00728 <span class="comment">/* Get type mangle from class name */</span>
738 <a name="l00729"></a>00729 <span class="keyword">static</span> <a class="code" href="HyperEstraier__wrap_8cpp.html#a3">SWIGINLINE</a> <span class="keywordtype">char</span> *
739 <a name="l00730"></a><a class="code" href="HyperEstraier__wrap_8cxx.html#a111">00730</a> <a class="code" href="HyperEstraier__wrap_8cxx.html#a111">SWIG_Ruby_MangleStr</a>(VALUE obj)
740 <a name="l00731"></a>00731 {
741 <a name="l00732"></a>00732 VALUE stype = rb_iv_get(obj, <span class="stringliteral">"__swigtype__"</span>);
742 <a name="l00733"></a>00733 <span class="keywordflow">return</span> <a class="code" href="HyperEstraier__wrap_8cxx.html#a14">StringValuePtr</a>(stype);
743 <a name="l00734"></a>00734 }
744 <a name="l00735"></a>00735
745 <a name="l00736"></a>00736 <span class="comment">/* Convert a pointer value */</span>
746 <a name="l00737"></a>00737 <span class="keyword">static</span> <span class="keywordtype">int</span>
747 <a name="l00738"></a><a class="code" href="HyperEstraier__wrap_8cxx.html#a112">00738</a> <a class="code" href="HyperEstraier__wrap_8cxx.html#a112">SWIG_Ruby_ConvertPtr</a>(VALUE obj, <span class="keywordtype">void</span> **ptr, <a class="code" href="structswig__type__info.html">swig_type_info</a> *ty, <span class="keywordtype">int</span> flags)
748 <a name="l00739"></a>00739 {
749 <a name="l00740"></a>00740 <span class="keywordtype">char</span> *c;
750 <a name="l00741"></a>00741 <a class="code" href="structswig__type__info.html">swig_type_info</a> *tc;
751 <a name="l00742"></a>00742
752 <a name="l00743"></a>00743 <span class="comment">/* Grab the pointer */</span>
753 <a name="l00744"></a>00744 <span class="keywordflow">if</span> (NIL_P(obj)) {
754 <a name="l00745"></a>00745 *ptr = 0;
755 <a name="l00746"></a>00746 <span class="keywordflow">return</span> 0;
756 <a name="l00747"></a>00747 } <span class="keywordflow">else</span> {
757 <a name="l00748"></a>00748 Data_Get_Struct(obj, <span class="keywordtype">void</span>, *ptr);
758 <a name="l00749"></a>00749 }
759 <a name="l00750"></a>00750
760 <a name="l00751"></a>00751 <span class="comment">/* Do type-checking if type info was provided */</span>
761 <a name="l00752"></a>00752 <span class="keywordflow">if</span> (ty) {
762 <a name="l00753"></a>00753 <span class="keywordflow">if</span> (ty-&gt;<a class="code" href="structswig__type__info.html#o3">clientdata</a>) {
763 <a name="l00754"></a>00754 <span class="keywordflow">if</span> (rb_obj_is_kind_of(obj, ((<a class="code" href="structswig__class.html">swig_class</a> *) (ty-&gt;<a class="code" href="structswig__type__info.html#o3">clientdata</a>))-&gt;klass)) {
764 <a name="l00755"></a>00755 <span class="keywordflow">if</span> (*ptr == 0)
765 <a name="l00756"></a>00756 rb_raise(rb_eRuntimeError, <span class="stringliteral">"This %s already released"</span>, ty-&gt;<a class="code" href="structswig__type__info.html#o2">str</a>);
766 <a name="l00757"></a>00757 <span class="keywordflow">return</span> 0;
767 <a name="l00758"></a>00758 }
768 <a name="l00759"></a>00759 }
769 <a name="l00760"></a>00760 <span class="keywordflow">if</span> ((c = <a class="code" href="HyperEstraier__wrap_8cxx.html#a32">SWIG_MangleStr</a>(obj)) == NULL) {
770 <a name="l00761"></a>00761 <span class="keywordflow">if</span> (flags &amp; <a class="code" href="HyperEstraier__wrap_8cxx.html#a2">SWIG_POINTER_EXCEPTION</a>)
771 <a name="l00762"></a>00762 rb_raise(rb_eTypeError, <span class="stringliteral">"Expected %s"</span>, ty-&gt;<a class="code" href="structswig__type__info.html#o2">str</a>);
772 <a name="l00763"></a>00763 <span class="keywordflow">else</span>
773 <a name="l00764"></a>00764 <span class="keywordflow">return</span> -1;
774 <a name="l00765"></a>00765 }
775 <a name="l00766"></a>00766 tc = <a class="code" href="HyperEstraier__wrap_8cpp.html#a91">SWIG_TypeCheck</a>(c, ty);
776 <a name="l00767"></a>00767 <span class="keywordflow">if</span> (!tc) {
777 <a name="l00768"></a>00768 <span class="keywordflow">if</span> (flags &amp; <a class="code" href="HyperEstraier__wrap_8cxx.html#a2">SWIG_POINTER_EXCEPTION</a>)
778 <a name="l00769"></a>00769 rb_raise(rb_eTypeError, <span class="stringliteral">"Expected %s"</span>, ty-&gt;<a class="code" href="structswig__type__info.html#o2">str</a>);
779 <a name="l00770"></a>00770 <span class="keywordflow">else</span>
780 <a name="l00771"></a>00771 <span class="keywordflow">return</span> -1;
781 <a name="l00772"></a>00772 }
782 <a name="l00773"></a>00773 *ptr = <a class="code" href="HyperEstraier__wrap_8cpp.html#a92">SWIG_TypeCast</a>(tc, *ptr);
783 <a name="l00774"></a>00774 }
784 <a name="l00775"></a>00775 <span class="keywordflow">return</span> 0;
785 <a name="l00776"></a>00776 }
786 <a name="l00777"></a>00777
787 <a name="l00778"></a>00778 <span class="comment">/* Convert a pointer value, signal an exception on a type mismatch */</span>
788 <a name="l00779"></a>00779 <span class="keyword">static</span> <a class="code" href="HyperEstraier__wrap_8cpp.html#a3">SWIGINLINE</a> <span class="keywordtype">void</span> *
789 <a name="l00780"></a><a class="code" href="HyperEstraier__wrap_8cxx.html#a113">00780</a> <a class="code" href="HyperEstraier__wrap_8cxx.html#a113">SWIG_Ruby_MustGetPtr</a>(VALUE obj, <a class="code" href="structswig__type__info.html">swig_type_info</a> *ty, <span class="keywordtype">int</span> argnum, <span class="keywordtype">int</span> flags)
790 <a name="l00781"></a>00781 {
791 <a name="l00782"></a>00782 <span class="keywordtype">void</span> *result;
792 <a name="l00783"></a>00783 <a class="code" href="HyperEstraier__wrap_8cpp.html#a19">SWIG_ConvertPtr</a>(obj, &amp;result, ty, flags | <a class="code" href="HyperEstraier__wrap_8cxx.html#a2">SWIG_POINTER_EXCEPTION</a>);
793 <a name="l00784"></a>00784 <span class="keywordflow">return</span> result;
794 <a name="l00785"></a>00785 }
795 <a name="l00786"></a>00786
796 <a name="l00787"></a>00787 <span class="comment">/* Check convert */</span>
797 <a name="l00788"></a>00788 <span class="keyword">static</span> <a class="code" href="HyperEstraier__wrap_8cpp.html#a3">SWIGINLINE</a> <span class="keywordtype">int</span>
798 <a name="l00789"></a><a class="code" href="HyperEstraier__wrap_8cxx.html#a114">00789</a> <a class="code" href="HyperEstraier__wrap_8cxx.html#a114">SWIG_Ruby_CheckConvert</a>(VALUE obj, <a class="code" href="structswig__type__info.html">swig_type_info</a> *ty)
799 <a name="l00790"></a>00790 {
800 <a name="l00791"></a>00791 <span class="keywordtype">char</span> *c = <a class="code" href="HyperEstraier__wrap_8cxx.html#a32">SWIG_MangleStr</a>(obj);
801 <a name="l00792"></a>00792 <span class="keywordflow">if</span> (!c)
802 <a name="l00793"></a>00793 <span class="keywordflow">return</span> 0;
803 <a name="l00794"></a>00794 <span class="keywordflow">return</span> <a class="code" href="HyperEstraier__wrap_8cpp.html#a91">SWIG_TypeCheck</a>(c,ty) != 0;
804 <a name="l00795"></a>00795 }
805 <a name="l00796"></a>00796
806 <a name="l00797"></a>00797 <span class="keyword">static</span> VALUE
807 <a name="l00798"></a><a class="code" href="HyperEstraier__wrap_8cxx.html#a115">00798</a> <a class="code" href="HyperEstraier__wrap_8cxx.html#a115">SWIG_Ruby_NewPackedObj</a>(<span class="keywordtype">void</span> *ptr, <span class="keywordtype">int</span> sz, <a class="code" href="structswig__type__info.html">swig_type_info</a> *type) {
808 <a name="l00799"></a>00799 <span class="keywordtype">char</span> result[1024];
809 <a name="l00800"></a>00800 <span class="keywordtype">char</span> *r = result;
810 <a name="l00801"></a>00801 <span class="keywordflow">if</span> ((2*sz + 1 + strlen(type-&gt;<a class="code" href="structswig__type__info.html#o0">name</a>)) &gt; 1000) <span class="keywordflow">return</span> 0;
811 <a name="l00802"></a>00802 *(r++) = <span class="charliteral">'_'</span>;
812 <a name="l00803"></a>00803 r = <a class="code" href="HyperEstraier__wrap_8cpp.html#a98">SWIG_PackData</a>(r, ptr, sz);
813 <a name="l00804"></a>00804 strcpy(r, type-&gt;<a class="code" href="structswig__type__info.html#o0">name</a>);
814 <a name="l00805"></a>00805 <span class="keywordflow">return</span> rb_str_new2(result);
815 <a name="l00806"></a>00806 }
816 <a name="l00807"></a>00807
817 <a name="l00808"></a>00808 <span class="comment">/* Convert a packed value value */</span>
818 <a name="l00809"></a>00809 <span class="keyword">static</span> <span class="keywordtype">void</span>
819 <a name="l00810"></a><a class="code" href="HyperEstraier__wrap_8cxx.html#a116">00810</a> <a class="code" href="HyperEstraier__wrap_8cxx.html#a116">SWIG_Ruby_ConvertPacked</a>(VALUE obj, <span class="keywordtype">void</span> *ptr, <span class="keywordtype">int</span> sz, <a class="code" href="structswig__type__info.html">swig_type_info</a> *ty, <span class="keywordtype">int</span> flags) {
820 <a name="l00811"></a>00811 <a class="code" href="structswig__type__info.html">swig_type_info</a> *tc;
821 <a name="l00812"></a>00812 <span class="keyword">const</span> <span class="keywordtype">char</span> *c;
822 <a name="l00813"></a>00813
823 <a name="l00814"></a>00814 <span class="keywordflow">if</span> (TYPE(obj) != T_STRING) <span class="keywordflow">goto</span> type_error;
824 <a name="l00815"></a>00815 c = <a class="code" href="HyperEstraier__wrap_8cxx.html#a14">StringValuePtr</a>(obj);
825 <a name="l00816"></a>00816 <span class="comment">/* Pointer values must start with leading underscore */</span>
826 <a name="l00817"></a>00817 <span class="keywordflow">if</span> (*c != <span class="charliteral">'_'</span>) <span class="keywordflow">goto</span> type_error;
827 <a name="l00818"></a>00818 c++;
828 <a name="l00819"></a>00819 c = <a class="code" href="HyperEstraier__wrap_8cpp.html#a99">SWIG_UnpackData</a>(c, ptr, sz);
829 <a name="l00820"></a>00820 <span class="keywordflow">if</span> (ty) {
830 <a name="l00821"></a>00821 tc = <a class="code" href="HyperEstraier__wrap_8cpp.html#a91">SWIG_TypeCheck</a>(c, ty);
831 <a name="l00822"></a>00822 <span class="keywordflow">if</span> (!tc) <span class="keywordflow">goto</span> type_error;
832 <a name="l00823"></a>00823 }
833 <a name="l00824"></a>00824 <span class="keywordflow">return</span>;
834 <a name="l00825"></a>00825
835 <a name="l00826"></a>00826 type_error:
836 <a name="l00827"></a>00827
837 <a name="l00828"></a>00828 <span class="keywordflow">if</span> (flags) {
838 <a name="l00829"></a>00829 <span class="keywordflow">if</span> (ty) {
839 <a name="l00830"></a>00830 rb_raise(rb_eTypeError, <span class="stringliteral">"Type error. Expected %s"</span>, ty-&gt;name);
840 <a name="l00831"></a>00831 } <span class="keywordflow">else</span> {
841 <a name="l00832"></a>00832 rb_raise(rb_eTypeError, <span class="stringliteral">"Expected a pointer"</span>);
842 <a name="l00833"></a>00833 }
843 <a name="l00834"></a>00834 }
844 <a name="l00835"></a>00835 }
845 <a name="l00836"></a>00836
846 <a name="l00837"></a>00837 <span class="preprocessor">#ifdef __cplusplus</span>
847 <a name="l00838"></a>00838 <span class="preprocessor"></span>}
848 <a name="l00839"></a>00839 <span class="preprocessor">#endif</span>
849 <a name="l00840"></a>00840 <span class="preprocessor"></span>
850 <a name="l00841"></a>00841
851 <a name="l00842"></a>00842
852 <a name="l00843"></a>00843 <span class="comment">/* -------- TYPES TABLE (BEGIN) -------- */</span>
853 <a name="l00844"></a>00844
854 <a name="l00845"></a><a class="code" href="HyperEstraier__wrap_8cxx.html#a36">00845</a> <span class="preprocessor">#define SWIGTYPE_p_estraier__Condition swig_types[0] </span>
855 <a name="l00846"></a><a class="code" href="HyperEstraier__wrap_8cxx.html#a37">00846</a> <span class="preprocessor"></span><span class="preprocessor">#define SWIGTYPE_p_ESTCOND swig_types[1] </span>
856 <a name="l00847"></a><a class="code" href="HyperEstraier__wrap_8cxx.html#a38">00847</a> <span class="preprocessor"></span><span class="preprocessor">#define SWIGTYPE_p_estraier__Database swig_types[2] </span>
857 <a name="l00848"></a><a class="code" href="HyperEstraier__wrap_8cxx.html#a39">00848</a> <span class="preprocessor"></span><span class="preprocessor">#define SWIGTYPE_p_unsigned_long swig_types[3] </span>
858 <a name="l00849"></a><a class="code" href="HyperEstraier__wrap_8cxx.html#a40">00849</a> <span class="preprocessor"></span><span class="preprocessor">#define SWIGTYPE_p_ESTDOC swig_types[4] </span>
859 <a name="l00850"></a><a class="code" href="HyperEstraier__wrap_8cxx.html#a41">00850</a> <span class="preprocessor"></span><span class="preprocessor">#define SWIGTYPE_p_std__vectorTstd__string_t swig_types[5] </span>
860 <a name="l00851"></a><a class="code" href="HyperEstraier__wrap_8cxx.html#a42">00851</a> <span class="preprocessor"></span><span class="preprocessor">#define SWIGTYPE_p_std__mapTstd__string_std__string_t swig_types[6] </span>
861 <a name="l00852"></a><a class="code" href="HyperEstraier__wrap_8cxx.html#a43">00852</a> <span class="preprocessor"></span><span class="preprocessor">#define SWIGTYPE_p_std__vectorTint_t swig_types[7] </span>
862 <a name="l00853"></a><a class="code" href="HyperEstraier__wrap_8cxx.html#a44">00853</a> <span class="preprocessor"></span><span class="preprocessor">#define SWIGTYPE_p_estraier__Document swig_types[8] </span>
863 <a name="l00854"></a><a class="code" href="HyperEstraier__wrap_8cxx.html#a68">00854</a> <span class="preprocessor"></span><span class="keyword">static</span> <a class="code" href="structswig__type__info.html">swig_type_info</a> *<a class="code" href="HyperEstraier__wrap_8cpp.html#a73">swig_types</a>[10];
864 <a name="l00855"></a>00855
865 <a name="l00856"></a>00856 <span class="comment">/* -------- TYPES TABLE (END) -------- */</span>
866 <a name="l00857"></a>00857
867 <a name="l00858"></a><a class="code" href="HyperEstraier__wrap_8cxx.html#a45">00858</a> <span class="preprocessor">#define SWIG_init Init_HyperEstraier</span>
868 <a name="l00859"></a><a class="code" href="HyperEstraier__wrap_8cxx.html#a46">00859</a> <span class="preprocessor"></span><span class="preprocessor">#define SWIG_name "HyperEstraier"</span>
869 <a name="l00860"></a>00860 <span class="preprocessor"></span>
870 <a name="l00861"></a><a class="code" href="HyperEstraier__wrap_8cxx.html#a69">00861</a> <span class="keyword">static</span> VALUE <a class="code" href="HyperEstraier__wrap_8cxx.html#a69">mHyperEstraier</a>;
871 <a name="l00862"></a>00862
872 <a name="l00863"></a><a class="code" href="HyperEstraier__wrap_8cxx.html#a117">00863</a> <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="HyperEstraier__wrap_8cxx.html#a117">SWIG_AsVal</a>(VALUE obj, <span class="keywordtype">int</span> *val)
873 <a name="l00864"></a>00864 {
874 <a name="l00865"></a>00865 *val = (int) NUM2INT(obj);
875 <a name="l00866"></a>00866 }
876 <a name="l00867"></a>00867
877 <a name="l00868"></a>00868
878 <a name="l00869"></a><a class="code" href="HyperEstraier__wrap_8cxx.html#a47">00869</a> <span class="preprocessor">#define SWIG_MemoryError 1</span>
879 <a name="l00870"></a><a class="code" href="HyperEstraier__wrap_8cxx.html#a48">00870</a> <span class="preprocessor"></span><span class="preprocessor">#define SWIG_IOError 2</span>
880 <a name="l00871"></a><a class="code" href="HyperEstraier__wrap_8cxx.html#a49">00871</a> <span class="preprocessor"></span><span class="preprocessor">#define SWIG_RuntimeError 3</span>
881 <a name="l00872"></a><a class="code" href="HyperEstraier__wrap_8cxx.html#a50">00872</a> <span class="preprocessor"></span><span class="preprocessor">#define SWIG_IndexError 4</span>
882 <a name="l00873"></a><a class="code" href="HyperEstraier__wrap_8cxx.html#a51">00873</a> <span class="preprocessor"></span><span class="preprocessor">#define SWIG_TypeError 5</span>
883 <a name="l00874"></a><a class="code" href="HyperEstraier__wrap_8cxx.html#a52">00874</a> <span class="preprocessor"></span><span class="preprocessor">#define SWIG_DivisionByZero 6</span>
884 <a name="l00875"></a><a class="code" href="HyperEstraier__wrap_8cxx.html#a53">00875</a> <span class="preprocessor"></span><span class="preprocessor">#define SWIG_OverflowError 7</span>
885 <a name="l00876"></a><a class="code" href="HyperEstraier__wrap_8cxx.html#a54">00876</a> <span class="preprocessor"></span><span class="preprocessor">#define SWIG_SyntaxError 8</span>
886 <a name="l00877"></a><a class="code" href="HyperEstraier__wrap_8cxx.html#a55">00877</a> <span class="preprocessor"></span><span class="preprocessor">#define SWIG_ValueError 9</span>
887 <a name="l00878"></a><a class="code" href="HyperEstraier__wrap_8cxx.html#a56">00878</a> <span class="preprocessor"></span><span class="preprocessor">#define SWIG_SystemError 10</span>
888 <a name="l00879"></a><a class="code" href="HyperEstraier__wrap_8cxx.html#a57">00879</a> <span class="preprocessor"></span><span class="preprocessor">#define SWIG_UnknownError 99</span>
889 <a name="l00880"></a>00880 <span class="preprocessor"></span>
890 <a name="l00881"></a>00881
891 <a name="l00882"></a><a class="code" href="HyperEstraier__wrap_8cxx.html#a118">00882</a> <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="HyperEstraier__wrap_8cxx.html#a118">SWIG_exception_</a>(<span class="keywordtype">int</span> code, <span class="keyword">const</span> <span class="keywordtype">char</span> *msg) {
892 <a name="l00883"></a>00883 <span class="keywordflow">switch</span> (code) {
893 <a name="l00884"></a>00884 <span class="keywordflow">case</span> <a class="code" href="HyperEstraier__wrap_8cpp.html#a51">SWIG_MemoryError</a>:
894 <a name="l00885"></a>00885 rb_raise(rb_eNoMemError, msg);
895 <a name="l00886"></a>00886 <span class="keywordflow">break</span>;
896 <a name="l00887"></a>00887 <span class="keywordflow">case</span> <a class="code" href="HyperEstraier__wrap_8cpp.html#a52">SWIG_IOError</a>:
897 <a name="l00888"></a>00888 rb_raise(rb_eIOError, msg);
898 <a name="l00889"></a>00889 <span class="keywordflow">break</span>;
899 <a name="l00890"></a>00890 <span class="keywordflow">case</span> <a class="code" href="HyperEstraier__wrap_8cpp.html#a53">SWIG_RuntimeError</a>:
900 <a name="l00891"></a>00891 rb_raise(rb_eRuntimeError, msg);
901 <a name="l00892"></a>00892 <span class="keywordflow">break</span>;
902 <a name="l00893"></a>00893 <span class="keywordflow">case</span> <a class="code" href="HyperEstraier__wrap_8cpp.html#a54">SWIG_IndexError</a>:
903 <a name="l00894"></a>00894 rb_raise(rb_eIndexError, msg);
904 <a name="l00895"></a>00895 <span class="keywordflow">break</span>;
905 <a name="l00896"></a>00896 <span class="keywordflow">case</span> <a class="code" href="HyperEstraier__wrap_8cpp.html#a55">SWIG_TypeError</a>:
906 <a name="l00897"></a>00897 rb_raise(rb_eTypeError, msg);
907 <a name="l00898"></a>00898 <span class="keywordflow">break</span>;
908 <a name="l00899"></a>00899 <span class="keywordflow">case</span> <a class="code" href="HyperEstraier__wrap_8cpp.html#a56">SWIG_DivisionByZero</a>:
909 <a name="l00900"></a>00900 rb_raise(rb_eZeroDivError, msg);
910 <a name="l00901"></a>00901 <span class="keywordflow">break</span>;
911 <a name="l00902"></a>00902 <span class="keywordflow">case</span> <a class="code" href="HyperEstraier__wrap_8cpp.html#a57">SWIG_OverflowError</a>:
912 <a name="l00903"></a>00903 rb_raise(rb_eRangeError, msg);
913 <a name="l00904"></a>00904 <span class="keywordflow">break</span>;
914 <a name="l00905"></a>00905 <span class="keywordflow">case</span> <a class="code" href="HyperEstraier__wrap_8cpp.html#a58">SWIG_SyntaxError</a>:
915 <a name="l00906"></a>00906 rb_raise(rb_eSyntaxError, msg);
916 <a name="l00907"></a>00907 <span class="keywordflow">break</span>;
917 <a name="l00908"></a>00908 <span class="keywordflow">case</span> <a class="code" href="HyperEstraier__wrap_8cpp.html#a59">SWIG_ValueError</a>:
918 <a name="l00909"></a>00909 rb_raise(rb_eArgError, msg);
919 <a name="l00910"></a>00910 <span class="keywordflow">break</span>;
920 <a name="l00911"></a>00911 <span class="keywordflow">case</span> <a class="code" href="HyperEstraier__wrap_8cpp.html#a60">SWIG_SystemError</a>:
921 <a name="l00912"></a>00912 rb_raise(rb_eFatal, msg);
922 <a name="l00913"></a>00913 <span class="keywordflow">break</span>;
923 <a name="l00914"></a>00914 <span class="keywordflow">case</span> <a class="code" href="HyperEstraier__wrap_8cpp.html#a61">SWIG_UnknownError</a>:
924 <a name="l00915"></a>00915 rb_raise(rb_eRuntimeError, msg);
925 <a name="l00916"></a>00916 <span class="keywordflow">break</span>;
926 <a name="l00917"></a>00917 <span class="keywordflow">default</span>:
927 <a name="l00918"></a>00918 <span class="keywordflow">break</span>;
928 <a name="l00919"></a>00919 }
929 <a name="l00920"></a>00920 }
930 <a name="l00921"></a>00921
931 <a name="l00922"></a><a class="code" href="HyperEstraier__wrap_8cxx.html#a58">00922</a> <span class="preprocessor">#define SWIG_exception(a, b) SWIG_exception_((a), (b))</span>
932 <a name="l00923"></a>00923 <span class="preprocessor"></span>
933 <a name="l00924"></a>00924
934 <a name="l00925"></a>00925 <span class="preprocessor">#include &lt;stdexcept&gt;</span>
935 <a name="l00926"></a>00926
936 <a name="l00927"></a>00927
937 <a name="l00928"></a>00928 <span class="preprocessor">#include &lt;string&gt;</span>
938 <a name="l00929"></a>00929
939 <a name="l00930"></a><a class="code" href="HyperEstraier__wrap_8cxx.html#a59">00930</a> <span class="preprocessor">#define SWIG_FLOAT_P(x) ((TYPE(x) == T_FLOAT) || FIXNUM_P(x))</span>
940 <a name="l00931"></a>00931 <span class="preprocessor"></span>
941 <a name="l00932"></a><a class="code" href="HyperEstraier__wrap_8cxx.html#a119">00932</a> <span class="keywordtype">bool</span> <a class="code" href="HyperEstraier__wrap_8cxx.html#a119">SWIG_BOOL_P</a>(VALUE) {
942 <a name="l00933"></a>00933 <span class="comment">// dummy test, RTEST should take care of everything</span>
943 <a name="l00934"></a>00934 <span class="keywordflow">return</span> <span class="keyword">true</span>;
944 <a name="l00935"></a>00935 }
945 <a name="l00936"></a><a class="code" href="HyperEstraier__wrap_8cxx.html#a120">00936</a> <span class="keywordtype">bool</span> <a class="code" href="HyperEstraier__wrap_8cxx.html#a120">SWIG_RB2BOOL</a>(VALUE x) {
946 <a name="l00937"></a>00937 <span class="keywordflow">return</span> RTEST(x);
947 <a name="l00938"></a>00938 }
948 <a name="l00939"></a><a class="code" href="HyperEstraier__wrap_8cxx.html#a121">00939</a> VALUE <a class="code" href="HyperEstraier__wrap_8cxx.html#a121">SWIG_BOOL2RB</a>(<span class="keywordtype">bool</span> b) {
949 <a name="l00940"></a>00940 <span class="keywordflow">return</span> b ? Qtrue : Qfalse;
950 <a name="l00941"></a>00941 }
951 <a name="l00942"></a><a class="code" href="HyperEstraier__wrap_8cxx.html#a122">00942</a> <span class="keywordtype">double</span> <a class="code" href="HyperEstraier__wrap_8cxx.html#a122">SWIG_NUM2DBL</a>(VALUE x) {
952 <a name="l00943"></a>00943 <span class="keywordflow">return</span> (FIXNUM_P(x) ? FIX2INT(x) : NUM2DBL(x));
953 <a name="l00944"></a>00944 }
954 <a name="l00945"></a><a class="code" href="HyperEstraier__wrap_8cxx.html#a123">00945</a> <span class="keywordtype">bool</span> <a class="code" href="HyperEstraier__wrap_8cxx.html#a123">SWIG_STRING_P</a>(VALUE x) {
955 <a name="l00946"></a>00946 <span class="keywordflow">return</span> TYPE(x) == T_STRING;
956 <a name="l00947"></a>00947 }
957 <a name="l00948"></a><a class="code" href="HyperEstraier__wrap_8cxx.html#a124">00948</a> std::string <a class="code" href="HyperEstraier__wrap_8cxx.html#a124">SWIG_RB2STR</a>(VALUE x) {
958 <a name="l00949"></a>00949 <span class="keywordflow">return</span> std::string(<a class="code" href="HyperEstraier__wrap_8cxx.html#a14">StringValuePtr</a>(x));
959 <a name="l00950"></a>00950 }
960 <a name="l00951"></a><a class="code" href="HyperEstraier__wrap_8cxx.html#a125">00951</a> VALUE <a class="code" href="HyperEstraier__wrap_8cxx.html#a125">SWIG_STR2RB</a>(<span class="keyword">const</span> std::string&amp; s) {
961 <a name="l00952"></a>00952 <span class="keywordflow">return</span> rb_str_new2(s.c_str());
962 <a name="l00953"></a>00953 }
963 <a name="l00954"></a>00954
964 <a name="l00955"></a>00955
965 <a name="l00956"></a>00956 <span class="preprocessor">#include &lt;string&gt;</span>
966 <a name="l00957"></a>00957
967 <a name="l00958"></a>00958
968 <a name="l00959"></a>00959 <span class="preprocessor">#include &lt;vector&gt;</span>
969 <a name="l00960"></a>00960 <span class="preprocessor">#include &lt;algorithm&gt;</span>
970 <a name="l00961"></a>00961 <span class="preprocessor">#include &lt;stdexcept&gt;</span>
971 <a name="l00962"></a>00962
972 <a name="l00963"></a>00963
973 <a name="l00964"></a>00964 <span class="preprocessor">#include &lt;map&gt;</span>
974 <a name="l00965"></a>00965 <span class="preprocessor">#include &lt;algorithm&gt;</span>
975 <a name="l00966"></a>00966 <span class="preprocessor">#include &lt;stdexcept&gt;</span>
976 <a name="l00967"></a>00967
977 <a name="l00968"></a>00968
978 <a name="l00969"></a>00969 <span class="preprocessor">#include &lt;utility&gt;</span>
979 <a name="l00970"></a>00970
980 <a name="l00971"></a><a class="code" href="HyperEstraier__wrap_8cxx.html#a126">00971</a> <span class="keyword">static</span> std::string <a class="code" href="HyperEstraier__wrap_8cpp.html#a126">std_vector_Sl_std_string_Sg__pop</a>(std::vector&lt;std::string &gt; *<span class="keyword">self</span>){
981 <a name="l00972"></a>00972 <span class="keywordflow">if</span> (self-&gt;size() == 0)
982 <a name="l00973"></a>00973 <span class="keywordflow">throw</span> std::out_of_range(<span class="stringliteral">"pop from empty vector"</span>);
983 <a name="l00974"></a>00974 std::string x = <span class="keyword">self</span>-&gt;back();
984 <a name="l00975"></a>00975 <span class="keyword">self</span>-&gt;pop_back();
985 <a name="l00976"></a>00976 <span class="keywordflow">return</span> x;
986 <a name="l00977"></a>00977 }
987 <a name="l00978"></a><a class="code" href="HyperEstraier__wrap_8cxx.html#a127">00978</a> <span class="keyword">static</span> std::string <a class="code" href="HyperEstraier__wrap_8cxx.html#a127">std_vector_Sl_std_string_Sg____getitem__</a>(std::vector&lt;std::string &gt; *<span class="keyword">self</span>,<span class="keywordtype">int</span> i){
988 <a name="l00979"></a>00979 <span class="keywordtype">int</span> size = int(self-&gt;size());
989 <a name="l00980"></a>00980 <span class="keywordflow">if</span> (i&lt;0) i += size;
990 <a name="l00981"></a>00981 <span class="keywordflow">if</span> (i&gt;=0 &amp;&amp; i&lt;size)
991 <a name="l00982"></a>00982 <span class="keywordflow">return</span> (*<span class="keyword">self</span>)[i];
992 <a name="l00983"></a>00983 <span class="keywordflow">else</span>
993 <a name="l00984"></a>00984 <span class="keywordflow">throw</span> std::out_of_range(<span class="stringliteral">"vector index out of range"</span>);
994 <a name="l00985"></a>00985 }
995 <a name="l00986"></a><a class="code" href="HyperEstraier__wrap_8cxx.html#a128">00986</a> <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="HyperEstraier__wrap_8cxx.html#a128">std_vector_Sl_std_string_Sg____setitem__</a>(std::vector&lt;std::string &gt; *<span class="keyword">self</span>,<span class="keywordtype">int</span> i,std::string x){
996 <a name="l00987"></a>00987 <span class="keywordtype">int</span> size = int(self-&gt;size());
997 <a name="l00988"></a>00988 <span class="keywordflow">if</span> (i&lt;0) i+= size;
998 <a name="l00989"></a>00989 <span class="keywordflow">if</span> (i&gt;=0 &amp;&amp; i&lt;size)
999 <a name="l00990"></a>00990 (*self)[i] = x;
1000 <a name="l00991"></a>00991 <span class="keywordflow">else</span>
1001 <a name="l00992"></a>00992 <span class="keywordflow">throw</span> std::out_of_range(<span class="stringliteral">"vector index out of range"</span>);
1002 <a name="l00993"></a>00993 }
1003 <a name="l00994"></a><a class="code" href="HyperEstraier__wrap_8cxx.html#a129">00994</a> <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="HyperEstraier__wrap_8cxx.html#a129">std_vector_Sl_std_string_Sg__each</a>(std::vector&lt;std::string &gt; *<span class="keyword">self</span>){
1004 <a name="l00995"></a>00995 <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i=0; i&lt;self-&gt;size(); i++)
1005 <a name="l00996"></a>00996 rb_yield(<a class="code" href="HyperEstraier__wrap_8cxx.html#a125">SWIG_STR2RB</a>((*<span class="keyword">self</span>)[i]));
1006 <a name="l00997"></a>00997 }
1007 <a name="l00998"></a>00998
1008 <a name="l00999"></a><a class="code" href="HyperEstraier__wrap_8cxx.html#a70">00999</a> <a class="code" href="structswig__class.html">swig_class</a> <a class="code" href="HyperEstraier__wrap_8cxx.html#a70">cStrVector</a>;
1009 <a name="l01000"></a>01000 <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="HyperEstraier__wrap_8cxx.html#a130">free_std_vector_Sl_std_string_Sg_</a>(std::vector&lt;std::string &gt; *);
1010 <a name="l01001"></a><a class="code" href="HyperEstraier__wrap_8cxx.html#a131">01001</a> <span class="keyword">static</span> <span class="keywordtype">int</span> <a class="code" href="HyperEstraier__wrap_8cpp.html#a129">std_vector_Sl_int_Sg__pop</a>(std::vector&lt;int &gt; *<span class="keyword">self</span>){
1011 <a name="l01002"></a>01002 <span class="keywordflow">if</span> (self-&gt;size() == 0)
1012 <a name="l01003"></a>01003 <span class="keywordflow">throw</span> std::out_of_range(<span class="stringliteral">"pop from empty vector"</span>);
1013 <a name="l01004"></a>01004 <span class="keywordtype">int</span> x = <span class="keyword">self</span>-&gt;back();
1014 <a name="l01005"></a>01005 <span class="keyword">self</span>-&gt;pop_back();
1015 <a name="l01006"></a>01006 <span class="keywordflow">return</span> x;
1016 <a name="l01007"></a>01007 }
1017 <a name="l01008"></a><a class="code" href="HyperEstraier__wrap_8cxx.html#a132">01008</a> <span class="keyword">static</span> <span class="keywordtype">int</span> <a class="code" href="HyperEstraier__wrap_8cxx.html#a132">std_vector_Sl_int_Sg____getitem__</a>(std::vector&lt;int &gt; *<span class="keyword">self</span>,<span class="keywordtype">int</span> i){
1018 <a name="l01009"></a>01009 <span class="keywordtype">int</span> size = int(self-&gt;size());
1019 <a name="l01010"></a>01010 <span class="keywordflow">if</span> (i&lt;0) i += size;
1020 <a name="l01011"></a>01011 <span class="keywordflow">if</span> (i&gt;=0 &amp;&amp; i&lt;size)
1021 <a name="l01012"></a>01012 <span class="keywordflow">return</span> (*<span class="keyword">self</span>)[i];
1022 <a name="l01013"></a>01013 <span class="keywordflow">else</span>
1023 <a name="l01014"></a>01014 <span class="keywordflow">throw</span> std::out_of_range(<span class="stringliteral">"vector index out of range"</span>);
1024 <a name="l01015"></a>01015 }
1025 <a name="l01016"></a><a class="code" href="HyperEstraier__wrap_8cxx.html#a133">01016</a> <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="HyperEstraier__wrap_8cxx.html#a133">std_vector_Sl_int_Sg____setitem__</a>(std::vector&lt;int &gt; *<span class="keyword">self</span>,<span class="keywordtype">int</span> i,<span class="keywordtype">int</span> x){
1026 <a name="l01017"></a>01017 <span class="keywordtype">int</span> size = int(self-&gt;size());
1027 <a name="l01018"></a>01018 <span class="keywordflow">if</span> (i&lt;0) i+= size;
1028 <a name="l01019"></a>01019 <span class="keywordflow">if</span> (i&gt;=0 &amp;&amp; i&lt;size)
1029 <a name="l01020"></a>01020 (*self)[i] = x;
1030 <a name="l01021"></a>01021 <span class="keywordflow">else</span>
1031 <a name="l01022"></a>01022 <span class="keywordflow">throw</span> std::out_of_range(<span class="stringliteral">"vector index out of range"</span>);
1032 <a name="l01023"></a>01023 }
1033 <a name="l01024"></a><a class="code" href="HyperEstraier__wrap_8cxx.html#a134">01024</a> <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="HyperEstraier__wrap_8cxx.html#a134">std_vector_Sl_int_Sg__each</a>(std::vector&lt;int &gt; *<span class="keyword">self</span>){
1034 <a name="l01025"></a>01025 <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i=0; i&lt;self-&gt;size(); i++)
1035 <a name="l01026"></a>01026 rb_yield(INT2NUM((*<span class="keyword">self</span>)[i]));
1036 <a name="l01027"></a>01027 }
1037 <a name="l01028"></a>01028
1038 <a name="l01029"></a><a class="code" href="HyperEstraier__wrap_8cxx.html#a71">01029</a> <a class="code" href="structswig__class.html">swig_class</a> <a class="code" href="HyperEstraier__wrap_8cxx.html#a71">cIntVector</a>;
1039 <a name="l01030"