Dillo v3.1.1-119-g140d9ebd
|
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 Object * | clone () |
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::Collection * | base |
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.
|
inline |
Definition at line 427 of file container.hh.
|
inline |
Definition at line 428 of file container.hh.
References lout::container::typed::Collection< T >::base.
|
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().
|
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().
|
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().
|
inline |
Definition at line 437 of file container.hh.
References lout::container::typed::Iterator< T >::base, and lout::container::untyped::Collection::iterator().
Referenced by dw::fltk::FltkViewport::adjustScrollbarsAndGadgetsAllocation(), dw::fltk::FltkViewport::draw_area(), dw::oof::OOFFloatsMgr::SortedFloatsVector::iterator(), and testVector2().
|
inline |
Definition at line 439 of file container.hh.
References lout::container::untyped::Collection::size().
Referenced by dw::fltk::FltkViewport::adjustScrollbarsAndGadgetsAllocation(), dw::core::DeepIterator::clone(), dw::core::DeepIterator::compareTo(), dw::core::DeepIterator::Stack::getTop(), dw::Hyphenator::hyphenateSingleWord(), dw::Hyphenator::insertException(), dw::oof::OOFFloatsMgr::moveExternalIndices(), dw::core::DeepIterator::next(), dw::core::DeepIterator::Stack::pop(), dw::core::DeepIterator::prev(), dw::oof::OOFFloatsMgr::SortedFloatsVector::size(), testStackAsQueue(), and dw::core::DeepIterator::Stack::~Stack().
|
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().