前のページ次のページ上に戻るホーム SophiaFramework 2.2

3.3. 整数型

次の整数型が定義されています。

// 汎用の符号付き整数
typedef         signed int          SIntN;
typedef         SIntN&              SIntNRef;
typedef         SIntN*              SIntNPtr;
typedef         SIntN**             SIntNHandle;
typedef         const SIntN&        ConstSIntNRef;
typedef         const SIntN*        ConstSIntNPtr;
typedef         const SIntN**       ConstSIntNHandle;

// 汎用の符号なし整数
typedef         unsigned int        UIntN;
typedef         UIntN&              UIntNRef;
typedef         UIntN*              UIntNPtr;
typedef         UIntN**             UIntNHandle;
typedef         const UIntN&        ConstUIntNRef;
typedef         const UIntN*        ConstUIntNPtr;
typedef         const UIntN**       ConstUIntNHandle;

// 8 ビット符号付き整数
typedef         signed char         SInt08;
typedef         SInt08&             SInt08Ref;
typedef         SInt08*             SInt08Ptr;
typedef         SInt08**            SInt08Handle;
typedef         const SInt08&       ConstSInt08Ref;
typedef         const SInt08*       ConstSInt08Ptr;
typedef         const SInt08**      ConstSInt08Handle;

// 8 ビット符号なし整数
typedef         unsigned char       UInt08;
typedef         UInt08&             UInt08Ref;
typedef         UInt08*             UInt08Ptr;
typedef         UInt08**            UInt08Handle;
typedef         const UInt08&       ConstUInt08Ref;
typedef         const UInt08*       ConstUInt08Ptr;
typedef         const UInt08**      ConstUInt08Handle;

// 16 ビット符号付き整数
typedef         signed short        SInt16;
typedef         SInt16&             SInt16Ref;
typedef         SInt16*             SInt16Ptr;
typedef         SInt16**            SInt16Handle;
typedef         const SInt16&       ConstSInt16Ref;
typedef         const SInt16*       ConstSInt16Ptr;
typedef         const SInt16**      ConstSInt16Handle;

// 16 ビット符号なし整数
typedef         unsigned short      UInt16;
typedef         UInt16&             UInt16Ref;
typedef         UInt16*             UInt16Ptr;
typedef         UInt16**            UInt16Handle;
typedef         const UInt16&       ConstUInt16Ref;
typedef         const UInt16*       ConstUInt16Ptr;
typedef         const UInt16**      ConstUInt16Handle;

// 32 ビット符号付き整数
typedef         signed long         SInt32;
typedef         SInt32&             SInt32Ref;
typedef         SInt32*             SInt32Ptr;
typedef         SInt32**            SInt32Handle;
typedef         const SInt32&       ConstSInt32Ref;
typedef         const SInt32*       ConstSInt32Ptr;
typedef         const SInt32**      ConstSInt32Handle;

// 32 ビット符号なし整数
typedef         unsigned long       UInt32;
typedef         UInt32&             UInt32Ref;
typedef         UInt32*             UInt32Ptr;
typedef         UInt32**            UInt32Handle;
typedef         const UInt32&       ConstUInt32Ref;
typedef         const UInt32*       ConstUInt32Ptr;
typedef         const UInt32**      ConstUInt32Handle;