AFF --- A container for numbers (array) by Friederich and Forbriger.

◆ Shaper() [3/3]

aff::Shaper::Shaper ( const Tsubscript first,
const Tsubscript last,
const Tsubscript maxlast 
)
inline

First dimension is defined by constructor.

Definition at line 90 of file shaper.h.

References AFF_assert, Mfirst, Mlast, and Mmaxlast.

91  :
92  Mfirst(1), Mlast(1), Mmaxlast(1), Mdim(1)
93  {
94  AFF_assert((last>=first), "ERROR (shaper): invalid index range");
95  AFF_assert((maxlast>=last), "ERROR (shaper): invalid alloc size");
96  Mfirst[0]=first;
97  Mlast[0]=last;
98  Mmaxlast[0]=maxlast;
99  }
Tdim Mdim
next dimension to set
Definition: shaper.h:152
Tshape::TIndexVec Mfirst
limits
Definition: shaper.h:150
#define AFF_assert(C, M)
Check an assertion and report by throwing an exception.
Definition: error.h:162
Tshape::TIndexVec Mmaxlast
Definition: shaper.h:150
Tshape::TIndexVec Mlast
Definition: shaper.h:150