クラス shttl::array2d< T, Allocator >::_iterator_base

#include <array2d.h>

shttl::array2d< T, Allocator >::_iterator_baseに対する継承グラフ

Inheritance graph
[凡例]
すべてのメンバ一覧

Public メソッド

size_type col () const
bool operator!= (const _iterator_base &rhs) const
_iterator_baseoperator+= (const size_type c)
_iterator_baseoperator-= (const size_type c)
bool operator< (const _iterator_base &rhs) const
bool operator<= (const _iterator_base &rhs) const
bool operator== (const _iterator_base &rhs) const
bool operator> (const _iterator_base &rhs) const
bool operator>= (const _iterator_base &rhs) const
size_type row () const

Protected メソッド

 _iterator_base (const size_type r, const size_type c, const size_type col)

Protected 変数

size_type _c
const size_type _col
size_type _r

説明

template<class T, class Allocator = std::allocator<T>>
class shttl::array2d< T, Allocator >::_iterator_base

array2d.h71 行で定義されています。


コンストラクタとデストラクタ

template<class T, class Allocator = std::allocator<T>>
shttl::array2d< T, Allocator >::_iterator_base::_iterator_base ( const size_type  r,
const size_type  c,
const size_type  col 
) [inline, protected]

array2d.h81 行で定義されています。

参照元 shttl::array2d< T, Allocator >::const_iterator::operator+().

00085               :
00086                 _r(r), _c(c), _col(col)
00087             {
00088             }

Here is the caller graph for this function:


関数

template<class T, class Allocator = std::allocator<T>>
size_type shttl::array2d< T, Allocator >::_iterator_base::col (  )  const [inline]

array2d.h95 行で定義されています。

参照先 shttl::array2d< T, Allocator >::_iterator_base::_c.

00095 { return _c; }

template<class T, class Allocator = std::allocator<T>>
bool shttl::array2d< T, Allocator >::_iterator_base::operator!= ( const _iterator_base rhs  )  const [inline]

array2d.h101 行で定義されています。

00102             {   return !(*this == rhs);                 }

template<class T, class Allocator = std::allocator<T>>
_iterator_base& shttl::array2d< T, Allocator >::_iterator_base::operator+= ( const size_type  c  )  [inline]

shttl::array2d< T, Allocator >::iteratorで再定義されています。

array2d.h112 行で定義されています。

参照先 shttl::array2d< T, Allocator >::_iterator_base::_cshttl::array2d< T, Allocator >::_iterator_base::_colshttl::array2d< T, Allocator >::_iterator_base::_r.

参照元 shttl::array2d< T, Allocator >::iterator::operator+=().

00113             {
00114                 const size_type cc = _c + c;
00115                 if (cc < _col) {
00116                     _c = cc;
00117                 } else {
00118                     _c  = cc % _col;
00119                     _r += cc / _col;
00120                 }
00121                 return *this;
00122             }

Here is the caller graph for this function:

template<class T, class Allocator = std::allocator<T>>
_iterator_base& shttl::array2d< T, Allocator >::_iterator_base::operator-= ( const size_type  c  )  [inline]

shttl::array2d< T, Allocator >::iteratorで再定義されています。

array2d.h124 行で定義されています。

参照先 shttl::array2d< T, Allocator >::_iterator_base::_cshttl::array2d< T, Allocator >::_iterator_base::_colshttl::array2d< T, Allocator >::_iterator_base::_r.

参照元 shttl::array2d< T, Allocator >::iterator::operator-=().

00125             {
00126                 const size_type cc = _c - c;
00127                 if (cc > 0) {
00128                     _c = cc;
00129                 } else {
00130                     _c  = cc % _col;
00131                     _r += cc / _col;
00132                 }
00133                 return *this;
00134             }

Here is the caller graph for this function:

template<class T, class Allocator = std::allocator<T>>
bool shttl::array2d< T, Allocator >::_iterator_base::operator< ( const _iterator_base rhs  )  const [inline]

array2d.h103 行で定義されています。

参照先 shttl::array2d< T, Allocator >::_iterator_base::_cshttl::array2d< T, Allocator >::_iterator_base::_r.

00104             {   return std::make_pair(_r, _c) <  std::make_pair(rhs._r, rhs._c);    }

template<class T, class Allocator = std::allocator<T>>
bool shttl::array2d< T, Allocator >::_iterator_base::operator<= ( const _iterator_base rhs  )  const [inline]

array2d.h105 行で定義されています。

参照先 shttl::array2d< T, Allocator >::_iterator_base::_cshttl::array2d< T, Allocator >::_iterator_base::_r.

00106             {   return std::make_pair(_r, _c) <= std::make_pair(rhs._r, rhs._c);    }

template<class T, class Allocator = std::allocator<T>>
bool shttl::array2d< T, Allocator >::_iterator_base::operator== ( const _iterator_base rhs  )  const [inline]

array2d.h99 行で定義されています。

参照先 shttl::array2d< T, Allocator >::_iterator_base::_cshttl::array2d< T, Allocator >::_iterator_base::_r.

00100             {   return  _r == rhs._r && _c == rhs._c;   }

template<class T, class Allocator = std::allocator<T>>
bool shttl::array2d< T, Allocator >::_iterator_base::operator> ( const _iterator_base rhs  )  const [inline]

array2d.h107 行で定義されています。

参照先 shttl::array2d< T, Allocator >::_iterator_base::_cshttl::array2d< T, Allocator >::_iterator_base::_r.

00108             {   return std::make_pair(_r, _c) >  std::make_pair(rhs._r, rhs._c);    }

template<class T, class Allocator = std::allocator<T>>
bool shttl::array2d< T, Allocator >::_iterator_base::operator>= ( const _iterator_base rhs  )  const [inline]

array2d.h109 行で定義されています。

参照先 shttl::array2d< T, Allocator >::_iterator_base::_cshttl::array2d< T, Allocator >::_iterator_base::_r.

00110             {   return std::make_pair(_r, _c) >= std::make_pair(rhs._r, rhs._c);    }

template<class T, class Allocator = std::allocator<T>>
size_type shttl::array2d< T, Allocator >::_iterator_base::row (  )  const [inline]

array2d.h94 行で定義されています。

参照先 shttl::array2d< T, Allocator >::_iterator_base::_r.

00094 { return _r; }


変数

template<class T, class Allocator = std::allocator<T>>
size_type shttl::array2d< T, Allocator >::_iterator_base::_c [protected]

array2d.h76 行で定義されています。

参照元 shttl::array2d< T, Allocator >::_iterator_base::col()shttl::array2d< T, Allocator >::iterator::operator *()shttl::array2d< T, Allocator >::const_iterator::operator *()shttl::array2d< T, Allocator >::_iterator_base::operator+=()shttl::array2d< T, Allocator >::_iterator_base::operator-=()shttl::array2d< T, Allocator >::_iterator_base::operator<()shttl::array2d< T, Allocator >::_iterator_base::operator<=()shttl::array2d< T, Allocator >::_iterator_base::operator==()shttl::array2d< T, Allocator >::_iterator_base::operator>()shttl::array2d< T, Allocator >::_iterator_base::operator>=().

template<class T, class Allocator = std::allocator<T>>
const size_type shttl::array2d< T, Allocator >::_iterator_base::_col [protected]

array2d.h78 行で定義されています。

参照元 shttl::array2d< T, Allocator >::_iterator_base::operator+=()shttl::array2d< T, Allocator >::_iterator_base::operator-=().

template<class T, class Allocator = std::allocator<T>>
size_type shttl::array2d< T, Allocator >::_iterator_base::_r [protected]

array2d.h75 行で定義されています。

参照元 shttl::array2d< T, Allocator >::iterator::operator *()shttl::array2d< T, Allocator >::const_iterator::operator *()shttl::array2d< T, Allocator >::_iterator_base::operator+=()shttl::array2d< T, Allocator >::_iterator_base::operator-=()shttl::array2d< T, Allocator >::_iterator_base::operator<()shttl::array2d< T, Allocator >::_iterator_base::operator<=()shttl::array2d< T, Allocator >::_iterator_base::operator==()shttl::array2d< T, Allocator >::_iterator_base::operator>()shttl::array2d< T, Allocator >::_iterator_base::operator>=()shttl::array2d< T, Allocator >::_iterator_base::row().


このクラスの説明は次のファイルから生成されました:
Onikiri2に対してTue Jun 18 15:33:29 2013に生成されました。  doxygen 1.4.7