#include <hash.h>
gslib::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() を使い実装されている。
|
|||||
|
gslib::static_container::list_hash< Key, Value, MaxSize, KeyEqual >で再定義されています。 |
|
|||||
|
gslib::static_container::list_hash< Key, Value, MaxSize, KeyEqual >で再定義されています。 |
|
|||||
|
参照元 gslib::static_container::hash< Key, Value, Cont, KeyEqual >::key_comp::key_comp(). |
|
|||||
|
|
|
||||||||||
|
|
|
||||||||||||||||
|
|
|
|||||||||
|
00114 {
00115 return cont_.begin();
00116 }
|
|
|||||||||
|
|||||||||
|
00180 {
00181 cont_.clear();
00182 }
|
|
|||||||||
|
|
|
|||||||||
|
00118 {
00119 return cont_.end();
00120 }
|
|
|||||||||
|
||||||||||
|
00177 {
00178 cont_.erase( it );
00179 }
|
|
||||||||||
|
|
|
||||||||||
|
|||||||||
|
コンテナ取得
00190 {
00191 return cont_;
00192 }
|
|
|||||||||
|
コンテナ取得
00185 {
00186 return cont_;
00187 }
|
|
||||||||||
|
|
|
||||||||||
|
単なる検索目的でむやみに使うと、挿入が何度も行われるので、使用には十分ご注意を。
|
|
||||||||||
|
||||||||||
|
00142 {
00143 return find( key )->second;
00144 }
|
|
||||||||||
|
00138 {
00139 return find( key )->second;
00140 }
|
|
|||||||||
|
|
|
||||||||||
|
|
|
|||||
|
|
|
|||||
|
|
1.3.6