| 1 | package PMLTQ::Relation::PDT::AEChildIterator; | ||
| 2 | 12 | our $AUTHORITY = 'cpan:MATY'; | |
| 3 | 12 | $PMLTQ::Relation::PDT::AEChildIterator::VERSION = '1.5.0'; | |
| 4 | # ABSTRACT: Effective child relation iterator on a-nodes for PDT like treebanks | ||
| 5 | |||
| 6 | 12 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | 12 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | 12 | ▶ | use base qw(PMLTQ::Relation::SimpleListIterator); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | use PMLTQ::Relation { | ||
| 10 | 12 | name => 'echild', | |
| 11 | schema => 'adata', | ||
| 12 | reversed_relation => 'implementation:eparent', | ||
| 13 | start_node_type => 'a-node', | ||
| 14 | target_node_type => 'a-node', | ||
| 15 | iterator_class => __PACKAGE__, | ||
| 16 | iterator_weight => 5, | ||
| 17 | test_code => q( grep($_ == $start, PMLTQ::Relation::PDT::AGetEParents($end,\&PMLTQ::Relation::PDT::ADiveAuxCP)) ? 1 : 0 ), | ||
| 18 | 12 | ▶ | }; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 19 | |||
| 20 | sub get_node_list { | ||
| 21 | 0 | ▶ | my ($self, $node) = @_; |
|
Subroutine
get_node_list: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 22 | 0 | my $type = $node->type->get_base_type_name; | |
| 23 | 0 | my $fsfile = $self->start_file; | |
| 24 | 0 | return [ map [ $_, $fsfile ], PMLTQ::Relation::PDT::AGetEChildren($node, \&PMLTQ::Relation::PDT::ADiveAuxCP) ]; | |
| 25 | } | ||
| 26 | |||
| 27 | 12 | 1; | |
| 28 | |||
| 29 | __END__ | ||