This class, informally referred to as a "category holder" (or simply "holder"), holds a category, a threshold level, and a pointer to a "next" holder. Both the category and next pointer may be null. The intended use is as follows: (1) instances of this class are (only) declared in contexts where logging occurs; (2) if the held category is non‐null, then the held threshold is the numerical maximum of the four levels of that category; (3) if the next pointer is non‐null, then the holder pointed to holds the same category and threshold. Instances of this class must be statically initializable. Hence, the data members are public, and automatically generated constructors and destructor are used.
Synopsis
Declared in <ball_category.h>
class CategoryHolder;
Description
This class should not be used directly by client code. It is an implementation detail of the ball logging system.
Enums
Name |
Description |
This enumeration defines distinguished values for category holder threshold levels. Note that these values are intentionally outside the range |
Member Functions
Name |
Description |
Return the address of the non‐modifiable category held by this holder. |
|
Return the address of the modifiable holder held by this holder. |
|
Reset this object to its default value. The default value is: ` { e_UNINITIALIZED_CATEGORY, 0, 0 } ` |
|
Set the address of the category held by this holder to the specified |
|
Set this holder to point to the specified |
|
Set the threshold level held by this holder to the specified |
|
Return the threshold level held by this holder. |
Data Members
Name |
Description |
Held category (not owned). |
|
Next category holder in the linked list. |
|
Threshold level held by this holder. |
Non-Member Functions
Name |
Description |
Return the address of the specified |
Created with MrDocs