メインページ   名前空間リスト   クラス階層   データ構造リスト   ファイルリスト   名前空間メンバ   データ構造メンバ   ファイルメンバ  

クラス MiX::NodeList::Iterator の解説

NodeList用の型指定イテレータ. より詳しく...

#include <NodeList.h>

すべてのメンバリスト

公開メンバ

 Iterator ()
 コンストラクタ. より詳しく...

reference operator * ()
 参照外し. より詳しく...

pointer operator-> ()
 メンバにアクセスします. より詳しく...

this_type operator++ ()
 イテレータを一つ進めます(前置インクリメント). より詳しく...

this_type operator-- ()
 イテレータを一つ戻します(前置デクリメント). より詳しく...

this_type operator++ (int dmy)
 イテレータを一つ進めます(後置インクリメント). より詳しく...

this_type operator-- (int dmy)
 ポインタを一つ戻します(後置デクリメント). より詳しく...

bool operator== (this_type &r) const
bool operator!= (this_type &r) const

フレンド

class NodeList< Char, Traits, XMLTraits >


解説

template<class Char, class Traits, class XMLTraits>
template<class NodeT>
class MiX::NodeList< Char, Traits, XMLTraits >::Iterator< NodeT >

NodeList用の型指定イテレータ.

イテレータに型引数を与えることでキャストなしでノードにアクセスできます NodeList<...>Iterator<Element<...> > はNodeList内のElement要素にだけアクセスするイテレータで、 (*it)はNode<...>*ではなく、Element<...>&を指します これによってダウンキャストの必要がなくなります


コンストラクタとデストラクタの解説

template<class Char, class Traits, class XMLTraits>
template<class NodeT>
MiX::NodeList< Char, Traits, XMLTraits >::Iterator< NodeT >::Iterator   [inline]
 

コンストラクタ.

無効なIteratorを生成します


メンバ関数の解説

template<class Char, class Traits, class XMLTraits>
template<class NodeT>
reference MiX::NodeList< Char, Traits, XMLTraits >::Iterator< NodeT >::operator *   [inline]
 

参照外し.

template<class Char, class Traits, class XMLTraits>
template<class NodeT>
bool MiX::NodeList< Char, Traits, XMLTraits >::Iterator< NodeT >::operator!= this_type &    r const [inline]
 

template<class Char, class Traits, class XMLTraits>
template<class NodeT>
this_type MiX::NodeList< Char, Traits, XMLTraits >::Iterator< NodeT >::operator++ int    dmy [inline]
 

イテレータを一つ進めます(後置インクリメント).

後置インクリメントは前置インクリメントによって実装されています ので、戻り値を利用しない場合は前置を利用したほうが効率的です

template<class Char, class Traits, class XMLTraits>
template<class NodeT>
this_type MiX::NodeList< Char, Traits, XMLTraits >::Iterator< NodeT >::operator++   [inline]
 

イテレータを一つ進めます(前置インクリメント).

template<class Char, class Traits, class XMLTraits>
template<class NodeT>
this_type MiX::NodeList< Char, Traits, XMLTraits >::Iterator< NodeT >::operator-- int    dmy [inline]
 

ポインタを一つ戻します(後置デクリメント).

後置デクリメントは前置デクリメントによって実装されています ので、戻り値を利用しない場合は前置を利用したほうが効率的です

template<class Char, class Traits, class XMLTraits>
template<class NodeT>
this_type MiX::NodeList< Char, Traits, XMLTraits >::Iterator< NodeT >::operator--   [inline]
 

イテレータを一つ戻します(前置デクリメント).

template<class Char, class Traits, class XMLTraits>
template<class NodeT>
pointer MiX::NodeList< Char, Traits, XMLTraits >::Iterator< NodeT >::operator->   [inline]
 

メンバにアクセスします.

template<class Char, class Traits, class XMLTraits>
template<class NodeT>
bool MiX::NodeList< Char, Traits, XMLTraits >::Iterator< NodeT >::operator== this_type &    r const [inline]
 


フレンドと関連する関数の解説

template<class Char, class Traits, class XMLTraits>
template<class NodeT>
friend class NodeList< Char, Traits, XMLTraits > [friend]
 


このクラスの解説は次のファイルから生成されました:
MiXに対してFri Jun 28 05:14:01 2002に生成されました。 doxygen1.2.11.1 の開発者: Dimitri van Heesch, © 1997-2001