Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

vnl_scalar_join_iterator< T > Class Template Reference

#include <vnl_scalar_join_iterator.h>

List of all members.

Public Methods

 vnl_scalar_join_iterator (const vnl_matrix< T > &relation1, unsigned column1, const vnl_matrix< T > &relation2, unsigned column2)
 ~vnl_scalar_join_iterator ()
 operator bool ()
vnl_scalar_join_iterator<
T > & 
operator++ ()
bool done ()
void next ()
unsigned row1 ()
unsigned row2 ()

Protected Attributes

unsigned n1
unsigned n2
vcl_list< vnl_scalar_join_iterator_indexed_pair<
T > > * 
pI1
vcl_list< vnl_scalar_join_iterator_indexed_pair<
T > > * 
pI2
vcl_list< vnl_scalar_join_iterator_indexed_pair<
T > > & 
I1
vcl_list< vnl_scalar_join_iterator_indexed_pair<
T > > & 
I2
vcl_list< vnl_scalar_join_iterator_indexed_pair<
T > >::iterator 
index1
vcl_list< vnl_scalar_join_iterator_indexed_pair<
T > >::iterator 
index2


Detailed Description

template<class T>
class vnl_scalar_join_iterator< T >

Database join on matrix columns.

Definition at line 47 of file vnl_scalar_join_iterator.h.


Constructor & Destructor Documentation

template<class T>
vnl_scalar_join_iterator< T >::vnl_scalar_join_iterator const vnl_matrix< T > &    relation1,
unsigned    column1,
const vnl_matrix< T > &    relation2,
unsigned    column2
 

Initialize this iterator to the join of. relation1(:,column1) and relation2(:,column2). The algorithm sorts an array of pointers to each row and traversal of the iterator runs through these to produce the join. After construction the row1() and row2() methods indicate the first pair.

template<class T>
vnl_scalar_join_iterator< T >::~vnl_scalar_join_iterator  
 


Member Function Documentation

template<class T>
bool vnl_scalar_join_iterator< T >::done  
 

template<class T>
void vnl_scalar_join_iterator< T >::next  
 

template<class T>
vnl_scalar_join_iterator< T >::operator bool   [inline]
 

Return true if all pairs have been seen.

Definition at line 64 of file vnl_scalar_join_iterator.h.

template<class T>
vnl_scalar_join_iterator<T>& vnl_scalar_join_iterator< T >::operator++   [inline]
 

Advance to the next pair.\ This is prefix ++.

Definition at line 68 of file vnl_scalar_join_iterator.h.

References vnl_scalar_join_iterator< T >::I1, vnl_scalar_join_iterator< T >::I2, vnl_scalar_join_iterator< T >::index1, vnl_scalar_join_iterator< T >::n1, vnl_scalar_join_iterator< T >::n2, vnl_scalar_join_iterator< T >::pI1, and vnl_scalar_join_iterator< T >::pI2.

template<class T>
unsigned vnl_scalar_join_iterator< T >::row1  
 

Return the indices of the current rows in the first and second relations.

template<class T>
unsigned vnl_scalar_join_iterator< T >::row2  
 

Return the indices of the current rows in the first and second relations.


Member Data Documentation

template<class T>
vcl_list<vnl_scalar_join_iterator_indexed_pair<T> >& vnl_scalar_join_iterator< T >::I1 [protected]
 

Definition at line 92 of file vnl_scalar_join_iterator.h.

Referenced by vnl_scalar_join_iterator< T >::operator++().

template<class T>
vcl_list<vnl_scalar_join_iterator_indexed_pair<T> >& vnl_scalar_join_iterator< T >::I2 [protected]
 

Definition at line 93 of file vnl_scalar_join_iterator.h.

Referenced by vnl_scalar_join_iterator< T >::operator++().

template<class T>
vcl_list<vnl_scalar_join_iterator_indexed_pair<T> >::iterator vnl_scalar_join_iterator< T >::index1 [protected]
 

Definition at line 94 of file vnl_scalar_join_iterator.h.

Referenced by vnl_scalar_join_iterator< T >::operator++().

template<class T>
vcl_list<vnl_scalar_join_iterator_indexed_pair<T> >::iterator vnl_scalar_join_iterator< T >::index2 [protected]
 

Definition at line 95 of file vnl_scalar_join_iterator.h.

template<class T>
unsigned vnl_scalar_join_iterator< T >::n1 [protected]
 

Definition at line 88 of file vnl_scalar_join_iterator.h.

Referenced by vnl_scalar_join_iterator< T >::operator++().

template<class T>
unsigned vnl_scalar_join_iterator< T >::n2 [protected]
 

Definition at line 89 of file vnl_scalar_join_iterator.h.

Referenced by vnl_scalar_join_iterator< T >::operator++().

template<class T>
vcl_list<vnl_scalar_join_iterator_indexed_pair<T> >* vnl_scalar_join_iterator< T >::pI1 [protected]
 

Definition at line 90 of file vnl_scalar_join_iterator.h.

Referenced by vnl_scalar_join_iterator< T >::operator++().

template<class T>
vcl_list<vnl_scalar_join_iterator_indexed_pair<T> >* vnl_scalar_join_iterator< T >::pI2 [protected]
 

Definition at line 91 of file vnl_scalar_join_iterator.h.

Referenced by vnl_scalar_join_iterator< T >::operator++().


The documentation for this class was generated from the following file:
Generated at Fri May 21 01:17:24 2004 for ITK by doxygen 1.2.15 written by Dimitri van Heesch, © 1997-2000