Introduce 'IndexEnumerator' (#1502)
author박종현/동작제어Lab(SR)/Staff Engineer/삼성전자 <jh1302.park@samsung.com>
Mon, 4 Jun 2018 01:58:30 +0000 (10:58 +0900)
committer서상민/동작제어Lab(SR)/Staff Engineer/삼성전자 <sangmin7.seo@samsung.com>
Mon, 4 Jun 2018 01:58:30 +0000 (10:58 +0900)
commita907afb8f6ef8b2b6184b0861addd6bbc58cf901
tree1c83eb40067fa33de2869c9bccdd6ba779a5379a
parentd29afb94883ee5d70ac63128b26d1680a91f1f8e
Introduce 'IndexEnumerator' (#1502)

This commit introduces 'tensor::IndexEnumerator' and uses it to simplify
the implementation of 'tensor::IndexIterator'.

Unlike 'tensor::IndexIterator', 'tensor::IndexEnumerator' can be used in for loop
similarly as C++ standard iterator.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
include/util/tensor/IndexEnumerator.h [new file with mode: 0644]
include/util/tensor/IndexIterator.h
libs/util/examples/tensor_index_iterator.cpp