Navigation:  C/C++ Scripting Engine > Classes >

dbIntArray

Previous pageReturn to chapter overviewNext page

Class to store an array of integers.

bar_dot

 

Class Functions:

==============

 

void append( int value )

Add an integer to the end of the array.

 

void prepend( int value )

Add an integer to the front of the array.

 

void clear()

Remove all integers stored in the array.

 

int no()

Returns the total count of integers in the array.

 

int find( int value )

Return the index in the array for the integer "value".  If it cannot find the integer, -1 is returned.

 

int rfind( int value )

Return the index in the array for the integer "value".  If it cannot find the integer, -1 is returned. Begins search from back-to-front.

 

void insert( int pos, int value )

Insert integer into array at specified position

 

void remove( int pos )

Remove stored integer at specified position.

 

int index( int pos )

Return integer value at specified position.