TMtxInt::BlockFinish Method

void BlockFinish();

Deinitializes block processing before the final block is processed.

Remarks:

Call this routine before breaking out of a while-loop prematurely. If processing until BlockEnd, this call is not needed.

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;
end
Examples
#include "MtxVec.h"
#include "Units.MtxVec.h"

using namespace Dew;
using namespace Dew::Math;
using namespace Dew::Math::Units::MtxVec;

void Example()
{
    TVec* Vec;

    CreateIt(Vec);
    Vec->Size(10000);
    Vec->Ramp(5000, -1);
    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();
    }
    FreeIt(Vec);
}
Declared in Dew::Math::TMtxVecBase · Dew.Math/MtxVecBase.h · Cross-compiler