EasyManuals Logo
Home>Casio>Calculator>ClassPad 300

Casio ClassPad 300 Programming Guide

Casio ClassPad 300
125 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #21 background imageLoading...
Page #21 background image
// Get the value at the given index
void * GetAt (int nIndex)
// Set the value at the given index
void SetAt (int nIndex, void *pElement)
// Resize the array. Note that any objects that fall of the end of the
// array are the programmer’s responsibility
void SetSize (int iNewSize, int iGrowBy=-1)
// Add an item to the end of an array
int Append (const CPArray &array)
// Copy the array
void Copy (const CPArray &array)
// Free unused memory above the current upper bound.
void FreeExtra ()
// Set the array to the given index. If the index is out of the bounds
// of the array, grow the array to include this index
void SetAtGrow (int nIndex, void *pElement)
// Insert element nCount times at the specified index
void InsertAt (int nIndex, void *pElement, int nCount=1)
// Insert elements from another CPArray starting from the given index
void InsertAt (int nIndex, CPArray *array)
// Removes nCount elements starting at specified index
void RemoveAt (int nIndex, int nCount=1)
// Add an element to the end of the CPArray
void Add (void *pElement)
// Removes all objects from the CPArray. The removed objects are not
// deleted
void RemoveAll ()
The GetAt() method is memory safe, and will return NULL if the index is outside the
array. Likewise, SetAtGrow() will resize the array if it is too small. CPArray does not
manage the memory of the objects. It only manages the memory of the array structure. It
is your responsibility to delete all objects from memory.
CPList
The CPList is a singly linked circular list of void*. CPList has several member functions
that allow for navigation through the list, as well as retrieving items from the list. The
following is a list of all public functions and a brief description of what they do (Note:
ent is typedef’d to void*):
/// Returns the object pointer at the begining (head) of the list
ent Head();
21

Table of Contents

Other manuals for Casio ClassPad 300

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Casio ClassPad 300 and is the answer not in the manual?

Casio ClassPad 300 Specifications

General IconGeneral
BrandCasio
ModelClassPad 300
CategoryCalculator
LanguageEnglish

Related product manuals