ctrl-utils
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
ctrl_utils::Tree< Key, T >::DescendantView< Const > Class Template Reference

Public Types

using TreeT = std::conditional_t< Const, const Tree< Key, T >, Tree< Key, T > >
 
using iterator = Tree< Key, T >::Iterator< Const >
 

Public Member Functions

 DescendantView (TreeT *tree, const Key &id, SearchType search_type, size_t max_depth)
 
 DescendantView (TreeT *tree, SearchType search_type, size_t max_depth)
 
iterator begin () const
 
iterator end () const
 

Protected Member Functions

void AddDescendantsDfs (const Key &id, size_t max_depth)
 
void AddDescendantsDfsDepth (const Key &id, size_t max_depth, size_t depth)
 
void AddDescendantsBfs (const Key &id, size_t max_depth)
 

Protected Attributes

TreeT * tree_
 
std::vector< Key > ids_
 

The documentation for this class was generated from the following file: