BITS Class Reference

#include <gfx_image_bits.h>

详细描述

This class represents the number of bits in a pixel format.

公共成员函数

MAXON_ATTRIBUTE_FORCE_INLINE   BITS ()=default
MAXON_ATTRIBUTE_FORCE_INLINE   BITS ( Int bits)
MAXON_ATTRIBUTE_FORCE_INLINE Int   Get () const
MAXON_ATTRIBUTE_FORCE_INLINE Int   GetBytes ( Int pixelCnt=1) const
MAXON_ATTRIBUTE_FORCE_INLINE Bool   operator== (const BITS &other) const
MAXON_ATTRIBUTE_FORCE_INLINE Bool   operator!= (const BITS &other) const
MAXON_ATTRIBUTE_FORCE_INLINE Bool   operator< (const BITS &other) const
MAXON_ATTRIBUTE_FORCE_INLINE Bool   operator<= (const BITS &other) const
MAXON_ATTRIBUTE_FORCE_INLINE Bool   operator> (const BITS &other) const
MAXON_ATTRIBUTE_FORCE_INLINE Bool   operator>= (const BITS &other) const
MAXON_ATTRIBUTE_FORCE_INLINE BITS   operator+ (const BITS &other) const
MAXON_ATTRIBUTE_FORCE_INLINE BITS   operator- (const BITS &other) const
MAXON_ATTRIBUTE_FORCE_INLINE BITS   operator* (const BITS &other) const
MAXON_ATTRIBUTE_FORCE_INLINE BITS   operator* ( Int other) const
MAXON_ATTRIBUTE_FORCE_INLINE BITS   operator/ (const BITS &other) const
String   ToString (const FormatStatement *formatStatement=nullptr) const
HashInt   GetHashCode () const

静态公共成员函数

static Result < void >  DescribeIO (const DataSerializeInterface &stream)

Private Attributes

Int   _bits

构造函数 & 析构函数文档编制

◆  BITS() [1/2]

MAXON_ATTRIBUTE_FORCE_INLINE BITS ( )
default

◆  BITS() [2/2]

MAXON_ATTRIBUTE_FORCE_INLINE BITS ( Int   bits )
explicit

Sets the bits of the object. BITS(8) means 8 bit.

成员函数文档编制

◆  Get()

MAXON_ATTRIBUTE_FORCE_INLINE Int Get ( ) const

Returns the number of bits.

◆  GetBytes()

MAXON_ATTRIBUTE_FORCE_INLINE Int GetBytes ( Int   pixelCnt = 1 ) const

Returns the number of bytes needed for the bits of this object.

◆  operator==()

MAXON_ATTRIBUTE_FORCE_INLINE Bool operator== ( const BITS other ) const

Compares against another BITS 值。

◆  operator!=()

MAXON_ATTRIBUTE_FORCE_INLINE Bool operator!= ( const BITS other ) const

Compares against another BITS 值。

◆  operator<()

MAXON_ATTRIBUTE_FORCE_INLINE Bool operator< ( const BITS other ) const

Compares against another BITS 值。

◆  operator<=()

MAXON_ATTRIBUTE_FORCE_INLINE Bool operator<= ( const BITS other ) const

Compares against another BITS 值。

◆  operator>()

MAXON_ATTRIBUTE_FORCE_INLINE Bool operator> ( const BITS other ) const

Compares against another BITS 值。

◆  operator>=()

MAXON_ATTRIBUTE_FORCE_INLINE Bool operator>= ( const BITS other ) const

Compares against another BITS 值。

◆  operator+()

MAXON_ATTRIBUTE_FORCE_INLINE BITS operator+ ( const BITS other ) const

添加 BITS .

◆  operator-()

MAXON_ATTRIBUTE_FORCE_INLINE BITS operator- ( const BITS other ) const

Sub BITS .

◆  operator*() [1/2]

MAXON_ATTRIBUTE_FORCE_INLINE BITS operator* ( const BITS other ) const

Mul BITS .

◆  operator*() [2/2]

MAXON_ATTRIBUTE_FORCE_INLINE BITS operator* ( Int   other ) const

Mul BITS .

◆  operator/()

MAXON_ATTRIBUTE_FORCE_INLINE BITS operator/ ( const BITS other ) const

Div BITS .

◆  ToString()

String ToString ( const FormatStatement formatStatement = nullptr ) const

转换 BITS into String .

◆  DescribeIO()

static Result <void> DescribeIO ( const DataSerializeInterface stream )
static

Describe all elements of this class for I/O operations.

参数
[in] stream The stream that is used to register the class members.
返回
OK on success.

◆  GetHashCode()

HashInt GetHashCode ( ) const

Member Data Documentation

◆  _bits

Int _bits
private