Dillo v3.1.1-98-g318d1f14
Loading...
Searching...
No Matches
lout::container::typed::Collection< T > Class Template Reference

Abstract base class template for all container objects in container::typed. More...

#include <container.hh>

Public Member Functions

 Collection ()
 
 ~Collection ()
 
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.
 
Iterator< T > iterator ()
 
int size ()
 
- 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 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.
 

Protected Attributes

untyped::Collectionbase
 

Detailed Description

template<class T>
class lout::container::typed::Collection< T >

Abstract base class template for all container objects in container::typed.

Actually, a wrapper for container::untyped::Collection.

Definition at line 421 of file container.hh.

Constructor & Destructor Documentation

◆ Collection()

template<class T >
lout::container::typed::Collection< T >::Collection ( )
inline

Definition at line 427 of file container.hh.

◆ ~Collection()

template<class T >
lout::container::typed::Collection< T >::~Collection ( )
inline

Definition at line 428 of file container.hh.

References lout::container::typed::Collection< T >::base.

Member Function Documentation

◆ equals()

template<class T >
bool lout::container::typed::Collection< T >::equals ( Object other)
inlinevirtual

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 430 of file container.hh.

References lout::container::typed::Collection< T >::base, and lout::object::Object::equals().

◆ hashValue()

template<class T >
int lout::container::typed::Collection< T >::hashValue ( )
inlinevirtual

Return a hash value for the object.

Reimplemented from lout::object::Object.

Definition at line 433 of file container.hh.

References lout::object::Object::hashValue().

◆ intoStringBuffer()

template<class T >
void lout::container::typed::Collection< T >::intoStringBuffer ( misc::StringBuffer sb)
inlinevirtual

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 435 of file container.hh.

References lout::container::untyped::Collection::intoStringBuffer().

◆ iterator()

◆ size()

Member Data Documentation

◆ base

template<class T >
untyped::Collection* lout::container::typed::Collection< T >::base
protected

Definition at line 424 of file container.hh.

Referenced by lout::container::typed::List< T >::append(), lout::container::typed::Vector< T >::bsearch(), lout::container::typed::Vector< T >::bsearch(), lout::container::typed::Vector< T >::clear(), lout::container::typed::List< T >::clear(), lout::container::typed::HashSet< T >::contains(), lout::container::typed::List< T >::detachRef(), lout::container::typed::Collection< T >::equals(), lout::container::typed::Vector< T >::get(), lout::container::typed::HashTable< K, V >::get(), lout::container::typed::List< T >::getFirst(), lout::container::typed::List< T >::getLast(), lout::container::typed::Stack< T >::getTop(), lout::container::typed::HashSet< T >::HashSet(), lout::container::typed::HashTable< K, V >::HashTable(), lout::container::typed::Vector< T >::insert(), lout::container::typed::List< T >::insertBefore(), lout::container::typed::Vector< T >::insertSorted(), lout::container::typed::List< T >::isEmpty(), lout::container::typed::List< T >::List(), lout::container::typed::Stack< T >::pop(), lout::container::typed::Stack< T >::push(), lout::container::typed::Stack< T >::pushUnder(), lout::container::typed::HashTable< K, V >::put(), lout::container::typed::Vector< T >::put(), lout::container::typed::HashSet< T >::put(), lout::container::typed::Vector< T >::remove(), lout::container::typed::List< T >::remove(), lout::container::typed::HashSet< T >::remove(), lout::container::typed::List< T >::removeRef(), lout::container::typed::Vector< T >::sort(), lout::container::typed::Stack< T >::Stack(), lout::container::typed::Vector< T >::Vector(), and lout::container::typed::Collection< T >::~Collection().


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