home *** CD-ROM | disk | FTP | other *** search
/ CD Actual Thematic 7: Programming / CDAT7.iso / Share / Editores / Perl5 / perl / lib / site / Set / IntegerFast.pm next >
Encoding:
Perl POD Document  |  1997-08-10  |  2.5 KB  |  109 lines

  1.  
  2. #  Copyright (c) 1995, 1996, 1997 by Steffen Beyer. All rights reserved.
  3. #  This package is free software; you can redistribute it and/or modify
  4. #  it under the same terms as Perl itself.
  5.  
  6. package Set::IntegerFast;
  7.  
  8. use Bit::Vector;
  9.  
  10. use Carp;
  11.  
  12. require Exporter;
  13.  
  14. @ISA = qw(Exporter);
  15.  
  16. @EXPORT = qw();
  17.  
  18. @EXPORT_OK = qw();
  19.  
  20. $VERSION = '4.2';
  21.  
  22. sub new
  23. {
  24.     croak "Usage: \$set = Set::IntegerFast->new(\$elements);"
  25.       if (@_ != 2);
  26.  
  27.     my $proto = shift;
  28.     my $class = ref($proto) || $proto || 'Set::IntegerFast';
  29.     my $elements = shift;
  30.  
  31.     return( Bit::Vector::new( $class, $elements ) );
  32. }
  33.  
  34. sub Version
  35. {
  36.     return( $Set::IntegerFast::VERSION );
  37. }
  38.  
  39. sub AUTOLOAD
  40. {
  41.     $AUTOLOAD =~ s/^(.*::)?/Bit::Vector::/;
  42.  
  43.     return( &{$AUTOLOAD}(@_) );
  44. }
  45.  
  46. 1;
  47.  
  48. __END__
  49.  
  50. =head1 NAME
  51.  
  52. Set::IntegerFast - Sets of Integers
  53.  
  54. Easy manipulation of sets of integers
  55. (intervals from zero to some positive integer)
  56.  
  57. =head1 SYNOPSIS
  58.  
  59. Please refer to L<Bit::Vector(3)> for an overview and description of
  60. the methods supplied by this module!
  61.  
  62. =head1 DESCRIPTION
  63.  
  64. This module is kept "alive" for backward compatibility only; it is
  65. strongly recommended that you use the "Bit::Vector" module in your
  66. application(s) instead!
  67.  
  68. You will need to apply the following changes to your existing
  69. application(s):
  70.  
  71.     "Set::IntegerFast"    -->    "Bit::Vector"         (required)
  72.  
  73.     "Empty_Interval("     -->    "Interval_Empty("     (recommended)
  74.     "Fill_Interval("      -->    "Interval_Fill("      (recommended)
  75.     "Flip_Interval("      -->    "Interval_Flip("      (recommended)
  76.     "Delete("             -->    "Bit_On("             (recommended)
  77.     "Insert("             -->    "Bit_Off("            (recommended)
  78.     "flip("               -->    "bit_flip("           (recommended)
  79.     "in("                 -->    "bit_test("           (recommended)
  80.     "in("                 -->    "contains("           (alternative)
  81.     "inclusion("          -->    "subset("             (recommended)
  82.  
  83. Please refer to the file "CHANGES" in the "Bit::Vector" distribution
  84. for more details!
  85.  
  86. =head1 SEE ALSO
  87.  
  88. Bit::Vector(3), Set::IntegerRange(3), Math::MatrixBool(3),
  89. Math::MatrixReal(3), DFA::Kleene(3), Math::Kleene(3),
  90. Graph::Kruskal(3).
  91.  
  92. =head1 VERSION
  93.  
  94. This man page documents "Set::IntegerFast" version 4.2.
  95.  
  96. =head1 AUTHOR
  97.  
  98. Steffen Beyer <sb@sdm.de>.
  99.  
  100. =head1 COPYRIGHT
  101.  
  102. Copyright (c) 1995, 1996, 1997 by Steffen Beyer. All rights reserved.
  103.  
  104. =head1 LICENSE
  105.  
  106. This package is free software; you can redistribute it and/or modify
  107. it under the same terms as Perl itself.
  108.  
  109.