Back to index

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

Go to the source code of this file.

Classes

class  hashset_iterator_rep< T >
class  hashmap_iterator_rep< T, U >

Defines

#define ITERATOR_CC

Functions

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

Define Documentation

#define ITERATOR_CC

Definition at line 13 of file iterator.cpp.


Function Documentation

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 , 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 >
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 << " ]";
}