Go to the documentation of this file.00001
00002 #ifndef vbl_sparse_array_2d_txx_
00003 #define vbl_sparse_array_2d_txx_
00004
00005
00006
00007 #include "vbl_sparse_array_2d.h"
00008 #include "vbl_sparse_array_base.txx"
00009
00010 #include <vcl_iostream.h>
00011
00012 #if 0 // capes@robots - moved print implementation to header file
00013
00014 template <class T>
00015 vcl_ostream& vbl_sparse_array_2d<T>::print(vcl_ostream& out) const
00016 {
00017 for (const_iterator p = storage_.begin(); p != storage_.end(); ++p)
00018 out << "(" << (*p).first.first
00019 << "," << (*p).first.second
00020 << "): " << (*p).second << '\n';
00021 return out;
00022 }
00023 #endif
00024
00025 #undef VBL_SPARSE_ARRAY_2D_INSTANTIATE
00026 #define VBL_SPARSE_ARRAY_2D_INSTANTIATE(T) \
00027 VBL_SPARSE_ARRAY_BASE_INSTANTIATE(T, vcl_pair<unsigned VCL_COMMA unsigned >); \
00028 template class vbl_sparse_array_2d<T >; \
00029 VCL_INSTANTIATE_INLINE(vcl_ostream& operator<< (vcl_ostream&, const vbl_sparse_array_2d<T > &))
00030
00031 #endif // vbl_sparse_array_2d_txx_