| 1 | # This file was automatically generated by SWIG (https://www.swig.org). | ||||||||||
| 2 | # Version 4.4.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 Ufal::MorphoDiTa; | ||||||||||
| 8 | 4 | our $VERSION = '1.11.3.1'; | |||||||||
| 9 | 4 | ▶ | use base qw(Exporter); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 10 | 4 | ▶ | use base qw(DynaLoader); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 11 | package Ufal::MorphoDiTac; | ||||||||||
| 12 | 4 | our $VERSION = '1.11.3.1'; | |||||||||
| 13 | 4 | bootstrap Ufal::MorphoDiTa; | |||||||||
| 14 | package Ufal::MorphoDiTa; | ||||||||||
| 15 | 4 | @EXPORT = qw(); | |||||||||
| 16 | |||||||||||
| 17 | # ---------- BASE METHODS ------------- | ||||||||||
| 18 | |||||||||||
| 19 | package Ufal::MorphoDiTa; | ||||||||||
| 20 | |||||||||||
| 21 | 0 | ▶ | sub TIEHASH { | ||||||||
|
Subroutine
TIEHASH: not called CC=1 SCAR=6.9
| |||||||||||
| 22 | 0 | my ($classname,$obj) = @_; | |||||||||
| 23 | 0 | return bless $obj, $classname; | |||||||||
| 24 | } | ||||||||||
| 25 | |||||||||||
| 26 | 0 | ▶ | sub CLEAR { } | ||||||||
|
Subroutine
CLEAR: not called CC=1 SCAR=0.0
| |||||||||||
| 27 | |||||||||||
| 28 | 0 | ▶ | sub FIRSTKEY { } | ||||||||
|
Subroutine
FIRSTKEY: not called CC=1 SCAR=0.0
| |||||||||||
| 29 | |||||||||||
| 30 | 0 | ▶ | sub NEXTKEY { } | ||||||||
|
Subroutine
NEXTKEY: not called CC=1 SCAR=0.0
| |||||||||||
| 31 | |||||||||||
| 32 | 153 | ▶ | sub FETCH { | ||||||||
|
Subroutine
FETCH: called CC=1 SCAR=0.0
| |||||||||||
| 33 | 153 | my ($self,$field) = @_; | |||||||||
| 34 | 153 | my $member_func = "swig_${field}_get"; | |||||||||
| 35 | 153 | $self->$member_func(); | |||||||||
| 36 | } | ||||||||||
| 37 | |||||||||||
| 38 | 0 | ▶ | sub STORE { | ||||||||
|
Subroutine
STORE: not called CC=1 SCAR=6.9
| |||||||||||
| 39 | 0 | my ($self,$field,$newval) = @_; | |||||||||
| 40 | 0 | my $member_func = "swig_${field}_set"; | |||||||||
| 41 | 0 | $self->$member_func($newval); | |||||||||
| 42 | } | ||||||||||
| 43 | |||||||||||
| 44 | 0 | ▶ | sub this { | ||||||||
|
Subroutine
this: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 45 | 0 | my $ptr = shift; | |||||||||
| 46 | 0 | return tied(%$ptr); | |||||||||
| 47 | } | ||||||||||
| 48 | |||||||||||
| 49 | |||||||||||
| 50 | # ------- FUNCTION WRAPPERS -------- | ||||||||||
| 51 | |||||||||||
| 52 | package Ufal::MorphoDiTa; | ||||||||||
| 53 | |||||||||||
| 54 | |||||||||||
| 55 | ############# Class : Ufal::MorphoDiTa::Indices ############## | ||||||||||
| 56 | |||||||||||
| 57 | package Ufal::MorphoDiTa::Indices; | ||||||||||
| 58 | 4 | our $VERSION = '1.11.3.1'; | |||||||||
| 59 | 4 | ▶ | use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 60 | 4 | @ISA = qw( Ufal::MorphoDiTa ); | |||||||||
| 61 | 4 | %OWNER = (); | |||||||||
| 62 | 4 | %ITERATORS = (); | |||||||||
| 63 | 0 | ▶ | sub new { | ||||||||
|
Subroutine
new: not called CC=2 SCAR=17.9
| |||||||||||
| 64 | 0 | my $pkg = shift; | |||||||||
| 65 | 0 | my $self = Ufal::MorphoDiTac::new_Indices(@_); | |||||||||
| 66 | 0 | ▶ | bless $self, $pkg if defined($self); | ||||||||
|
Branch: 1 branch
| |||||||||||
| 67 | } | ||||||||||
| 68 | |||||||||||
| 69 | 4 | *size = *Ufal::MorphoDiTac::Indices_size; | |||||||||
| 70 | 4 | *empty = *Ufal::MorphoDiTac::Indices_empty; | |||||||||
| 71 | 4 | *clear = *Ufal::MorphoDiTac::Indices_clear; | |||||||||
| 72 | 4 | *push = *Ufal::MorphoDiTac::Indices_push; | |||||||||
| 73 | 4 | *pop = *Ufal::MorphoDiTac::Indices_pop; | |||||||||
| 74 | 4 | *get = *Ufal::MorphoDiTac::Indices_get; | |||||||||
| 75 | 4 | *set = *Ufal::MorphoDiTac::Indices_set; | |||||||||
| 76 | 0 | ▶ | sub DESTROY { | ||||||||
|
Subroutine
DESTROY: not called CC=4 SCAR=30.0
| |||||||||||
| 77 | 0 | ▶ | return unless $_[0]->isa('HASH'); | ||||||||
|
Branch: 1 branch
| |||||||||||
| 78 | 0 | my $self = tied(%{$_[0]}); | |||||||||
| 79 | 0 | ▶ | return unless defined $self; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 80 | 0 | delete $ITERATORS{$self}; | |||||||||
| 81 | 0 | ▶ | if (exists $OWNER{$self}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 82 | 0 | Ufal::MorphoDiTac::delete_Indices($self); | |||||||||
| 83 | 0 | delete $OWNER{$self}; | |||||||||
| 84 | } | ||||||||||
| 85 | } | ||||||||||
| 86 | |||||||||||
| 87 | 0 | ▶ | sub DISOWN { | ||||||||
|
Subroutine
DISOWN: not called CC=1 SCAR=6.9
| |||||||||||
| 88 | 0 | my $self = shift; | |||||||||
| 89 | 0 | my $ptr = tied(%$self); | |||||||||
| 90 | 0 | delete $OWNER{$ptr}; | |||||||||
| 91 | } | ||||||||||
| 92 | |||||||||||
| 93 | 0 | ▶ | sub ACQUIRE { | ||||||||
|
Subroutine
ACQUIRE: not called CC=1 SCAR=6.9
| |||||||||||
| 94 | 0 | my $self = shift; | |||||||||
| 95 | 0 | my $ptr = tied(%$self); | |||||||||
| 96 | 0 | $OWNER{$ptr} = 1; | |||||||||
| 97 | } | ||||||||||
| 98 | |||||||||||
| 99 | |||||||||||
| 100 | ############# Class : Ufal::MorphoDiTa::Forms ############## | ||||||||||
| 101 | |||||||||||
| 102 | package Ufal::MorphoDiTa::Forms; | ||||||||||
| 103 | 4 | our $VERSION = '1.11.3.1'; | |||||||||
| 104 | 4 | ▶ | use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 105 | 4 | @ISA = qw( Ufal::MorphoDiTa ); | |||||||||
| 106 | 4 | %OWNER = (); | |||||||||
| 107 | 4 | %ITERATORS = (); | |||||||||
| 108 | 3 | ▶ | sub new { | ||||||||
|
Subroutine
new: called CC=2 SCAR=7.1
| |||||||||||
| 109 | 3 | my $pkg = shift; | |||||||||
| 110 | 3 | my $self = Ufal::MorphoDiTac::new_Forms(@_); | |||||||||
| 111 | 3 | ▶ | bless $self, $pkg if defined($self); | ||||||||
|
Branch: 1 branch
| |||||||||||
| 112 | } | ||||||||||
| 113 | |||||||||||
| 114 | 4 | *size = *Ufal::MorphoDiTac::Forms_size; | |||||||||
| 115 | 4 | *empty = *Ufal::MorphoDiTac::Forms_empty; | |||||||||
| 116 | 4 | *clear = *Ufal::MorphoDiTac::Forms_clear; | |||||||||
| 117 | 4 | *push = *Ufal::MorphoDiTac::Forms_push; | |||||||||
| 118 | 4 | *pop = *Ufal::MorphoDiTac::Forms_pop; | |||||||||
| 119 | 4 | *get = *Ufal::MorphoDiTac::Forms_get; | |||||||||
| 120 | 4 | *set = *Ufal::MorphoDiTac::Forms_set; | |||||||||
| 121 | 6 | ▶ | sub DESTROY { | ||||||||
|
Subroutine
DESTROY: called CC=4 SCAR=14.8
| |||||||||||
| 122 | 6 | ▶ | return unless $_[0]->isa('HASH'); | ||||||||
|
Branch: 1 branch
| |||||||||||
| 123 | 3 | my $self = tied(%{$_[0]}); | |||||||||
| 124 | 3 | ▶ | return unless defined $self; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 125 | 3 | delete $ITERATORS{$self}; | |||||||||
| 126 | 3 | ▶ | if (exists $OWNER{$self}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 127 | 0 | Ufal::MorphoDiTac::delete_Forms($self); | |||||||||
| 128 | 0 | delete $OWNER{$self}; | |||||||||
| 129 | } | ||||||||||
| 130 | } | ||||||||||
| 131 | |||||||||||
| 132 | 0 | ▶ | sub DISOWN { | ||||||||
|
Subroutine
DISOWN: not called CC=1 SCAR=6.9
| |||||||||||
| 133 | 0 | my $self = shift; | |||||||||
| 134 | 0 | my $ptr = tied(%$self); | |||||||||
| 135 | 0 | delete $OWNER{$ptr}; | |||||||||
| 136 | } | ||||||||||
| 137 | |||||||||||
| 138 | 0 | ▶ | sub ACQUIRE { | ||||||||
|
Subroutine
ACQUIRE: not called CC=1 SCAR=6.9
| |||||||||||
| 139 | 0 | my $self = shift; | |||||||||
| 140 | 0 | my $ptr = tied(%$self); | |||||||||
| 141 | 0 | $OWNER{$ptr} = 1; | |||||||||
| 142 | } | ||||||||||
| 143 | |||||||||||
| 144 | |||||||||||
| 145 | ############# Class : Ufal::MorphoDiTa::TaggedForm ############## | ||||||||||
| 146 | |||||||||||
| 147 | package Ufal::MorphoDiTa::TaggedForm; | ||||||||||
| 148 | 4 | our $VERSION = '1.11.3.1'; | |||||||||
| 149 | 4 | ▶ | use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 150 | 4 | @ISA = qw( Ufal::MorphoDiTa ); | |||||||||
| 151 | 4 | %OWNER = (); | |||||||||
| 152 | 4 | %ITERATORS = (); | |||||||||
| 153 | 4 | *swig_form_get = *Ufal::MorphoDiTac::TaggedForm_form_get; | |||||||||
| 154 | 4 | *swig_form_set = *Ufal::MorphoDiTac::TaggedForm_form_set; | |||||||||
| 155 | 4 | *swig_tag_get = *Ufal::MorphoDiTac::TaggedForm_tag_get; | |||||||||
| 156 | 4 | *swig_tag_set = *Ufal::MorphoDiTac::TaggedForm_tag_set; | |||||||||
| 157 | 0 | ▶ | sub new { | ||||||||
|
Subroutine
new: not called CC=2 SCAR=17.9
| |||||||||||
| 158 | 0 | my $pkg = shift; | |||||||||
| 159 | 0 | my $self = Ufal::MorphoDiTac::new_TaggedForm(@_); | |||||||||
| 160 | 0 | ▶ | bless $self, $pkg if defined($self); | ||||||||
|
Branch: 1 branch
| |||||||||||
| 161 | } | ||||||||||
| 162 | |||||||||||
| 163 | 92 | ▶ | sub DESTROY { | ||||||||
|
Subroutine
DESTROY: called CC=4 SCAR=14.8
| |||||||||||
| 164 | 92 | ▶ | return unless $_[0]->isa('HASH'); | ||||||||
|
Branch: 1 branch
| |||||||||||
| 165 | 46 | my $self = tied(%{$_[0]}); | |||||||||
| 166 | 46 | ▶ | return unless defined $self; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 167 | 46 | delete $ITERATORS{$self}; | |||||||||
| 168 | 46 | ▶ | if (exists $OWNER{$self}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 169 | 0 | Ufal::MorphoDiTac::delete_TaggedForm($self); | |||||||||
| 170 | 0 | delete $OWNER{$self}; | |||||||||
| 171 | } | ||||||||||
| 172 | } | ||||||||||
| 173 | |||||||||||
| 174 | 0 | ▶ | sub DISOWN { | ||||||||
|
Subroutine
DISOWN: not called CC=1 SCAR=6.9
| |||||||||||
| 175 | 0 | my $self = shift; | |||||||||
| 176 | 0 | my $ptr = tied(%$self); | |||||||||
| 177 | 0 | delete $OWNER{$ptr}; | |||||||||
| 178 | } | ||||||||||
| 179 | |||||||||||
| 180 | 0 | ▶ | sub ACQUIRE { | ||||||||
|
Subroutine
ACQUIRE: not called CC=1 SCAR=6.9
| |||||||||||
| 181 | 0 | my $self = shift; | |||||||||
| 182 | 0 | my $ptr = tied(%$self); | |||||||||
| 183 | 0 | $OWNER{$ptr} = 1; | |||||||||
| 184 | } | ||||||||||
| 185 | |||||||||||
| 186 | |||||||||||
| 187 | ############# Class : Ufal::MorphoDiTa::TaggedForms ############## | ||||||||||
| 188 | |||||||||||
| 189 | package Ufal::MorphoDiTa::TaggedForms; | ||||||||||
| 190 | 4 | our $VERSION = '1.11.3.1'; | |||||||||
| 191 | 4 | ▶ | use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 192 | 4 | @ISA = qw( Ufal::MorphoDiTa ); | |||||||||
| 193 | 4 | %OWNER = (); | |||||||||
| 194 | 4 | %ITERATORS = (); | |||||||||
| 195 | 0 | ▶ | sub new { | ||||||||
|
Subroutine
new: not called CC=2 SCAR=17.9
| |||||||||||
| 196 | 0 | my $pkg = shift; | |||||||||
| 197 | 0 | my $self = Ufal::MorphoDiTac::new_TaggedForms(@_); | |||||||||
| 198 | 0 | ▶ | bless $self, $pkg if defined($self); | ||||||||
|
Branch: 1 branch
| |||||||||||
| 199 | } | ||||||||||
| 200 | |||||||||||
| 201 | 4 | *size = *Ufal::MorphoDiTac::TaggedForms_size; | |||||||||
| 202 | 4 | *empty = *Ufal::MorphoDiTac::TaggedForms_empty; | |||||||||
| 203 | 4 | *clear = *Ufal::MorphoDiTac::TaggedForms_clear; | |||||||||
| 204 | 4 | *push = *Ufal::MorphoDiTac::TaggedForms_push; | |||||||||
| 205 | 4 | *pop = *Ufal::MorphoDiTac::TaggedForms_pop; | |||||||||
| 206 | 4 | *get = *Ufal::MorphoDiTac::TaggedForms_get; | |||||||||
| 207 | 4 | *set = *Ufal::MorphoDiTac::TaggedForms_set; | |||||||||
| 208 | 100 | ▶ | sub DESTROY { | ||||||||
|
Subroutine
DESTROY: called CC=4 SCAR=14.8
| |||||||||||
| 209 | 100 | ▶ | return unless $_[0]->isa('HASH'); | ||||||||
|
Branch: 1 branch
| |||||||||||
| 210 | 50 | my $self = tied(%{$_[0]}); | |||||||||
| 211 | 50 | ▶ | return unless defined $self; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 212 | 50 | delete $ITERATORS{$self}; | |||||||||
| 213 | 50 | ▶ | if (exists $OWNER{$self}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 214 | 0 | Ufal::MorphoDiTac::delete_TaggedForms($self); | |||||||||
| 215 | 0 | delete $OWNER{$self}; | |||||||||
| 216 | } | ||||||||||
| 217 | } | ||||||||||
| 218 | |||||||||||
| 219 | 0 | ▶ | sub DISOWN { | ||||||||
|
Subroutine
DISOWN: not called CC=1 SCAR=6.9
| |||||||||||
| 220 | 0 | my $self = shift; | |||||||||
| 221 | 0 | my $ptr = tied(%$self); | |||||||||
| 222 | 0 | delete $OWNER{$ptr}; | |||||||||
| 223 | } | ||||||||||
| 224 | |||||||||||
| 225 | 0 | ▶ | sub ACQUIRE { | ||||||||
|
Subroutine
ACQUIRE: not called CC=1 SCAR=6.9
| |||||||||||
| 226 | 0 | my $self = shift; | |||||||||
| 227 | 0 | my $ptr = tied(%$self); | |||||||||
| 228 | 0 | $OWNER{$ptr} = 1; | |||||||||
| 229 | } | ||||||||||
| 230 | |||||||||||
| 231 | |||||||||||
| 232 | ############# Class : Ufal::MorphoDiTa::TaggedLemma ############## | ||||||||||
| 233 | |||||||||||
| 234 | package Ufal::MorphoDiTa::TaggedLemma; | ||||||||||
| 235 | 4 | our $VERSION = '1.11.3.1'; | |||||||||
| 236 | 4 | ▶ | use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 237 | 4 | @ISA = qw( Ufal::MorphoDiTa ); | |||||||||
| 238 | 4 | %OWNER = (); | |||||||||
| 239 | 4 | %ITERATORS = (); | |||||||||
| 240 | 4 | *swig_lemma_get = *Ufal::MorphoDiTac::TaggedLemma_lemma_get; | |||||||||
| 241 | 4 | *swig_lemma_set = *Ufal::MorphoDiTac::TaggedLemma_lemma_set; | |||||||||
| 242 | 4 | *swig_tag_get = *Ufal::MorphoDiTac::TaggedLemma_tag_get; | |||||||||
| 243 | 4 | *swig_tag_set = *Ufal::MorphoDiTac::TaggedLemma_tag_set; | |||||||||
| 244 | 0 | ▶ | sub new { | ||||||||
|
Subroutine
new: not called CC=2 SCAR=17.9
| |||||||||||
| 245 | 0 | my $pkg = shift; | |||||||||
| 246 | 0 | my $self = Ufal::MorphoDiTac::new_TaggedLemma(@_); | |||||||||
| 247 | 0 | ▶ | bless $self, $pkg if defined($self); | ||||||||
|
Branch: 1 branch
| |||||||||||
| 248 | } | ||||||||||
| 249 | |||||||||||
| 250 | 68 | ▶ | sub DESTROY { | ||||||||
|
Subroutine
DESTROY: called CC=4 SCAR=14.8
| |||||||||||
| 251 | 68 | ▶ | return unless $_[0]->isa('HASH'); | ||||||||
|
Branch: 1 branch
| |||||||||||
| 252 | 34 | my $self = tied(%{$_[0]}); | |||||||||
| 253 | 34 | ▶ | return unless defined $self; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 254 | 34 | delete $ITERATORS{$self}; | |||||||||
| 255 | 34 | ▶ | if (exists $OWNER{$self}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 256 | 0 | Ufal::MorphoDiTac::delete_TaggedLemma($self); | |||||||||
| 257 | 0 | delete $OWNER{$self}; | |||||||||
| 258 | } | ||||||||||
| 259 | } | ||||||||||
| 260 | |||||||||||
| 261 | 0 | ▶ | sub DISOWN { | ||||||||
|
Subroutine
DISOWN: not called CC=1 SCAR=6.9
| |||||||||||
| 262 | 0 | my $self = shift; | |||||||||
| 263 | 0 | my $ptr = tied(%$self); | |||||||||
| 264 | 0 | delete $OWNER{$ptr}; | |||||||||
| 265 | } | ||||||||||
| 266 | |||||||||||
| 267 | 0 | ▶ | sub ACQUIRE { | ||||||||
|
Subroutine
ACQUIRE: not called CC=1 SCAR=6.9
| |||||||||||
| 268 | 0 | my $self = shift; | |||||||||
| 269 | 0 | my $ptr = tied(%$self); | |||||||||
| 270 | 0 | $OWNER{$ptr} = 1; | |||||||||
| 271 | } | ||||||||||
| 272 | |||||||||||
| 273 | |||||||||||
| 274 | ############# Class : Ufal::MorphoDiTa::TaggedLemmas ############## | ||||||||||
| 275 | |||||||||||
| 276 | package Ufal::MorphoDiTa::TaggedLemmas; | ||||||||||
| 277 | 4 | our $VERSION = '1.11.3.1'; | |||||||||
| 278 | 4 | ▶ | use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 279 | 4 | @ISA = qw( Ufal::MorphoDiTa ); | |||||||||
| 280 | 4 | %OWNER = (); | |||||||||
| 281 | 4 | %ITERATORS = (); | |||||||||
| 282 | 9 | ▶ | sub new { | ||||||||
|
Subroutine
new: called CC=2 SCAR=7.1
| |||||||||||
| 283 | 9 | my $pkg = shift; | |||||||||
| 284 | 9 | my $self = Ufal::MorphoDiTac::new_TaggedLemmas(@_); | |||||||||
| 285 | 9 | ▶ | bless $self, $pkg if defined($self); | ||||||||
|
Branch: 1 branch
| |||||||||||
| 286 | } | ||||||||||
| 287 | |||||||||||
| 288 | 4 | *size = *Ufal::MorphoDiTac::TaggedLemmas_size; | |||||||||
| 289 | 4 | *empty = *Ufal::MorphoDiTac::TaggedLemmas_empty; | |||||||||
| 290 | 4 | *clear = *Ufal::MorphoDiTac::TaggedLemmas_clear; | |||||||||
| 291 | 4 | *push = *Ufal::MorphoDiTac::TaggedLemmas_push; | |||||||||
| 292 | 4 | *pop = *Ufal::MorphoDiTac::TaggedLemmas_pop; | |||||||||
| 293 | 4 | *get = *Ufal::MorphoDiTac::TaggedLemmas_get; | |||||||||
| 294 | 4 | *set = *Ufal::MorphoDiTac::TaggedLemmas_set; | |||||||||
| 295 | 18 | ▶ | sub DESTROY { | ||||||||
|
Subroutine
DESTROY: called CC=4 SCAR=14.8
| |||||||||||
| 296 | 18 | ▶ | return unless $_[0]->isa('HASH'); | ||||||||
|
Branch: 1 branch
| |||||||||||
| 297 | 9 | my $self = tied(%{$_[0]}); | |||||||||
| 298 | 9 | ▶ | return unless defined $self; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 299 | 9 | delete $ITERATORS{$self}; | |||||||||
| 300 | 9 | ▶ | if (exists $OWNER{$self}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 301 | 0 | Ufal::MorphoDiTac::delete_TaggedLemmas($self); | |||||||||
| 302 | 0 | delete $OWNER{$self}; | |||||||||
| 303 | } | ||||||||||
| 304 | } | ||||||||||
| 305 | |||||||||||
| 306 | 0 | ▶ | sub DISOWN { | ||||||||
|
Subroutine
DISOWN: not called CC=1 SCAR=6.9
| |||||||||||
| 307 | 0 | my $self = shift; | |||||||||
| 308 | 0 | my $ptr = tied(%$self); | |||||||||
| 309 | 0 | delete $OWNER{$ptr}; | |||||||||
| 310 | } | ||||||||||
| 311 | |||||||||||
| 312 | 0 | ▶ | sub ACQUIRE { | ||||||||
|
Subroutine
ACQUIRE: not called CC=1 SCAR=6.9
| |||||||||||
| 313 | 0 | my $self = shift; | |||||||||
| 314 | 0 | my $ptr = tied(%$self); | |||||||||
| 315 | 0 | $OWNER{$ptr} = 1; | |||||||||
| 316 | } | ||||||||||
| 317 | |||||||||||
| 318 | |||||||||||
| 319 | ############# Class : Ufal::MorphoDiTa::Analyses ############## | ||||||||||
| 320 | |||||||||||
| 321 | package Ufal::MorphoDiTa::Analyses; | ||||||||||
| 322 | 4 | our $VERSION = '1.11.3.1'; | |||||||||
| 323 | 4 | ▶ | use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 324 | 4 | @ISA = qw( Ufal::MorphoDiTa ); | |||||||||
| 325 | 4 | %OWNER = (); | |||||||||
| 326 | 4 | %ITERATORS = (); | |||||||||
| 327 | 0 | ▶ | sub new { | ||||||||
|
Subroutine
new: not called CC=2 SCAR=17.9
| |||||||||||
| 328 | 0 | my $pkg = shift; | |||||||||
| 329 | 0 | my $self = Ufal::MorphoDiTac::new_Analyses(@_); | |||||||||
| 330 | 0 | ▶ | bless $self, $pkg if defined($self); | ||||||||
|
Branch: 1 branch
| |||||||||||
| 331 | } | ||||||||||
| 332 | |||||||||||
| 333 | 4 | *size = *Ufal::MorphoDiTac::Analyses_size; | |||||||||
| 334 | 4 | *empty = *Ufal::MorphoDiTac::Analyses_empty; | |||||||||
| 335 | 4 | *clear = *Ufal::MorphoDiTac::Analyses_clear; | |||||||||
| 336 | 4 | *push = *Ufal::MorphoDiTac::Analyses_push; | |||||||||
| 337 | 4 | *pop = *Ufal::MorphoDiTac::Analyses_pop; | |||||||||
| 338 | 4 | *get = *Ufal::MorphoDiTac::Analyses_get; | |||||||||
| 339 | 4 | *set = *Ufal::MorphoDiTac::Analyses_set; | |||||||||
| 340 | 0 | ▶ | sub DESTROY { | ||||||||
|
Subroutine
DESTROY: not called CC=4 SCAR=30.0
| |||||||||||
| 341 | 0 | ▶ | return unless $_[0]->isa('HASH'); | ||||||||
|
Branch: 1 branch
| |||||||||||
| 342 | 0 | my $self = tied(%{$_[0]}); | |||||||||
| 343 | 0 | ▶ | return unless defined $self; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 344 | 0 | delete $ITERATORS{$self}; | |||||||||
| 345 | 0 | ▶ | if (exists $OWNER{$self}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 346 | 0 | Ufal::MorphoDiTac::delete_Analyses($self); | |||||||||
| 347 | 0 | delete $OWNER{$self}; | |||||||||
| 348 | } | ||||||||||
| 349 | } | ||||||||||
| 350 | |||||||||||
| 351 | 0 | ▶ | sub DISOWN { | ||||||||
|
Subroutine
DISOWN: not called CC=1 SCAR=6.9
| |||||||||||
| 352 | 0 | my $self = shift; | |||||||||
| 353 | 0 | my $ptr = tied(%$self); | |||||||||
| 354 | 0 | delete $OWNER{$ptr}; | |||||||||
| 355 | } | ||||||||||
| 356 | |||||||||||
| 357 | 0 | ▶ | sub ACQUIRE { | ||||||||
|
Subroutine
ACQUIRE: not called CC=1 SCAR=6.9
| |||||||||||
| 358 | 0 | my $self = shift; | |||||||||
| 359 | 0 | my $ptr = tied(%$self); | |||||||||
| 360 | 0 | $OWNER{$ptr} = 1; | |||||||||
| 361 | } | ||||||||||
| 362 | |||||||||||
| 363 | |||||||||||
| 364 | ############# Class : Ufal::MorphoDiTa::TaggedLemmaForms ############## | ||||||||||
| 365 | |||||||||||
| 366 | package Ufal::MorphoDiTa::TaggedLemmaForms; | ||||||||||
| 367 | 4 | our $VERSION = '1.11.3.1'; | |||||||||
| 368 | 4 | ▶ | use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 369 | 4 | @ISA = qw( Ufal::MorphoDiTa ); | |||||||||
| 370 | 4 | %OWNER = (); | |||||||||
| 371 | 4 | %ITERATORS = (); | |||||||||
| 372 | 4 | *swig_lemma_get = *Ufal::MorphoDiTac::TaggedLemmaForms_lemma_get; | |||||||||
| 373 | 4 | *swig_lemma_set = *Ufal::MorphoDiTac::TaggedLemmaForms_lemma_set; | |||||||||
| 374 | 4 | *swig_forms_get = *Ufal::MorphoDiTac::TaggedLemmaForms_forms_get; | |||||||||
| 375 | 4 | *swig_forms_set = *Ufal::MorphoDiTac::TaggedLemmaForms_forms_set; | |||||||||
| 376 | 0 | ▶ | sub new { | ||||||||
|
Subroutine
new: not called CC=2 SCAR=17.9
| |||||||||||
| 377 | 0 | my $pkg = shift; | |||||||||
| 378 | 0 | my $self = Ufal::MorphoDiTac::new_TaggedLemmaForms(@_); | |||||||||
| 379 | 0 | ▶ | bless $self, $pkg if defined($self); | ||||||||
|
Branch: 1 branch
| |||||||||||
| 380 | } | ||||||||||
| 381 | |||||||||||
| 382 | 8 | ▶ | sub DESTROY { | ||||||||
|
Subroutine
DESTROY: called CC=4 SCAR=14.8
| |||||||||||
| 383 | 8 | ▶ | return unless $_[0]->isa('HASH'); | ||||||||
|
Branch: 1 branch
| |||||||||||
| 384 | 4 | my $self = tied(%{$_[0]}); | |||||||||
| 385 | 4 | ▶ | return unless defined $self; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 386 | 4 | delete $ITERATORS{$self}; | |||||||||
| 387 | 4 | ▶ | if (exists $OWNER{$self}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 388 | 0 | Ufal::MorphoDiTac::delete_TaggedLemmaForms($self); | |||||||||
| 389 | 0 | delete $OWNER{$self}; | |||||||||
| 390 | } | ||||||||||
| 391 | } | ||||||||||
| 392 | |||||||||||
| 393 | 0 | ▶ | sub DISOWN { | ||||||||
|
Subroutine
DISOWN: not called CC=1 SCAR=6.9
| |||||||||||
| 394 | 0 | my $self = shift; | |||||||||
| 395 | 0 | my $ptr = tied(%$self); | |||||||||
| 396 | 0 | delete $OWNER{$ptr}; | |||||||||
| 397 | } | ||||||||||
| 398 | |||||||||||
| 399 | 0 | ▶ | sub ACQUIRE { | ||||||||
|
Subroutine
ACQUIRE: not called CC=1 SCAR=6.9
| |||||||||||
| 400 | 0 | my $self = shift; | |||||||||
| 401 | 0 | my $ptr = tied(%$self); | |||||||||
| 402 | 0 | $OWNER{$ptr} = 1; | |||||||||
| 403 | } | ||||||||||
| 404 | |||||||||||
| 405 | |||||||||||
| 406 | ############# Class : Ufal::MorphoDiTa::TaggedLemmasForms ############## | ||||||||||
| 407 | |||||||||||
| 408 | package Ufal::MorphoDiTa::TaggedLemmasForms; | ||||||||||
| 409 | 4 | our $VERSION = '1.11.3.1'; | |||||||||
| 410 | 4 | ▶ | use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 411 | 4 | @ISA = qw( Ufal::MorphoDiTa ); | |||||||||
| 412 | 4 | %OWNER = (); | |||||||||
| 413 | 4 | %ITERATORS = (); | |||||||||
| 414 | 4 | ▶ | sub new { | ||||||||
|
Subroutine
new: called CC=2 SCAR=7.1
| |||||||||||
| 415 | 4 | my $pkg = shift; | |||||||||
| 416 | 4 | my $self = Ufal::MorphoDiTac::new_TaggedLemmasForms(@_); | |||||||||
| 417 | 4 | ▶ | bless $self, $pkg if defined($self); | ||||||||
|
Branch: 1 branch
| |||||||||||
| 418 | } | ||||||||||
| 419 | |||||||||||
| 420 | 4 | *size = *Ufal::MorphoDiTac::TaggedLemmasForms_size; | |||||||||
| 421 | 4 | *empty = *Ufal::MorphoDiTac::TaggedLemmasForms_empty; | |||||||||
| 422 | 4 | *clear = *Ufal::MorphoDiTac::TaggedLemmasForms_clear; | |||||||||
| 423 | 4 | *push = *Ufal::MorphoDiTac::TaggedLemmasForms_push; | |||||||||
| 424 | 4 | *pop = *Ufal::MorphoDiTac::TaggedLemmasForms_pop; | |||||||||
| 425 | 4 | *get = *Ufal::MorphoDiTac::TaggedLemmasForms_get; | |||||||||
| 426 | 4 | *set = *Ufal::MorphoDiTac::TaggedLemmasForms_set; | |||||||||
| 427 | 8 | ▶ | sub DESTROY { | ||||||||
|
Subroutine
DESTROY: called CC=4 SCAR=14.8
| |||||||||||
| 428 | 8 | ▶ | return unless $_[0]->isa('HASH'); | ||||||||
|
Branch: 1 branch
| |||||||||||
| 429 | 4 | my $self = tied(%{$_[0]}); | |||||||||
| 430 | 4 | ▶ | return unless defined $self; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 431 | 4 | delete $ITERATORS{$self}; | |||||||||
| 432 | 4 | ▶ | if (exists $OWNER{$self}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 433 | 0 | Ufal::MorphoDiTac::delete_TaggedLemmasForms($self); | |||||||||
| 434 | 0 | delete $OWNER{$self}; | |||||||||
| 435 | } | ||||||||||
| 436 | } | ||||||||||
| 437 | |||||||||||
| 438 | 0 | ▶ | sub DISOWN { | ||||||||
|
Subroutine
DISOWN: not called CC=1 SCAR=6.9
| |||||||||||
| 439 | 0 | my $self = shift; | |||||||||
| 440 | 0 | my $ptr = tied(%$self); | |||||||||
| 441 | 0 | delete $OWNER{$ptr}; | |||||||||
| 442 | } | ||||||||||
| 443 | |||||||||||
| 444 | 0 | ▶ | sub ACQUIRE { | ||||||||
|
Subroutine
ACQUIRE: not called CC=1 SCAR=6.9
| |||||||||||
| 445 | 0 | my $self = shift; | |||||||||
| 446 | 0 | my $ptr = tied(%$self); | |||||||||
| 447 | 0 | $OWNER{$ptr} = 1; | |||||||||
| 448 | } | ||||||||||
| 449 | |||||||||||
| 450 | |||||||||||
| 451 | ############# Class : Ufal::MorphoDiTa::TokenRange ############## | ||||||||||
| 452 | |||||||||||
| 453 | package Ufal::MorphoDiTa::TokenRange; | ||||||||||
| 454 | 4 | our $VERSION = '1.11.3.1'; | |||||||||
| 455 | 4 | ▶ | use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 456 | 4 | @ISA = qw( Ufal::MorphoDiTa ); | |||||||||
| 457 | 4 | %OWNER = (); | |||||||||
| 458 | 4 | %ITERATORS = (); | |||||||||
| 459 | 4 | *swig_start_get = *Ufal::MorphoDiTac::TokenRange_start_get; | |||||||||
| 460 | 4 | *swig_start_set = *Ufal::MorphoDiTac::TokenRange_start_set; | |||||||||
| 461 | 4 | *swig_length_get = *Ufal::MorphoDiTac::TokenRange_length_get; | |||||||||
| 462 | 4 | *swig_length_set = *Ufal::MorphoDiTac::TokenRange_length_set; | |||||||||
| 463 | 0 | ▶ | sub new { | ||||||||
|
Subroutine
new: not called CC=2 SCAR=17.9
| |||||||||||
| 464 | 0 | my $pkg = shift; | |||||||||
| 465 | 0 | my $self = Ufal::MorphoDiTac::new_TokenRange(@_); | |||||||||
| 466 | 0 | ▶ | bless $self, $pkg if defined($self); | ||||||||
|
Branch: 1 branch
| |||||||||||
| 467 | } | ||||||||||
| 468 | |||||||||||
| 469 | 0 | ▶ | sub DESTROY { | ||||||||
|
Subroutine
DESTROY: not called CC=4 SCAR=30.0
| |||||||||||
| 470 | 0 | ▶ | return unless $_[0]->isa('HASH'); | ||||||||
|
Branch: 1 branch
| |||||||||||
| 471 | 0 | my $self = tied(%{$_[0]}); | |||||||||
| 472 | 0 | ▶ | return unless defined $self; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 473 | 0 | delete $ITERATORS{$self}; | |||||||||
| 474 | 0 | ▶ | if (exists $OWNER{$self}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 475 | 0 | Ufal::MorphoDiTac::delete_TokenRange($self); | |||||||||
| 476 | 0 | delete $OWNER{$self}; | |||||||||
| 477 | } | ||||||||||
| 478 | } | ||||||||||
| 479 | |||||||||||
| 480 | 0 | ▶ | sub DISOWN { | ||||||||
|
Subroutine
DISOWN: not called CC=1 SCAR=6.9
| |||||||||||
| 481 | 0 | my $self = shift; | |||||||||
| 482 | 0 | my $ptr = tied(%$self); | |||||||||
| 483 | 0 | delete $OWNER{$ptr}; | |||||||||
| 484 | } | ||||||||||
| 485 | |||||||||||
| 486 | 0 | ▶ | sub ACQUIRE { | ||||||||
|
Subroutine
ACQUIRE: not called CC=1 SCAR=6.9
| |||||||||||
| 487 | 0 | my $self = shift; | |||||||||
| 488 | 0 | my $ptr = tied(%$self); | |||||||||
| 489 | 0 | $OWNER{$ptr} = 1; | |||||||||
| 490 | } | ||||||||||
| 491 | |||||||||||
| 492 | |||||||||||
| 493 | ############# Class : Ufal::MorphoDiTa::TokenRanges ############## | ||||||||||
| 494 | |||||||||||
| 495 | package Ufal::MorphoDiTa::TokenRanges; | ||||||||||
| 496 | 4 | our $VERSION = '1.11.3.1'; | |||||||||
| 497 | 4 | ▶ | use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 498 | 4 | @ISA = qw( Ufal::MorphoDiTa ); | |||||||||
| 499 | 4 | %OWNER = (); | |||||||||
| 500 | 4 | %ITERATORS = (); | |||||||||
| 501 | 0 | ▶ | sub new { | ||||||||
|
Subroutine
new: not called CC=2 SCAR=17.9
| |||||||||||
| 502 | 0 | my $pkg = shift; | |||||||||
| 503 | 0 | my $self = Ufal::MorphoDiTac::new_TokenRanges(@_); | |||||||||
| 504 | 0 | ▶ | bless $self, $pkg if defined($self); | ||||||||
|
Branch: 1 branch
| |||||||||||
| 505 | } | ||||||||||
| 506 | |||||||||||
| 507 | 4 | *size = *Ufal::MorphoDiTac::TokenRanges_size; | |||||||||
| 508 | 4 | *empty = *Ufal::MorphoDiTac::TokenRanges_empty; | |||||||||
| 509 | 4 | *clear = *Ufal::MorphoDiTac::TokenRanges_clear; | |||||||||
| 510 | 4 | *push = *Ufal::MorphoDiTac::TokenRanges_push; | |||||||||
| 511 | 4 | *pop = *Ufal::MorphoDiTac::TokenRanges_pop; | |||||||||
| 512 | 4 | *get = *Ufal::MorphoDiTac::TokenRanges_get; | |||||||||
| 513 | 4 | *set = *Ufal::MorphoDiTac::TokenRanges_set; | |||||||||
| 514 | 0 | ▶ | sub DESTROY { | ||||||||
|
Subroutine
DESTROY: not called CC=4 SCAR=30.0
| |||||||||||
| 515 | 0 | ▶ | return unless $_[0]->isa('HASH'); | ||||||||
|
Branch: 1 branch
| |||||||||||
| 516 | 0 | my $self = tied(%{$_[0]}); | |||||||||
| 517 | 0 | ▶ | return unless defined $self; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 518 | 0 | delete $ITERATORS{$self}; | |||||||||
| 519 | 0 | ▶ | if (exists $OWNER{$self}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 520 | 0 | Ufal::MorphoDiTac::delete_TokenRanges($self); | |||||||||
| 521 | 0 | delete $OWNER{$self}; | |||||||||
| 522 | } | ||||||||||
| 523 | } | ||||||||||
| 524 | |||||||||||
| 525 | 0 | ▶ | sub DISOWN { | ||||||||
|
Subroutine
DISOWN: not called CC=1 SCAR=6.9
| |||||||||||
| 526 | 0 | my $self = shift; | |||||||||
| 527 | 0 | my $ptr = tied(%$self); | |||||||||
| 528 | 0 | delete $OWNER{$ptr}; | |||||||||
| 529 | } | ||||||||||
| 530 | |||||||||||
| 531 | 0 | ▶ | sub ACQUIRE { | ||||||||
|
Subroutine
ACQUIRE: not called CC=1 SCAR=6.9
| |||||||||||
| 532 | 0 | my $self = shift; | |||||||||
| 533 | 0 | my $ptr = tied(%$self); | |||||||||
| 534 | 0 | $OWNER{$ptr} = 1; | |||||||||
| 535 | } | ||||||||||
| 536 | |||||||||||
| 537 | |||||||||||
| 538 | ############# Class : Ufal::MorphoDiTa::DerivatedLemma ############## | ||||||||||
| 539 | |||||||||||
| 540 | package Ufal::MorphoDiTa::DerivatedLemma; | ||||||||||
| 541 | 4 | our $VERSION = '1.11.3.1'; | |||||||||
| 542 | 4 | ▶ | use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 543 | 4 | @ISA = qw( Ufal::MorphoDiTa ); | |||||||||
| 544 | 4 | %OWNER = (); | |||||||||
| 545 | 4 | %ITERATORS = (); | |||||||||
| 546 | 4 | *swig_lemma_get = *Ufal::MorphoDiTac::DerivatedLemma_lemma_get; | |||||||||
| 547 | 4 | *swig_lemma_set = *Ufal::MorphoDiTac::DerivatedLemma_lemma_set; | |||||||||
| 548 | 0 | ▶ | sub new { | ||||||||
|
Subroutine
new: not called CC=2 SCAR=17.9
| |||||||||||
| 549 | 0 | my $pkg = shift; | |||||||||
| 550 | 0 | my $self = Ufal::MorphoDiTac::new_DerivatedLemma(@_); | |||||||||
| 551 | 0 | ▶ | bless $self, $pkg if defined($self); | ||||||||
|
Branch: 1 branch
| |||||||||||
| 552 | } | ||||||||||
| 553 | |||||||||||
| 554 | 0 | ▶ | sub DESTROY { | ||||||||
|
Subroutine
DESTROY: not called CC=4 SCAR=30.0
| |||||||||||
| 555 | 0 | ▶ | return unless $_[0]->isa('HASH'); | ||||||||
|
Branch: 1 branch
| |||||||||||
| 556 | 0 | my $self = tied(%{$_[0]}); | |||||||||
| 557 | 0 | ▶ | return unless defined $self; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 558 | 0 | delete $ITERATORS{$self}; | |||||||||
| 559 | 0 | ▶ | if (exists $OWNER{$self}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 560 | 0 | Ufal::MorphoDiTac::delete_DerivatedLemma($self); | |||||||||
| 561 | 0 | delete $OWNER{$self}; | |||||||||
| 562 | } | ||||||||||
| 563 | } | ||||||||||
| 564 | |||||||||||
| 565 | 0 | ▶ | sub DISOWN { | ||||||||
|
Subroutine
DISOWN: not called CC=1 SCAR=6.9
| |||||||||||
| 566 | 0 | my $self = shift; | |||||||||
| 567 | 0 | my $ptr = tied(%$self); | |||||||||
| 568 | 0 | delete $OWNER{$ptr}; | |||||||||
| 569 | } | ||||||||||
| 570 | |||||||||||
| 571 | 0 | ▶ | sub ACQUIRE { | ||||||||
|
Subroutine
ACQUIRE: not called CC=1 SCAR=6.9
| |||||||||||
| 572 | 0 | my $self = shift; | |||||||||
| 573 | 0 | my $ptr = tied(%$self); | |||||||||
| 574 | 0 | $OWNER{$ptr} = 1; | |||||||||
| 575 | } | ||||||||||
| 576 | |||||||||||
| 577 | |||||||||||
| 578 | ############# Class : Ufal::MorphoDiTa::DerivatedLemmas ############## | ||||||||||
| 579 | |||||||||||
| 580 | package Ufal::MorphoDiTa::DerivatedLemmas; | ||||||||||
| 581 | 4 | our $VERSION = '1.11.3.1'; | |||||||||
| 582 | 4 | ▶ | use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 583 | 4 | @ISA = qw( Ufal::MorphoDiTa ); | |||||||||
| 584 | 4 | %OWNER = (); | |||||||||
| 585 | 4 | %ITERATORS = (); | |||||||||
| 586 | 0 | ▶ | sub new { | ||||||||
|
Subroutine
new: not called CC=2 SCAR=17.9
| |||||||||||
| 587 | 0 | my $pkg = shift; | |||||||||
| 588 | 0 | my $self = Ufal::MorphoDiTac::new_DerivatedLemmas(@_); | |||||||||
| 589 | 0 | ▶ | bless $self, $pkg if defined($self); | ||||||||
|
Branch: 1 branch
| |||||||||||
| 590 | } | ||||||||||
| 591 | |||||||||||
| 592 | 4 | *size = *Ufal::MorphoDiTac::DerivatedLemmas_size; | |||||||||
| 593 | 4 | *empty = *Ufal::MorphoDiTac::DerivatedLemmas_empty; | |||||||||
| 594 | 4 | *clear = *Ufal::MorphoDiTac::DerivatedLemmas_clear; | |||||||||
| 595 | 4 | *push = *Ufal::MorphoDiTac::DerivatedLemmas_push; | |||||||||
| 596 | 4 | *pop = *Ufal::MorphoDiTac::DerivatedLemmas_pop; | |||||||||
| 597 | 4 | *get = *Ufal::MorphoDiTac::DerivatedLemmas_get; | |||||||||
| 598 | 4 | *set = *Ufal::MorphoDiTac::DerivatedLemmas_set; | |||||||||
| 599 | 0 | ▶ | sub DESTROY { | ||||||||
|
Subroutine
DESTROY: not called CC=4 SCAR=30.0
| |||||||||||
| 600 | 0 | ▶ | return unless $_[0]->isa('HASH'); | ||||||||
|
Branch: 1 branch
| |||||||||||
| 601 | 0 | my $self = tied(%{$_[0]}); | |||||||||
| 602 | 0 | ▶ | return unless defined $self; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 603 | 0 | delete $ITERATORS{$self}; | |||||||||
| 604 | 0 | ▶ | if (exists $OWNER{$self}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 605 | 0 | Ufal::MorphoDiTac::delete_DerivatedLemmas($self); | |||||||||
| 606 | 0 | delete $OWNER{$self}; | |||||||||
| 607 | } | ||||||||||
| 608 | } | ||||||||||
| 609 | |||||||||||
| 610 | 0 | ▶ | sub DISOWN { | ||||||||
|
Subroutine
DISOWN: not called CC=1 SCAR=6.9
| |||||||||||
| 611 | 0 | my $self = shift; | |||||||||
| 612 | 0 | my $ptr = tied(%$self); | |||||||||
| 613 | 0 | delete $OWNER{$ptr}; | |||||||||
| 614 | } | ||||||||||
| 615 | |||||||||||
| 616 | 0 | ▶ | sub ACQUIRE { | ||||||||
|
Subroutine
ACQUIRE: not called CC=1 SCAR=6.9
| |||||||||||
| 617 | 0 | my $self = shift; | |||||||||
| 618 | 0 | my $ptr = tied(%$self); | |||||||||
| 619 | 0 | $OWNER{$ptr} = 1; | |||||||||
| 620 | } | ||||||||||
| 621 | |||||||||||
| 622 | |||||||||||
| 623 | ############# Class : Ufal::MorphoDiTa::Version ############## | ||||||||||
| 624 | |||||||||||
| 625 | package Ufal::MorphoDiTa::Version; | ||||||||||
| 626 | 4 | our $VERSION = '1.11.3.1'; | |||||||||
| 627 | 4 | ▶ | use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 628 | 4 | @ISA = qw( Ufal::MorphoDiTa ); | |||||||||
| 629 | 4 | %OWNER = (); | |||||||||
| 630 | 4 | %ITERATORS = (); | |||||||||
| 631 | 4 | *swig_major_get = *Ufal::MorphoDiTac::Version_major_get; | |||||||||
| 632 | 4 | *swig_major_set = *Ufal::MorphoDiTac::Version_major_set; | |||||||||
| 633 | 4 | *swig_minor_get = *Ufal::MorphoDiTac::Version_minor_get; | |||||||||
| 634 | 4 | *swig_minor_set = *Ufal::MorphoDiTac::Version_minor_set; | |||||||||
| 635 | 4 | *swig_patch_get = *Ufal::MorphoDiTac::Version_patch_get; | |||||||||
| 636 | 4 | *swig_patch_set = *Ufal::MorphoDiTac::Version_patch_set; | |||||||||
| 637 | 4 | *swig_prerelease_get = *Ufal::MorphoDiTac::Version_prerelease_get; | |||||||||
| 638 | 4 | *swig_prerelease_set = *Ufal::MorphoDiTac::Version_prerelease_set; | |||||||||
| 639 | 4 | *current = *Ufal::MorphoDiTac::Version_current; | |||||||||
| 640 | 0 | ▶ | sub new { | ||||||||
|
Subroutine
new: not called CC=2 SCAR=17.9
| |||||||||||
| 641 | 0 | my $pkg = shift; | |||||||||
| 642 | 0 | my $self = Ufal::MorphoDiTac::new_Version(@_); | |||||||||
| 643 | 0 | ▶ | bless $self, $pkg if defined($self); | ||||||||
|
Branch: 1 branch
| |||||||||||
| 644 | } | ||||||||||
| 645 | |||||||||||
| 646 | 0 | ▶ | sub DESTROY { | ||||||||
|
Subroutine
DESTROY: not called CC=4 SCAR=30.0
| |||||||||||
| 647 | 0 | ▶ | return unless $_[0]->isa('HASH'); | ||||||||
|
Branch: 1 branch
| |||||||||||
| 648 | 0 | my $self = tied(%{$_[0]}); | |||||||||
| 649 | 0 | ▶ | return unless defined $self; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 650 | 0 | delete $ITERATORS{$self}; | |||||||||
| 651 | 0 | ▶ | if (exists $OWNER{$self}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 652 | 0 | Ufal::MorphoDiTac::delete_Version($self); | |||||||||
| 653 | 0 | delete $OWNER{$self}; | |||||||||
| 654 | } | ||||||||||
| 655 | } | ||||||||||
| 656 | |||||||||||
| 657 | 0 | ▶ | sub DISOWN { | ||||||||
|
Subroutine
DISOWN: not called CC=1 SCAR=6.9
| |||||||||||
| 658 | 0 | my $self = shift; | |||||||||
| 659 | 0 | my $ptr = tied(%$self); | |||||||||
| 660 | 0 | delete $OWNER{$ptr}; | |||||||||
| 661 | } | ||||||||||
| 662 | |||||||||||
| 663 | 0 | ▶ | sub ACQUIRE { | ||||||||
|
Subroutine
ACQUIRE: not called CC=1 SCAR=6.9
| |||||||||||
| 664 | 0 | my $self = shift; | |||||||||
| 665 | 0 | my $ptr = tied(%$self); | |||||||||
| 666 | 0 | $OWNER{$ptr} = 1; | |||||||||
| 667 | } | ||||||||||
| 668 | |||||||||||
| 669 | |||||||||||
| 670 | ############# Class : Ufal::MorphoDiTa::Tokenizer ############## | ||||||||||
| 671 | |||||||||||
| 672 | package Ufal::MorphoDiTa::Tokenizer; | ||||||||||
| 673 | 4 | our $VERSION = '1.11.3.1'; | |||||||||
| 674 | 4 | ▶ | use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 675 | 4 | @ISA = qw( Ufal::MorphoDiTa ); | |||||||||
| 676 | 4 | %OWNER = (); | |||||||||
| 677 | 4 | %ITERATORS = (); | |||||||||
| 678 | 6 | ▶ | sub DESTROY { | ||||||||
|
Subroutine
DESTROY: called CC=4 SCAR=14.0
| |||||||||||
| 679 | 6 | ▶ | return unless $_[0]->isa('HASH'); | ||||||||
|
Branch: 1 branch
| |||||||||||
| 680 | 3 | my $self = tied(%{$_[0]}); | |||||||||
| 681 | 3 | ▶ | return unless defined $self; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 682 | 3 | delete $ITERATORS{$self}; | |||||||||
| 683 | 3 | ▶ | if (exists $OWNER{$self}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 684 | 3 | Ufal::MorphoDiTac::delete_Tokenizer($self); | |||||||||
| 685 | 3 | delete $OWNER{$self}; | |||||||||
| 686 | } | ||||||||||
| 687 | } | ||||||||||
| 688 | |||||||||||
| 689 | 4 | *setText = *Ufal::MorphoDiTac::Tokenizer_setText; | |||||||||
| 690 | 4 | *nextSentence = *Ufal::MorphoDiTac::Tokenizer_nextSentence; | |||||||||
| 691 | 4 | *newVerticalTokenizer = *Ufal::MorphoDiTac::Tokenizer_newVerticalTokenizer; | |||||||||
| 692 | 4 | *newCzechTokenizer = *Ufal::MorphoDiTac::Tokenizer_newCzechTokenizer; | |||||||||
| 693 | 4 | *newEnglishTokenizer = *Ufal::MorphoDiTac::Tokenizer_newEnglishTokenizer; | |||||||||
| 694 | 4 | *newGenericTokenizer = *Ufal::MorphoDiTac::Tokenizer_newGenericTokenizer; | |||||||||
| 695 | 0 | ▶ | sub DISOWN { | ||||||||
|
Subroutine
DISOWN: not called CC=1 SCAR=6.9
| |||||||||||
| 696 | 0 | my $self = shift; | |||||||||
| 697 | 0 | my $ptr = tied(%$self); | |||||||||
| 698 | 0 | delete $OWNER{$ptr}; | |||||||||
| 699 | } | ||||||||||
| 700 | |||||||||||
| 701 | 0 | ▶ | sub ACQUIRE { | ||||||||
|
Subroutine
ACQUIRE: not called CC=1 SCAR=6.9
| |||||||||||
| 702 | 0 | my $self = shift; | |||||||||
| 703 | 0 | my $ptr = tied(%$self); | |||||||||
| 704 | 0 | $OWNER{$ptr} = 1; | |||||||||
| 705 | } | ||||||||||
| 706 | |||||||||||
| 707 | |||||||||||
| 708 | ############# Class : Ufal::MorphoDiTa::Derivator ############## | ||||||||||
| 709 | |||||||||||
| 710 | package Ufal::MorphoDiTa::Derivator; | ||||||||||
| 711 | 4 | our $VERSION = '1.11.3.1'; | |||||||||
| 712 | 4 | ▶ | use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 713 | 4 | @ISA = qw( Ufal::MorphoDiTa ); | |||||||||
| 714 | 4 | %OWNER = (); | |||||||||
| 715 | 4 | %ITERATORS = (); | |||||||||
| 716 | 0 | ▶ | sub DESTROY { | ||||||||
|
Subroutine
DESTROY: not called CC=4 SCAR=30.0
| |||||||||||
| 717 | 0 | ▶ | return unless $_[0]->isa('HASH'); | ||||||||
|
Branch: 1 branch
| |||||||||||
| 718 | 0 | my $self = tied(%{$_[0]}); | |||||||||
| 719 | 0 | ▶ | return unless defined $self; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 720 | 0 | delete $ITERATORS{$self}; | |||||||||
| 721 | 0 | ▶ | if (exists $OWNER{$self}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 722 | 0 | Ufal::MorphoDiTac::delete_Derivator($self); | |||||||||
| 723 | 0 | delete $OWNER{$self}; | |||||||||
| 724 | } | ||||||||||
| 725 | } | ||||||||||
| 726 | |||||||||||
| 727 | 4 | *parent = *Ufal::MorphoDiTac::Derivator_parent; | |||||||||
| 728 | 4 | *children = *Ufal::MorphoDiTac::Derivator_children; | |||||||||
| 729 | 0 | ▶ | sub DISOWN { | ||||||||
|
Subroutine
DISOWN: not called CC=1 SCAR=6.9
| |||||||||||
| 730 | 0 | my $self = shift; | |||||||||
| 731 | 0 | my $ptr = tied(%$self); | |||||||||
| 732 | 0 | delete $OWNER{$ptr}; | |||||||||
| 733 | } | ||||||||||
| 734 | |||||||||||
| 735 | 0 | ▶ | sub ACQUIRE { | ||||||||
|
Subroutine
ACQUIRE: not called CC=1 SCAR=6.9
| |||||||||||
| 736 | 0 | my $self = shift; | |||||||||
| 737 | 0 | my $ptr = tied(%$self); | |||||||||
| 738 | 0 | $OWNER{$ptr} = 1; | |||||||||
| 739 | } | ||||||||||
| 740 | |||||||||||
| 741 | |||||||||||
| 742 | ############# Class : Ufal::MorphoDiTa::Morpho ############## | ||||||||||
| 743 | |||||||||||
| 744 | package Ufal::MorphoDiTa::Morpho; | ||||||||||
| 745 | 4 | our $VERSION = '1.11.3.1'; | |||||||||
| 746 | 4 | ▶ | use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 747 | 4 | @ISA = qw( Ufal::MorphoDiTa ); | |||||||||
| 748 | 4 | %OWNER = (); | |||||||||
| 749 | 4 | %ITERATORS = (); | |||||||||
| 750 | 0 | ▶ | sub DESTROY { | ||||||||
|
Subroutine
DESTROY: not called CC=4 SCAR=30.0
| |||||||||||
| 751 | 0 | ▶ | return unless $_[0]->isa('HASH'); | ||||||||
|
Branch: 1 branch
| |||||||||||
| 752 | 0 | my $self = tied(%{$_[0]}); | |||||||||
| 753 | 0 | ▶ | return unless defined $self; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 754 | 0 | delete $ITERATORS{$self}; | |||||||||
| 755 | 0 | ▶ | if (exists $OWNER{$self}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 756 | 0 | Ufal::MorphoDiTac::delete_Morpho($self); | |||||||||
| 757 | 0 | delete $OWNER{$self}; | |||||||||
| 758 | } | ||||||||||
| 759 | } | ||||||||||
| 760 | |||||||||||
| 761 | 4 | *load = *Ufal::MorphoDiTac::Morpho_load; | |||||||||
| 762 | 4 | *NO_GUESSER = *Ufal::MorphoDiTac::Morpho_NO_GUESSER; | |||||||||
| 763 | 4 | *GUESSER = *Ufal::MorphoDiTac::Morpho_GUESSER; | |||||||||
| 764 | 4 | *GUESSER_UNSPECIFIED = *Ufal::MorphoDiTac::Morpho_GUESSER_UNSPECIFIED; | |||||||||
| 765 | 4 | *analyze = *Ufal::MorphoDiTac::Morpho_analyze; | |||||||||
| 766 | 4 | *generate = *Ufal::MorphoDiTac::Morpho_generate; | |||||||||
| 767 | 4 | *rawLemma = *Ufal::MorphoDiTac::Morpho_rawLemma; | |||||||||
| 768 | 4 | *lemmaId = *Ufal::MorphoDiTac::Morpho_lemmaId; | |||||||||
| 769 | 4 | *rawForm = *Ufal::MorphoDiTac::Morpho_rawForm; | |||||||||
| 770 | 4 | *newTokenizer = *Ufal::MorphoDiTac::Morpho_newTokenizer; | |||||||||
| 771 | 4 | *getDerivator = *Ufal::MorphoDiTac::Morpho_getDerivator; | |||||||||
| 772 | 0 | ▶ | sub DISOWN { | ||||||||
|
Subroutine
DISOWN: not called CC=1 SCAR=6.9
| |||||||||||
| 773 | 0 | my $self = shift; | |||||||||
| 774 | 0 | my $ptr = tied(%$self); | |||||||||
| 775 | 0 | delete $OWNER{$ptr}; | |||||||||
| 776 | } | ||||||||||
| 777 | |||||||||||
| 778 | 0 | ▶ | sub ACQUIRE { | ||||||||
|
Subroutine
ACQUIRE: not called CC=1 SCAR=6.9
| |||||||||||
| 779 | 0 | my $self = shift; | |||||||||
| 780 | 0 | my $ptr = tied(%$self); | |||||||||
| 781 | 0 | $OWNER{$ptr} = 1; | |||||||||
| 782 | } | ||||||||||
| 783 | |||||||||||
| 784 | |||||||||||
| 785 | ############# Class : Ufal::MorphoDiTa::Tagger ############## | ||||||||||
| 786 | |||||||||||
| 787 | package Ufal::MorphoDiTa::Tagger; | ||||||||||
| 788 | 4 | our $VERSION = '1.11.3.1'; | |||||||||
| 789 | 4 | ▶ | use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 790 | 4 | @ISA = qw( Ufal::MorphoDiTa ); | |||||||||
| 791 | 4 | %OWNER = (); | |||||||||
| 792 | 4 | %ITERATORS = (); | |||||||||
| 793 | 0 | ▶ | sub DESTROY { | ||||||||
|
Subroutine
DESTROY: not called CC=4 SCAR=30.0
| |||||||||||
| 794 | 0 | ▶ | return unless $_[0]->isa('HASH'); | ||||||||
|
Branch: 1 branch
| |||||||||||
| 795 | 0 | my $self = tied(%{$_[0]}); | |||||||||
| 796 | 0 | ▶ | return unless defined $self; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 797 | 0 | delete $ITERATORS{$self}; | |||||||||
| 798 | 0 | ▶ | if (exists $OWNER{$self}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 799 | 0 | Ufal::MorphoDiTac::delete_Tagger($self); | |||||||||
| 800 | 0 | delete $OWNER{$self}; | |||||||||
| 801 | } | ||||||||||
| 802 | } | ||||||||||
| 803 | |||||||||||
| 804 | 4 | *load = *Ufal::MorphoDiTac::Tagger_load; | |||||||||
| 805 | 4 | *getMorpho = *Ufal::MorphoDiTac::Tagger_getMorpho; | |||||||||
| 806 | 4 | *tag = *Ufal::MorphoDiTac::Tagger_tag; | |||||||||
| 807 | 4 | *tagAnalyzed = *Ufal::MorphoDiTac::Tagger_tagAnalyzed; | |||||||||
| 808 | 4 | *newTokenizer = *Ufal::MorphoDiTac::Tagger_newTokenizer; | |||||||||
| 809 | 0 | ▶ | sub DISOWN { | ||||||||
|
Subroutine
DISOWN: not called CC=1 SCAR=6.9
| |||||||||||
| 810 | 0 | my $self = shift; | |||||||||
| 811 | 0 | my $ptr = tied(%$self); | |||||||||
| 812 | 0 | delete $OWNER{$ptr}; | |||||||||
| 813 | } | ||||||||||
| 814 | |||||||||||
| 815 | 0 | ▶ | sub ACQUIRE { | ||||||||
|
Subroutine
ACQUIRE: not called CC=1 SCAR=6.9
| |||||||||||
| 816 | 0 | my $self = shift; | |||||||||
| 817 | 0 | my $ptr = tied(%$self); | |||||||||
| 818 | 0 | $OWNER{$ptr} = 1; | |||||||||
| 819 | } | ||||||||||
| 820 | |||||||||||
| 821 | |||||||||||
| 822 | ############# Class : Ufal::MorphoDiTa::TagsetConverter ############## | ||||||||||
| 823 | |||||||||||
| 824 | package Ufal::MorphoDiTa::TagsetConverter; | ||||||||||
| 825 | 4 | our $VERSION = '1.11.3.1'; | |||||||||
| 826 | 4 | ▶ | use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 827 | 4 | @ISA = qw( Ufal::MorphoDiTa ); | |||||||||
| 828 | 4 | %OWNER = (); | |||||||||
| 829 | 4 | %ITERATORS = (); | |||||||||
| 830 | 0 | ▶ | sub DESTROY { | ||||||||
|
Subroutine
DESTROY: not called CC=4 SCAR=30.0
| |||||||||||
| 831 | 0 | ▶ | return unless $_[0]->isa('HASH'); | ||||||||
|
Branch: 1 branch
| |||||||||||
| 832 | 0 | my $self = tied(%{$_[0]}); | |||||||||
| 833 | 0 | ▶ | return unless defined $self; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 834 | 0 | delete $ITERATORS{$self}; | |||||||||
| 835 | 0 | ▶ | if (exists $OWNER{$self}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 836 | 0 | Ufal::MorphoDiTac::delete_TagsetConverter($self); | |||||||||
| 837 | 0 | delete $OWNER{$self}; | |||||||||
| 838 | } | ||||||||||
| 839 | } | ||||||||||
| 840 | |||||||||||
| 841 | 4 | *convert = *Ufal::MorphoDiTac::TagsetConverter_convert; | |||||||||
| 842 | 4 | *convertAnalyzed = *Ufal::MorphoDiTac::TagsetConverter_convertAnalyzed; | |||||||||
| 843 | 4 | *convertGenerated = *Ufal::MorphoDiTac::TagsetConverter_convertGenerated; | |||||||||
| 844 | 4 | *newIdentityConverter = *Ufal::MorphoDiTac::TagsetConverter_newIdentityConverter; | |||||||||
| 845 | 4 | *newPdtToConll2009Converter = *Ufal::MorphoDiTac::TagsetConverter_newPdtToConll2009Converter; | |||||||||
| 846 | 4 | *newStripLemmaCommentConverter = *Ufal::MorphoDiTac::TagsetConverter_newStripLemmaCommentConverter; | |||||||||
| 847 | 4 | *newStripLemmaIdConverter = *Ufal::MorphoDiTac::TagsetConverter_newStripLemmaIdConverter; | |||||||||
| 848 | 0 | ▶ | sub DISOWN { | ||||||||
|
Subroutine
DISOWN: not called CC=1 SCAR=6.9
| |||||||||||
| 849 | 0 | my $self = shift; | |||||||||
| 850 | 0 | my $ptr = tied(%$self); | |||||||||
| 851 | 0 | delete $OWNER{$ptr}; | |||||||||
| 852 | } | ||||||||||
| 853 | |||||||||||
| 854 | 0 | ▶ | sub ACQUIRE { | ||||||||
|
Subroutine
ACQUIRE: not called CC=1 SCAR=6.9
| |||||||||||
| 855 | 0 | my $self = shift; | |||||||||
| 856 | 0 | my $ptr = tied(%$self); | |||||||||
| 857 | 0 | $OWNER{$ptr} = 1; | |||||||||
| 858 | } | ||||||||||
| 859 | |||||||||||
| 860 | |||||||||||
| 861 | ############# Class : Ufal::MorphoDiTa::DerivationFormatter ############## | ||||||||||
| 862 | |||||||||||
| 863 | package Ufal::MorphoDiTa::DerivationFormatter; | ||||||||||
| 864 | 4 | our $VERSION = '1.11.3.1'; | |||||||||
| 865 | 4 | ▶ | use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 866 | 4 | @ISA = qw( Ufal::MorphoDiTa ); | |||||||||
| 867 | 4 | %OWNER = (); | |||||||||
| 868 | 4 | %ITERATORS = (); | |||||||||
| 869 | 0 | ▶ | sub DESTROY { | ||||||||
|
Subroutine
DESTROY: not called CC=4 SCAR=30.0
| |||||||||||
| 870 | 0 | ▶ | return unless $_[0]->isa('HASH'); | ||||||||
|
Branch: 1 branch
| |||||||||||
| 871 | 0 | my $self = tied(%{$_[0]}); | |||||||||
| 872 | 0 | ▶ | return unless defined $self; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 873 | 0 | delete $ITERATORS{$self}; | |||||||||
| 874 | 0 | ▶ | if (exists $OWNER{$self}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 875 | 0 | Ufal::MorphoDiTac::delete_DerivationFormatter($self); | |||||||||
| 876 | 0 | delete $OWNER{$self}; | |||||||||
| 877 | } | ||||||||||
| 878 | } | ||||||||||
| 879 | |||||||||||
| 880 | 4 | *formatDerivation = *Ufal::MorphoDiTac::DerivationFormatter_formatDerivation; | |||||||||
| 881 | 4 | *formatTaggedLemma = *Ufal::MorphoDiTac::DerivationFormatter_formatTaggedLemma; | |||||||||
| 882 | 4 | *formatTaggedLemmas = *Ufal::MorphoDiTac::DerivationFormatter_formatTaggedLemmas; | |||||||||
| 883 | 4 | *newNoneDerivationFormatter = *Ufal::MorphoDiTac::DerivationFormatter_newNoneDerivationFormatter; | |||||||||
| 884 | 4 | *newRootDerivationFormatter = *Ufal::MorphoDiTac::DerivationFormatter_newRootDerivationFormatter; | |||||||||
| 885 | 4 | *newPathDerivationFormatter = *Ufal::MorphoDiTac::DerivationFormatter_newPathDerivationFormatter; | |||||||||
| 886 | 4 | *newTreeDerivationFormatter = *Ufal::MorphoDiTac::DerivationFormatter_newTreeDerivationFormatter; | |||||||||
| 887 | 4 | *newDerivationFormatter = *Ufal::MorphoDiTac::DerivationFormatter_newDerivationFormatter; | |||||||||
| 888 | 0 | ▶ | sub DISOWN { | ||||||||
|
Subroutine
DISOWN: not called CC=1 SCAR=6.9
| |||||||||||
| 889 | 0 | my $self = shift; | |||||||||
| 890 | 0 | my $ptr = tied(%$self); | |||||||||
| 891 | 0 | delete $OWNER{$ptr}; | |||||||||
| 892 | } | ||||||||||
| 893 | |||||||||||
| 894 | 0 | ▶ | sub ACQUIRE { | ||||||||
|
Subroutine
ACQUIRE: not called CC=1 SCAR=6.9
| |||||||||||
| 895 | 0 | my $self = shift; | |||||||||
| 896 | 0 | my $ptr = tied(%$self); | |||||||||
| 897 | 0 | $OWNER{$ptr} = 1; | |||||||||
| 898 | } | ||||||||||
| 899 | |||||||||||
| 900 | |||||||||||
| 901 | # ------- VARIABLE STUBS -------- | ||||||||||
| 902 | |||||||||||
| 903 | package Ufal::MorphoDiTa; | ||||||||||
| 904 | |||||||||||
| 905 | 4 | 1; | |||||||||