Public Types | Public Member Functions | List of all members
ML::experimental::fil::detail::traversal_container< layout, T > Struct Template Reference

#include <treelite_importer.hpp>

Collaboration diagram for ML::experimental::fil::detail::traversal_container< layout, T >:
Collaboration graph

Public Types

using backing_container_t = std::conditional_t< layout==tree_layout::depth_first, std::stack< T >, std::queue< T > >
 

Public Member Functions

void add (T const &val)
 
void add (T const &hot, T const &distant)
 
auto next ()
 
auto peek ()
 
auto empty ()
 
auto size ()
 

Detailed Description

template<tree_layout layout, typename T>
struct ML::experimental::fil::detail::traversal_container< layout, T >

A template for storing nodes in either a depth or breadth-first traversal

Member Typedef Documentation

◆ backing_container_t

template<tree_layout layout, typename T >
using ML::experimental::fil::detail::traversal_container< layout, T >::backing_container_t = std::conditional_t<layout == tree_layout::depth_first, std::stack<T>, std::queue<T> >

Member Function Documentation

◆ add() [1/2]

template<tree_layout layout, typename T >
void ML::experimental::fil::detail::traversal_container< layout, T >::add ( T const &  hot,
T const &  distant 
)
inline

◆ add() [2/2]

template<tree_layout layout, typename T >
void ML::experimental::fil::detail::traversal_container< layout, T >::add ( T const &  val)
inline

◆ empty()

template<tree_layout layout, typename T >
auto ML::experimental::fil::detail::traversal_container< layout, T >::empty ( )
inline

◆ next()

template<tree_layout layout, typename T >
auto ML::experimental::fil::detail::traversal_container< layout, T >::next ( )
inline

◆ peek()

template<tree_layout layout, typename T >
auto ML::experimental::fil::detail::traversal_container< layout, T >::peek ( )
inline

◆ size()

template<tree_layout layout, typename T >
auto ML::experimental::fil::detail::traversal_container< layout, T >::size ( )
inline

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