Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef SERIALIZER_H
- #define SERIALIZER_H
- #include <vector>
- #include <iostream>
- #include <fstream>
- #include <iterator>
- #include "time.h"
- using namespace std;
- class Serializer {
- //Simple serialization test cases
- public:
- vector<float> v1d;
- vector<vector<float> > v2d;
- int cols;
- int rows;
- const char* binfile;
- clock_t start_time;
- clock_t end_time;
- Serializer( );
- float write_binary( );
- float iter_1d( );
- float iter_2d( );
- float read_1d_binary( );
- float read_2d_binary( );
- int elems_1d( );
- int elems_2d( );
- };
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement