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

vnl_vector_dereference.h

Go to the documentation of this file.
00001 #ifndef vnl_vector_dereference_h_
00002 #define vnl_vector_dereference_h_
00003 // This is vxl/vnl/vnl_vector_dereference.h
00004 
00005 //: 
00006 //  \file
00007 //  \brief  Undocumented
00008 //  \author Andrew W. Fitzgibbon, Oxford RRG, 28 Nov 98
00009 //
00010 
00011 //    vnl_vector_dereference is a class that awf hasn't documented properly. FIXME
00012 //
00013 //-----------------------------------------------------------------------------
00014 
00015 
00016 #include <vcl_vector.h>
00017 
00018 template <class T>
00019 class vnl_vector_dereference : public vnl_unary_function<T, int> {
00020   vcl_vector<T> v_;
00021 public:
00022 
00023   vnl_vector_dereference(const vcl_vector<T>& v):
00024     v_(v) {
00025   }
00026 
00027   T f(const int& i) {
00028     return v_[i];
00029   }
00030 };
00031 
00032 #endif // vnl_vector_dereference_h_

Generated at Fri May 21 01:15:54 2004 for ITK by doxygen 1.2.15 written by Dimitri van Heesch, © 1997-2000