Efficient, value‐semantic manager of reusable, non‐negative integer indices.
Synopsis
Declared in <bdlc_indexclerk.h>
class IndexClerk;
Description
This class defines an efficient, value‐semantic manager type for reusable, non‐negative integer indices. The class invariants are that the all decommissioned indices must be non‐negative, less than the next new index, and unique.
Member Functions
Name |
Description |
|
Constructors |
|
Destroy this index clerk. |
Assign to this index clerk the value of the specified |
|
Assign to this object the value read from the specified input stream. |
|
Write the value of this object to the specified output stream. |
|
Return an iterator to the first decommissioned index, or |
|
Return a |
|
Return the next available unused integer index. Existing decommissioned indices are reissued before new ones are created. |
|
Return |
|
Return the smallest index that has not yet been issued. |
|
Return the number of indices currently in use. |
|
Return the number of indices that are currently decommissioned. |
|
Format this index clerk to the specified output stream. |
|
Return the specified |
|
Remove all indices from this index clerk. |
|
|
Declare that this type uses a |
Static Member Functions
Name |
Description |
|
Friends
Name |
Description |
Return |
|
Return |
Created with MrDocs