Drake
Drake C++ Documentation
ValueConverter< T, U > Struct Template Reference

Detailed Description

template<typename T, typename U>
struct drake::systems::scalar_conversion::ValueConverter< T, U >

Converts a scalar U u to its corresponding scalar T t.

When U == T, the scalar is unchanged. When demoting Expression to non-Expression, throws when there are unbound variables. In all other cases, information beyond the double value (e.g., possible derivatives) might be discarded.

#include <drake/systems/framework/scalar_conversion_traits.h>

Public Member Functions

operator() (const U &u) const
 

Member Function Documentation

◆ operator()()

T operator() ( const U &  u) const

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