wavelength 1.0.0
Loading...
Searching...
No Matches
NamedObjectRegistry Class Reference

Registry of named objects and of named groups of objects. More...

#include <namedobjectregistry.h>

Classes

class  Object
 An object of the registry, which the registry deletes through its virtual destructor. More...
struct  Entry
 A named object. More...
struct  Group
 A named group of objects. More...

Public Member Functions

 NamedObjectRegistry ()
 Construct an empty registry.
 ~NamedObjectRegistry ()
 Release the groups and the list of entries, without deleting the objects.
void DeleteEntries ()
 Delete every entry and its object.
const std::vector< std::unique_ptr< Entry > > & GetEntries () const
const std::vector< Group > & GetGroups () const

Static Public Member Functions

static NamedObjectRegistry * Get ()
 Report the registry, constructing it on first use.

Detailed Description

Registry of named objects and of named groups of objects.

The class is not polymorphic. The name is inferred. The registry is built on first use, and only NamedObjectRegistryTerminate() uses it. No routine of the image adds an entry, and the class of the objects is not yet identified.

Constructor & Destructor Documentation

◆ NamedObjectRegistry()

NamedObjectRegistry::NamedObjectRegistry ( )

Construct an empty registry.

Ghidra address:
NTSC-U/C: 0x0029e778
Ghidra address:
PAL: 0x002a8440

◆ ~NamedObjectRegistry()

NamedObjectRegistry::~NamedObjectRegistry ( )

Release the groups and the list of entries, without deleting the objects.

Ghidra address:
NTSC-U/C: 0x0029e7a0
Ghidra address:
PAL: 0x002a8468

Member Function Documentation

◆ Get()

NamedObjectRegistry * NamedObjectRegistry::Get ( )
static

Report the registry, constructing it on first use.

Returns
The registry.
Ghidra address:
NTSC-U/C: 0x0029e6f0
Ghidra address:
PAL: 0x002a83b8

◆ DeleteEntries()

void NamedObjectRegistry::DeleteEntries ( )

Delete every entry and its object.

Ghidra address:
NTSC-U/C: 0x0029e890
Ghidra address:
PAL: 0x002a8558

◆ GetEntries()

const std::vector< std::unique_ptr< Entry > > & NamedObjectRegistry::GetEntries ( ) const
inline
Returns
The named objects.

◆ GetGroups()

const std::vector< Group > & NamedObjectRegistry::GetGroups ( ) const
inline
Returns
The named groups.

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