Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

String Class Reference

Generic string and buffer class. More...

#include <mstring.h>

Inheritance diagram for String:

Comparable List of all members.

Public Methods

int operator== (const Comparable &other) const
char * getbuffer () const
virtual int hashfunc (int hashsize) const

Detailed Description

Generic string and buffer class.

Supports cached hash-number calculation.

Definition at line 82 of file mstring.h.

Member Function Documentation

char* getbuffer   const [inline]

Returns a non-const pointer to the string buffer.


Definition at line 193 of file mstring.h.

virtual int hashfunc int    hashsize const [virtual]

Hash function.

Inheritors should overload this if they want to be used as a key in Map, etc.

Hash value.
hashsize  Hash size.

Reimplemented from Comparable.

int operator== const Comparable   other const [virtual]

Equality comparison.

Must be overloaded.

Implements Comparable.

The documentation for this class was generated from the following file:
Generated on Thu Feb 10 20:06:43 2005 for LibMagiC by doxygen1.2.18