#include <lodge_list.h>
static_container::lodge_list< Value >に対する継承グラフ
Public 型 | |
typedef list_link | link |
typedef list_node< Value > | node |
typedef abstruct_list_node_pool< Value > | pool |
typedef boost::call_traits< Value >::param_type | param_type |
Public メソッド | |
lodge_list (pool &ioPool) | |
lodge_list (const lodge_list &other) | |
~lodge_list () | |
lodge_list & | operator= (const lodge_list &other) |
iterator | begin () |
iterator | end () |
const_iterator | begin () const |
const_iterator | end () const |
reference | push_back () |
Value * | allocate (iterator pos=end()) |
ノードは、pos の直前に連結される | |
void | insert (iterator pos, param_type v) |
prev = pos - 1 とすると、元々 prev, pos と接続されていたものが、prev, v, pos の順に接続される。 | |
template<typename It> void | insert (iterator pos, It first, It last) |
prev = pos - 1 とすると、元々 prev, pos と接続されていたものが、prev, v, pos の順に接続される。 | |
void | push_front (param_type v) |
先頭に追加 | |
void | push_back (param_type v) |
末尾に追加 | |
void | erase (iterator pos) |
pos で示される要素を削除 | |
void | erase (iterator first, iterator last) |
区間 [ first, last ) を削除 | |
void | clear () |
クリア(全要素削除) | |
void | pop_front () |
先頭を削除 | |
void | pop_back () |
末尾を削除 | |
void | remove (const Value &value) |
値 value を持つ要素を削除する | |
template<typename Pred> void | remove_if (Pred pred) |
pred( *it ) が true を返すときに it を削除する | |
size_type | size () const |
サイズ取得 | |
bool | empty () const |
空かどうか? | |
reference | front () |
先頭を取得 | |
param_type | front () const |
先頭を取得 | |
reference | back () |
末尾を取得 | |
param_type | back () const |
末尾を取得 | |
Private メソッド | |
void | init () |
Static Private メソッド | |
void | destruct (Value &v) |
Private 変数 | |
link | end_ |
pool * | pool_ |
lodge_list 利用中に list_node_pool を破棄してはならない。
http://www.alc.co.jp/ で、 lodge = 【自動-1】 泊まる、宿泊{しゅくはく}する、下宿{げしゅく}する とあったので、命名したが、もっと良い名前があれば、随時募集。
lodge_list.h の 27 行で定義されています。
|
lodge_list.h の 29 行で定義されています。 |
|
lodge_list.h の 30 行で定義されています。 |
|
lodge_list.h の 34 行で定義されています。 |
|
static_container::list< Value, MaxSize >, と static_container::list< std::pair< Key, Value >, MaxSize >で再定義されています。 lodge_list.h の 32 行で定義されています。 |
|
lodge_list.h の 177 行で定義されています。
|
|
lodge_list.h の 180 行で定義されています。
|
|
lodge_list.h の 184 行で定義されています。
00184 { 00185 clear(); 00186 } |
|
ノードは、pos の直前に連結される
lodge_list.h の 220 行で定義されています。 参照元 static_container::lodge_list< std::pair< Key, Value > >::insert().
|
|
末尾を取得
lodge_list.h の 340 行で定義されています。
00340 { 00341 return *( --end() ); 00342 } |
|
末尾を取得
lodge_list.h の 336 行で定義されています。
00336 { 00337 return *( --end() ); 00338 } |
|
lodge_list.h の 203 行で定義されています。
00203 { 00204 return const_iterator( end_.next ); 00205 } |
|
|
|
lodge_list.h の 36 行で定義されています。 参照元 static_container::lodge_list< std::pair< Key, Value > >::erase().
00036 { 00037 static_container::destruct< Value >( v ); 00038 } |
|
空かどうか?
lodge_list.h の 323 行で定義されています。
|
|
lodge_list.h の 206 行で定義されています。
00206 {
00207 return const_iterator( &end_ );
00208 }
|
|
|
区間 [ first, last ) を削除
lodge_list.h の 275 行で定義されています。
00275 { 00276 // 解放 00277 std::for_each( first, last, destruct ); 00278 // node を pool に返す 00279 pool_->deallocate( first.getNode(), last.getNode() ); 00280 } |
|
|
先頭を取得
lodge_list.h の 332 行で定義されています。
00332 { 00333 return *begin(); 00334 } |
|
先頭を取得
lodge_list.h の 328 行で定義されています。
00328 { 00329 return *begin(); 00330 } |
|
lodge_list.h の 171 行で定義されています。 参照元 static_container::lodge_list< std::pair< Key, Value > >::lodge_list().
|
|
prev = pos - 1 とすると、元々 prev, pos と接続されていたものが、prev, v, pos の順に接続される。
lodge_list.h の 247 行で定義されています。
00247 { 00248 for ( ; first != last; ++first ) { 00249 Value* val = allocate( pos ); 00250 // コンストラクタ呼び出し 00251 new( val ) Value( *first ); 00252 } 00253 } |
|
prev = pos - 1 とすると、元々 prev, pos と接続されていたものが、prev, v, pos の順に接続される。
lodge_list.h の 236 行で定義されています。 参照元 static_container::list< std::pair< Key, Value >, MaxSize >::list(), static_container::lodge_list< std::pair< Key, Value > >::lodge_list(), static_container::lodge_list< std::pair< Key, Value > >::operator=(), static_container::list< std::pair< Key, Value >, MaxSize >::operator=(), static_container::lodge_list< std::pair< Key, Value > >::push_back(), と static_container::lodge_list< std::pair< Key, Value > >::push_front().
00236 { 00237 Value* val = allocate( pos ); 00238 // コンストラクタ呼び出し 00239 new( val ) Value( v ); 00240 } |
|
lodge_list.h の 188 行で定義されています。
|
|
末尾を削除
lodge_list.h の 293 行で定義されています。
|
|
先頭を削除
lodge_list.h の 288 行で定義されています。
|
|
末尾に追加
lodge_list.h の 261 行で定義されています。
|
|
lodge_list.h の 210 行で定義されています。
|
|
先頭に追加
lodge_list.h の 256 行で定義されています。
|
|
値 value を持つ要素を削除する
lodge_list.h の 298 行で定義されています。
00298 { 00299 remove_if( std::bind2nd( std::equal_to< value_type >(), value ) ); 00300 } |
|
pred( *it ) が true を返すときに it を削除する
lodge_list.h の 307 行で定義されています。 参照元 static_container::lodge_list< std::pair< Key, Value > >::remove().
|
|
サイズ取得
lodge_list.h の 318 行で定義されています。
|
|
lodge_list.h の 168 行で定義されています。 |
|
lodge_list.h の 169 行で定義されています。 参照元 static_container::lodge_list< std::pair< Key, Value > >::operator=(). |