core/vbl/vbl_sparse_array_1d.txx
Go to the documentation of this file.
00001 // This is core/vbl/vbl_sparse_array_1d.txx
00002 #ifndef vbl_sparse_array_1d_txx_
00003 #define vbl_sparse_array_1d_txx_
00004 //:
00005 // \file
00006 
00007 #include "vbl_sparse_array_1d.h"
00008 #include "vbl_sparse_array_base.txx"
00009 #include <vcl_iostream.h>
00010 
00011 #if 0 // capes@robots - moved print implementation to header file
00012 //: Print the Array to a stream in "(i): value" format.
00013 template <class T>
00014 vcl_ostream& vbl_sparse_array_1d<T>::print(vcl_ostream& out) const
00015 {
00016   for (const_iterator p = begin(); p != end(); ++p)
00017     out << "(" << (*p).first << "): " << (*p).second << '\n';
00018   return out;
00019 }
00020 #endif
00021 
00022 #undef VBL_SPARSE_ARRAY_1D_INSTANTIATE
00023 #define VBL_SPARSE_ARRAY_1D_INSTANTIATE(T) \
00024 VBL_SPARSE_ARRAY_BASE_INSTANTIATE(T, unsigned int); \
00025 template class vbl_sparse_array_1d<T >; \
00026 VCL_INSTANTIATE_INLINE(vcl_ostream& operator << (vcl_ostream&, const vbl_sparse_array_1d<T > &))
00027 
00028 #endif // vbl_sparse_array_1d_txx_