fpmas 1.6
Public Member Functions | List of all members
fpmas::model::GridCellFactory< GridCellType > Class Template Reference

#include <grid.h>

Inheritance diagram for fpmas::model::GridCellFactory< GridCellType >:
Inheritance graph
[legend]
Collaboration diagram for fpmas::model::GridCellFactory< GridCellType >:
Collaboration graph
[legend]

Public Member Functions

GridCellType * build (DiscretePoint location) override
 
virtual GridCellbuild (DiscretePoint location)=0
 

Detailed Description

template<typename GridCellType = GridCell>
class fpmas::model::GridCellFactory< GridCellType >

api::model::GridCellFactory implementation.

Template Parameters
GridCellTypetype of cells to build. A custom user defined grid cell type can be provided.

Member Function Documentation

◆ build()

template<typename GridCellType = GridCell>
GridCellType * fpmas::model::GridCellFactory< GridCellType >::build ( DiscretePoint  location)
inlineoverridevirtual

Build a new api::model::GridCell using the following statement:

new GridCellType(location)
Parameters
locationgrid cell coordinates

Implements fpmas::api::model::GridCellFactory< GridCell >.


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