Nana C++ Library. Reference for users.
What we need to use nana
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
nana::widgets::detail::tree_cont< UserData > Class Template Reference

Public Types

typedef UserData element_type
 
typedef tree_node< element_typenode_type
 
typedef node_type::value_type value_type
 

Public Member Functions

 tree_cont ()
 
 ~tree_cont ()
 
void clear (node_type *node)
 
bool verify (const node_type *node) const
 
node_typeget_root () const
 
node_typeget_owner (const node_type *node) const
 
node_typenode (node_type *node, const std::string &key)
 
node_typeinsert (node_type *node, const std::string &key, const element_type &elem)
 
node_typeinsert (const std::string &key, const element_type &elem)
 
void remove (node_type *node)
 
node_typefind (const std::string &path) const
 
node_typeref (const std::string &path)
 
unsigned indent_size (const node_type *node) const
 
template<typename Functor >
void for_each (node_type *node, Functor f)
 
template<typename Functor >
void for_each (node_type *node, Functor f) const
 
template<typename PredAllowChild >
unsigned child_size_if (const ::std::string &key, PredAllowChild pac) const
 
template<typename PredAllowChild >
unsigned child_size_if (const node_type &node, PredAllowChild pac) const
 
template<typename PredAllowChild >
std::size_t distance_if (const node_type *node, PredAllowChild pac) const
 
template<typename PredAllowChild >
node_typeadvance_if (node_type *node, std::size_t off, PredAllowChild pac)
 

Member Typedef Documentation

template<typename UserData>
typedef UserData nana::widgets::detail::tree_cont< UserData >::element_type
template<typename UserData>
typedef tree_node<element_type> nana::widgets::detail::tree_cont< UserData >::node_type
template<typename UserData>
typedef node_type::value_type nana::widgets::detail::tree_cont< UserData >::value_type

Constructor & Destructor Documentation

template<typename UserData>
nana::widgets::detail::tree_cont< UserData >::tree_cont ( )
inline
template<typename UserData>
nana::widgets::detail::tree_cont< UserData >::~tree_cont ( )
inline

Member Function Documentation

template<typename UserData>
template<typename PredAllowChild >
node_type* nana::widgets::detail::tree_cont< UserData >::advance_if ( node_type node,
std::size_t  off,
PredAllowChild  pac 
)
inline
template<typename UserData>
template<typename PredAllowChild >
unsigned nana::widgets::detail::tree_cont< UserData >::child_size_if ( const ::std::string key,
PredAllowChild  pac 
) const
inline
template<typename UserData>
template<typename PredAllowChild >
unsigned nana::widgets::detail::tree_cont< UserData >::child_size_if ( const node_type node,
PredAllowChild  pac 
) const
inline
template<typename UserData>
void nana::widgets::detail::tree_cont< UserData >::clear ( node_type node)
inline
template<typename UserData>
template<typename PredAllowChild >
std::size_t nana::widgets::detail::tree_cont< UserData >::distance_if ( const node_type node,
PredAllowChild  pac 
) const
inline
template<typename UserData>
node_type* nana::widgets::detail::tree_cont< UserData >::find ( const std::string path) const
inline
template<typename UserData>
template<typename Functor >
void nana::widgets::detail::tree_cont< UserData >::for_each ( node_type node,
Functor  f 
)
inline
template<typename UserData>
template<typename Functor >
void nana::widgets::detail::tree_cont< UserData >::for_each ( node_type node,
Functor  f 
) const
inline
template<typename UserData>
node_type* nana::widgets::detail::tree_cont< UserData >::get_owner ( const node_type node) const
inline
template<typename UserData>
node_type* nana::widgets::detail::tree_cont< UserData >::get_root ( ) const
inline
template<typename UserData>
unsigned nana::widgets::detail::tree_cont< UserData >::indent_size ( const node_type node) const
inline
template<typename UserData>
node_type* nana::widgets::detail::tree_cont< UserData >::insert ( node_type node,
const std::string key,
const element_type elem 
)
inline
template<typename UserData>
node_type* nana::widgets::detail::tree_cont< UserData >::insert ( const std::string key,
const element_type elem 
)
inline
template<typename UserData>
node_type* nana::widgets::detail::tree_cont< UserData >::node ( node_type node,
const std::string key 
)
inline
template<typename UserData>
node_type* nana::widgets::detail::tree_cont< UserData >::ref ( const std::string path)
inline
template<typename UserData>
void nana::widgets::detail::tree_cont< UserData >::remove ( node_type node)
inline
template<typename UserData>
bool nana::widgets::detail::tree_cont< UserData >::verify ( const node_type node) const
inline