17 std::vector<bool> result;
18 result.reserve(arg.bool_array.size());
19 result.insert(result.end(), arg.bool_array.begin(), arg.bool_array.end());
23 std::vector<int32_t> result;
24 result.reserve(arg.int_array.size());
25 result.insert(result.end(), arg.int_array.begin(), arg.int_array.end());
29 std::vector<float> result;
30 result.reserve(arg.float_array.size());
31 result.insert(result.end(), arg.float_array.begin(), arg.float_array.end());
35 std::vector<std::string> result;
36 result.reserve(arg.string_array.size());
37 result.insert(result.end(), arg.string_array.begin(), arg.string_array.end());
44 return arg.bool_array;
52 return arg.float_array;
57 return arg.string_array;
Fixed-capacity vector - allocates once at runtime, never reallocates This avoids std::vector template...
@ SERVICE_ARG_TYPE_INT_ARRAY
@ SERVICE_ARG_TYPE_BOOL_ARRAY
@ SERVICE_ARG_TYPE_STRING
@ SERVICE_ARG_TYPE_STRING_ARRAY
@ SERVICE_ARG_TYPE_FLOAT_ARRAY
float get_execute_arg_value< float >(const ExecuteServiceArgument &arg)
bool get_execute_arg_value< bool >(const ExecuteServiceArgument &arg)
int32_t get_execute_arg_value< int32_t >(const ExecuteServiceArgument &arg)
enums::ServiceArgType to_service_arg_type()
enums::ServiceArgType to_service_arg_type< int32_t >()
enums::ServiceArgType to_service_arg_type< bool >()
enums::ServiceArgType to_service_arg_type< std::string >()
std::string get_execute_arg_value< std::string >(const ExecuteServiceArgument &arg)
T get_execute_arg_value(const ExecuteServiceArgument &arg)
enums::ServiceArgType to_service_arg_type< float >()