![]() |
Speeduino
|
Visitor pattern for the 3D table types. More...
#include "table3d.h"
Go to the source code of this file.
Functions | |
| template<typename TConcreteVisitor , typename TReturn = void> | |
| static TReturn | visitTable3d (table3d_t &table, TableType key, TConcreteVisitor &visitor) |
| Visit a 3D table with a visitor. | |
Visitor pattern for the 3D table types.
This allows us to write code that operates on the tables without having to know the concrete type of the table.
|
inlinestatic |
Visit a 3D table with a visitor.
The visitor is a struct that has a visit() method for each concrete table type, and a default visit() method for the case where the table type is not recognised.
| table | 3d table instance to visit |
| visitor | Visitor to apply to the table |
