16#ifndef TRACKINGCA_INCLUDE_ROAD_H
17#define TRACKINGCA_INCLUDE_ROAD_H
25template <
unsigned char maxRoadSize = 5>
39 GPUhdi() uint8_t getRoadSize()
const {
return mRoadSize; }
40 GPUhdi() bool isFakeRoad()
const {
return mIsFakeRoad; }
41 GPUhdi()
void setFakeRoad(const
bool fake) { mIsFakeRoad = fake; }
42 GPUhdi()
int& operator[](const
int&
i) {
return mCellIds[
i]; }
43 GPUhdi()
int operator[](const
int&
i)
const {
return mCellIds[
i]; }
47 for (
int i = 0;
i < maxRoadSize;
i++) {
59 mCellIds[cellLayer] =
cellId;
65 unsigned char mRoadSize{0};
66 bool mIsFakeRoad{
false};
GPUhdDefault() Road(const Road &)=default
GPUhdi() int operator[](const int &i) const
GPUhdi() bool isFakeRoad() const
GPUhd() Road(int cellLayer
GPUhdi() int &operator[](const int &i)
GPUhd() void addCell(int cellLayer
GPUhdi() void setFakeRoad(const bool fake)
GPUhdDefault() Road()=default
GPUhdi() uint8_t getRoadSize() const
typedef void(APIENTRYP PFNGLCULLFACEPROC)(GLenum mode)
constexpr int UnusedIndex