pointer

 

 

Overview

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"))
  )

 

Syntax


Expression:

(setq ptr (pointer collection))


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:

ptr



 

Examples

Here are a number of links to Lambda coding examples which contain this instruction in various use cases.

 

Argument Types

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.

++ += /= *=
-- -= addMethod appendWriteln
append apply associate balance
binaryInsert binarySearch bitToIntegerVector bitToNumberVector
bitwiseNot boolean car cdr
character class clean closeLog
code compareEQ compareGE compareGT
compareLE compareLT compareNE compare
comparison compress cons copy
count date day days360
debugBrowsableProcs debugDetective debugEval debug
decode defchild defclass define(macro)
defineStructure define defmacro defmethod
deforphan defriend defstruct defun
deleteRows delete dimension disassemble
display downcase encode evalInSyncLocalContext
eval exportCsv exportSbf exportTab
fdisplay fieldsOf fileClose fileCopy
fileDir fileDisplay fileEraseDir fileErase
fileExists fileMakeDir fileOpen fileReadAll
fileReadRecord fileRead fileSizeOf fileWriteAll
fileWrite filewriteln findBlock find
freeBlock gc getGlobalValue getSymbolTable
globalBinding hashString hour importCsv
importSbf importTab insertRows insert
inside inspect integer isAtom
isBitVector isBoolean isBound isByteVector
isCharAlphabetic isCharAlphanumeric isCharLowercase isCharName
isCharNumeric isCharUppercase isCharWhitespace isChar
isCharacter isClass isComplex isDate
isDictionary isDirectory isEqual isError
isFloatVector isIdentical isInside isIntegerVector
isInteger isLambda isMatrix isMember
isMoney isNumberMatrix isNumberVector isNumber
isObjectVector isObject isPair isPcodeVector
isString isStructure isSymbol isText
isType isVector julian last
left length list loadModule
loadObject loadRepository loadWorkspace lock
macroReplace makeDictionary makeGaussianMatrix makeGramMatrix
makeQuotedList makeQuotedSymbol makeStructure map
mapc matrixGaussianEliminate matrixGaussianSubstitute member
methodsOf mid minute money
month morph new number
objectToDictionary objectToDirectory objectToList objectToMatrix
objectToNumMatrix objectToNumVector objectToStructure objectToVector
offset openLog pair parent
parse pointer product proplist
proprecord putprop qt rank
refAttributes refValues ref remProp
remove rename replace rept
resize reverse right run
saveImmediate saveModule saveObject saveRepository
saveWorkspace second send setAttributes
setBlock setCar setCdr setLastCdr
set setf setq sizeof
sort sql stringCiEQ stringCiGE
stringCiGT stringCiLE stringCiLT stringCiNE
stringFill stringToBVector stringToVector string
submit substitute substringCiEQ substringCiGE
substringCiGT substringCiLE substringCiLT substringCiNE
substringEQ substringFill substringGE substringGT
substringLE substringLT substringNE substring
super svmRegression symbolToTypeCode symbol
system text time trim
type uncompress uniqueInsert unlock
upcase vectorBinaryInnerProduct vectorBipolarInnerProduct vectorCosineInnerProduct
vectorCubeInnerProduct vectorDelete vectorExpInnerProduct vectorFill
vectorInnerProduct vectorLogInnerProduct vectorQuartInnerProduct vectorQuintInnerProduct
vectorSigmoidInnerProduct vectorSineInnerProduct vectorSquareInnerProduct vectorTanInnerProduct
vectorTanhInnerProduct writelg writeln year

Analytic Information Server (AIS)

AIS Component Systems

  • Smartbase Engine
  • QT C++ Libraries
  • MySQL Relational Database
  • AIS Lisp Libraries
  • Rapid Analytic Demo IDE