Loading...
Searching...
No Matches
Serialization.hpp
Go to the documentation of this file.
1// This code is based on Jet framework.
2// Copyright (c) 2018 Doyub Kim
3// CubbyFlow is voxel-based fluid simulation engine for computer games.
4// Copyright (c) 2020 CubbyFlow Team
5// Core Part: Chris Ohk, Junwoo Hwang, Jihong Sin, Seungwoo Yoo
6// AI Part: Dongheon Cho, Minseo Kim
7// We are making my contributions/submissions to this project solely in our
8// personal capacity and are not conveying any rights to any intellectual
9// property of any third parties.
10
11#ifndef CUBBYFLOW_SERIALIZATION_HPP
12#define CUBBYFLOW_SERIALIZATION_HPP
13
15
16#include <vector>
17
18namespace CubbyFlow
19{
48
51
54
58
62
65 std::vector<uint8_t>* data);
66
70} // namespace CubbyFlow
71
72#include <Core/Utils/Serialization-Impl.hpp>
73
74#endif
Definition Array.hpp:36
Generic N-dimensional array class interface.
Definition ArrayView.hpp:26
Definition Matrix.hpp:30
Abstract base class for any serializable class.
Definition Serialization.hpp:22
Serializable(Serializable &&) noexcept=default
Default move constructor.
Serializable()=default
Default constructor.
virtual void Serialize(std::vector< uint8_t > *buffer) const =0
Serializes this instance into the flat buffer.
virtual void Deserialize(const std::vector< uint8_t > &buffer)=0
Deserializes this instance from the flat buffer.
Serializable(const Serializable &)=default
Default copy constructor.
Definition pybind11Utils.hpp:21