scenario_simulator_v2 C++ API
Namespaces | Macros | Functions
member_detector.hpp File Reference
#include <type_traits>
Include dependency graph for member_detector.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 concealer
 

Macros

#define DEFINE_MEMBER_DETECTOR(IDENTIFIER)
 
#define DEFINE_STATIC_MEMBER_DETECTOR(IDENTIFIER)
 

Functions

 concealer::DEFINE_MEMBER_DETECTOR (allow_goal_modification)
 
 concealer::DEFINE_MEMBER_DETECTOR (distance)
 
 concealer::DEFINE_MEMBER_DETECTOR (option)
 
 concealer::DEFINE_MEMBER_DETECTOR (status)
 
 concealer::DEFINE_MEMBER_DETECTOR (success)
 
 concealer::DEFINE_STATIC_MEMBER_DETECTOR (AVOIDANCE_BY_LC_LEFT)
 
 concealer::DEFINE_STATIC_MEMBER_DETECTOR (AVOIDANCE_BY_LC_RIGHT)
 
 concealer::DEFINE_STATIC_MEMBER_DETECTOR (AVOIDANCE_LEFT)
 
 concealer::DEFINE_STATIC_MEMBER_DETECTOR (AVOIDANCE_RIGHT)
 
 concealer::DEFINE_STATIC_MEMBER_DETECTOR (BLIND_SPOT)
 
 concealer::DEFINE_STATIC_MEMBER_DETECTOR (COMFORTABLE_STOP)
 
 concealer::DEFINE_STATIC_MEMBER_DETECTOR (CROSSWALK)
 
 concealer::DEFINE_STATIC_MEMBER_DETECTOR (DETECTION_AREA)
 
 concealer::DEFINE_STATIC_MEMBER_DETECTOR (EMERGENCY_STOP)
 
 concealer::DEFINE_STATIC_MEMBER_DETECTOR (EXT_REQUEST_LANE_CHANGE_LEFT)
 
 concealer::DEFINE_STATIC_MEMBER_DETECTOR (EXT_REQUEST_LANE_CHANGE_RIGHT)
 
 concealer::DEFINE_STATIC_MEMBER_DETECTOR (GOAL_PLANNER)
 
 concealer::DEFINE_STATIC_MEMBER_DETECTOR (INTERSECTION)
 
 concealer::DEFINE_STATIC_MEMBER_DETECTOR (INTERSECTION_OCCLUSION)
 
 concealer::DEFINE_STATIC_MEMBER_DETECTOR (LANE_CHANGE_LEFT)
 
 concealer::DEFINE_STATIC_MEMBER_DETECTOR (LANE_CHANGE_RIGHT)
 
 concealer::DEFINE_STATIC_MEMBER_DETECTOR (NONE)
 
 concealer::DEFINE_STATIC_MEMBER_DETECTOR (NO_DRIVABLE_LANE)
 
 concealer::DEFINE_STATIC_MEMBER_DETECTOR (NO_STOPPING_AREA)
 
 concealer::DEFINE_STATIC_MEMBER_DETECTOR (OCCLUSION_SPOT)
 
 concealer::DEFINE_STATIC_MEMBER_DETECTOR (PULL_OUT)
 
 concealer::DEFINE_STATIC_MEMBER_DETECTOR (PULL_OVER)
 
 concealer::DEFINE_STATIC_MEMBER_DETECTOR (START_PLANNER)
 
 concealer::DEFINE_STATIC_MEMBER_DETECTOR (TRAFFIC_LIGHT)
 
 concealer::DEFINE_STATIC_MEMBER_DETECTOR (UNKNOWN)
 

Macro Definition Documentation

◆ DEFINE_MEMBER_DETECTOR

#define DEFINE_MEMBER_DETECTOR (   IDENTIFIER)
Value:
template <typename T, typename = void> \
struct DetectMember_##IDENTIFIER : public std::false_type \
{ \
}; \
\
template <typename T> \
struct DetectMember_##IDENTIFIER<T, std::void_t<decltype(std::declval<T>().IDENTIFIER)>> \
: public std::true_type \
{ \
}

◆ DEFINE_STATIC_MEMBER_DETECTOR

#define DEFINE_STATIC_MEMBER_DETECTOR (   IDENTIFIER)
Value:
template <typename T, typename = void> \
struct DetectStaticMember_##IDENTIFIER : public std::false_type \
{ \
}; \
\
template <typename T> \
struct DetectStaticMember_##IDENTIFIER<T, std::void_t<decltype(T::IDENTIFIER)>> \
: public std::true_type \
{ \
}
void void_t
Definition: void_t.hpp:25