#include <mapcomposite.hpp>
By maintaining public ID availability using bits, it can locate an available public ID fast while using minimal memory access.
Definition at line 149 of file mapcomposite.hpp.
Public Member Functions | |
| ObjectBucket () | |
| int | allocate () |
| void | deallocate (int) |
Public Attributes | |
| unsigned | bitmap [256/int_bitsize] |
| Bitmap of free locations. | |
| short | free |
| Number of empty places. | |
| short | next_object |
| Next object to look at. | |
| MovingObject * | objects [256] |
Static Public Attributes | |
| int const | int_bitsize = sizeof(unsigned) * 8 |
|
|
Definition at line 263 of file mapcomposite.cpp. |
|
|
Definition at line 273 of file mapcomposite.cpp. |
|
|
Definition at line 319 of file mapcomposite.cpp. |
|
|
Bitmap of free locations.
Definition at line 152 of file mapcomposite.hpp. |
|
|
Number of empty places.
Definition at line 153 of file mapcomposite.hpp. |
|
|
Definition at line 151 of file mapcomposite.hpp. |
|
|
Next object to look at.
Definition at line 154 of file mapcomposite.hpp. |
|
|
Definition at line 155 of file mapcomposite.hpp. |
1.3.9.1