File Coverage

blib/lib/Ufal/MorphoDiTa.pm
Criterion Covered Total %
statement 128 398 32.1
branch 35 148 23.6
condition n/a
subroutine 34 103 33.0
pod 0 1 0.0
total 197 650 30.3


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