mi024

College project "Projet IAD" master 1
git clone https://esimon.eu/repos/mi024.git
Log | Files | Refs | README

nmlp_module_iostream.hpp (9449B)


      1 /**
      2  * @file
      3  * @brief nmlp modules iostream function declarations.
      4  *
      5  * @attention This file can be included in multiple translation unit, but then, the file nmlp_iostream_exports.hpp must be included once per binary.
      6  */
      7 
      8 #ifndef NMLP_MODULE_IOSTREAM_HPP_INCLUDED
      9 #define NMLP_MODULE_IOSTREAM_HPP_INCLUDED
     10 
     11 #include <boost/serialization/export.hpp>
     12 #include <boost/serialization/split_free.hpp>
     13 #include <nmlp/modules/CPUConcatenation.h>
     14 #include <nmlp/modules/CPUIdentity.h>
     15 #include <nmlp/modules/CPULinear.h>
     16 #include <nmlp/modules/CPULogistic.h>
     17 #include <nmlp/modules/CPUPositiveShrink.h>
     18 #include <nmlp/modules/CPUSparseLinear.h>
     19 #include <nmlp/modules/CPUTanH.h>
     20 #include <nmlp/modules/CPUUnique.h>
     21 #include <nmlp/modules/GPUIdentity.h>
     22 #include <nmlp/modules/GPULinear.h>
     23 #include <nmlp/modules/GPUPositiveShrink.h>
     24 #include <nmlp/modules/GPUTanH.h>
     25 #include <nmlp/modules/GPUUnique.h>
     26 #include <nmlp/modules/SequentialModule.h>
     27 #include <nmlp/modules/TableModule.h>
     28 
     29 /**
     30  * @note There is an error in nmlp/modules/GPUShrink.h and nmlp/modules/CPUShrink.h.
     31  */
     32 
     33 /** @brief Serialization operator of TableModule. */
     34 template<class Archive>
     35 void serialize(Archive &ar, TableModule &rhs, unsigned const version);
     36 
     37 /** @brief Serialization operator of SequentialModule. */
     38 template<class Archive>
     39 void serialize(Archive &ar, SequentialModule &rhs, unsigned const version);
     40 
     41 /** @brief Serialization save operator of CPUConcatenation. */
     42 template<class Archive>
     43 void save(Archive &ar, CPUConcatenation const &rhs, unsigned const version);
     44 /** @brief Serialization pre-save operator of CPUConcatenation. */
     45 template<class Archive>
     46 void save_construct_data(Archive &ar, CPUConcatenation const *rhs, unsigned const version);
     47 /** @brief Serialization load operator of CPUConcatenation. */
     48 template<class Archive>
     49 void load(Archive &ar, CPUConcatenation &rhs, unsigned const version);
     50 /** @brief Serialization pre-load operator of CPUConcatenation. */
     51 template<class Archive>
     52 void save_construct_data(Archive &ar, CPUConcatenation *rhs, unsigned const version);
     53 BOOST_SERIALIZATION_SPLIT_FREE(CPUConcatenation)
     54 
     55 /** @brief Serialization save operator of CPUIdentity. */
     56 template<class Archive>
     57 void save(Archive &ar, CPUIdentity const &rhs, unsigned const version);
     58 /** @brief Serialization pre-save operator of CPUIdentity. */
     59 template<class Archive>
     60 void save_construct_data(Archive &ar, CPUIdentity const *rhs, unsigned const version);
     61 /** @brief Serialization load operator of CPUIdentity. */
     62 template<class Archive>
     63 void load(Archive &ar, CPUIdentity &rhs, unsigned const version);
     64 /** @brief Serialization pre-load operator of CPUIdentity. */
     65 template<class Archive>
     66 void save_construct_data(Archive &ar, CPUIdentity *rhs, unsigned const version);
     67 BOOST_SERIALIZATION_SPLIT_FREE(CPUIdentity)
     68 
     69 /** @brief Serialization save operator of CPULogistic. */
     70 template<class Archive>
     71 void save(Archive &ar, CPULogistic const &rhs, unsigned const version);
     72 /** @brief Serialization pre-save operator of CPULogistic. */
     73 template<class Archive>
     74 void save_construct_data(Archive &ar, CPULogistic const *rhs, unsigned const version);
     75 /** @brief Serialization load operator of CPULogistic. */
     76 template<class Archive>
     77 void load(Archive &ar, CPULogistic &rhs, unsigned const version);
     78 /** @brief Serialization pre-load operator of CPULogistic. */
     79 template<class Archive>
     80 void save_construct_data(Archive &ar, CPULogistic *rhs, unsigned const version);
     81 BOOST_SERIALIZATION_SPLIT_FREE(CPULogistic)
     82 
     83 /** @brief Serialization save operator of CPUPositiveShrink. */
     84 template<class Archive>
     85 void save(Archive &ar, CPUPositiveShrink const &rhs, unsigned const version);
     86 /** @brief Serialization pre-save operator of CPUPositiveShrink. */
     87 template<class Archive>
     88 void save_construct_data(Archive &ar, CPUPositiveShrink const *rhs, unsigned const version);
     89 /** @brief Serialization load operator of CPUPositiveShrink. */
     90 template<class Archive>
     91 void load(Archive &ar, CPUPositiveShrink &rhs, unsigned const version);
     92 /** @brief Serialization pre-load operator of CPUPositiveShrink. */
     93 template<class Archive>
     94 void save_construct_data(Archive &ar, CPUPositiveShrink *rhs, unsigned const version);
     95 BOOST_SERIALIZATION_SPLIT_FREE(CPUPositiveShrink)
     96 
     97 /** @brief Serialization save operator of CPUTanH. */
     98 template<class Archive>
     99 void save(Archive &ar, CPUTanH const &rhs, unsigned const version);
    100 /** @brief Serialization pre-save operator of CPUTanH. */
    101 template<class Archive>
    102 void save_construct_data(Archive &ar, CPUTanH const *rhs, unsigned const version);
    103 /** @brief Serialization load operator of CPUTanH. */
    104 template<class Archive>
    105 void load(Archive &ar, CPUTanH &rhs, unsigned const version);
    106 /** @brief Serialization pre-load operator of CPUTanH. */
    107 template<class Archive>
    108 void save_construct_data(Archive &ar, CPUTanH *rhs, unsigned const version);
    109 BOOST_SERIALIZATION_SPLIT_FREE(CPUTanH)
    110 
    111 /** @brief Serialization save operator of GPUIdentity. */
    112 template<class Archive>
    113 void save(Archive &ar, GPUIdentity const &rhs, unsigned const version);
    114 /** @brief Serialization pre-save operator of GPUIdentity. */
    115 template<class Archive>
    116 void save_construct_data(Archive &ar, GPUIdentity const *rhs, unsigned const version);
    117 /** @brief Serialization load operator of GPUIdentity. */
    118 template<class Archive>
    119 void load(Archive &ar, GPUIdentity &rhs, unsigned const version);
    120 /** @brief Serialization pre-load operator of GPUIdentity. */
    121 template<class Archive>
    122 void save_construct_data(Archive &ar, GPUIdentity *rhs, unsigned const version);
    123 BOOST_SERIALIZATION_SPLIT_FREE(GPUIdentity)
    124 
    125 /** @brief Serialization save operator of GPUPositiveShrink. */
    126 template<class Archive>
    127 void save(Archive &ar, GPUPositiveShrink const &rhs, unsigned const version);
    128 /** @brief Serialization pre-save operator of GPUPositiveShrink. */
    129 template<class Archive>
    130 void save_construct_data(Archive &ar, GPUPositiveShrink const *rhs, unsigned const version);
    131 /** @brief Serialization load operator of GPUPositiveShrink. */
    132 template<class Archive>
    133 void load(Archive &ar, GPUPositiveShrink &rhs, unsigned const version);
    134 /** @brief Serialization pre-load operator of GPUPositiveShrink. */
    135 template<class Archive>
    136 void save_construct_data(Archive &ar, GPUPositiveShrink *rhs, unsigned const version);
    137 BOOST_SERIALIZATION_SPLIT_FREE(GPUPositiveShrink)
    138 
    139 /** @brief Serialization save operator of GPUTanH. */
    140 template<class Archive>
    141 void save(Archive &ar, GPUTanH const &rhs, unsigned const version);
    142 /** @brief Serialization pre-save operator of GPUTanH. */
    143 template<class Archive>
    144 void save_construct_data(Archive &ar, GPUTanH const *rhs, unsigned const version);
    145 /** @brief Serialization load operator of GPUTanH. */
    146 template<class Archive>
    147 void load(Archive &ar, GPUTanH &rhs, unsigned const version);
    148 /** @brief Serialization pre-load operator of GPUTanH. */
    149 template<class Archive>
    150 void save_construct_data(Archive &ar, GPUTanH *rhs, unsigned const version);
    151 BOOST_SERIALIZATION_SPLIT_FREE(GPUTanH)
    152 
    153 /** @brief Serialization load operator of CPUUnique. */
    154 template<class Archive>
    155 void serialize(Archive &ar, CPUUnique &rhs, unsigned const version);
    156 /** @brief Serialization pre-save operator of CPUUnique. */
    157 template<class Archive>
    158 void save_construct_data(Archive &ar, CPUUnique const *rhs, unsigned const version);
    159 /** @brief Serialization pre-load operator of CPUUnique. */
    160 template<class Archive>
    161 void save_construct_data(Archive &ar, CPUUnique *rhs, unsigned const version);
    162 
    163 /** @brief Serialization load operator of GPULinear. */
    164 template<class Archive>
    165 void serialize(Archive &ar, GPULinear &rhs, unsigned const version);
    166 /** @brief Serialization pre-save operator of GPULinear. */
    167 template<class Archive>
    168 void save_construct_data(Archive &ar, GPULinear const *rhs, unsigned const version);
    169 /** @brief Serialization pre-load operator of GPULinear. */
    170 template<class Archive>
    171 void save_construct_data(Archive &ar, GPULinear *rhs, unsigned const version);
    172 
    173 /** @brief Serialization load operator of CPULinear. */
    174 template<class Archive>
    175 void serialize(Archive &ar, CPULinear &rhs, unsigned const version);
    176 /** @brief Serialization pre-save operator of CPULinear. */
    177 template<class Archive>
    178 void save_construct_data(Archive &ar, CPULinear const *rhs, unsigned const version);
    179 /** @brief Serialization pre-load operator of CPULinear. */
    180 template<class Archive>
    181 void save_construct_data(Archive &ar, CPULinear *rhs, unsigned const version);
    182 
    183 /** @brief Serialization load operator of GPUUnique. */
    184 template<class Archive>
    185 void serialize(Archive &ar, GPUUnique &rhs, unsigned const version);
    186 /** @brief Serialization pre-save operator of GPUUnique. */
    187 template<class Archive>
    188 void save_construct_data(Archive &ar, GPUUnique const *rhs, unsigned const version);
    189 /** @brief Serialization pre-load operator of GPUUnique. */
    190 template<class Archive>
    191 void save_construct_data(Archive &ar, GPUUnique *rhs, unsigned const version);
    192 
    193 /** @brief Serialization load operator of CPUSparseLinear. */
    194 template<class Archive>
    195 void serialize(Archive &ar, CPUSparseLinear &rhs, unsigned const version);
    196 /** @brief Serialization pre-save operator of CPUSparseLinear. */
    197 template<class Archive>
    198 void save_construct_data(Archive &ar, CPUSparseLinear const *rhs, unsigned const version);
    199 /** @brief Serialization pre-load operator of CPUSparseLinear. */
    200 template<class Archive>
    201 void save_construct_data(Archive &ar, CPUSparseLinear *rhs, unsigned const version);
    202 
    203 #include "nmlp_module_iostream.ipp"
    204 
    205 #endif
    206