![]() |
The Simons
|
#include <StringID.h>
Inheritance diagram for StringID:
StringID is a strongly typed, reference counting pointer that refers to a String. StringID variables may be initialised to String* objects and all subtypes. StringID variables may alias objects held by other StringID variables, or any subtype. When a StringID acquires an object, it increments the object's reference count. When a StringID releases an object, it decrements the object's reference count. If the reference count reaches zero, the object is automatically deleted.
A StringID variable may be initialised with a String object, or with a literal Character array. In the latter case, a String object is automatically constructed, which copies the contents of the literal array.
Public Member Functions | |
StringID () | |
Declare a StringID. | |
~StringID () | |
Release a StringID. | |
StringID (const Null *) | |
Initialise a StringID to refer explicitly to null. | |
StringID (const String *) | |
Initialise a StringID to refer to a String. | |
StringID (const StringID &) | |
Initialise a StringID to alias another StringID. | |
StringID (const Character *) | |
Initialise a StringID to refer to a literal Character array. | |
StringID & | operator= (const String *) |
Reassign this StringID to refer to a String. | |
StringID & | operator= (const StringID &) |
Reassign this StringID to alias another StringID. | |
String * | operator-> () const |
Invoke a method on this StringID. |
|
Declare a StringID.
|
|
Release a StringID.
|
|
Initialise a StringID to refer explicitly to null.
|
|
Initialise a StringID to refer to a String.
|
|
Initialise a StringID to alias another StringID.
|
|
Initialise a StringID to refer to a literal Character array. Constructs a String to copy the literal Character array.
|
|
Invoke a method on this StringID.
Reimplemented from SequenceID. |
|
Reassign this StringID to alias another StringID.
|
|
Reassign this StringID to refer to a String.
|