fpmas 1.6
Public Member Functions | List of all members
fpmas::model::LocationRange< CellType > Struct Template Reference

#include <spatial_model.h>

Inheritance diagram for fpmas::model::LocationRange< CellType >:
Inheritance graph
[legend]
Collaboration diagram for fpmas::model::LocationRange< CellType >:
Collaboration graph
[legend]

Public Member Functions

bool contains (CellType *location, CellType *cell) const override
 
std::size_t radius (CellType *) const override
 
virtual bool contains (CellType *root, CellType *cell) const =0
 
virtual std::size_t radius (CellType *origin) const =0
 

Detailed Description

template<typename CellType>
struct fpmas::model::LocationRange< CellType >

A range that only contains the current location of an agent, i.e. the origin of the range.

Template Parameters
CellTypetype of cells on which the agent moves

Member Function Documentation

◆ contains()

template<typename CellType >
bool fpmas::model::LocationRange< CellType >::contains ( CellType *  location,
CellType *  cell 
) const
inlineoverridevirtual

Returns true iff cell is location.

Implements fpmas::api::model::Range< CellType >.

◆ radius()

template<typename CellType >
std::size_t fpmas::model::LocationRange< CellType >::radius ( CellType *  ) const
inlineoverridevirtual

Returns 0.

Implements fpmas::api::model::Range< CellType >.


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