Changeset 32 in flair-dev for trunk/include/FlairCore
- Timestamp:
- Jul 29, 2016, 3:32:59 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/FlairCore/io_data.h
r13 r32 58 58 extern SignedIntegerType Int16Type; 59 59 60 class UnsignedIntegerType : public ScalarType { 61 public: 62 UnsignedIntegerType(size_t sizeInBits) : ScalarType(sizeInBits / 8) {} 63 std::string GetDescription() const { 64 return "uint" + std::to_string(GetSize() * 8) + "_t"; 65 }; 66 }; 67 extern UnsignedIntegerType UInt8Type; 68 extern UnsignedIntegerType UInt16Type; 69 60 70 class FloatType : public ScalarType { 61 71 public: … … 64 74 }; 65 75 extern FloatType floatType; 76 77 class DoubleType : public ScalarType { 78 public: 79 DoubleType() : ScalarType(8) {} 80 std::string GetDescription() const { return "double"; }; 81 }; 82 extern DoubleType doubleType; 66 83 67 84 /*! \class io_data
Note:
See TracChangeset
for help on using the changeset viewer.