メインページ | ネームスペース一覧 | クラス階層 | 構成 | ファイル一覧 | ネームスペースメンバ | 構成メンバ | ファイルメンバ | 関連ページ

クラス テンプレートstatic_container::compare_methods< SubClass >

比較演算子定義 mixin [詳細]

#include <compare_methods.h>

static_container::compare_methods< SubClass >に対する継承グラフ

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

Public メソッド

bool operator== (const SubClass &other) const
bool operator< (const SubClass &other) const
template<typename OtherContainer> bool equal (const OtherContainer &cont) const
 任意コンテナとの比較


説明

template<typename SubClass>
class static_container::compare_methods< SubClass >

比較演算子定義 mixin

compare_methods.h11 行で定義されています。


関数

template<typename SubClass>
template<typename OtherContainer>
bool static_container::compare_methods< SubClass >::equal const OtherContainer &  cont  )  const [inline]
 

任意コンテナとの比較

compare_methods.h34 行で定義されています。

参照元 static_container::compare_methods< list< Value, MaxSize > >::operator==().

00034                                                        {
00035             if ( static_cast< const SubClass* >( this )->size() == cont.size() ) {
00036                 return std::equal(
00037                     static_cast< const SubClass* >( this )->begin(),
00038                     static_cast< const SubClass* >( this )->end(),
00039                     cont.begin() );
00040             } else {
00041                 return false;
00042             }
00043         }

template<typename SubClass>
bool static_container::compare_methods< SubClass >::operator< const SubClass &  other  )  const [inline]
 

compare_methods.h26 行で定義されています。

00026                                                         {
00027             return std::lexicographical_compare(
00028                 static_cast< const SubClass* >( this )->begin(), static_cast< const SubClass* >( this )->end(),
00029                 other.begin(), other.end() );
00030         }

template<typename SubClass>
bool static_container::compare_methods< SubClass >::operator== const SubClass &  other  )  const [inline]
 

compare_methods.h22 行で定義されています。

00022                                                          {
00023             return equal( other );
00024         }


このクラスの説明は次のファイルから生成されました:
static_containerに対してSat Jun 19 11:31:02 2004に生成されました。 doxygen 1.3.6