Example ObjectRepository ref 030

 

 

Description

This example shows the ref function retrieve an object or key from the Object Repository BY INDEX.

 

Details

Create a new ObjectRepository.

(setq gor (new ObjectRepository: "mice.db")) Returns: #<ObjectRepository 197815>

Install a key and value pair.

(setq gor 1 "mickey") Returns: #<ObjectRepository 197815>

Install a key and value pair.

(setq gor "one" "minnie") Returns: #<ObjectRepository 197815>

Install a key and value pair.

(setq gor "two" "mighty") Returns: #<ObjectRepository 197815>

Install a key and value pair.

(setq gor "three" "speedy gonzales") Returns: #<ObjectRepository 197815>
(ref gor 0 0) Returns: 1
(ref gor 0 1) Returns: mickey
(ref gor 3 0) Returns: three
(ref gor 1 0) Returns: speedy gonzales

 

Related Examples

Here are examples of the ref function at work.

BitVector ref 027 Boolean ref 018 Brick ref 036 Date ref 020
Dictionary ref 007 Dictionary ref 008 Dictionary ref 009 Directory ref 010
Directory ref 011 Directory ref 012 FltVector ref 022 Function ref 021
IntVector ref 023 Lambda ref 017 List ref 028 Matrix ref 015
Matrix ref 016 NumMatrix ref 035 NumVector ref 024 Number ref 019
ObjVector ref 025 ObjectRepository ref 030 ObjectRepository ref 031 ObjectRepository ref 032
ObjectRepository ref 033 ObjectRepository ref 034 PcodeVector ref 026 ShortVector ref 024
String ref 001 String ref 002 Structure ref 004 Structure ref 006
Symbol ref 003 Vector ref 013 Vector ref 014 Void ref 017

 

Function Links

Here is the link to the current function used in this example.

ref

Here are a number of links to other related functions.

setq(#void)

 

Argument Types

Here are the links to the data types of the arguments used in this example.

ObjectRepository

Here are a number of links to examples having similar argument types.

ObjectRepository abortTransaction 001 ObjectRepository addMethod 026 ObjectRepository attachLibrarian 001 ObjectRepository beginTransaction 001
ObjectRepository checkPointTransaction 001 ObjectRepository clear 002 ObjectRepository commitTransaction 001 ObjectRepository compare 021
ObjectRepository compare 022 ObjectRepository compareEQ 021 ObjectRepository compareEQ 022 ObjectRepository compareGE 021
ObjectRepository compareGE 022 ObjectRepository compareGT 021 ObjectRepository compareGT 022 ObjectRepository compareLE 021
ObjectRepository compareLE 022 ObjectRepository compareLT 021 ObjectRepository compareLT 022 ObjectRepository compareNE 021
ObjectRepository compareNE 022 ObjectRepository comparison 021 ObjectRepository comparison 022 ObjectRepository defmethod 023
ObjectRepository delete 013 ObjectRepository detachLibrarian 001 ObjectRepository exportTab 001 ObjectRepository importTab 001
ObjectRepository inspect 002 ObjectRepository isIdentical 019 ObjectRepository isImmediate 001 ObjectRepository length 016
ObjectRepository loadRepository 001 ObjectRepository methodsOf 023 ObjectRepository new 014 ObjectRepository ref 030
ObjectRepository ref 031 ObjectRepository ref 032 ObjectRepository ref 033 ObjectRepository ref 034
ObjectRepository refLibrarian 001 ObjectRepository rename 001 ObjectRepository saveImmediate 001 ObjectRepository saveRepository 001
ObjectRepository send 026 ObjectRepository setf 001 ObjectRepository setf 002 ObjectRepository setq 027
ObjectRepository sizeof 027 ObjectRepository type 024

Analytic Information Server (AIS)

AIS Component Systems

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