Back to index

texmacs  1.0.7.15
Classes | Functions | Variables
iterator.hpp File Reference
#include "hashset.hpp"
#include "hashmap.hpp"
#include "iterator.cpp"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  iterator_rep< T >
struct  iterator< T >

Functions

 ABSTRACT_TEMPLATE_CODE (iterator, class, T)
template<class T >
tm_ostreamoperator<< (tm_ostream &out, iterator< T > it)
template<class T , class U >
iterator< Titerate (hashmap< T, U > h)
template<class T >
iterator< Titerate (hashset< T > h)

Variables

int iterator_count

Function Documentation

ABSTRACT_TEMPLATE_CODE ( iterator  ,
class  ,
T   
)
template<class T , class U >
iterator<T> iterate ( hashmap< T, U >  h)

Definition at line 134 of file iterator.cpp.

                         {
  return tm_new<hashmap_iterator_rep<T,U> > (h);
}
template<class T >
iterator<T> iterate ( hashset< T h)

Definition at line 87 of file iterator.cpp.

                       {
  return tm_new<hashset_iterator_rep<T> > (h);
}
template<class T >
tm_ostream& operator<< ( tm_ostream out,
iterator< T it 
)

Definition at line 34 of file iterator.cpp.

                                              {
  bool flag=false;
  out << "[ ";
  while (it->busy ()) {
    if (flag) out << ", ";
    else flag= true;
    out << it->next ();
  }
  return out << " ]";
}

Variable Documentation