Dillo v3.1.1-119-g140d9ebd
Loading...
Searching...
No Matches
lout::container::untyped::Collection Class Referenceabstract

Abstract base class for all container objects in container::untyped. More...

#include <container.hh>

Public Member Functions

void intoStringBuffer (misc::StringBuffer *sb)
 Store a textual representation of the object in a misc::StringBuffer.
 
Iterator iterator ()
 
virtual int size ()=0
 
- 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 bool equals (Object *other)
 Returns, whether two objects are equal.
 
virtual int hashValue ()
 Return a hash value for the object.
 
virtual Objectclone ()
 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.
 

Additional Inherited Members

- Protected Member Functions inherited from lout::container::untyped::Collection0
virtual AbstractIteratorcreateIterator ()=0
 

Detailed Description

Abstract base class for all container objects in container::untyped.

Definition at line 111 of file container.hh.

Member Function Documentation

◆ intoStringBuffer()

void lout::container::untyped::Collection::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.

Reimplemented in lout::container::untyped::HashTable.

Definition at line 88 of file container.cc.

References lout::misc::StringBuffer::append(), lout::container::untyped::Iterator::hasNext(), and iterator().

Referenced by lout::container::typed::Collection< T >::intoStringBuffer().

◆ iterator()

Iterator lout::container::untyped::Collection::iterator ( )
inline

◆ size()

virtual int lout::container::untyped::Collection::size ( )
pure virtual

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