16#ifndef TRACKINGCA_INCLUDE_ROAD_H
17#define TRACKINGCA_INCLUDE_ROAD_H
19#ifndef GPUCA_GPUCODE_DEVICE
31template <
unsigned char maxRoadSize = 5>
35 GPUhd()
Road() : mCellIds{}, mRoadSize{}, mIsFakeRoad{} { resetRoad(); }
41 GPUhd()
bool isFakeRoad() const;
43 GPUhd()
int& operator[](const
int&);
44 GPUhd()
int operator[](const
int&) const;
48 for (
int i = 0;
i < maxRoadSize;
i++) {
60 mCellIds[cellLayer] =
cellId;
64 int mCellIds[maxRoadSize];
66 unsigned char mRoadSize;
70template <
unsigned char maxRoadSize>
76template <
unsigned char maxRoadSize>
77GPUhdi()
int& Road<maxRoadSize>::operator[](const
int&
i)
82template <
unsigned char maxRoadSize>
83GPUhdi()
int Road<maxRoadSize>::operator[](const
int&
i)
const
88template <
unsigned char maxRoadSize>
89GPUhdi() bool Road<maxRoadSize>::isFakeRoad()
const
94template <
unsigned char maxRoadSize>
97 mIsFakeRoad = isFakeRoad;
GPUhd() int getRoadSize() const
GPUhd() void addCell(int cellLayer
void setFakeRoad(const bool)
typedef void(APIENTRYP PFNGLCULLFACEPROC)(GLenum mode)
constexpr int UnusedIndex
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...