MCPcopy Create free account
hub / github.com/davisking/dlib / iterator

Class iterator

dlib/cuda/cuda_utils.h:283–305  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

281 {}
282
283 class iterator
284 {
285 public:
286 __device__ iterator() {}
287 __device__ iterator(size_t pos_) : pos(pos_) {}
288
289 __device__ size_t operator*() const
290 {
291 return pos;
292 }
293
294 __device__ iterator& operator++()
295 {
296 pos += gridDim.x * blockDim.x;
297 return *this;
298 }
299
300 __device__ bool operator!=(const iterator& item) const
301 { return pos < item.pos; }
302
303 private:
304 size_t pos;
305 };
306
307 __device__ iterator begin() const
308 {

Callers 4

beginMethod · 0.70
endMethod · 0.70
beginMethod · 0.70
endMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected