Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members

atlas::ctr_iterator Namespace Reference


Classes

class  atlas::ctr_iterator::CounterIterator< U >

Functions

template<typename U>
CounterIterator< U > operator+ (typename CounterIterator< U >::difference_type n, CounterIterator< U > i)


Detailed Description

The purpose of this type is to be able to apply STL algorithms like |std::find|, in situations where the values compared are really integers but not actually all stored in memory. This is achieved by having the iterators themselves containing the values, so that |operator*| just delivers the value stored. To be of any interest, the comparison function should have some special context dependent meaning, probably involving table lookup. It is a major inconvenience that, since we are comparing integers, the values compared against must be accessible in this way, in other words stored in the same table that we are (implicitly) searching. For this reason these iterators are currently unsused by atlas, and might well remain so forever.

It is assumed that U is a (typically unsigned) integral type.


Function Documentation

template<typename U>
CounterIterator<U> operator+ typename CounterIterator< U >::difference_type  n,
CounterIterator< U >  i
[inline]
 

Definition at line 131 of file ctr_iterator.h.


Generated on Wed Mar 26 16:52:25 2008 for atlas by  doxygen 1.3.9.1