32 #ifndef LAS_VEGAS_UTILALGORITHMS_HPP 33 #define LAS_VEGAS_UTILALGORITHMS_HPP 36 #include <type_traits> 63 template<
typename,
typename>
typename OutMapT,
67 OutMapT<typename InMapT::HandleType, std::result_of_t<MapF(typename InMapT::ValueType)>>
map(
78 template<
typename,
typename>
typename OutMapT,
83 typename decltype(std::declval<IterProxyT>().begin())::HandleType,
84 typename
std::result_of<GenF(typename decltype(
std::declval<IterProxyT>().begin())::HandleType)>::type
97 template<
typename HandleT,
typename ValueT>
98 pair<ValueT, ValueT>
minMaxOfMap(
const AttributeMap<HandleT, ValueT>&
map);
102 #include "lvr2/algorithm/UtilAlgorithms.tcc" 104 #endif //LAS_VEGAS_UTILALGORITHMS_HPP OutMapT< typename decltype(std::declval< IterProxyT >).begin())::HandleType, typename std::result_of< GenF(typename decltype(std::declval< IterProxyT >).begin())::HandleType)>::type > attrMapFromFunc(IterProxyT iterProxy, GenF func)
Creates an attribute map by calling the given function for each element in the given iterator...
OutMapT< typename InMapT::HandleType, std::result_of_t< MapF(typename InMapT::ValueType)> > map(const InMapT &mapIn, MapF func)
Calls func for each value of the given map and save the result in the output map. ...
pair< ValueT, ValueT > minMaxOfMap(const AttributeMap< HandleT, ValueT > &map)
Returns the minimum and maximum element from the given map.