"Fossies" - the Fresh Open Source Software Archive

Member "RPerl-5.002000/lib/RPerl/DataStructure/Array.h" (30 Aug 2019, 1330 Bytes) of package /linux/misc/RPerl-5.002000.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "Array.h" see the Fossies "Dox" file reference documentation and the last Fossies "Diffs" side-by-side code changes report: 3.601000_vs_4.000000.

    1 ////use strict;  use warnings;
    2 using std::cout;  using std::cerr;  using std::endl;
    3 
    4 #ifndef __CPP__INCLUDED__RPerl__DataStructure__Array_h
    5 #define __CPP__INCLUDED__RPerl__DataStructure__Array_h 0.008_000
    6 
    7 #include <rperltypes_mode.h> // for definitions of __PERL__TYPES or __CPP__TYPES
    8 
    9 // [[[ SUB-TYPES BEFORE INCLUDES ]]]
   10 #include <RPerl/DataStructure/Array/SubTypes.cpp>   // -> SubTypes.h
   11 #include <RPerl/DataStructure/Array/SubTypes1D.cpp> // -> SubTypes1D.h
   12 #include <RPerl/DataStructure/Array/SubTypes2D.cpp> // -> SubTypes2D.h
   13 #include <RPerl/DataStructure/Array/SubTypes3D.cpp> // -> SubTypes3D.h
   14 
   15 // for type-checking subroutines & macros
   16 #include <RPerl/HelperFunctions.cpp>  // -> HelperFunctions.h
   17 
   18 // [[[ GENERAL MACROS ]]]
   19 #define VECTOR_RESIZE_NOSHRINK(my_vector, my_size) ((my_vector.size() < my_size) ? my_vector.resize((size_t)(my_size)) : (void)0)  // do grow but don't shrink
   20 
   21 // [[[ OPERATIONS & DATA TYPES REPORTER ]]]
   22 # ifdef __PERL__TYPES
   23 SV* RPerl__DataStructure__Array__MODE_ID() { return(newSViv(1)); }  // CPPOPS_PERLTYPES is 1
   24 # elif defined __CPP__TYPES
   25 integer RPerl__DataStructure__Array__MODE_ID() { return 2; }  // CPPOPS_CPPTYPES is 2
   26 # else
   27 Purposefully_die_from_a_compile-time_error,_due_to_neither___PERL__TYPES_nor___CPP__TYPES_being_defined.__We_need_to_define_exactly_one!
   28 # endif
   29 
   30 #endif