Classes | |
class | scribbler |
いんちき木落書きツール More... | |
class | tree |
STL コンテナ風の木クラス。. More... | |
struct | tree::link |
struct | tree::root_end |
struct | tree::value_holder |
class | tree::node |
実際にアロケーションをするクラス More... | |
class | tree::iterator_base |
class | tree::const_sibling_iterator |
class | tree::const_post_order_iterator |
class | tree::const_pre_order_iterator |
Functions | |
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) |
|
|
木をダンプする
Definition at line 66 of file dump.h. References gslib::sapling::tree< Value, Allocator >::end(), and 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 } |
Here is the call graph for this function:
|
Definition at line 118 of file scribble.h. References gslib::sapling::tree< Value, Allocator >::empty().
00118 { 00119 BOOST_ASSERT( true == t.empty() ); 00120 return scribbler< Value, Allocator >( t ); 00121 } |
Here is the call graph for this function: