NEST
2.6.0,not_revisioned_source_dir@0
|
Return array of indices defining a 2d subarea of a 2d array. More...
Public Member Functions | |
void | execute (SLIInterpreter *) const |
Public Member Functions inherited from SLIFunction | |
SLIFunction () | |
virtual | ~SLIFunction () |
virtual void | backtrace (SLIInterpreter *, int) const |
Show stack backtrace information on error. More... | |
Return array of indices defining a 2d subarea of a 2d array.
Given a – hypothetical – twodimensional array, "area" tells you, what indices you need to subscript a contiguous, twodimensional subarea. Returns 1-d indices.
For further information refer to the SLI documentation.
source_width | width of the (hypothetical) source array to be subscribed into |
source_anchor_y | y position of the anchor point relative to ORIGIN OF THE SOURCE ARRAY |
source_anchor_x | x position of the anchor point relative to ORIGIN OF THE SOURCE ARRAY |
area_height | height of the subarea to be subscribed |
area_width | width of the subarea to be subscribed |
area_anchor_y | y position of the anchor point relative to ORIGIN OF THE SUBAREA |
area_anchor_x | x position of the anchor point relative to ORIGIN OF THE SUBAREA |
|
virtual |
Implements SLIFunction.
References SLIInterpreter::ArgumentTypeError, Token::datum(), SLIInterpreter::EStack, GenericDatum< D, slt >::get(), TokenStack::load(), SLIInterpreter::M_ERROR, SLIInterpreter::message(), SLIInterpreter::OStack, TokenStack::pick(), TokenStack::pop(), TokenArray::push_back(), TokenStack::push_by_pointer(), SLIInterpreter::raiseerror(), TokenArray::reserve(), SLIInterpreter::StackUnderflowError, nest::names::x, and nest::names::y.