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 38 of file convenience.hpp.

Member Typedef Documentation

◆ t_is

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

Definition at line 41 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 81 of file convenience.hpp.

82{
83 return typeid(T).name();
84}

◆ isnot()

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

Evaluates if the class isnot

Returns

Definition at line 70 of file convenience.hpp.

71{
72 return t_is("ISNOT");
73}
std::string t_is

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