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

TcBase Class Reference

Base class for all Tao C++ types. More...

#include <taoCpptype.h>

Inheritance diagram for TcBase:

TaoPlugin TcArray TcComplex TcHash TcNumArray TcNumber TcString TcByteArray TcComplexArray TcDoubleArray TcFloatArray TcIntArray TcShortArray List of all members.

Public Member Functions

virtual short type () const
 Get object type.

virtual short rtti () const
virtual double getValue ()
 Get value, used for TcNumber without casting it from TcBase.

virtual char * getChars ()
 Get chars, used for TcString without casting it from TcBase.

virtual TcBasegetElement (int i)
 Get the i-th element, used for TcArray without casting it from TcBase.

virtual void print (ostream *out=0, bool reserved=0)
 Print with default format.


Public Attributes

bool visited
void * reserved

Detailed Description

Base class for all Tao C++ types.


Member Function Documentation

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

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

Reimplemented in TcNumber, TcComplex, TcString, TcArray, TcHash, TcNumArray, TcByteArray, TcShortArray, TcIntArray, TcFloatArray, TcDoubleArray, TcComplexArray, and TaoPlugin.


Member Data Documentation

void* TcBase::reserved
 

Only used for holding a pointer of TaoXyz converted from TcXyz. Don't touch it!

bool TcBase::visited
 

Used for GC in Tao interpreter. Don't touch it!


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