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

#include <moore_range.h>

Public Member Functions

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

Detailed Description

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

MooreRangePerimeter specialization corresponding to a MooreRange used on a VonNeumannGrid.

Member Function Documentation

◆ operator()()

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

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

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

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

Parameters
rangeMoore range for which the perimeter must be computed

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