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: TcByteArray class Reference

TcByteArray Class Reference

Corresponding to TaoByteArray. More...

#include <taoCpptype.h>

Inheritance diagram for TcByteArray:

TcNumArray TcBase List of all members.

Public Member Functions

 ~TcByteArray ()
Byte & element (int id)
 Get "id"-th element as in a vector.

Byte & element (int *index)
 Get element specified by a subindex.

Byte * getAsVector ()
 Get as vector.

Byte ** getAsMatrix (int nR=-1)
 Get as matrix.

void setByteArray (Byte *vals, int *dm, int nd)
short rtti () const

Detailed Description

Corresponding to TaoByteArray.


Constructor & Destructor Documentation

TcByteArray::~TcByteArray  )  [inline]
 

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

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

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

Reimplemented from TcNumArray.

void TcByteArray::setByteArray Byte *  vals,
int *  dm,
int  nd
[inline]
 

This function is used to pass data pointer from TaoNumArray to TcNumArray (or the reverse) without copying the data chunk. It not clear that it is the best way without any problems. Otherwise, it might be better to copy the data chunk.


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