Wt::LayoutStdContainerIterator< Container > Class Template Reference

#include <layout.h>

Inheritance diagram for Wt::LayoutStdContainerIterator< Container >:

Inheritance graph
[legend]
Collaboration diagram for Wt::LayoutStdContainerIterator< Container >:

Collaboration graph
[legend]
List of all members.

Public Types

typedef Container::value_type Compound

Public Member Functions

 LayoutStdContainerIterator (Container &container)
virtual LayoutItemoperator * () const
Compound::LayoutItemValue & value ()
virtual bool operator!= (const LayoutIteratorInterface &other) const
virtual LayoutStdContainerIteratoroperator++ (int)
virtual void start ()
virtual bool finish ()
virtual LayoutItempop ()
bool operator== (const LayoutIteratorInterface &other) const

Private Attributes

Containercontainer_
Container::iterator it_
Container::iterator end

Detailed Description

template<typename Container>
class Wt::LayoutStdContainerIterator< Container >

Definition at line 398 of file layout.h.


Member Typedef Documentation

template<typename Container>
typedef Container::value_type Wt::LayoutStdContainerIterator< Container >::Compound

Definition at line 400 of file layout.h.


Constructor & Destructor Documentation

template<typename Container>
Wt::LayoutStdContainerIterator< Container >::LayoutStdContainerIterator ( Container container  )  [inline]

Definition at line 401 of file layout.h.

00401                                                      :
00402             container_(container),
00403     end(container_.end()) {}


Member Function Documentation

template<typename Container>
virtual bool Wt::LayoutStdContainerIterator< Container >::finish (  )  [inline, virtual]

Implements Wt::LayoutIteratorInterface.

Definition at line 427 of file layout.h.

Referenced by Wt::BoxLayout::setGeometry(), Wt::GridLayout::setGeometry(), Wt::CascadeLayout::setGeometry(), Wt::BoxLayout::validate(), and Wt::CascadeLayout::validate().

00427                           {
00428         return (it_ == end);
00429     }

template<typename Container>
virtual LayoutItem* Wt::LayoutStdContainerIterator< Container >::operator * (  )  const [inline, virtual]

Implements Wt::LayoutIteratorInterface.

Definition at line 405 of file layout.h.

00405                                           {
00406         return *it_;
00407     }

template<typename Container>
virtual bool Wt::LayoutStdContainerIterator< Container >::operator!= ( const LayoutIteratorInterface other  )  const [inline, virtual]

Implements Wt::LayoutIteratorInterface.

Definition at line 413 of file layout.h.

00413                                                                         {
00414         return *it_ != *other;
00415     }

template<typename Container>
virtual LayoutStdContainerIterator& Wt::LayoutStdContainerIterator< Container >::operator++ ( int   )  [inline, virtual]

Implements Wt::LayoutIteratorInterface.

Definition at line 418 of file layout.h.

00418                                                         {
00419         ++it_;
00420         return *this;
00421     }

bool Wt::LayoutIteratorInterface::operator== ( const LayoutIteratorInterface other  )  const [inline, inherited]

Definition at line 47 of file layout.h.

00047                                                                 {
00048         return !(**this != *other);
00049     }

template<typename Container>
virtual LayoutItem* Wt::LayoutStdContainerIterator< Container >::pop (  )  [inline, virtual]

Implements Wt::LayoutIteratorInterface.

Definition at line 430 of file layout.h.

00430                               {
00431         LayoutItem *li = *it_;
00432         container_.erase(it_);
00433         return li;
00434     }

template<typename Container>
virtual void Wt::LayoutStdContainerIterator< Container >::start (  )  [inline, virtual]

Implements Wt::LayoutIteratorInterface.

Definition at line 424 of file layout.h.

Referenced by Wt::BoxLayout::setGeometry(), Wt::GridLayout::setGeometry(), Wt::CascadeLayout::setGeometry(), Wt::BoxLayout::validate(), and Wt::CascadeLayout::validate().

00424                          {
00425         it_ = container_.begin();
00426     }

template<typename Container>
Compound::LayoutItemValue& Wt::LayoutStdContainerIterator< Container >::value (  )  [inline]

Definition at line 409 of file layout.h.

00409                                               {
00410         return *it_;
00411     }


Member Data Documentation

template<typename Container>
Container& Wt::LayoutStdContainerIterator< Container >::container_ [private]

Definition at line 437 of file layout.h.

Referenced by Wt::LayoutStdContainerIterator< std::list< BoxLayoutItemCompound > >::pop(), and Wt::LayoutStdContainerIterator< std::list< BoxLayoutItemCompound > >::start().

template<typename Container>
Container::iterator Wt::LayoutStdContainerIterator< Container >::end [private]

Definition at line 439 of file layout.h.

Referenced by Wt::LayoutStdContainerIterator< std::list< BoxLayoutItemCompound > >::finish().

template<typename Container>
Container::iterator Wt::LayoutStdContainerIterator< Container >::it_ [private]

Definition at line 438 of file layout.h.

Referenced by Wt::LayoutStdContainerIterator< std::list< BoxLayoutItemCompound > >::finish(), Wt::LayoutStdContainerIterator< std::list< BoxLayoutItemCompound > >::operator *(), Wt::LayoutStdContainerIterator< std::list< BoxLayoutItemCompound > >::operator!=(), Wt::LayoutStdContainerIterator< std::list< BoxLayoutItemCompound > >::operator++(), Wt::LayoutStdContainerIterator< std::list< BoxLayoutItemCompound > >::pop(), Wt::LayoutStdContainerIterator< std::list< BoxLayoutItemCompound > >::start(), and Wt::LayoutStdContainerIterator< std::list< BoxLayoutItemCompound > >::value().


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

Generated Fri Jul 28 19:30:01 2006.
Copyright © 1998-2003 by the respective authors.

This document is licensed under the terms of the GNU Free Documentation License and may be freely distributed under the conditions given by this license.