stepper_traits.hpp 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. /*
  2. [auto_generated]
  3. boost/numeric/odeint/util/stepper_traits.hpp
  4. [begin_description]
  5. tba.
  6. [end_description]
  7. Copyright 2013 Karsten Ahnert
  8. Copyright 2013 Mario Mulansky
  9. Distributed under the Boost Software License, Version 1.0.
  10. (See accompanying file LICENSE_1_0.txt or
  11. copy at http://www.boost.org/LICENSE_1_0.txt)
  12. */
  13. #ifndef BOOST_NUMERIC_ODEINT_UTIL_STEPPER_TRAITS_HPP_DEFINED
  14. #define BOOST_NUMERIC_ODEINT_UTIL_STEPPER_TRAITS_HPP_DEFINED
  15. #include <boost/numeric/odeint/util/unwrap_reference.hpp>
  16. namespace boost {
  17. namespace numeric {
  18. namespace odeint {
  19. namespace traits {
  20. template< class Stepper >
  21. struct state_type
  22. {
  23. typedef typename boost::numeric::odeint::unwrap_reference< Stepper >::type stepper_type;
  24. typedef typename stepper_type::state_type type;
  25. };
  26. template< class Stepper >
  27. struct time_type
  28. {
  29. typedef typename boost::numeric::odeint::unwrap_reference< Stepper >::type stepper_type;
  30. typedef typename stepper_type::time_type type;
  31. };
  32. template< class Stepper >
  33. struct stepper_category
  34. {
  35. typedef typename boost::numeric::odeint::unwrap_reference< Stepper >::type stepper_type;
  36. typedef typename stepper_type::stepper_category type;
  37. };
  38. template< class Stepper >
  39. struct value_type
  40. {
  41. typedef typename boost::numeric::odeint::unwrap_reference< Stepper >::type stepper_type;
  42. typedef typename stepper_type::value_type type;
  43. };
  44. } // namespace traits
  45. } // namespace odeint
  46. } // namespace numeric
  47. } // namespace boost
  48. #endif // BOOST_NUMERIC_ODEINT_UTIL_STEPPER_TRAITS_HPP_DEFINED