/usr/lib/x86_64-linux-gnu/perl5/5.24/Lucy/Object/BitVector.pod is in liblucy-perl 0.3.3-7+b1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 | # Auto-generated file -- DO NOT EDIT!!!!!
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
=head1 NAME
Lucy::Object::BitVector - An array of bits.
=head1 SYNOPSIS
my $bit_vec = Lucy::Object::BitVector->new( capacity => 8 );
my $other = Lucy::Object::BitVector->new( capacity => 8 );
$bit_vec->set($_) for ( 0, 2, 4, 6 );
$other->set($_) for ( 1, 3, 5, 7 );
$bit_vec->or($other);
print "$_\n" for @{ $bit_vec->to_array }; # prints 0 through 7.
=head1 DESCRIPTION
BitVector is a growable array of bits. All bits are initially zero.
=head1 CONSTRUCTORS
=head2 new( I<[labeled params]> )
my $bit_vec = Lucy::Object::BitVector->new(
capacity => $doc_max + 1, # default 0,
);
=over
=item *
B<capacity> - The number of bits that the initial array should be
able to hold.
=back
=head1 METHODS
=head2 get(tick)
Return true if the bit at C<< tick >> has been set, false if it
hasn't (regardless of whether it lies within the bounds of the
object's capacity).
=over
=item *
B<tick> - The requested bit.
=back
=head2 set(tick)
Set the bit at C<< tick >> to 1.
=over
=item *
B<tick> - The bit to be set.
=back
=head2 clear(tick)
Clear the indicated bit. (i.e. set it to 0).
=over
=item *
B<tick> - The bit to be cleared.
=back
=head2 clear_all()
Clear all bits.
=head2 and(other)
Modify the BitVector so that only bits which remain set are those
which 1) were already set in this BitVector, and 2) were also set in
the other BitVector.
=over
=item *
B<other> - Another BitVector.
=back
=head2 or(other)
Modify the BitVector, setting all bits which are set in the other
BitVector if they were not already set.
=over
=item *
B<other> - Another BitVector.
=back
=head2 and_not(other)
Modify the BitVector, clearing all bits which are set in the other.
=over
=item *
B<other> - Another BitVector.
=back
=head2 xor(other)
Modify the BitVector, performing an XOR operation against the other.
=over
=item *
B<other> - Another BitVector.
=back
=head2 flip(tick)
Invert the value of a bit.
=over
=item *
B<tick> - The bit to invert.
=back
=head2 flip_block( I<[labeled params]> )
Invert each bit within a contiguous block.
=over
=item *
B<offset> - Lower bound.
=item *
B<length> - The number of bits to flip.
=back
=head2 next_hit(tick)
Returns the next set bit equal to or greater than C<< tick >>,
or -1 if no such bit exists.
=head2 to_array()
Return an array where each element represents a set bit.
=head2 grow(capacity)
If the BitVector does not already have enough room to hold the
indicated number of bits, allocate more memory so that it can.
=over
=item *
B<capacity> - Least number of bits the BitVector should accomodate.
=back
=head2 count()
Return a count of the number of set bits.
=head1 INHERITANCE
Lucy::Object::BitVector isa L<Lucy::Object::Obj>.
=cut
|