Dillo v3.1.1-46-g8a360e32
Loading...
Searching...
No Matches
lout::container::typed::List< T > Class Template Reference

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

#include <container.hh>

Public Member Functions

 List (bool ownerOfObjects)
 
void clear ()
 
void append (T *element)
 
bool insertBefore (object::Object *beforeThis, object::Object *neew)
 
bool removeRef (T *element)
 
bool remove (T *element)
 
bool detachRef (T *element)
 
bool isEmpty () const
 
T * getFirst () const
 
T * getLast () const
 
- 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.
 

Additional Inherited Members

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

Detailed Description

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

Typed version of container::untyped::List.

Definition at line 484 of file container.hh.

Constructor & Destructor Documentation

◆ List()

template<class T >
lout::container::typed::List< T >::List ( bool  ownerOfObjects)
inline

Definition at line 487 of file container.hh.

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

Member Function Documentation

◆ append()

template<class T >
void lout::container::typed::List< T >::append ( T *  element)
inline

◆ clear()

template<class T >
void lout::container::typed::List< T >::clear ( )
inline

Definition at line 490 of file container.hh.

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

◆ detachRef()

template<class T >
bool lout::container::typed::List< T >::detachRef ( T *  element)
inline

Definition at line 499 of file container.hh.

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

◆ getFirst()

template<class T >
T * lout::container::typed::List< T >::getFirst ( ) const
inline

Definition at line 504 of file container.hh.

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

◆ getLast()

template<class T >
T * lout::container::typed::List< T >::getLast ( ) const
inline

Definition at line 506 of file container.hh.

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

◆ insertBefore()

template<class T >
bool lout::container::typed::List< T >::insertBefore ( object::Object beforeThis,
object::Object neew 
)
inline

Definition at line 493 of file container.hh.

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

◆ isEmpty()

template<class T >
bool lout::container::typed::List< T >::isEmpty ( ) const
inline

Definition at line 502 of file container.hh.

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

◆ remove()

template<class T >
bool lout::container::typed::List< T >::remove ( T *  element)
inline

Definition at line 497 of file container.hh.

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

◆ removeRef()

template<class T >
bool lout::container::typed::List< T >::removeRef ( T *  element)
inline

Definition at line 495 of file container.hh.

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


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