thor moved into the main line -- tree code experiences radical changes

This commit is contained in:
Garry Boyer
2007-08-07 20:36:01 +00:00
parent 4164231aa2
commit eb97ff8285
49 changed files with 1424 additions and 1876 deletions
+1 -14
View File
@@ -30,19 +30,11 @@ class String {
private:
ArrayList<char> array_;
OT_DEF(String) {
OT_DEF_BASIC(String) {
OT_MY_OBJECT(array_);
}
public:
String() {}
~String() {}
String(const String& other) {
Copy(other);
}
CC_ASSIGNMENT_OPERATOR(String);
/**
* Implicit conversion constructor.
*/
@@ -74,11 +66,6 @@ class String {
COMPILER_PRINTF(2, 3)
const String& InitSprintf(const char *format, ...);
/** Copies another string. */
void Copy(const String& other) {
array_.Copy(other.array_);
}
/**
* Initializes as a copy of an existing region of characters.
* The existing array does not need to be null terminated.