FlatbuffersHelper.h File Reference
#include <Core/Size/Size2.h>
#include <Core/Size/Size3.h>
#include <Core/Vector/Vector2.h>
#include <Core/Vector/Vector3.h>
#include <Flatbuffers/generated/BasicTypes_generated.h>

Go to the source code of this file.

Namespaces

 CubbyFlow
 

Functions

fbs::Size2 CubbyFlow::CubbyFlowToFlatbuffers (const Size2 &vec)
 
fbs::Size3 CubbyFlow::CubbyFlowToFlatbuffers (const Size3 &vec)
 
fbs::Vector2D CubbyFlow::CubbyFlowToFlatbuffers (const Vector2D &vec)
 
fbs::Vector3D CubbyFlow::CubbyFlowToFlatbuffers (const Vector3D &vec)
 
Size2 CubbyFlow::FlatbuffersToCubbyFlow (const fbs::Size2 &vec)
 
Size3 CubbyFlow::FlatbuffersToCubbyFlow (const fbs::Size3 &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)