/Src/Dependencies/Boost/boost/spirit/home/classic/core/primitives/numerics_fwd.hpp

http://hadesmem.googlecode.com/ · C++ Header · 88 lines · 36 code · 15 blank · 37 comment · 0 complexity · 630811c8c9cfb388375f5850d0a7b60b MD5 · raw file

  1. /*=============================================================================
  2. Copyright (C) 2006 Tobias Schwinger
  3. http://spirit.sourceforge.net/
  4. Distributed under the Boost Software License, Version 1.0. (See accompanying
  5. file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  6. =============================================================================*/
  7. #if !defined(BOOST_SPIRIT_NUMERICS_FWD_HPP)
  8. # define BOOST_SPIRIT_NUMERICS_FWD_HPP
  9. #include <boost/spirit/home/classic/namespace.hpp>
  10. namespace boost { namespace spirit {
  11. BOOST_SPIRIT_CLASSIC_NAMESPACE_BEGIN
  12. ///////////////////////////////////////////////////////////////////////////
  13. //
  14. // uint_parser class
  15. //
  16. ///////////////////////////////////////////////////////////////////////////
  17. template <
  18. typename T = unsigned,
  19. int Radix = 10,
  20. unsigned MinDigits = 1,
  21. int MaxDigits = -1
  22. >
  23. struct uint_parser;
  24. ///////////////////////////////////////////////////////////////////////////
  25. //
  26. // int_parser class
  27. //
  28. ///////////////////////////////////////////////////////////////////////////
  29. template <
  30. typename T = unsigned,
  31. int Radix = 10,
  32. unsigned MinDigits = 1,
  33. int MaxDigits = -1
  34. >
  35. struct int_parser;
  36. ///////////////////////////////////////////////////////////////////////////
  37. //
  38. // sign_parser class
  39. //
  40. ///////////////////////////////////////////////////////////////////////////
  41. struct sign_parser;
  42. ///////////////////////////////////////////////////////////////////////////
  43. //
  44. // default real number policies
  45. //
  46. ///////////////////////////////////////////////////////////////////////////
  47. template <typename T>
  48. struct ureal_parser_policies;
  49. template <typename T>
  50. struct real_parser_policies;
  51. ///////////////////////////////////////////////////////////////////////////
  52. //
  53. // real_parser class
  54. //
  55. ///////////////////////////////////////////////////////////////////////////
  56. template <
  57. typename T = double,
  58. typename RealPoliciesT = ureal_parser_policies<T>
  59. >
  60. struct real_parser;
  61. ///////////////////////////////////////////////////////////////////////////
  62. //
  63. // strict reals (do not allow plain integers (no decimal point))
  64. //
  65. ///////////////////////////////////////////////////////////////////////////
  66. template <typename T>
  67. struct strict_ureal_parser_policies;
  68. template <typename T>
  69. struct strict_real_parser_policies;
  70. BOOST_SPIRIT_CLASSIC_NAMESPACE_END
  71. }} // namespace BOOST_SPIRIT_CLASSIC_NS
  72. #endif