blib/lib/Math/GSL/Interp.pm untested

filter: Statementstmt 0.0% 0 / 154 Branchbran 0.0% 0 / 16 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 19 Podpod 0.0% 0 / 15 totaltotal 0.0% 0 / 204 CC 9 SCAR 20.7
CC
9
Cov
0%
DESTROY
20.0
DESTROY
20.0
new
6.0
CRAP 7.9
1 # This file was automatically generated by SWIG (https://www.swig.org).
2 # Version 4.2.0
3 #
4 # Do not make changes to this file unless you know what you are doing - modify
5 # the SWIG interface file instead.
6  
7 package Math::GSL::Interp;
8 use base qw(Exporter);
9 use base qw(DynaLoader);
10 package Math::GSL::Interpc;
11 bootstrap Math::GSL::Interp;
12 package Math::GSL::Interp;
13 @EXPORT = qw();
14  
15 # ---------- BASE METHODS -------------
16  
17 package Math::GSL::Interp;
18  
19 sub TIEHASH {
20 my ($classname,$obj) = @_;
21 return bless $obj, $classname;
22 }
23  
24 sub CLEAR { }
25  
26 sub FIRSTKEY { }
27  
28 sub NEXTKEY { }
29  
30 sub FETCH {
31 my ($self,$field) = @_;
32 my $member_func = "swig_${field}_get";
33 $self->$member_func();
34 }
35  
36 sub STORE {
37 my ($self,$field,$newval) = @_;
38 my $member_func = "swig_${field}_set";
39 $self->$member_func($newval);
40 }
41  
42 sub this {
43 my $ptr = shift;
44 return tied(%$ptr);
45 }
46  
47  
48 # ------- FUNCTION WRAPPERS --------
49  
50 package Math::GSL::Interp;
51  
52 *gsl_error = *Math::GSL::Interpc::gsl_error;
53 *gsl_stream_printf = *Math::GSL::Interpc::gsl_stream_printf;
54 *gsl_strerror = *Math::GSL::Interpc::gsl_strerror;
55 *gsl_set_error_handler = *Math::GSL::Interpc::gsl_set_error_handler;
56 *gsl_set_error_handler_off = *Math::GSL::Interpc::gsl_set_error_handler_off;
57 *gsl_set_stream_handler = *Math::GSL::Interpc::gsl_set_stream_handler;
58 *gsl_set_stream = *Math::GSL::Interpc::gsl_set_stream;
59 *gsl_interp_accel_alloc = *Math::GSL::Interpc::gsl_interp_accel_alloc;
60 *gsl_interp_accel_reset = *Math::GSL::Interpc::gsl_interp_accel_reset;
61 *gsl_interp_accel_free = *Math::GSL::Interpc::gsl_interp_accel_free;
62 *gsl_interp_alloc = *Math::GSL::Interpc::gsl_interp_alloc;
63 *gsl_interp_init = *Math::GSL::Interpc::gsl_interp_init;
64 *gsl_interp_name = *Math::GSL::Interpc::gsl_interp_name;
65 *gsl_interp_min_size = *Math::GSL::Interpc::gsl_interp_min_size;
66 *gsl_interp_type_min_size = *Math::GSL::Interpc::gsl_interp_type_min_size;
67 *gsl_interp_eval_e = *Math::GSL::Interpc::gsl_interp_eval_e;
68 *gsl_interp_eval = *Math::GSL::Interpc::gsl_interp_eval;
69 *gsl_interp_eval_deriv_e = *Math::GSL::Interpc::gsl_interp_eval_deriv_e;
70 *gsl_interp_eval_deriv = *Math::GSL::Interpc::gsl_interp_eval_deriv;
71 *gsl_interp_eval_deriv2_e = *Math::GSL::Interpc::gsl_interp_eval_deriv2_e;
72 *gsl_interp_eval_deriv2 = *Math::GSL::Interpc::gsl_interp_eval_deriv2;
73 *gsl_interp_eval_integ_e = *Math::GSL::Interpc::gsl_interp_eval_integ_e;
74 *gsl_interp_eval_integ = *Math::GSL::Interpc::gsl_interp_eval_integ;
75 *gsl_interp_free = *Math::GSL::Interpc::gsl_interp_free;
76 *gsl_interp_bsearch = *Math::GSL::Interpc::gsl_interp_bsearch;
77 *gsl_interp_accel_find = *Math::GSL::Interpc::gsl_interp_accel_find;
78  
79 ############# Class : Math::GSL::Interp::gsl_interp_accel ##############
80  
81 package Math::GSL::Interp::gsl_interp_accel;
82 use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS);
83 @ISA = qw( Math::GSL::Interp );
84 %OWNER = ();
85 %ITERATORS = ();
86 *swig_cache_get = *Math::GSL::Interpc::gsl_interp_accel_cache_get;
87 *swig_cache_set = *Math::GSL::Interpc::gsl_interp_accel_cache_set;
88 *swig_miss_count_get = *Math::GSL::Interpc::gsl_interp_accel_miss_count_get;
89 *swig_miss_count_set = *Math::GSL::Interpc::gsl_interp_accel_miss_count_set;
90 *swig_hit_count_get = *Math::GSL::Interpc::gsl_interp_accel_hit_count_get;
91 *swig_hit_count_set = *Math::GSL::Interpc::gsl_interp_accel_hit_count_set;
92 sub new {
93 my $pkg = shift;
94 my $self = Math::GSL::Interpc::new_gsl_interp_accel(@_);
95 bless $self, $pkg if defined($self);
96 }
97  
98 sub DESTROY {
99 return unless $_[0]->isa('HASH');
100 my $self = tied(%{$_[0]});
101 return unless defined $self;
102 delete $ITERATORS{$self};
103 if (exists $OWNER{$self}) {
104 Math::GSL::Interpc::delete_gsl_interp_accel($self);
105 delete $OWNER{$self};
106 }
107 }
108  
109 sub DISOWN {
110 my $self = shift;
111 my $ptr = tied(%$self);
112 delete $OWNER{$ptr};
113 }
114  
115 sub ACQUIRE {
116 my $self = shift;
117 my $ptr = tied(%$self);
118 $OWNER{$ptr} = 1;
119 }
120  
121  
122 ############# Class : Math::GSL::Interp::gsl_interp ##############
123  
124 package Math::GSL::Interp::gsl_interp;
125 use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS);
126 @ISA = qw( Math::GSL::Interp );
127 %OWNER = ();
128 %ITERATORS = ();
129 *swig_type_get = *Math::GSL::Interpc::gsl_interp_type_get;
130 *swig_type_set = *Math::GSL::Interpc::gsl_interp_type_set;
131 *swig_xmin_get = *Math::GSL::Interpc::gsl_interp_xmin_get;
132 *swig_xmin_set = *Math::GSL::Interpc::gsl_interp_xmin_set;
133 *swig_xmax_get = *Math::GSL::Interpc::gsl_interp_xmax_get;
134 *swig_xmax_set = *Math::GSL::Interpc::gsl_interp_xmax_set;
135 *swig_size_get = *Math::GSL::Interpc::gsl_interp_size_get;
136 *swig_size_set = *Math::GSL::Interpc::gsl_interp_size_set;
137 *swig_state_get = *Math::GSL::Interpc::gsl_interp_state_get;
138 *swig_state_set = *Math::GSL::Interpc::gsl_interp_state_set;
139 sub new {
140 my $pkg = shift;
141 my $self = Math::GSL::Interpc::new_gsl_interp(@_);
142 bless $self, $pkg if defined($self);
143 }
144  
145 sub DESTROY {
146 return unless $_[0]->isa('HASH');
147 my $self = tied(%{$_[0]});
148 return unless defined $self;
149 delete $ITERATORS{$self};
150 if (exists $OWNER{$self}) {
151 Math::GSL::Interpc::delete_gsl_interp($self);
152 delete $OWNER{$self};
153 }
154 }
155  
156 sub DISOWN {
157 my $self = shift;
158 my $ptr = tied(%$self);
159 delete $OWNER{$ptr};
160 }
161  
162 sub ACQUIRE {
163 my $self = shift;
164 my $ptr = tied(%$self);
165 $OWNER{$ptr} = 1;
166 }
167  
168  
169 # ------- VARIABLE STUBS --------
170  
171 package Math::GSL::Interp;
172  
173 *GSL_VERSION = *Math::GSL::Interpc::GSL_VERSION;
174 *GSL_MAJOR_VERSION = *Math::GSL::Interpc::GSL_MAJOR_VERSION;
175 *GSL_MINOR_VERSION = *Math::GSL::Interpc::GSL_MINOR_VERSION;
176 *GSL_POSZERO = *Math::GSL::Interpc::GSL_POSZERO;
177 *GSL_NEGZERO = *Math::GSL::Interpc::GSL_NEGZERO;
178 *GSL_SUCCESS = *Math::GSL::Interpc::GSL_SUCCESS;
179 *GSL_FAILURE = *Math::GSL::Interpc::GSL_FAILURE;
180 *GSL_CONTINUE = *Math::GSL::Interpc::GSL_CONTINUE;
181 *GSL_EDOM = *Math::GSL::Interpc::GSL_EDOM;
182 *GSL_ERANGE = *Math::GSL::Interpc::GSL_ERANGE;
183 *GSL_EFAULT = *Math::GSL::Interpc::GSL_EFAULT;
184 *GSL_EINVAL = *Math::GSL::Interpc::GSL_EINVAL;
185 *GSL_EFAILED = *Math::GSL::Interpc::GSL_EFAILED;
186 *GSL_EFACTOR = *Math::GSL::Interpc::GSL_EFACTOR;
187 *GSL_ESANITY = *Math::GSL::Interpc::GSL_ESANITY;
188 *GSL_ENOMEM = *Math::GSL::Interpc::GSL_ENOMEM;
189 *GSL_EBADFUNC = *Math::GSL::Interpc::GSL_EBADFUNC;
190 *GSL_ERUNAWAY = *Math::GSL::Interpc::GSL_ERUNAWAY;
191 *GSL_EMAXITER = *Math::GSL::Interpc::GSL_EMAXITER;
192 *GSL_EZERODIV = *Math::GSL::Interpc::GSL_EZERODIV;
193 *GSL_EBADTOL = *Math::GSL::Interpc::GSL_EBADTOL;
194 *GSL_ETOL = *Math::GSL::Interpc::GSL_ETOL;
195 *GSL_EUNDRFLW = *Math::GSL::Interpc::GSL_EUNDRFLW;
196 *GSL_EOVRFLW = *Math::GSL::Interpc::GSL_EOVRFLW;
197 *GSL_ELOSS = *Math::GSL::Interpc::GSL_ELOSS;
198 *GSL_EROUND = *Math::GSL::Interpc::GSL_EROUND;
199 *GSL_EBADLEN = *Math::GSL::Interpc::GSL_EBADLEN;
200 *GSL_ENOTSQR = *Math::GSL::Interpc::GSL_ENOTSQR;
201 *GSL_ESING = *Math::GSL::Interpc::GSL_ESING;
202 *GSL_EDIVERGE = *Math::GSL::Interpc::GSL_EDIVERGE;
203 *GSL_EUNSUP = *Math::GSL::Interpc::GSL_EUNSUP;
204 *GSL_EUNIMPL = *Math::GSL::Interpc::GSL_EUNIMPL;
205 *GSL_ECACHE = *Math::GSL::Interpc::GSL_ECACHE;
206 *GSL_ETABLE = *Math::GSL::Interpc::GSL_ETABLE;
207 *GSL_ENOPROG = *Math::GSL::Interpc::GSL_ENOPROG;
208 *GSL_ENOPROGJ = *Math::GSL::Interpc::GSL_ENOPROGJ;
209 *GSL_ETOLF = *Math::GSL::Interpc::GSL_ETOLF;
210 *GSL_ETOLX = *Math::GSL::Interpc::GSL_ETOLX;
211 *GSL_ETOLG = *Math::GSL::Interpc::GSL_ETOLG;
212 *GSL_EOF = *Math::GSL::Interpc::GSL_EOF;
213 *gsl_interp_linear = *Math::GSL::Interpc::gsl_interp_linear;
214 *gsl_interp_polynomial = *Math::GSL::Interpc::gsl_interp_polynomial;
215 *gsl_interp_cspline = *Math::GSL::Interpc::gsl_interp_cspline;
216 *gsl_interp_cspline_periodic = *Math::GSL::Interpc::gsl_interp_cspline_periodic;
217 *gsl_interp_akima = *Math::GSL::Interpc::gsl_interp_akima;
218 *gsl_interp_akima_periodic = *Math::GSL::Interpc::gsl_interp_akima_periodic;
219  
220 @EXPORT_OK = qw/
221 gsl_interp_accel_alloc
222 gsl_interp_accel_find
223 gsl_interp_accel_reset
224 gsl_interp_accel_free
225 gsl_interp_alloc
226 gsl_interp_init
227 gsl_interp_name
228 gsl_interp_min_size
229 gsl_interp_eval_e
230 gsl_interp_eval
231 gsl_interp_eval_deriv_e
232 gsl_interp_eval_deriv
233 gsl_interp_eval_deriv2_e
234 gsl_interp_eval_deriv2
235 gsl_interp_eval_integ_e
236 gsl_interp_eval_integ
237 gsl_interp_free
238 gsl_interp_bsearch
239 $gsl_interp_linear
240 $gsl_interp_polynomial
241 $gsl_interp_cspline
242 $gsl_interp_cspline_periodic
243 $gsl_interp_akima
244 $gsl_interp_akima_periodic
245 /;
246 %EXPORT_TAGS = ( all => \@EXPORT_OK );
247  
248 __END__