構成 | |
| class | scribbler |
| いんちき木落書きツール [詳細] | |
| class | tree |
| STL コンテナ風の木クラス。. [詳細] | |
| struct | tree::link |
| struct | tree::root_end |
| struct | tree::value_holder |
| class | tree::node |
| 実際にアロケーションをするクラス [詳細] | |
| class | tree::iterator_base |
| class | tree::const_sibling_iterator |
| class | tree::const_post_order_iterator |
| class | tree::const_pre_order_iterator |
関数 | |
| template<typename Value, typename Allocator> void | dump (const tree< Value, Allocator > &t, std::ostream &ostr, const char *indent="\t") |
| 木をダンプする | |
| template<typename Value, typename Allocator> scribbler< Value, Allocator > | scribble (tree< Value, Allocator > &t) |
| |
|
||||||||||||||||||||
|
木をダンプする
参照先 gslib::sapling::tree< Value, Allocator >::end(), と tree_type.
00066 {
00067 typedef tree< Value, Allocator > tree_type;
00068 typedef typename tree_type::const_pre_order_iterator iterator;
00069 typedef typename tree_type::size_type size_type;
00070 for ( iterator it = t.begin_pre_order(); it != t.end(); ++it ) {
00071 for ( size_type i = 0; i < it.depth(); ++i ) {
00072 ostr << indent;
00073 }
00074 ostr << *it;
00075 ostr << std::endl;
00076 }
00077 }
|
関数の呼び出しグラフ:

|
||||||||||
|
scribble.h の 118 行で定義されています。 参照先 gslib::sapling::tree< Value, Allocator >::empty().
00118 {
00119 BOOST_ASSERT( true == t.empty() );
00120 return scribbler< Value, Allocator >( t );
00121 }
|
関数の呼び出しグラフ:

1.3.6