Refactor Layout Manager

This commit is contained in:
IlyaShurupov 2024-10-14 21:31:05 +03:00
parent 7cf3328a40
commit 54dcbcb46b
28 changed files with 408 additions and 123 deletions

View file

@ -418,7 +418,7 @@ namespace tp {
void reverse() {
for (ualni idx = 0; idx < mLoad / 2; idx++) {
swap(mBuff[idx], mBuff[mLoad - idx - 1]);
swapV(mBuff[idx], mBuff[mLoad - idx - 1]);
}
}

View file

@ -63,7 +63,7 @@ namespace tp {
for (Index i = 0; i < mSize.x; i++) {
const auto lenIdx = mSize.y - 1;
for (Index j = 0; j < mSize.y / 2; j++) {
swap(get({i, j}), get({i, lenIdx - j}));
swapV(get({ i, j }), get({ i, lenIdx - j }));
}
}
}
@ -72,7 +72,7 @@ namespace tp {
for (Index i = 0; i < mSize.y; i++) {
const auto lenIdx = mSize.x - 1;
for (Index j = 0; j < mSize.x / 2; j++) {
swap(get({i, j}), get({i, lenIdx - j}));
swapV(get({ i, j }), get({ i, lenIdx - j }));
}
}
}

View file

@ -288,9 +288,9 @@ namespace tp {
while (iter) {
tmp = iter;
iter = iter->next;
swap(tmp->next, tmp->prev);
swapV(tmp->next, tmp->prev);
}
swap(mFirst, mLast);
swapV(mFirst, mLast);
}
void detachAll() {