Iterator for all possible pairs of ListOf<T> elements Each pair is returned exactly once, i.e. More...
#include <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. |
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.
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.
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.