pointer
|
The pointer function returns a pointer to the repeating data portion of a Vector, Brick, Dictionary, or other AIS collection object.
Usage The pointer function returns a pointer to the repeating data portion of a Vector, Brick, Dictionary, or other AIS collection object.
For instance the following Lisp assembler level code shows how to examine the Integers in an Integer vector.
The pointer function is used to get the address of the repeating portion of an IntVector.
Then the program loops through each integer looking for -2353.
regs:(n N IntPointer:ptr cc)
vars:(IntVector:x)
(setq ptr (pointer x))
(setq N (length x))
(loop for n from 0 until N do
(if (= ptr[n] -2353) then (writeln "I found -2353 in this Vector"))
)
(setq ptr (pointer collection)) ptr
Expression:
Arguments
Name
Type
Description Argument: collection
BitVector Brick ByteVector CpxVector Dictionary Directory FltVector IntVector LongVector
Matrix NumMatrix NumVector ObjVector Pair ShortVector String Structure Symbol Vector
The collection object whose pointer is to be returned. Argument: ptr Integer
Returns the address, as an Integer, of the repeating portion of the collection specified.
Returns:
Here are a number of links to Lambda coding examples which contain this instruction in various use cases.
Here are the links to the data types of the function arguments.
BitVector | Brick | ByteVector | CpxVector |
Dictionary | Directory | FltVector | IntVector |
Matrix | NumMatrix | NumVector | ObjVector |
Pair | ShortVector | String | Structure |
Symbol | Vector |
Here are also a number of links to functions having arguments with any of these data types.
Analytic Information Server (AIS)AIS Component Systems
|