mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-05 09:09:04 +08:00
[1/N] Program refactor - decouple from patchokens
Change-Id: I63bbf6c31a5db9e788124f22b6105e65c16c86d4
This commit is contained in:
committed by
sys_ocldev
parent
412c88cf9b
commit
355e8d3e5a
@@ -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];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user