Method | Description | |
---|---|---|
binaryStringRepresentation ( this self, int leftPadWidth = 10 ) : string |
prints the binary representation of the int. Handy for debugging int flag overlaps visually.
|
|
invertFlags ( int &self ) : void |
inverts the set bits of the int
|
|
isFlagSet ( this self, int flag ) : bool |
checks to see if the bit flag is set in the int. This check expects flag to be shifted already!
|
|
isUnshiftedFlagSet ( this self, int flag ) : bool |
checks to see if the bit flag is set in the int
|
|
setFlag ( int &self, int flag ) : void |
sets the flag bit of the int
|
|
setFlagExclusive ( int &self, int flag ) : void |
sets the flag bit of the int removing any already set flags
|
|
unsetFlag ( int &self, int flag ) : void |
unsets the flag bit of the int
|
public static binaryStringRepresentation ( this self, int leftPadWidth = 10 ) : string | ||
self | this | Self. |
leftPadWidth | int | Left pad width. |
return | string |
public static invertFlags ( int &self ) : void | ||
self | int | Self. |
return | void |
public static isFlagSet ( this self, int flag ) : bool | ||
self | this | Self. |
flag | int | Flag. |
return | bool |
public static isUnshiftedFlagSet ( this self, int flag ) : bool | ||
self | this | Self. |
flag | int | Flag. |
return | bool |
public static setFlag ( int &self, int flag ) : void | ||
self | int | Self. |
flag | int | Flag. |
return | void |
public static setFlagExclusive ( int &self, int flag ) : void | ||
self | int | Self. |
flag | int | Flag. |
return | void |
public static unsetFlag ( int &self, int flag ) : void | ||
self | int | Self. |
flag | int | Flag. |
return | void |