| 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::Heapsort; | ||
| 8 | use base qw(Exporter); | ||
| 9 | use base qw(DynaLoader); | ||
| 10 | package Math::GSL::Heapsortc; | ||
| 11 | bootstrap Math::GSL::Heapsort; | ||
| 12 | package Math::GSL::Heapsort; | ||
| 13 | @EXPORT = qw(); | ||
| 14 | |||
| 15 | # ---------- BASE METHODS ------------- | ||
| 16 | |||
| 17 | package Math::GSL::Heapsort; | ||
| 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::Heapsort; | ||
| 51 | |||
| 52 | *gsl_error = *Math::GSL::Heapsortc::gsl_error; | ||
| 53 | *gsl_stream_printf = *Math::GSL::Heapsortc::gsl_stream_printf; | ||
| 54 | *gsl_strerror = *Math::GSL::Heapsortc::gsl_strerror; | ||
| 55 | *gsl_set_error_handler = *Math::GSL::Heapsortc::gsl_set_error_handler; | ||
| 56 | *gsl_set_error_handler_off = *Math::GSL::Heapsortc::gsl_set_error_handler_off; | ||
| 57 | *gsl_set_stream_handler = *Math::GSL::Heapsortc::gsl_set_stream_handler; | ||
| 58 | *gsl_set_stream = *Math::GSL::Heapsortc::gsl_set_stream; | ||
| 59 | *gsl_permutation_alloc = *Math::GSL::Heapsortc::gsl_permutation_alloc; | ||
| 60 | *gsl_permutation_calloc = *Math::GSL::Heapsortc::gsl_permutation_calloc; | ||
| 61 | *gsl_permutation_init = *Math::GSL::Heapsortc::gsl_permutation_init; | ||
| 62 | *gsl_permutation_free = *Math::GSL::Heapsortc::gsl_permutation_free; | ||
| 63 | *gsl_permutation_memcpy = *Math::GSL::Heapsortc::gsl_permutation_memcpy; | ||
| 64 | *gsl_permutation_fread = *Math::GSL::Heapsortc::gsl_permutation_fread; | ||
| 65 | *gsl_permutation_fwrite = *Math::GSL::Heapsortc::gsl_permutation_fwrite; | ||
| 66 | *gsl_permutation_fscanf = *Math::GSL::Heapsortc::gsl_permutation_fscanf; | ||
| 67 | *gsl_permutation_fprintf = *Math::GSL::Heapsortc::gsl_permutation_fprintf; | ||
| 68 | *gsl_permutation_size = *Math::GSL::Heapsortc::gsl_permutation_size; | ||
| 69 | *gsl_permutation_data = *Math::GSL::Heapsortc::gsl_permutation_data; | ||
| 70 | *gsl_permutation_swap = *Math::GSL::Heapsortc::gsl_permutation_swap; | ||
| 71 | *gsl_permutation_valid = *Math::GSL::Heapsortc::gsl_permutation_valid; | ||
| 72 | *gsl_permutation_reverse = *Math::GSL::Heapsortc::gsl_permutation_reverse; | ||
| 73 | *gsl_permutation_inverse = *Math::GSL::Heapsortc::gsl_permutation_inverse; | ||
| 74 | *gsl_permutation_next = *Math::GSL::Heapsortc::gsl_permutation_next; | ||
| 75 | *gsl_permutation_prev = *Math::GSL::Heapsortc::gsl_permutation_prev; | ||
| 76 | *gsl_permutation_mul = *Math::GSL::Heapsortc::gsl_permutation_mul; | ||
| 77 | *gsl_permutation_linear_to_canonical = *Math::GSL::Heapsortc::gsl_permutation_linear_to_canonical; | ||
| 78 | *gsl_permutation_canonical_to_linear = *Math::GSL::Heapsortc::gsl_permutation_canonical_to_linear; | ||
| 79 | *gsl_permutation_inversions = *Math::GSL::Heapsortc::gsl_permutation_inversions; | ||
| 80 | *gsl_permutation_linear_cycles = *Math::GSL::Heapsortc::gsl_permutation_linear_cycles; | ||
| 81 | *gsl_permutation_canonical_cycles = *Math::GSL::Heapsortc::gsl_permutation_canonical_cycles; | ||
| 82 | *gsl_permutation_get = *Math::GSL::Heapsortc::gsl_permutation_get; | ||
| 83 | *gsl_heapsort = *Math::GSL::Heapsortc::gsl_heapsort; | ||
| 84 | *gsl_heapsort_index = *Math::GSL::Heapsortc::gsl_heapsort_index; | ||
| 85 | |||
| 86 | ############# Class : Math::GSL::Heapsort::gsl_permutation_struct ############## | ||
| 87 | |||
| 88 | package Math::GSL::Heapsort::gsl_permutation_struct; | ||
| 89 | use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); | ||
| 90 | @ISA = qw( Math::GSL::Heapsort ); | ||
| 91 | %OWNER = (); | ||
| 92 | %ITERATORS = (); | ||
| 93 | *swig_size_get = *Math::GSL::Heapsortc::gsl_permutation_struct_size_get; | ||
| 94 | *swig_size_set = *Math::GSL::Heapsortc::gsl_permutation_struct_size_set; | ||
| 95 | *swig_data_get = *Math::GSL::Heapsortc::gsl_permutation_struct_data_get; | ||
| 96 | *swig_data_set = *Math::GSL::Heapsortc::gsl_permutation_struct_data_set; | ||
| 97 | sub new { | ||
| 98 | my $pkg = shift; | ||
| 99 | my $self = Math::GSL::Heapsortc::new_gsl_permutation_struct(@_); | ||
| 100 | bless $self, $pkg if defined($self); | ||
| 101 | } | ||
| 102 | |||
| 103 | sub DESTROY { | ||
| 104 | return unless $_[0]->isa('HASH'); | ||
| 105 | my $self = tied(%{$_[0]}); | ||
| 106 | return unless defined $self; | ||
| 107 | delete $ITERATORS{$self}; | ||
| 108 | if (exists $OWNER{$self}) { | ||
| 109 | Math::GSL::Heapsortc::delete_gsl_permutation_struct($self); | ||
| 110 | delete $OWNER{$self}; | ||
| 111 | } | ||
| 112 | } | ||
| 113 | |||
| 114 | sub DISOWN { | ||
| 115 | my $self = shift; | ||
| 116 | my $ptr = tied(%$self); | ||
| 117 | delete $OWNER{$ptr}; | ||
| 118 | } | ||
| 119 | |||
| 120 | sub ACQUIRE { | ||
| 121 | my $self = shift; | ||
| 122 | my $ptr = tied(%$self); | ||
| 123 | $OWNER{$ptr} = 1; | ||
| 124 | } | ||
| 125 | |||
| 126 | |||
| 127 | # ------- VARIABLE STUBS -------- | ||
| 128 | |||
| 129 | package Math::GSL::Heapsort; | ||
| 130 | |||
| 131 | *GSL_VERSION = *Math::GSL::Heapsortc::GSL_VERSION; | ||
| 132 | *GSL_MAJOR_VERSION = *Math::GSL::Heapsortc::GSL_MAJOR_VERSION; | ||
| 133 | *GSL_MINOR_VERSION = *Math::GSL::Heapsortc::GSL_MINOR_VERSION; | ||
| 134 | *GSL_POSZERO = *Math::GSL::Heapsortc::GSL_POSZERO; | ||
| 135 | *GSL_NEGZERO = *Math::GSL::Heapsortc::GSL_NEGZERO; | ||
| 136 | *GSL_SUCCESS = *Math::GSL::Heapsortc::GSL_SUCCESS; | ||
| 137 | *GSL_FAILURE = *Math::GSL::Heapsortc::GSL_FAILURE; | ||
| 138 | *GSL_CONTINUE = *Math::GSL::Heapsortc::GSL_CONTINUE; | ||
| 139 | *GSL_EDOM = *Math::GSL::Heapsortc::GSL_EDOM; | ||
| 140 | *GSL_ERANGE = *Math::GSL::Heapsortc::GSL_ERANGE; | ||
| 141 | *GSL_EFAULT = *Math::GSL::Heapsortc::GSL_EFAULT; | ||
| 142 | *GSL_EINVAL = *Math::GSL::Heapsortc::GSL_EINVAL; | ||
| 143 | *GSL_EFAILED = *Math::GSL::Heapsortc::GSL_EFAILED; | ||
| 144 | *GSL_EFACTOR = *Math::GSL::Heapsortc::GSL_EFACTOR; | ||
| 145 | *GSL_ESANITY = *Math::GSL::Heapsortc::GSL_ESANITY; | ||
| 146 | *GSL_ENOMEM = *Math::GSL::Heapsortc::GSL_ENOMEM; | ||
| 147 | *GSL_EBADFUNC = *Math::GSL::Heapsortc::GSL_EBADFUNC; | ||
| 148 | *GSL_ERUNAWAY = *Math::GSL::Heapsortc::GSL_ERUNAWAY; | ||
| 149 | *GSL_EMAXITER = *Math::GSL::Heapsortc::GSL_EMAXITER; | ||
| 150 | *GSL_EZERODIV = *Math::GSL::Heapsortc::GSL_EZERODIV; | ||
| 151 | *GSL_EBADTOL = *Math::GSL::Heapsortc::GSL_EBADTOL; | ||
| 152 | *GSL_ETOL = *Math::GSL::Heapsortc::GSL_ETOL; | ||
| 153 | *GSL_EUNDRFLW = *Math::GSL::Heapsortc::GSL_EUNDRFLW; | ||
| 154 | *GSL_EOVRFLW = *Math::GSL::Heapsortc::GSL_EOVRFLW; | ||
| 155 | *GSL_ELOSS = *Math::GSL::Heapsortc::GSL_ELOSS; | ||
| 156 | *GSL_EROUND = *Math::GSL::Heapsortc::GSL_EROUND; | ||
| 157 | *GSL_EBADLEN = *Math::GSL::Heapsortc::GSL_EBADLEN; | ||
| 158 | *GSL_ENOTSQR = *Math::GSL::Heapsortc::GSL_ENOTSQR; | ||
| 159 | *GSL_ESING = *Math::GSL::Heapsortc::GSL_ESING; | ||
| 160 | *GSL_EDIVERGE = *Math::GSL::Heapsortc::GSL_EDIVERGE; | ||
| 161 | *GSL_EUNSUP = *Math::GSL::Heapsortc::GSL_EUNSUP; | ||
| 162 | *GSL_EUNIMPL = *Math::GSL::Heapsortc::GSL_EUNIMPL; | ||
| 163 | *GSL_ECACHE = *Math::GSL::Heapsortc::GSL_ECACHE; | ||
| 164 | *GSL_ETABLE = *Math::GSL::Heapsortc::GSL_ETABLE; | ||
| 165 | *GSL_ENOPROG = *Math::GSL::Heapsortc::GSL_ENOPROG; | ||
| 166 | *GSL_ENOPROGJ = *Math::GSL::Heapsortc::GSL_ENOPROGJ; | ||
| 167 | *GSL_ETOLF = *Math::GSL::Heapsortc::GSL_ETOLF; | ||
| 168 | *GSL_ETOLX = *Math::GSL::Heapsortc::GSL_ETOLX; | ||
| 169 | *GSL_ETOLG = *Math::GSL::Heapsortc::GSL_ETOLG; | ||
| 170 | *GSL_EOF = *Math::GSL::Heapsortc::GSL_EOF; | ||
| 171 | |||
| 172 | @EXPORT_OK = qw/ | ||
| 173 | gsl_heapsort | ||
| 174 | gsl_heapsort_index | ||
| 175 | /; | ||
| 176 | %EXPORT_TAGS = ( all => [ @EXPORT_OK ] ); | ||
| 177 | |||
| 178 | __END__ |