Tao Language for Scripting and Computing

Documentation for Tao C++ Types and Plugin
Home Page
Documents
Downloads
Licensing
MailLists
Forums
FAQ



SourceForge Logo

Support This Project
Tao C++ Types and Plugin: TcArray class Reference

TcArray Class Reference

Corresponding to TaoArray. More...

#include <taoCpptype.h>

Inheritance diagram for TcArray:

TcBase List of all members.

Public Member Functions

 ~TcArray ()
short type () const
 Get object type.

short rtti () const
int size () const
 Get number of elements.

TcBasegetElement (int i)
 Get the i-th element.

void insert (TcBase *tbase, int id=-1)
 Insert an element. Default behavior is like append.

TcBasereplace (TcBase *tbase, int id)
void print (ostream *out=0, bool reserved=0)
 Print with default format.


Detailed Description

Corresponding to TaoArray.


Constructor & Destructor Documentation

TcArray::~TcArray  )  [inline]
 

Objects in "elements" are not freed! If an object of this type is passed to Tao interpreter, the Tao Garbage Collector will take care of this. Otherwise, the users are responsible for it.


Member Function Documentation

TcBase* TcArray::replace TcBase tbase,
int  id
[inline]
 

Replace an element. Return the replaced element for proper handling by users. If index is out of range, return 0.

short TcArray::rtti  )  const [inline, virtual]
 

Get object Running Time Type Identification. It is different from type() only for numeric arrays.

Reimplemented from TcBase.


The documentation for this class was generated from the following file:
Generated on Sun Apr 24 23:42:18 2005 for Tao C++ Types and Plugin by doxygen 1.3.6
This website is maintained by Fu Limin.
Copyright(C) 2004-2005, Fu Limin.
Email: fu [dot] limin [dot] tao [at] gmail [dot] com