5 #include <boost/range/algorithm/transform.hpp> 8 namespace grl {
namespace vrep {
14 BOOST_THROW_EXCEPTION(std::runtime_error(std::string(
"getHandleFromParam: Handle ") + param +
" is not valid. Make sure the object you are looking for actually exists."));
19 template<
typename SinglePassRange,
typename OutputIterator>
20 OutputIterator
getHandles(
const SinglePassRange inputRange, OutputIterator out)
22 return boost::range::transform(
25 [](
const std::string& element)
32 template<std::
size_t I,
typename Param>
34 std::string param(std::get<I> (params_).c_str());
39 template<std::
size_t I,
typename Params,
typename OutputIterator>
41 auto& inputRange = std::get<I>(params_);
int getHandleFromParam(const Param ¶ms_)
int getHandle(const std::string ¶m)
ptrSimGetObjectHandle simGetObjectHandle
OutputIterator getHandles(const SinglePassRange inputRange, OutputIterator out)