| 1 | package SIAM::ScopeMember; | ||
| 2 | |||
| 3 | 3 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 3 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 3 | ▶ | use base 'SIAM::Object'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | |||
| 8 | |||
| 9 | |||
| 10 | =head1 NAME | ||
| 11 | |||
| 12 | SIAM::ScopeMember - Scope Member object class | ||
| 13 | |||
| 14 | =head1 SYNOPSIS | ||
| 15 | |||
| 16 | |||
| 17 | =head1 METHODS | ||
| 18 | |||
| 19 | =head2 points_to | ||
| 20 | |||
| 21 | Returns the value of C<siam.scmember.object_id> attribute. | ||
| 22 | |||
| 23 | =cut | ||
| 24 | |||
| 25 | |||
| 26 | sub points_to | ||
| 27 | 2 | ▶ | { |
|
Subroutine
points_to: called CC=1 SCAR=0.0
Pod
documented
| |||
| 28 | 2 | my $self = shift; | |
| 29 | 2 | return $self->attr('siam.scmember.object_id'); | |
| 30 | } | ||
| 31 | |||
| 32 | |||
| 33 | |||
| 34 | =head2 match_object | ||
| 35 | |||
| 36 | Expects an object as an argument. Returns true if the object matches | ||
| 37 | this scope member. | ||
| 38 | |||
| 39 | =cut | ||
| 40 | |||
| 41 | |||
| 42 | sub match_object | ||
| 43 | 0 | ▶ | { |
|
Subroutine
match_object: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 44 | 0 | my $self = shift; | |
| 45 | 0 | my $obj = shift; | |
| 46 | |||
| 47 | 0 | return ($obj->id eq $self->attr('siam.scmember.object_id')); | |
| 48 | } | ||
| 49 | |||
| 50 | |||
| 51 | |||
| 52 | # mandatory attributes | ||
| 53 | |||
| 54 | 3 | my $mandatory_attributes = | |
| 55 | [ 'siam.scmember.object_id' ]; | ||
| 56 | |||
| 57 | sub _mandatory_attributes | ||
| 58 | 19 | ▶ | { |
|
Subroutine
_mandatory_attributes: called CC=1 SCAR=0.0
| |||
| 59 | 19 | return $mandatory_attributes; | |
| 60 | } | ||
| 61 | |||
| 62 | sub _manifest_attributes | ||
| 63 | 1 | ▶ | { |
|
Subroutine
_manifest_attributes: called CC=1 SCAR=0.0
| |||
| 64 | 1 | return $mandatory_attributes; | |
| 65 | } | ||
| 66 | |||
| 67 | |||
| 68 | 3 | 1; | |
| 69 | |||
| 70 | # Local Variables: | ||
| 71 | # mode: cperl | ||
| 72 | # indent-tabs-mode: nil | ||
| 73 | # cperl-indent-level: 4 | ||
| 74 | # cperl-continued-statement-offset: 4 | ||
| 75 | # cperl-continued-brace-offset: -4 | ||
| 76 | # cperl-brace-offset: 0 | ||
| 77 | # cperl-label-offset: -2 | ||
| 78 | # End: | ||