Dillo v3.1.1-46-g8a360e32
|
An object::Object wrapper for void pointers. More...
#include <object.hh>
Public Member Functions | |
Pointer (void *value) | |
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. | |
void * | getValue () |
![]() | |
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. | |
virtual size_t | sizeOf () |
Return the number of bytes, this object totally uses. | |
Private Attributes | |
void * | value |
An object::Object wrapper for void pointers.
|
inline |
|
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 155 of file object.cc.
References value.
|
inline |
Definition at line 109 of file object.hh.
References value.
Referenced by lout::object::TypedPointer< T >::getTypedValue().
|
virtual |
Return a hash value for the object.
Reimplemented from lout::object::Object.
Definition at line 160 of file object.cc.
References value.
|
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 182 of file object.cc.
References lout::misc::StringBuffer::append(), and value.
|
private |
Definition at line 102 of file object.hh.
Referenced by equals(), getValue(), hashValue(), intoStringBuffer(), and Pointer().