12#ifndef WSFCOVERAGEGRIDACTION_HPP
13#define WSFCOVERAGEGRIDACTION_HPP
18#include "UtMemory.hpp"
41template<
typename Callable>
46 : mCallable{aCallable}
51 void Call(
const Grid& aGrid,
const Point& aPoint)
override { mCallable(aGrid, aPoint); }
61template<
typename Callable>
64 return ut::make_unique<GridActionT<Callable>>(std::forward<Callable>(aCallable));
GridActionT(Callable &&aCallable)
Definition WsfCoverageGridAction.hpp:45
void Call(const Grid &aGrid, const Point &aPoint) override
Definition WsfCoverageGridAction.hpp:51
~GridActionT() override=default
An object that can be invoked for each point in a grid.
Definition WsfCoverageGridAction.hpp:30
virtual void Call(const Grid &aGrid, const Point &aPoint)=0
virtual ~GridAction()=default
The Grid object defines the region over which coverage can be computed.
Definition WsfCoverageGrid.hpp:38
A point in a coverage grid.
Definition WsfCoverageGridPoint.hpp:40
Definition WsfCoverage.cpp:35
std::unique_ptr< GridAction > CreateGridAction(Callable &&aCallable)
Definition WsfCoverageGridAction.hpp:62
Function definitions for those who need run-time access to the version.
Definition WsfComm.cpp:32