Index   Main   Namespaces   Classes   Hierarchy   Annotated   Files   Compound   Global   Pages  
Public Member Functions

SgVectorPairIteratorOf< T > Class Template Reference

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

#include <SgVector.h>

Inheritance diagram for SgVectorPairIteratorOf< T >:
Inheritance graph
[legend]

List of all members.

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.

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 783 of file SgVector.h.


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 789 of file SgVector.h.


Member Function Documentation

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 798 of file SgVector.h.

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.


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


Sun Mar 13 2011 Doxygen 1.7.1