#include <utils.h>
Inheritance diagram for CB2::RevIterator< Tcontainer, Tref, Tmemb >:

Public Types | |
| typedef RevIterator< Tcontainer, Tref, Tmemb >  | this_type | 
| Template type alias.   | |
Public Member Functions | |
| RevIterator (const Tcontainer &cont, const Tref &reference) | |
| Constructor.   | |
| const this_type & | operator-- () | 
| Unadvance reverse iterator reference.   | |
| bool | operator== (const this_type &it) const | 
| Compare reverse iterators.   | |
| bool | operator!= (const this_type &it) const | 
| const Tmemb & | operator * () const | 
| Dereference iterators.   | |
| const Tmemb * | operator-> () const | 
Public Attributes | |
| int | tag | 
| Tag for user-specific data.   | |
Private Attributes | |
| const Tcontainer & | container | 
| Container reference.   | |
| Tref | ref | 
| Current item reference.   | |
This template implements a generic reverse iterator for data items from Tcontainer. The reverse iterator refers to the items by Tref and returns the values as Tmemb.
Tcontainer must implement these methods:
      
  | 
  |||||
| 
 Template type alias. 
  | 
  
      
  | 
  ||||||||||||||||
| 
 Constructor. Create a reverse iterator refering to the given item. 
 
  | 
  
      
  | 
  |||||||||
| 
 Dereference iterators. Get the item referenced by the iterator using container's Deref() method. 
 
  | 
  
      
  | 
  ||||||||||
| 
 
  | 
  
      
  | 
  |||||||||
| 
 Unadvance reverse iterator reference. Use container's RefNext() to get the reference to the succeding item. 
 
  | 
  
      
  | 
  |||||||||
| 
 
  | 
  
      
  | 
  ||||||||||
| 
 Compare reverse iterators. Compare reverse iterators by comparing the references. 
 
 
  | 
  
      
  | 
  |||||
| 
 Container reference. 
  | 
  
      
  | 
  |||||
| 
 Current item reference. 
  | 
  
      
  | 
  
| 
 Tag for user-specific data. 
  | 
  
 1.3.7