| 1 | # [[[ HEADER ]]] | ||
| 2 | package Perl::Structure::Hash; | ||
| 3 | use strict; | ||
| 4 | use warnings; | ||
| 5 | use Perl::Config; # don't use Perl::Types inside itself, in order to avoid circular includes | ||
| 6 | our $VERSION = 0.009_000; | ||
| 7 | |||
| 8 | # [[[ OO INHERITANCE ]]] | ||
| 9 | use parent qw(Perl::Structure); | ||
| 10 | use Perl::Structure; | ||
| 11 | |||
| 12 | # [[[ SUB-TYPES BEFORE INCLUDES ]]] | ||
| 13 | use Perl::Structure::Hash::SubTypes; | ||
| 14 | use Perl::Structure::Hash::SubTypes1D; | ||
| 15 | use Perl::Structure::Hash::SubTypes2D; | ||
| 16 | use Perl::Structure::Hash::SubTypes3D; | ||
| 17 | |||
| 18 | # [[[ INCLUDES ]]] | ||
| 19 | # for type-checking via SvIOKp(), SvNOKp(), and SvPOKp(); inside INIT to delay until after 'use MyConfig' | ||
| 20 | #INIT { Perl::diag("in Hash.pm, loading C++ helper functions for type-checking...\n"); } | ||
| 21 | INIT { | ||
| 22 | use Perl::HelperFunctions_cpp; | ||
| 23 | Perl::HelperFunctions_cpp::cpp_load(); | ||
| 24 | } | ||
| 25 | |||
| 26 | use Perl::Type::Void; | ||
| 27 | use Perl::Type::Boolean; | ||
| 28 | use Perl::Type::NonsignedInteger; | ||
| 29 | use Perl::Type::Integer; | ||
| 30 | use Perl::Type::Number; | ||
| 31 | use Perl::Type::Character; | ||
| 32 | use Perl::Type::String; | ||
| 33 | use Perl::Type::Scalar; | ||
| 34 | use Perl::Type::Unknown; | ||
| 35 | use Perl::Structure::Array; | ||
| 36 | |||
| 37 | # [[[ EXPORTS ]]] | ||
| 38 | # DEV NOTE: avoid "Undefined subroutine &main::integer_to_string called" | ||
| 39 | use Exporter 'import'; | ||
| 40 | our @EXPORT = ( @Perl::Type::Void::EXPORT, | ||
| 41 | @Perl::Type::Boolean::EXPORT, | ||
| 42 | @Perl::Type::NonsignedInteger::EXPORT, | ||
| 43 | @Perl::Type::Integer::EXPORT, | ||
| 44 | @Perl::Type::Number::EXPORT, | ||
| 45 | @Perl::Type::Character::EXPORT, | ||
| 46 | @Perl::Type::String::EXPORT, | ||
| 47 | @Perl::Type::Scalar::EXPORT, | ||
| 48 | @Perl::Type::Unknown::EXPORT, | ||
| 49 | @Perl::Structure::Array::EXPORT); | ||
| 50 | |||
| 51 | # DEV NOTE, CORRELATION #rp018: Perl::Structure::Array & Hash can not 'use RPerl;' so *__MODE_ID() subroutines are hard-coded here | ||
| 52 | package main; | ||
| 53 | use strict; | ||
| 54 | use warnings; | ||
| 55 | sub Perl__Structure__Hash__MODE_ID { return 0; } | ||
| 56 | |||
| 57 | 1; # end of class |