TORCS  1.3.9
The Open Racing Car Simulator
AlgoTable< Function > Class Template Reference

#include <AlgoTable.h>

Public Member Functions

void addEntry (ShapeType type1, ShapeType type2, Function function)
 
Function lookup (ShapeType type1, ShapeType type2) const
 

Private Attributes

Function table [NUM_TYPES][NUM_TYPES]
 

Detailed Description

template<class Function>
class AlgoTable< Function >

Definition at line 39 of file AlgoTable.h.

Member Function Documentation

◆ addEntry()

template<class Function >
void AlgoTable< Function >::addEntry ( ShapeType  type1,
ShapeType  type2,
Function  function 
)
inline

Definition at line 41 of file AlgoTable.h.

◆ lookup()

template<class Function >
Function AlgoTable< Function >::lookup ( ShapeType  type1,
ShapeType  type2 
) const
inline

Definition at line 46 of file AlgoTable.h.

Member Data Documentation

◆ table

template<class Function >
Function AlgoTable< Function >::table[NUM_TYPES][NUM_TYPES]
private

Definition at line 51 of file AlgoTable.h.


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