DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
tools::gentraits< T > Class Template Reference

#include <convenience.hpp>

Public Types

typedef std::string t_is

Static Public Member Functions

static t_is constexpr isnot ()
static t_is constexpr isa ()

Detailed Description

template<typename T>
class tools::gentraits< T >

Class gentraits provides information about varying classes

Definition at line 43 of file convenience.hpp.

Member Typedef Documentation

◆ t_is

template<typename T>
typedef std::string tools::gentraits< T >::t_is

Definition at line 46 of file convenience.hpp.

Member Function Documentation

◆ isa()

template<typename T>
gentraits< T >::t_is constexpr tools::gentraits< T >::isa ( )
staticconstexpr

Evaluates what the class is

Returns
returns the name of the class in compiler jargon

Definition at line 86 of file convenience.hpp.

87{
88 return typeid(T).name();
89}

◆ isnot()

template<typename T>
gentraits< T >::t_is constexpr tools::gentraits< T >::isnot ( )
staticconstexpr

Evaluates if the class isnot

Returns

Definition at line 75 of file convenience.hpp.

76{
77 return t_is("ISNOT");
78}
std::string t_is

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