[1/N] Program refactor - decouple from patchokens

Change-Id: I63bbf6c31a5db9e788124f22b6105e65c16c86d4
This commit is contained in:
Jaroslaw Chodor
2019-10-27 19:48:26 +01:00
committed by sys_ocldev
parent 412c88cf9b
commit 355e8d3e5a
61 changed files with 6159 additions and 1368 deletions

View File

@@ -45,10 +45,24 @@ class ArrayRef {
ArrayRef() = default;
ArrayRef(const ArrayRef &src)
: begIt(src.begIt), endIt(src.endIt) {
}
ArrayRef &operator=(const ArrayRef &src) {
this->begIt = src.begIt;
this->endIt = src.endIt;
return *this;
}
size_t size() const {
return endIt - begIt;
}
bool empty() const {
return (0U == size());
}
DataType &operator[](std::size_t idx) {
return begIt[idx];
}