Dillo v3.1.1-117-gc0464026
|
#include <object.hh>
Public Member Functions | |
PairBase (Object *first, Object *second) | |
~PairBase () | |
bool | equals (Object *other) |
Returns, whether two objects are equal. | |
int | hashValue () |
Return a hash value for the object. | |
void | intoStringBuffer (misc::StringBuffer *sb) |
Store a textual representation of the object in a misc::StringBuffer. | |
size_t | sizeOf () |
Return the number of bytes, this object totally uses. | |
Public Member Functions inherited from lout::object::Object | |
virtual | ~Object () |
The destructor is defined as virtual (but not abstract), so that destruction of Object's works properly. | |
virtual Object * | clone () |
Return an exact copy of the object. | |
const char * | toString () |
Use object::Object::intoStringBuffer to return a textual representation of the object. | |
Protected Attributes | |
Object * | first |
Object * | second |
lout::object::PairBase::~PairBase | ( | ) |
|
virtual |
Returns, whether two objects are equal.
The caller should ensure, that this and the object have the same class; this makes casting of "other" safe. Typically, an implementation should check this == other first, the caller can assume a fast implementation.
Reimplemented from lout::object::Object.
Definition at line 323 of file object.cc.
References lout::object::Object::equals(), first, and second.
|
virtual |
Return a hash value for the object.
Reimplemented from lout::object::Object.
Definition at line 341 of file object.cc.
References first, lout::object::Object::hashValue(), and second.
|
virtual |
Store a textual representation of the object in a misc::StringBuffer.
This is used by object::Object::toString.
Reimplemented from lout::object::Object.
Definition at line 353 of file object.cc.
References lout::misc::StringBuffer::append(), first, lout::object::Object::intoStringBuffer(), and second.
|
virtual |
Return the number of bytes, this object totally uses.
Reimplemented from lout::object::Object.
Definition at line 372 of file object.cc.
References first, second, and lout::object::Object::sizeOf().
|
protected |
Definition at line 198 of file object.hh.
Referenced by equals(), lout::object::Pair::getFirst(), lout::object::TypedPair< F, S >::getFirst(), hashValue(), intoStringBuffer(), PairBase(), sizeOf(), and ~PairBase().
|
protected |
Definition at line 198 of file object.hh.
Referenced by equals(), lout::object::Pair::getSecond(), lout::object::TypedPair< F, S >::getSecond(), hashValue(), intoStringBuffer(), PairBase(), sizeOf(), and ~PairBase().