yaze 0.2.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
yaze::SharedRom Class Reference

A class to hold a shared pointer to a Rom object. More...

#include <rom.h>

Inherited by yaze::editor::GfxGroupEditor, yaze::editor::Tile16Editor, yaze::emu::Emulator, yaze::emu::Ppu, yaze::gui::Canvas, yaze::test::DungeonRoomTest, yaze::test::MessageTest, yaze::test::OverworldTest, yaze::zelda3::DungeonObjectRenderer, yaze::zelda3::Inventory, yaze::zelda3::Room, and yaze::zelda3::RoomObject.

Public Member Functions

 SharedRom ()=default
 
virtual ~SharedRom ()=default
 
std::shared_ptr< Romshared_rom ()
 
auto rom ()
 

Static Public Member Functions

static void set_rom (Rom *rom)
 

Static Public Attributes

static std::shared_ptr< Romshared_rom_ = nullptr
 

Detailed Description

A class to hold a shared pointer to a Rom object.

Definition at line 372 of file rom.h.

Constructor & Destructor Documentation

◆ SharedRom()

yaze::SharedRom::SharedRom ( )
default

◆ ~SharedRom()

virtual yaze::SharedRom::~SharedRom ( )
virtualdefault

Member Function Documentation

◆ shared_rom()

std::shared_ptr< Rom > yaze::SharedRom::shared_rom ( )
inline

Definition at line 377 of file rom.h.

References shared_rom_.

◆ rom()

◆ set_rom()

static void yaze::SharedRom::set_rom ( Rom * rom)
inlinestatic

Definition at line 392 of file rom.h.

References rom(), and shared_rom_.

Referenced by yaze::editor::EditorManager::OpenRomOrProject(), and yaze::editor::EditorManager::SetCurrentRom().

Here is the call graph for this function:

Member Data Documentation

◆ shared_rom_

std::shared_ptr< Rom > yaze::SharedRom::shared_rom_ = nullptr
static

Definition at line 400 of file rom.h.

Referenced by rom(), set_rom(), and shared_rom().


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