1#include <Core/RaCore.hpp>
2#include <Core/Utils/StringUtils.hpp>
3#include <Core/Utils/TypesUtils.hpp>
11namespace TypeInternal {
17#ifndef CORE_USE_DOUBLE
18 {
"float",
"Scalar" },
20 {
"double",
"Scalar" },
22 {
", std::allocator<float>",
"" },
23 {
", std::allocator<double>",
"" },
24 {
", std::allocator<int>",
"" },
25 {
", std::allocator<unsigned int>",
"" },
26 {
"Ra::Core::VectorArray",
"RaVector" },
27 {
"Ra::Core::Utils::ColorBase<float>",
"Color" },
28 {
"Ra::Core::Utils::ColorBase<double>",
"Color" },
29 {
"Eigen::Matrix<float, 2, 1, 0, 2, 1>",
"Vector2" },
30 {
"Eigen::Matrix<double, 2, 1, 0, 2, 1>",
"Vector2d" },
31 {
"Eigen::Matrix<int, 2, 1, 0, 2, 1>",
"Vector2i" },
32 {
"Eigen::Matrix<unsigned int, 2, 1, 0, 2, 1>",
"Vector2ui" },
33 {
"Eigen::Matrix<float, 3, 1, 0, 3, 1>",
"Vector3" },
34 {
"Eigen::Matrix<double, 3, 1, 0, 3, 1>",
"Vector3d" },
35 {
"Eigen::Matrix<int, 3, 1, 0, 3, 1>",
"Vector3i" },
36 {
"Eigen::Matrix<unsigned int, 3, 1, 0, 3, 1>",
"Vector3ui" },
37 {
"Eigen::Matrix<float, 4, 1, 0, 4, 1>",
"Vector4" },
38 {
"Eigen::Matrix<double, 4, 1, 0, 4, 1>",
"Vector4d" },
39 {
"Eigen::Matrix<int, 4, 1, 0, 4, 1>",
"Vector4i" },
40 {
"Eigen::Matrix<unsigned int, 4, 1, 0, 4, 1>",
"Vector4ui" },
44 auto processedType = fullType;
45 for (
const auto& [key, value] : knownTypes ) {
46 Ra::Core::Utils::replaceAllInString( processedType, key, value );
hepler function to manage enum as underlying types in VariableSet