scenario_simulator_v2 C++ API
Namespaces | Classes | Functions | Variables
openscenario_interpreter::utility Namespace Reference

Namespaces

 detail
 

Classes

class  ExecutionTimer
 
struct  AttributeHighlighter
 
struct  overloaded
 
struct  overloaded< T >
 
struct  overloaded< T, U, Ts... >
 

Functions

template<class Node , class NodeToChildren , class Hash = std::hash<Node>>
bool circular_check (const Node &init, NodeToChildren &&node_to_children)
 
auto demangle (const char *name) -> std::string
 
auto demangle (const std::type_info &) -> std::string
 
template<typename... Ts>
auto makeTypename (Ts &&... xs)
 
template<typename... Ts>
decltype(auto) operator<< (std::basic_ostream< Ts... > &os, const AttributeHighlighter &highlight)
 
template<typename T , typename = typename std::enable_if<HasStreamOutputOperator<T>::value>::type>
auto highlight (const std::string &name, const T &value)
 
template<typename... Ts>
constexpr auto overload (Ts &&... xs) -> typename utility::overloaded< typename std::decay< Ts >::type... >
 
template<typename T >
auto print_to (std::ostream &os, const T &value) -> std::enable_if_t< concepts::HasStreamOutputOperator< T >::value, std::ostream & >
 

Variables

auto print_keys_to
 

Function Documentation

◆ circular_check()

template<class Node , class NodeToChildren , class Hash = std::hash<Node>>
bool openscenario_interpreter::utility::circular_check ( const Node &  init,
NodeToChildren &&  node_to_children 
)

◆ demangle() [1/2]

auto openscenario_interpreter::utility::demangle ( const char *  name) -> std::string

◆ demangle() [2/2]

auto openscenario_interpreter::utility::demangle ( const std::type_info &  info) -> std::string

◆ highlight()

template<typename T , typename = typename std::enable_if<HasStreamOutputOperator<T>::value>::type>
auto openscenario_interpreter::utility::highlight ( const std::string &  name,
const T &  value 
)

◆ makeTypename()

template<typename... Ts>
auto openscenario_interpreter::utility::makeTypename ( Ts &&...  xs)

◆ operator<<()

template<typename... Ts>
decltype(auto) openscenario_interpreter::utility::operator<< ( std::basic_ostream< Ts... > &  os,
const AttributeHighlighter highlight 
)

◆ overload()

template<typename... Ts>
constexpr auto openscenario_interpreter::utility::overload ( Ts &&...  xs) -> typename utility::overloaded<typename std::decay<Ts>::type...>
constexpr

◆ print_to()

template<typename T >
auto openscenario_interpreter::utility::print_to ( std::ostream &  os,
const T &  value 
) -> std::enable_if_t<concepts::HasStreamOutputOperator<T>::value, std::ostream &>

Variable Documentation

◆ print_keys_to

auto openscenario_interpreter::utility::print_keys_to
inline
Initial value:
= [](auto & os, const auto & xs) -> decltype(auto) {
if (not xs.empty()) {
for (auto iter = std::begin(xs); iter != std::end(xs); ++iter) {
os << std::get<0>(*iter);
switch (std::distance(iter, std::end(xs))) {
case 1:
return os;
case 2:
os << " and ";
break;
default:
os << ", ";
break;
}
}
}
return os;
}
auto distance(const geometry_msgs::Pose &pose1, const geometry_msgs::Pose &pose2)
Definition: detection_sensor.cpp:36
Definition: junit5.hpp:25