2 #ifndef vbl_sparse_array_1d_h_ 3 #define vbl_sparse_array_1d_h_ 19 # include <vcl_msvc_warnings.h> 30 std::ostream&
print(std::ostream& out)
const 33 out <<
'(' << (*p).first <<
"): " << (*p).second << std::endl;
45 #ifndef VBL_SPARSE_ARRAY_BASE_INSTANTIATE 46 #define VBL_SPARSE_ARRAY_BASE_INSTANTIATE(T) \ 47 extern "please include vbl/vbl_sparse_array_base.hxx instead" 48 #endif // VBL_SPARSE_ARRAY_BASE_INSTANTIATE 49 #define VBL_SPARSE_ARRAY_1D_INSTANTIATE(T) \ 50 extern "please include vbl/vbl_sparse_array_1d.hxx instead" 52 #endif // vbl_sparse_array_1d_h_ Sparse array allowing space efficient access of the form s[3000] = 2;.
const_iterator end() const
A bidirectional iterator pointing just beyond last non-empty element.
const_iterator begin() const
A bidirectional iterator pointing at the first non-empty element.
base class for sparse arrays.
std::ostream & print(std::ostream &out) const
Print the Array to a stream in "(i,j): value" format.
std::ostream & operator<<(std::ostream &s, const vbl_sparse_array_1d< T > &a)
Stream operator - print the Array to a stream in "(i,j): value" format.
A fully featured sparse array which devolves indexing to its templated type.
vbl_sparse_array_base< T, unsigned >::const_iterator const_iterator