Debian Codegraph @

contrib/DNS-LDNS/lib/DNS/LDNS/RBNode.pm

raw
1 package DNS::LDNS::RBNode;
2
3 use 5.008008;
4 use strict;
5 use warnings;
6
7 use DNS::LDNS;
8
9 our $VERSION = '0.61';
10
11 # Note: This class does not have a constructor. Thus, it can not be created
12 # as an individual object. The data structure of the object will always be
13 # owned and freed by its parent object.
14
15 sub next {
16 my $self = shift;
17 return DNS::LDNS::GC::own($self->_next, $self);
18 }
19
20 sub previous {
21 my $self = shift;
22 return DNS::LDNS::GC::own($self->_previous, $self);
23 }
24
25 sub next_nonglue {
26 my $self = shift;
27 return DNS::LDNS::GC::own($self->_next_nonglue, $self);
28 }
29
30 sub name {
31 my ($self) = @_;
32 return DNS::LDNS::GC::own($self->_name, $self);
33 }
34
35 sub DESTROY {
36 DNS::LDNS::GC::free($_[0]);
37 }
38
39 1;
40 __END__
41
42 =head1 NAME
43
44 DNS::LDNS::RBNode - Node in the RBTree
45
46 =head1 SYNOPSIS
47
48 use DNS::LDNS ':all'
49
50 node2 = node->next
51 node2 = node->next_nonglue
52 bool = node->is_null
53 dnssec_name = node->name
54
55 =head1 SEE ALSO
56
57 http://www.nlnetlabs.nl/projects/ldns
58
59 =head1 AUTHOR
60
61 Erik Pihl Ostlyngen, E<lt>[email protected]<gt>
62
63 =head1 COPYRIGHT AND LICENSE
64
65 Copyright (C) 2013 by UNINETT Norid AS
66
67 This library is free software; you can redistribute it and/or modify
68 it under the same terms as Perl itself, either Perl version 5.14.2 or,
69 at your option, any later version of Perl 5 you may have available.
70
71 =cut