#include <hash.h>
static_container::hash< Key, Value, Cont, KeyEqual >に対する継承グラフ


Public 型 | |
| typedef std::pair< Key, Value > | pair_type |
| typedef Cont::iterator | iterator |
| typedef Cont::const_iterator | const_iterator |
| typedef boost::call_traits< KeyEqual >::param_type | key_equal |
Public メソッド | |
| STATIC_CONTAINER_MEMBERTYPEDEF (pair_type) | |
| hash (key_equal equal=KeyEqual()) | |
| hash (const Cont &cont, key_equal equal=KeyEqual()) | |
| iterator | begin () |
| iterator | end () |
| const_iterator | begin () const |
| const_iterator | end () const |
| const_iterator | find (typename boost::call_traits< Key >::param_type key) const |
| iterator | find (typename boost::call_traits< Key >::param_type key) |
| bool | empty () const |
| size_type | size () const |
| const Value & | search (typename boost::call_traits< Key >::param_type key) const |
| Value & | search (typename boost::call_traits< Key >::param_type key) |
| Value & | operator[] (typename boost::call_traits< Key >::param_type key) |
| 単なる検索目的でむやみに使うと、挿入が何度も行われるので、使用には十分ご注意を。 | |
| std::pair< iterator, bool > | insert (const_reference v) |
| void | erase (iterator it) |
| void | clear () |
| Cont & | get_container () |
| コンテナ取得 | |
| const Cont & | get_container () const |
| コンテナ取得 | |
Private メソッド | |
| iterator | push_back (const_reference v) |
Private 変数 | |
| Cont | cont_ |
| KeyEqual | equal_ |
挿入、削除なども可能。
挿入は、コンテナの push_back() を使い実装されている。 削除は、コンテナの erase() を使い実装されている。 クリアは、コンテナの clear() を使い実装されている。
|
|||||
|
static_container::list_hash< Key, Value, MaxSize, KeyEqual >で再定義されています。 |
|
|||||
|
static_container::list_hash< Key, Value, MaxSize, KeyEqual >で再定義されています。 |
|
|||||
|
参照元 static_container::hash< Key, Value, Cont, KeyEqual >::key_comp::key_comp(). |
|
|||||
|
|
|
||||||||||
|
|
|
||||||||||||||||
|
|
|
|||||||||
|
00061 {
00062 return cont_.begin();
00063 }
|
|
|||||||||
|
|||||||||
|
00127 {
00128 cont_.clear();
00129 }
|
|
|||||||||
|
|
|
|||||||||
|
00065 {
00066 return cont_.end();
00067 }
|
|
|||||||||
|
||||||||||
|
00124 {
00125 cont_.erase( it );
00126 }
|
|
||||||||||
|
|
|
||||||||||
|
|||||||||
|
コンテナ取得
00137 {
00138 return cont_;
00139 }
|
|
|||||||||
|
コンテナ取得
00132 {
00133 return cont_;
00134 }
|
|
||||||||||
|
|
|
||||||||||
|
単なる検索目的でむやみに使うと、挿入が何度も行われるので、使用には十分ご注意を。
|
|
||||||||||
|
||||||||||
|
00089 {
00090 return find( key )->second;
00091 }
|
|
||||||||||
|
00085 {
00086 return find( key )->second;
00087 }
|
|
|||||||||
|
|
|
||||||||||
|
|
|
|||||
|
|
|
|||||
|
|
1.3.6