More virtual base fixups.
This commit is contained in:
@ -28,9 +28,8 @@ class Object
|
||||
public:
|
||||
virtual ~Object();
|
||||
virtual bool equals(const Object *other) const;
|
||||
virtual bool equals(Object *other) final { return equals( &std::as_const( *other ) ); }
|
||||
virtual int hashValue();
|
||||
virtual Object *clone();
|
||||
virtual Object *clone() const;
|
||||
virtual void intoStringBuffer(misc::StringBuffer *sb) const;
|
||||
std::string toString() const;
|
||||
virtual size_t sizeOf();
|
||||
@ -108,7 +107,7 @@ public:
|
||||
Pointer(void *value) { this->value = value; }
|
||||
bool equals(const Object *other) const override;
|
||||
int hashValue();
|
||||
void intoStringBuffer(misc::StringBuffer *sb);
|
||||
void intoStringBuffer(misc::StringBuffer *sb) const override;
|
||||
inline void *getValue() { return value; }
|
||||
};
|
||||
|
||||
@ -134,7 +133,7 @@ public:
|
||||
Integer(int value) { this->value = value; }
|
||||
bool equals(const Object *other) const override;
|
||||
int hashValue();
|
||||
void intoStringBuffer(misc::StringBuffer *sb);
|
||||
void intoStringBuffer(misc::StringBuffer *sb) const override;
|
||||
int compareTo(Comparable *other);
|
||||
inline int getValue() { return value; }
|
||||
};
|
||||
@ -151,7 +150,7 @@ public:
|
||||
Boolean(bool value) { this->value = value; }
|
||||
bool equals(const Object *other) const override;
|
||||
int hashValue();
|
||||
void intoStringBuffer(misc::StringBuffer *sb);
|
||||
void intoStringBuffer(misc::StringBuffer *sb) const override;
|
||||
int compareTo(Comparable *other);
|
||||
inline bool getValue() { return value; }
|
||||
};
|
||||
@ -172,7 +171,7 @@ public:
|
||||
bool equals(const Object *other) const override;
|
||||
int hashValue();
|
||||
int compareTo(Comparable *other);
|
||||
void intoStringBuffer(misc::StringBuffer *sb);
|
||||
void intoStringBuffer(misc::StringBuffer *sb) const override;
|
||||
|
||||
inline const char *chars() { return str; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user