void BlockFinish() const;
Deinitializes block processing before the final block is processed.
Remarks:
Call this routine before breaking out of a while-loop prematurely.
Vec.BlockInit
While not Vec.BlockEnd do
Begin
If Vec.Min < 0 then //check some condition, if you need to exit
begin
Vec.BlockFinish; //finish the loop
Break; //and break out
end;
Vec.BlockNext;
endExamples
#include "MtxExprInt.h"
using namespace Dew;
using namespace Dew::Math;
void Example()
{
MatrixInt Vec;
VectorInt v(10000);
v.Ramp(5000, -1);
Vec.CopyVec(v, 100);
Vec.BlockInit();
while (!Vec.BlockEnd)
{
if (Vec.Min() < 0) //check some condition, if you need to exit
{
Vec.BlockFinish(); //finish the loop
break; //and break out
}
Vec.BlockNext();
}
}
Declared in Dew::Math::MatrixInt · Dew.Math/MtxExprInt.h · Cross-compiler