fpmas 1.6
Public Member Functions | List of all members
fpmas::api::model::GridCellFactory< CellType > Class Template Referenceabstract

#include <grid.h>

Inheritance diagram for fpmas::api::model::GridCellFactory< CellType >:
Inheritance graph
[legend]

Public Member Functions

virtual CellType * build (DiscretePoint location)=0
 

Detailed Description

template<typename CellType>
class fpmas::api::model::GridCellFactory< CellType >

GridCellFactory API.

Member Function Documentation

◆ build()

template<typename CellType >
virtual CellType * fpmas::api::model::GridCellFactory< CellType >::build ( DiscretePoint  location)
pure virtual

Returns a pointer to a dynamically allocated GridCell, located at the specified location.

More formally, the built GridCell is such that grid_cell->location() == location.

Parameters
locationgrid cell location
Returns
pointer to dynamically allocated GridCell

Implemented in fpmas::model::GridCellFactory< GridCellType >, and fpmas::model::GridCellFactory< CellType >.


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