Add Bitmap::isFull()
This commit is contained in:
		
							parent
							
								
									eb7997c037
								
							
						
					
					
						commit
						9f115c3dea
					
				
					 1 changed files with 8 additions and 0 deletions
				
			
		|  | @ -85,11 +85,19 @@ struct Bitmap | |||
|         mBitmap = ~(0); | ||||
|     } | ||||
| 
 | ||||
|     bool | ||||
|     isFull() | ||||
|         const | ||||
|     { | ||||
|         return mBitmap != ~(0); | ||||
|     } | ||||
| 
 | ||||
| private: | ||||
|     FieldType mBitmap; | ||||
| 
 | ||||
|     inline bool | ||||
|     isValid(usize bit) | ||||
|         const | ||||
|     { | ||||
|         return bit >= 0 && bit < Bitmap::length; | ||||
|     } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue