Dillo
Public Member Functions | Private Attributes | List of all members
lout::object::Pointer Class Reference

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. More...
 
int hashValue ()
 Return a hash value for the object. More...
 
void intoStringBuffer (misc::StringBuffer *sb)
 Store a textual representation of the object in a misc::StringBuffer. More...
 
void * getValue ()
 
- 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. More...
 
virtual Objectclone ()
 Return an exact copy of the object. More...
 
const char * toString ()
 Use object::Object::intoStringBuffer to return a textual representation of the object. More...
 
virtual size_t sizeOf ()
 Return the number of bytes, this object totally uses. More...
 

Private Attributes

void * value
 

Detailed Description

An object::Object wrapper for void pointers.

Constructor & Destructor Documentation

lout::object::Pointer::Pointer ( void *  value)
inline

References value.

Member Function Documentation

bool lout::object::Pointer::equals ( Object other)
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.

References value.

void* lout::object::Pointer::getValue ( )
inline
int lout::object::Pointer::hashValue ( )
virtual

Return a hash value for the object.

Reimplemented from lout::object::Object.

References value.

void lout::object::Pointer::intoStringBuffer ( misc::StringBuffer sb)
virtual

Store a textual representation of the object in a misc::StringBuffer.

This is used by object::Object::toString.

Reimplemented from lout::object::Object.

References lout::misc::StringBuffer::append(), and value.

Member Data Documentation

void* lout::object::Pointer::value
private

The documentation for this class was generated from the following files: