-
Notifications
You must be signed in to change notification settings - Fork 7
/
serialize.h
48 lines (32 loc) · 1.6 KB
/
serialize.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#pragma once
#include <iostream>
#include <privateType.h>
#include <type.h>
namespace ppf {
void deserialize(std::istream *is, bool &val);
void serialize(std::ostream *os, const bool &val);
void deserialize(std::istream *is, float &val);
void serialize(std::ostream *os, const float &val);
void deserialize(std::istream *is, int &val);
void serialize(std::ostream *os, const int &val);
void deserialize(std::istream *is, uint32_t &val);
void serialize(std::ostream *os, const uint32_t &val);
void deserialize(std::istream *is, Eigen::Vector3f &val);
void serialize(std::ostream *os, const Eigen::Vector3f &val);
void deserialize(std::istream *is, BoundingBox &val);
void serialize(std::ostream *os, const BoundingBox &val);
void deserialize(std::istream *is, std::vector<Eigen::Vector3f> &val);
void serialize(std::ostream *os, const std::vector<Eigen::Vector3f> &val);
void deserialize(std::istream *is, PointCloud &val);
void serialize(std::ostream *os, const PointCloud &val);
void deserialize(std::istream *is, Feature &val);
void serialize(std::ostream *os, const Feature &val);
void deserialize(std::istream *is, Feature &val);
void serialize(std::ostream *os, const Feature &val);
void deserialize(std::istream *is, std::pair<uint32_t, Feature> &val);
void serialize(std::ostream *os, const std::pair<uint32_t, Feature> &val);
void deserialize(std::istream *is, gtl::flat_hash_map<uint32_t, Feature> &val);
void serialize(std::ostream *os, const gtl::flat_hash_map<uint32_t, Feature> &val);
void deserialize(std::istream *is, TrainParam &val);
void serialize(std::ostream *os, const TrainParam &val);
} // namespace ppf