MCPcopy Create free account
hub / github.com/comaps/comaps / ApplyCalculator

Function ApplyCalculator

libs/geometry/algorithm.hpp:87–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85
86template <typename TCalculator, typename TIterator>
87auto ApplyCalculator(TIterator begin, TIterator end, TCalculator && calc) -> decltype(calc.GetResult())
88{
89 for (; begin != end; ++begin)
90 calc(*begin);
91 return calc.GetResult();
92}
93
94template <typename TCalculator, typename TIterator>
95auto SelectImplementation(TIterator begin, TIterator end, TCalculator && calc, std::true_type const &)

Callers 5

SelectImplementationFunction · 0.85
GetPolyLineCenterFunction · 0.85
GetBoundingBoxFunction · 0.85
GetPointOnSurfaceFunction · 0.85
OnShowPositionClickedMethod · 0.85

Calls 4

SelectImplementationFunction · 0.85
beginFunction · 0.50
endFunction · 0.50
GetResultMethod · 0.45

Tested by 3

GetPolyLineCenterFunction · 0.68
GetBoundingBoxFunction · 0.68
GetPointOnSurfaceFunction · 0.68