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

guma::kdnnrec Class Template Reference

#include <guma_rkdtree.h>

Inheritance diagram for guma::kdnnrec::

gul::pool_object List of all members.

Public Methods

 kdnnrec ()
 kdnnrec (const V &dist, const kdrec< U, V > &rec)
kdnnrec< U, V > & operator= (kdnnrec< U, V > &other)
GULAPI void dump (int dim)

Public Attributes

m_dist
gul::List< gul::ListNode<
kdrec< U, V > > > 
m_recs

template<class U, class V>
class guma::kdnnrec< U, V >


Constructor & Destructor Documentation

template<class U, class V>
guma::kdnnrec< U, V >::kdnnrec   [inline]
 

Definition at line 160 of file guma_rkdtree.h.

00160 { }

template<class U, class V>
guma::kdnnrec< U, V >::kdnnrec const V &    dist,
const kdrec< U, V > &    rec
[inline]
 

Definition at line 162 of file guma_rkdtree.h.

References gul::List::Append(), and m_dist.

00163   {
00164     m_dist = dist;
00165     m_recs.Append( new gul::ListNode< kdrec<U,V> >(rec) );
00166   }


Member Function Documentation

template<class U, class V>
GULAPI void guma::kdnnrec< U, V >::dump int    dim
 

Definition at line 106 of file guma_rkdtree.cpp.

References gul::List< gul::ListNode< kdrec< U, V > > >::First(), GULAPI, m_dist, and m_recs.

00107 {
00108   ListNode< kdrec<U,V> > *r;
00109   int i;
00110   
00111   cout << "dist = " << m_dist << ", { ";
00112   for( r = m_recs.First(); r; r = r->next )
00113   {
00114     cout << (void *)r->el.m_base << ":(" << r->el[0];
00115     for( i = 1; i < dim; i++ )
00116       cout << ", " << r->el[i];
00117     cout << ") ";
00118   }
00119   cout << "}\n";
00120 }

template<class U, class V>
kdnnrec<U,V>& guma::kdnnrec< U, V >::operator= kdnnrec< U, V > &    other [inline]
 

Definition at line 167 of file guma_rkdtree.h.

References GULAPI, and m_dist.

00168   {
00169     if( this == &other ) return *this;
00170 
00171     m_dist = other.m_dist;
00172     m_recs = other.m_recs;
00173     return *this;
00174   }


Member Data Documentation

template<class U, class V>
V guma::kdnnrec::m_dist
 

Definition at line 157 of file guma_rkdtree.h.

Referenced by dump(), kdnnrec(), and operator=().

template<class U, class V>
gul::List< gul::ListNode< kdrec<U,V> > > guma::kdnnrec::m_recs
 

Definition at line 158 of file guma_rkdtree.h.

Referenced by dump().


The documentation for this class was generated from the following files:
Generated on Mon Jan 21 04:18:02 2002 for GUL 0.6 - Geometry Utility Library by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001