resonance 1.0.1
Loading...
Searching...
No Matches
MetScreenEntry Struct Reference

One value of MetScreen::ScreenRegistry(), a screen and the category it was registered under. More...

#include <metscreen.h>

Collaboration diagram for MetScreenEntry:

Public Member Functions

 MetScreenEntry ()
 Record no screen, in category 3.
 MetScreenEntry (MetScreen *pScreen, int nCategory=kDefaultCategory)
 Record a screen in a category.

Public Attributes

MetScreen * mScreen
int mCategory

Static Public Attributes

static constexpr int kDefaultCategory = 0
 The category every recovered registration stores.
static constexpr int kUnsetCategory = 3
 The category a missing entry is created with.

Detailed Description

One value of MetScreen::ScreenRegistry(), a screen and the category it was registered under.

The record is eight bytes and is not polymorphic, so the name is inferred. The registry's operator[] at 0x0038f318 default-constructs a missing value as no screen in category 3, and every recovered registration stores category 0. The three category walkers at 0x003822c8, 0x00382978, and 0x00383020 read mCategory.

Constructor & Destructor Documentation

◆ MetScreenEntry() [1/2]

MetScreenEntry::MetScreenEntry ( )
inline

Record no screen, in category 3.

◆ MetScreenEntry() [2/2]

MetScreenEntry::MetScreenEntry ( MetScreen * pScreen,
int nCategory = kDefaultCategory )
inlineexplicit

Record a screen in a category.

Parameters
pScreenThe screen.
nCategoryThe category, 0 for every recovered registration.

Member Data Documentation

◆ kDefaultCategory

int MetScreenEntry::kDefaultCategory = 0
staticconstexpr

The category every recovered registration stores.

◆ kUnsetCategory

int MetScreenEntry::kUnsetCategory = 3
staticconstexpr

The category a missing entry is created with.

◆ mScreen

MetScreen* MetScreenEntry::mScreen

The screen. +0x00

◆ mCategory

int MetScreenEntry::mCategory

The category the walkers select screens by. +0x04


The documentation for this struct was generated from the following file: