Ariles
Typedefs
ariles2::traits Namespace Reference

Typedefs

template<class t_Subtree >
using is_subtree = std::disjunction< std::is_same< std::string, std::decay_t< t_Subtree > >, std::is_same< char *, std::decay_t< t_Subtree > >, std::is_same< const char *, std::decay_t< t_Subtree > >, std::is_same< std::string_view, std::decay_t< t_Subtree > >, std::is_same< std::vector< std::string >, std::decay_t< t_Subtree > >>
 
template<class t_Subtree >
using is_subtree_t = std::enable_if_t< is_subtree< t_Subtree >::value >
 
template<class t_Subtree >
using is_not_subtree_t = std::enable_if_t< not is_subtree< t_Subtree >::value >
 
template<class t_Visitor >
using is_visitor_t = std::enable_if_t< std::is_base_of_v< ariles2::visitor::Visitor, t_Visitor > >
 
template<class t_Visitor >
using is_not_visitor_t = std::enable_if_t< not std::is_base_of_v< ariles2::visitor::Visitor, t_Visitor > >
 
template<class t_Ariles >
using is_ariles_t = std::enable_if_t< std::is_base_of_v< ariles2::Ariles, t_Ariles > >
 
template<class t_Ariles >
using is_not_ariles_t = std::enable_if_t< not std::is_base_of_v< ariles2::Ariles, t_Ariles > >
 

Typedef Documentation

◆ is_ariles_t

template<class t_Ariles >
using ariles2::traits::is_ariles_t = typedef std::enable_if_t<std::is_base_of_v<ariles2::Ariles, t_Ariles> >

Definition at line 141 of file common.h.

◆ is_not_ariles_t

template<class t_Ariles >
using ariles2::traits::is_not_ariles_t = typedef std::enable_if_t<not std::is_base_of_v<ariles2::Ariles, t_Ariles> >

Definition at line 144 of file common.h.

◆ is_not_subtree_t

template<class t_Subtree >
using ariles2::traits::is_not_subtree_t = typedef std::enable_if_t<not is_subtree<t_Subtree>::value>

Definition at line 131 of file common.h.

◆ is_not_visitor_t

template<class t_Visitor >
using ariles2::traits::is_not_visitor_t = typedef std::enable_if_t<not std::is_base_of_v<ariles2::visitor::Visitor, t_Visitor> >

Definition at line 138 of file common.h.

◆ is_subtree

template<class t_Subtree >
using ariles2::traits::is_subtree = typedef std::disjunction< std::is_same<std::string, std::decay_t<t_Subtree> >, std::is_same<char *, std::decay_t<t_Subtree> >, std::is_same<const char *, std::decay_t<t_Subtree> >, std::is_same<std::string_view, std::decay_t<t_Subtree> >, std::is_same<std::vector<std::string>, std::decay_t<t_Subtree> >>

Definition at line 120 of file common.h.

◆ is_subtree_t

template<class t_Subtree >
using ariles2::traits::is_subtree_t = typedef std::enable_if_t<is_subtree<t_Subtree>::value>

Definition at line 128 of file common.h.

◆ is_visitor_t

template<class t_Visitor >
using ariles2::traits::is_visitor_t = typedef std::enable_if_t<std::is_base_of_v<ariles2::visitor::Visitor, t_Visitor> >

Definition at line 135 of file common.h.