primitives.hpp 825 B

123456789101112131415161718192021222324252627
  1. #pragma once
  2. #include <nall/atoi.hpp>
  3. #include <nall/serializer.hpp>
  4. #include <nall/traits.hpp>
  5. namespace nall {
  6. struct Boolean;
  7. template<uint Precision = 64> struct Natural;
  8. template<uint Precision = 64> struct Integer;
  9. template<uint Precision = 64> struct Real;
  10. }
  11. #include <nall/primitives/bit-field.hpp>
  12. #include <nall/primitives/bit-range.hpp>
  13. #include <nall/primitives/boolean.hpp>
  14. #include <nall/primitives/natural.hpp>
  15. #include <nall/primitives/integer.hpp>
  16. #include <nall/primitives/real.hpp>
  17. #include <nall/primitives/types.hpp>
  18. #include <nall/primitives/literals.hpp>
  19. namespace nall {
  20. template<uint Bits> auto Natural<Bits>::integer() const -> Integer<Bits> { return Integer<Bits>(*this); }
  21. template<uint Bits> auto Integer<Bits>::natural() const -> Natural<Bits> { return Natural<Bits>(*this); }
  22. }