dillo  3.0.5
About: dillo is a small, fast, extensible Web browser particularly suitable for older or smaller computers and embedded systems (but only limited or no support for frames, CSS, JavaScript, Java).
  Fossies Dox: dillo-3.0.5.tar.gz  ("inofficial" and yet experimental doxygen-generated source code documentation)  

lout::object::PairBase Class Reference

#include <object.hh>

Inheritance diagram for lout::object::PairBase:
[legend]
Collaboration diagram for lout::object::PairBase:
[legend]

Public Member Functions

 PairBase (Object *first, Object *second)
 
 ~PairBase ()
 
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...
 
size_t sizeOf ()
 Return the number of bytes, this object totally uses. More...
 
- 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...
 

Protected Attributes

Objectfirst
 
Objectsecond
 

Detailed Description

Todo:
Comment

Definition at line 144 of file object.hh.

Constructor & Destructor Documentation

◆ PairBase()

lout::object::PairBase::PairBase ( Object first,
Object second 
)

Definition at line 265 of file object.cc.

References first, and second.

◆ ~PairBase()

lout::object::PairBase::~PairBase ( )

Definition at line 271 of file object.cc.

References first, and second.

Member Function Documentation

◆ equals()

bool lout::object::PairBase::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.

Definition at line 279 of file object.cc.

References lout::object::Object::equals(), first, and second.

◆ hashValue()

int lout::object::PairBase::hashValue ( )
virtual

Return a hash value for the object.

Reimplemented from lout::object::Object.

Definition at line 297 of file object.cc.

References first, lout::object::Object::hashValue(), and second.

◆ intoStringBuffer()

void lout::object::PairBase::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.

Definition at line 309 of file object.cc.

References lout::misc::StringBuffer::append(), first, lout::object::Object::intoStringBuffer(), and second.

◆ sizeOf()

size_t lout::object::PairBase::sizeOf ( )
virtual

Return the number of bytes, this object totally uses.

Reimplemented from lout::object::Object.

Definition at line 328 of file object.cc.

References first, second, and lout::object::Object::sizeOf().

Member Data Documentation

◆ first

Object* lout::object::PairBase::first
protected

◆ second

Object * lout::object::PairBase::second
protected

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