Tools.h++ Manual
21-60 104011 Tandem Computers Incorporated
21
RWCollectableString
RWCollectableString
||
RWCollectable RWCString
Synopsis
typedef RWCollectableString String; // Smalltalk typedef
#include <rw>/collstr.h
RWCollectableString c
;
Description Collectable strings. This class is useful when strings are stored and retrieved
as
RWCollectables
, or when they are used as keys in the "dictionary"
collection classes. Class
RWCollectableString
inherits from both class
RWCString
and class
RWCollectable
. The virtual functions of the base class
RWCollectable
have been redefined.
Public constructors
RWCollectableString();
Construct an
RWCollectableString
with zero characters.
RWCollectableString(const RWCString& s);
Construct an
RWCollectableString
from the
RWCString s
.
RWCollectableString(const char* c);
Conversion from character string.
RWCollectableString(const RWCSubString&);
Conversion from sub-string.
RWCollectableString(char c, size_t N);
Construct an
RWCollectableString
with
N
characters (default blanks).