1855 |
1855 |
template<typename _Tp> _Tp& at(const int* idx);
|
1856 |
1856 |
template<typename _Tp> const _Tp& at(const int* idx) const;
|
1857 |
1857 |
|
1858 |
|
template<typename _Tp, int n> _Tp& at(const Vec<int, n>& idx);
|
1859 |
|
template<typename _Tp, int n> const _Tp& at(const Vec<int, n>& idx) const;
|
|
1858 |
//template<typename _Tp, int n> _Tp& at(const Vec<int, n>& idx);
|
|
1859 |
//template<typename _Tp, int n> const _Tp& at(const Vec<int, n>& idx) const;
|
1860 |
1860 |
|
1861 |
1861 |
//! special versions for 2D arrays (especially convenient for referencing image pixels)
|
1862 |
1862 |
template<typename _Tp> _Tp& at(Point pt);
|
... | ... | |
2711 |
2711 |
//! returns read-only reference to the specified element
|
2712 |
2712 |
const _Tp& operator ()(const int* idx) const;
|
2713 |
2713 |
|
2714 |
|
//! returns reference to the specified element
|
2715 |
|
template<int n> _Tp& operator ()(const Vec<int, n>& idx);
|
2716 |
|
//! returns read-only reference to the specified element
|
2717 |
|
template<int n> const _Tp& operator ()(const Vec<int, n>& idx) const;
|
|
2714 |
////! returns reference to the specified element
|
|
2715 |
//template<int n> _Tp& operator ()(const Vec<int, n>& idx);
|
|
2716 |
////! returns read-only reference to the specified element
|
|
2717 |
//template<int n> const _Tp& operator ()(const Vec<int, n>& idx) const;
|
2718 |
2718 |
|
2719 |
2719 |
//! returns reference to the specified element (1D case)
|
2720 |
2720 |
_Tp& operator ()(int idx0);
|