Skip to content

Commit a480716

Browse files
committed
Implemented BlockIterator subscript and < operator
1 parent 91f1972 commit a480716

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

include/nbl/asset/filters/CBasicImageFilterCommon.h

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,15 @@ class CBasicImageFilterCommon
6060
inline pointer operator->() const {return &batchCoord;}
6161

6262
inline value_type operator[] (int index)
63-
{
64-
return nullptr;
63+
{
64+
BlockIterator<batch_dims> temp = BlockIterator<batch_dims>(this->extentBatches);
65+
temp+=index;
66+
return *temp;
6567
}
6668

6769
inline bool operator< (const BlockIterator<batch_dims>& _rhs) const
6870
{
69-
return false;
71+
return toLinearAddress() < _rhs.toLinearAddress();
7072
}
7173

7274
/*

0 commit comments

Comments
 (0)