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

TcHash Class Reference

Corresponding to TaoHash. More...

#include <taoCpptype.h>

Inheritance diagram for TcHash:

TcBase List of all members.

Public Member Functions

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

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

char * getKey (int i)
 Get i-th key.

TcBasegetValue (int i)
 Get i-th value.

TcBasegetValue (char *key)
 Get value by key.

TcBaseinsert (const char *key, TcBase *value)
void print (ostream *out=0, bool reserved=0)
 Print with default format.


Detailed Description

Corresponding to TaoHash.


Constructor & Destructor Documentation

TcHash::~TcHash  )  [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* TcHash::insert const char *  key,
TcBase value
[inline]
 

Insert a pair of key/value into hash: If "key" already exists in the hash, the old value is returned for proper handling by user.

short TcHash::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