VectorInt::Shift Method

Overload List

#SignatureDescription
1TMtxVecInt *Shift(const int Offset) const;Do a shift on all calling vector elements.
2TMtxVecInt *Shift(const int Offset, const int Index, const int Len) const;Perform a shift on vector elements in range.
3TVecInt *Shift(TVecInt *Src, const int Offset) const;Do a shift on vector elements in range.
4TMtxVecInt *Shift(TMtxVecInt *Src, const int Offset, const int SrcIndex, const int Index, const int Len) const;A shift on vector elements in range.

Overload 1: TMtxVecInt *Shift(const int Offset) const;

Do a shift on all calling vector elements.

#NameTypeDescription
1Offsetconst int
Remarks:

Performs shift on all calling vector elements. Offset can be any integer number, positive or negative.

See Also: VectorInt::Rotate
Declared in Dew::Math::VectorInt · Dew.Math/MtxExprInt.h · Cross-compiler

Overload 2: TMtxVecInt *Shift(const int Offset, const int Index, const int Len) const;

Perform a shift on vector elements in range.

#NameTypeDescription
1Offsetconst int
2Indexconst int
3Lenconst int
Remarks:

Performs shift on vector elements in specified range [Index..Index+Len-1]. The number of elements to shift is specified in the Offset parameter. Offset can be any integer number, positive or negative.

An exception is raised if array borders are overrun/underrun.

Declared in Dew::Math::VectorInt · Dew.Math/MtxExprInt.h · Cross-compiler

Overload 3: TVecInt *Shift(TVecInt *Src, const int Offset) const;

Do a shift on vector elements in range.

#NameTypeDescription
1SrcTVecInt *
2Offsetconst int
Remarks:

Performs shift on all source vector elements and stores them to calling vector elements [Index .. Index+Len-1]. The number of elements to shift is specified in the Offset parameter. Offset can be any integer number, positive or negative.

An exception is raised if array borders are overrun/underrun.

See Also: VectorInt::Rotate
Declared in Dew::Math::VectorInt · Dew.Math/MtxExprInt.h · Cross-compiler

Overload 4: TMtxVecInt *Shift(TMtxVecInt *Src, const int Offset, const int SrcIndex, const int Index, const int Len) const;

A shift on vector elements in range.

#NameTypeDescription
1SrcTMtxVecInt *
2Offsetconst int
3SrcIndexconst int
4Indexconst int
5Lenconst int
Remarks:

Performs a shift on source vector elements in specified range [SrcIndex .. SrcIndex+Len-1] and stores them to calling vector elements [Index .. Index+Len-1]. The number of elements to shift is specified in the Offset parameter. Offset can be any integer number, positive or negative.

An exception is raised if array borders are overrun/underrun.

See Also: VectorInt::Rotate
Declared in Dew::Math::VectorInt · Dew.Math/MtxExprInt.h · Cross-compiler