fpmas 1.5
Public Member Functions | List of all members
fpmas::model::MooreRangePerimeter< VonNeumannGrid< CellType > > Struct Template Reference

#include <moore_range.h>

Public Member Functions

DiscretePoint operator() (const GridRange< VonNeumannGrid< CellType >, MooreRangeConfig< VonNeumannGrid< CellType > > > &range) const
 

Detailed Description

template<typename CellType>
struct fpmas::model::MooreRangePerimeter< VonNeumannGrid< CellType > >

MooreRangePerimeter specialization corresponding to a MooreRange used on a VonNeumannGrid.

Member Function Documentation

◆ operator()()

template<typename CellType >
DiscretePoint fpmas::model::MooreRangePerimeter< VonNeumannGrid< CellType > >::operator() ( const GridRange< VonNeumannGrid< CellType >, MooreRangeConfig< VonNeumannGrid< CellType > > > &  range) const
inline

Returns the perimeter of the specified Moore range on a VonNeumannGrid.

In this particular case, the perimeter corresponds to (range.getSize(), range.getSize()). Indeed, this point maximizes the distance from the range's origin on a VonNeumann grid.

See GridRangeConfig::Perimeter for more information about the definition of a "perimeter".

Parameters
rangeVonNeumann range for which the perimeter must be computed

The documentation for this struct was generated from the following file: