Index   Main   Namespaces   Classes   Hierarchy   Annotated   Files   Compound   Global   Pages  

SgVectorPairIteratorOf< T > Class Template Reference

#include <SgVector.h>

Inheritance diagram for SgVectorPairIteratorOf< T >:

Inheritance graph
[legend]
List of all members.

Detailed Description

template<class T>
class SgVectorPairIteratorOf< T >

Iterator for all possible pairs of ListOf<T> elements Each pair is returned exactly once, i.e.

with list = e1, e2,...en the returned pairs are (in order): (e1,e2), (e1,e3), ... (e1,en), (e2,e3),...(e(n-1),en)

Definition at line 808 of file SgVector.h.

Public Member Functions

 SgVectorPairIteratorOf (const SgVectorOf< T > &list)
 Create an iterator to iterate through all possible pairs of list elements.
bool NextPair (T *&elt1, T *&elt2)
 Find the next pair of data elements.
bool NextPair (void *&elt1, void *&elt2)
 Find the next pair of data elements.


Constructor & Destructor Documentation

template<class T>
SgVectorPairIteratorOf< T >::SgVectorPairIteratorOf ( const SgVectorOf< T > &  list  ) 

Create an iterator to iterate through all possible pairs of list elements.

Definition at line 815 of file SgVector.h.


Member Function Documentation

bool SgVectorPairIterator< void * >::NextPair ( void * &  elt1,
void * &  elt2 
) [inherited]

Find the next pair of data elements.

Return true and change elt1 and elt2 if not reached the end of the vector; return false and don't touch the parameters if at the end of the vector.

template<class T>
bool SgVectorPairIteratorOf< T >::NextPair ( T *&  elt1,
T *&  elt2 
)

Find the next pair of data elements.

Return true and change elt1 and elt2 if not reached the end of the list; return false and don't touch the parameters if at the end of the list.

Definition at line 825 of file SgVector.h.


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


17 Jun 2010 Doxygen 1.4.7