Dillo v3.1.1-119-g140d9ebd
Loading...
Searching...
No Matches
lout::container::typed::HashSet< T > Class Template Reference

Typed version of container::untyped::HashSet. More...

#include <container.hh>

Public Member Functions

 HashSet (bool owner, int tableSize=251)
 
void put (T *object)
 
bool contains (T *object) const
 
bool remove (T *object)
 
- Public Member Functions inherited from lout::container::typed::Collection< T >
 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 Member Functions

 HashSet ()
 

Additional Inherited Members

- Protected Attributes inherited from lout::container::typed::Collection< T >
untyped::Collectionbase
 

Detailed Description

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

Typed version of container::untyped::HashSet.

Definition at line 513 of file container.hh.

Constructor & Destructor Documentation

◆ HashSet() [1/2]

template<class T >
lout::container::typed::HashSet< T >::HashSet ( )
inlineprotected

Definition at line 516 of file container.hh.

◆ HashSet() [2/2]

template<class T >
lout::container::typed::HashSet< T >::HashSet ( bool  owner,
int  tableSize = 251 
)
inline

Definition at line 519 of file container.hh.

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

Member Function Documentation

◆ contains()

template<class T >
bool lout::container::typed::HashSet< T >::contains ( T *  object) const
inline

Definition at line 524 of file container.hh.

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

◆ put()

template<class T >
void lout::container::typed::HashSet< T >::put ( T *  object)
inline

Definition at line 522 of file container.hh.

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

Referenced by testHashSet().

◆ remove()

template<class T >
bool lout::container::typed::HashSet< T >::remove ( T *  object)
inline

Definition at line 526 of file container.hh.

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


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