Java iterators for C++:
 All Classes Namespaces Files Functions Variables Typedefs Friends Macros Pages
Public Member Functions | Public Attributes | Private Attributes | List of all members
Tree_PLR< E > Class Template Reference

Process-Left-Right iterator. More...

#include <Tree_PLR.h>

Public Member Functions

void set (const TL::Tree< E > &T)
 Iterator::set(). More...
 
bool hasNext () const
 Iterator::hasNext(). More...
 
const TL::Tree< E > next ()
 Iterator::next(). More...
 

Public Attributes

 __pad0__: m_Q() { set(T)
 init(). More...
 

Private Attributes

std::list< TL::Tree< E > > m_Q
 std::queue<>. More...
 

Detailed Description

template<typename E>
class Tree_PLR< E >

Process-Left-Right iterator.

{{ // test::Tree_PLR()
Tree_PLR<char> iter; std::string L;
iter.set(T);
while ( iter.hasNext() ) {
TL::Tree<char> S = iter.next();
L.push_back( *S );
}
assertTrue( L == "abfghcdeijlmnok" && "Tree_PLR" );
}}

See Also
test_iterJava::test_Tree_PLR()
make_a_o(TL::Tree<char> & T)
T = a

Definition at line 59 of file Tree_PLR.h.

Member Function Documentation

template<typename E >
void Tree_PLR< E >::set ( const TL::Tree< E > &  T)

Iterator::set().

Definition at line 72 of file Tree_PLR.h.

template<typename E >
bool Tree_PLR< E >::hasNext ( ) const

Iterator::hasNext().

Definition at line 109 of file Tree_PLR.h.

template<typename E >
const TL::Tree< E > Tree_PLR< E >::next ( )

Iterator::next().

Definition at line 115 of file Tree_PLR.h.

Member Data Documentation

template<typename E>
std::list< TL::Tree<E> > Tree_PLR< E >::m_Q
private

std::queue<>.

Definition at line 60 of file Tree_PLR.h.

template<typename E>
Tree_PLR< E >::__pad0__

init().

Definition at line 64 of file Tree_PLR.h.


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