SMACC
Loading...
Searching...
No Matches
Public Types | Private Types | Static Private Member Functions | List of all members
smacc::introspection::HasEventLabel< T > Class Template Reference

#include <introspection.h>

Collaboration diagram for smacc::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 smacc::introspection::HasEventLabel< T >

Definition at line 103 of file introspection.h.

Member Typedef Documentation

◆ NoType

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

Definition at line 107 of file introspection.h.

◆ YesType

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

Definition at line 106 of file introspection.h.

Member Enumeration Documentation

◆ anonymous enum

template<typename T >
anonymous enum
Enumerator
value 

Definition at line 115 of file introspection.h.

116 {
117 value = sizeof(test<T>(0)) == sizeof(YesType)
118 };

Member Function Documentation

◆ test() [1/2]

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

◆ test() [2/2]

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

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