"Fossies" - the Fresh Open Source Software Archive

Member "RPerl-5.002000/lib/RPerl/Algorithm.h.CPPOPS_CPPTYPES" (30 Aug 2019, 3462 Bytes) of package /linux/misc/RPerl-5.002000.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the last Fossies "Diffs" side-by-side code changes report for "Algorithm.h.CPPOPS_CPPTYPES": 4.002000_vs_5.000000.

    1 // [[[ HEADER ]]]
    2 using std::cout;  using std::cerr;  using std::endl;
    3 
    4 #ifndef __CPP__INCLUDED__RPerl__Algorithm_h
    5 #define __CPP__INCLUDED__RPerl__Algorithm_h 0.011_000
    6 
    7 // [[[ INCLUDES & OO INHERITANCE INCLUDES ]]]
    8 #include <RPerl.cpp>  // -> RPerl.h -> (rperltypes_mode.h; rperloperations.h; rperltypes.h; HelperFunctions.cpp)
    9 #include <RPerl/CompileUnit/Module/Class.cpp>
   10 
   11 # ifdef __PERL__TYPES
   12 
   13 Purposefully_die_from_a_compile-time_error,_due_to____PERL__TYPES_being_defined.__We_need_to_define_only___CPP__TYPES_in_this_file!
   14 
   15 # elif defined __CPP__TYPES
   16 
   17 // [[[<<< BEGIN CPP TYPES >>>]]]
   18 // [[[<<< BEGIN CPP TYPES >>>]]]
   19 // [[[<<< BEGIN CPP TYPES >>>]]]
   20 
   21 // [[[ CONSTANTS ]]]
   22 const string RPerl__Algorithm__TIME_BEST = (const string) "<<< UNKNOWN >>>";
   23 const string RPerl__Algorithm__TIME_AVERAGE = (const string) "<<< UNKNOWN >>>";
   24 const string RPerl__Algorithm__TIME_WORST = (const string) "<<< UNKNOWN >>>";
   25 const string RPerl__Algorithm__SPACE_WORST = (const string) "<<< UNKNOWN >>>";
   26 
   27 // [[[ OO INHERITANCE ]]]
   28 class RPerl__Algorithm : public RPerl__CompileUnit__Module__Class__CPP {
   29 public:
   30     // [[[ OO PROPERTIES ]]]
   31     string foo = "<<< DEFAULT, ALGORITHM >>>";
   32 
   33     // [[[ OO METHODS ]]]
   34 
   35     // <<< OO PROPERTIES, ACCESSORS & MUTATORS >>>
   36     string get_foo() { return foo; }
   37     void set_foo(string foo_new) { foo = foo_new; }
   38 
   39     // <<< CONSTRUCTOR & DESTRUCTOR >>>
   40     RPerl__Algorithm() {}
   41     ~RPerl__Algorithm() {}
   42 
   43     // <<< CLASS NAME REPORTER >>>
   44     virtual string myclassname() { return (const string) "RPerl::Algorithm"; }
   45 
   46     // <<< CONSTANTS, SHIMS >>>
   47     string TIME_BEST() { return RPerl__Algorithm__TIME_BEST; }
   48     string TIME_AVERAGE() { return RPerl__Algorithm__TIME_AVERAGE; }
   49     string TIME_WORST() { return RPerl__Algorithm__TIME_WORST; }
   50     string SPACE_WORST() { return RPerl__Algorithm__SPACE_WORST; }
   51 
   52     // <<< USER-DEFINED METHODS >>>
   53     void inherited_Algorithm(string person);
   54     string inherited_Algorithm_foo_get();
   55     void inherited_Algorithm_foo_set(string foo_new);
   56 };  // end of class
   57 
   58 // [[[ OO SUBCLASSES ]]]
   59 #define RPerl__Algorithm_rawptr RPerl__Algorithm*
   60 typedef std::unique_ptr<RPerl__Algorithm> RPerl__Algorithm_ptr;
   61 typedef std::vector<RPerl__Algorithm_ptr> RPerl__Algorithm_arrayref;
   62 typedef std::unordered_map<string, RPerl__Algorithm_ptr> RPerl__Algorithm_hashref;
   63 typedef std::unordered_map<string, RPerl__Algorithm_ptr>::iterator RPerl__Algorithm_hashref_iterator;
   64 
   65 // [[[ OO CONSTRUCTOR WRAPPER CLASS ]]]
   66 class NEW_RPerl__Algorithm {
   67 public:
   68     RPerl__Algorithm_ptr wrapped_object;
   69     NEW_RPerl__Algorithm() : wrapped_object{new RPerl__Algorithm()} {}
   70     RPerl__Algorithm_ptr&& NEW() { return std::move(wrapped_object); }
   71 
   72     // <<< OO PROPERTIES, INITIALIZERS >>>
   73     NEW_RPerl__Algorithm& foo(string foo_init) { wrapped_object->foo = foo_init; return *this; }
   74 };
   75 
   76 // [[[ SUBROUTINES ]]]
   77 string RPerl__Algorithm__uninherited_Algorithm(string person);
   78 
   79 // <<< SHIM MACROS >>>
   80 #define uninherited_Algorithm(person) RPerl__Algorithm__uninherited_Algorithm(person)
   81 
   82 // <<< OPERATIONS & DATA TYPES REPORTER >>>
   83 integer RPerl__Algorithm__MODE_ID() { return 2; }  // CPPOPS_CPPTYPES is 2
   84 
   85 // [[[<<< END CPP TYPES >>>]]]
   86 // [[[<<< END CPP TYPES >>>]]]
   87 // [[[<<< END CPP TYPES >>>]]]
   88 
   89 # else
   90 
   91 Purposefully_die_from_a_compile-time_error,_due_to_neither___PERL__TYPES_nor___CPP__TYPES_being_defined.__We_need_to_define_only___CPP__TYPES_in_this_file!
   92 
   93 # endif
   94 
   95 #endif
   96 
   97 // end of class