Horus Doc || C++ Reference || Class Overview   Pixels   Images   Detector   Geometry   Registry || Doxygen's quick Index  

HxIndxVector.h

00001 /*
00002  *  Copyright (c) 2000, University of Amsterdam, The Netherlands.
00003  *  All rights reserved.
00004  *
00005  *  Author(s):
00006  *  Jan-Mark Geusebroek (mark@wins.uva.nl)
00007  *
00008  */
00009 
00010 #ifndef HxIndxVector_H
00011 #define HxIndxVector_H
00012 
00013 #include "HxIndxArray.h"
00014 #include "HxVector.h"
00015 
00016 
00017 class indexedVector : public indexedArray<float, int>  {
00018 public:
00019     void        add(HxString& key, HxVector& v); 
00020     void        search(HxVector& target, int n = 10);
00021 
00022     int         nElems() const;
00023 
00024     friend STD_OSTREAM& operator<<(STD_OSTREAM& os,
00025         const indexedVector& l)
00026             {return l.put(os);}
00027 
00028     int         arraySize(const int& header) const
00029                     {return header;}
00030     
00031     virtual double      compare(float *e1, float *e2, const int& size) const;
00032 };
00033 
00034 
00035 #endif

Generated on Mon Jan 27 15:48:45 2003 for C++Reference by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001