FlatbuffersHelper.hpp File Reference
#include <Core/Matrix/Matrix.hpp>
#include <Flatbuffers/generated/BasicTypes_generated.h>

Go to the source code of this file.

Namespaces

 CubbyFlow
 

Functions

fbs::Vector2UZ CubbyFlow::CubbyFlowToFlatbuffers (const Vector2UZ &vec)
 
fbs::Vector2D CubbyFlow::CubbyFlowToFlatbuffers (const Vector2D &vec)
 
Vector2UZ CubbyFlow::FlatbuffersToCubbyFlow (const fbs::Vector2UZ &vec)
 
Vector3UZ CubbyFlow::FlatbuffersToCubbyFlow (const fbs::Vector3UZ &vec)
 
Vector2D CubbyFlow::FlatbuffersToCubbyFlow (const fbs::Vector2D &vec)
 
Vector3D CubbyFlow::FlatbuffersToCubbyFlow (const fbs::Vector3D &vec)
 
template<typename GridType , typename FbsFactoryFunc , typename FbsGridType >
void CubbyFlow::SerializeGrid (flatbuffers::FlatBufferBuilder *builder, const std::vector< GridType > &gridList, FbsFactoryFunc func, std::vector< flatbuffers::Offset< FbsGridType >> *fbsGridList)
 
template<typename FbsGridList , typename GridType , typename FactoryFunc >
void CubbyFlow::DeserializeGrid (FbsGridList *fbsGridList, FactoryFunc factoryFunc, std::vector< GridType > *gridList)