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

#include <spatial_model.h>

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

Public Member Functions

bool contains (CellType *, CellType *) 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::VoidRange< CellType >

A range that does not contain any cell, not even the location cell.

Template Parameters
CellTypetype of cells on which the agent moves

Member Function Documentation

◆ contains()

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

Always returns false: the range does not contain anything.

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

◆ radius()

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

Returns 0.

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


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