SMACC2
Loading...
Searching...
No Matches
smacc2::introspection::HasEventLabel< T > Class Template Reference

#include <introspection.hpp>

Collaboration diagram for smacc2::introspection::HasEventLabel< T >:
Collaboration graph

Public Types

enum  { value = sizeof(test<T>(0)) == sizeof(YesType) }
 

Private Types

typedef char YesType[1]
 
typedef char NoType[2]
 

Static Private Member Functions

template<typename C >
static YesTypetest (decltype(&C::getEventLabel))
 
template<typename C >
static NoTypetest (...)
 

Detailed Description

template<typename T>
class smacc2::introspection::HasEventLabel< T >

Definition at line 123 of file introspection.hpp.

Member Typedef Documentation

◆ NoType

template<typename T >
char smacc2::introspection::HasEventLabel< T >::NoType[2]
private

Definition at line 127 of file introspection.hpp.

◆ YesType

template<typename T >
char smacc2::introspection::HasEventLabel< T >::YesType[1]
private

Definition at line 126 of file introspection.hpp.

Member Enumeration Documentation

◆ anonymous enum

template<typename T >
anonymous enum
Enumerator
value 

Definition at line 135 of file introspection.hpp.

136 {
137 value = sizeof(test<T>(0)) == sizeof(YesType)
138 };
static YesType & test(decltype(&C::getEventLabel))

Member Function Documentation

◆ test() [1/2]

template<typename T >
template<typename C >
static NoType & smacc2::introspection::HasEventLabel< T >::test ( ...)
staticprivate

◆ test() [2/2]

template<typename T >
template<typename C >
static YesType & smacc2::introspection::HasEventLabel< T >::test ( decltype &::getEventLabel )
staticprivate

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