Speeduino
Loading...
Searching...
No Matches
speeduino
table3d_visitor.h
Go to the documentation of this file.
1
#pragma once
2
10
#include "
table3d.h
"
11
23
template
<
typename
TConcreteVisitor,
typename
TReturn =
void
>
24
static
inline
TReturn
visitTable3d
(
table3d_t
&
table
,
TableType
key
,
TConcreteVisitor
&
visitor
)
25
{
26
switch
(
key
)
27
{
28
// LCOV_EXCL_START
29
default
:
30
case
TableType::table_type_None
:
31
// LCOV_EXCL_STOP
33
#define VISIT_CASE(size, xDom, yDom) \
34
case TableType::TO_TYPE_KEY(size, xDom, yDom): \
35
return visitor.visit(static_cast<TABLE3D_TYPENAME_BASE(size, xDom, yDom) &>(table));
37
38
TABLE3D_GENERATOR(
VISIT_CASE
)
39
}
40
}
readSerialIntegralTimeout
static TIntegral readSerialIntegralTimeout(void)
Reads an integral type, timing out if necessary.
Definition
comms.cpp:175
TableType
TableType
Table type identifiers. Limited compile time RTTI.
Definition
table3d.h:69
TableType::table_type_None
@ table_type_None
table3d_t
Definition
table3d.h:79
table3d.h
3D table data types and functions
visitTable3d
static TReturn visitTable3d(table3d_t &table, TableType key, TConcreteVisitor &visitor)
Visit a 3D table with a visitor.
Definition
table3d_visitor.h:24
Generated by
1.9.8