openMSX
Public Member Functions | List of all members
openmsx::Rom Class Referencefinal

#include <Rom.hh>

Public Member Functions

 Rom (std::string name, static_string_view description, const DeviceConfig &config, std::string_view id={})
 
 Rom (Rom &&other) noexcept
 
 ~Rom ()
 
const byteoperator[] (size_t address) const
 
auto size () const
 
auto begin () const
 
auto end () const
 
std::string_view getFilename () const
 
const std::string & getName () const
 
std::string_view getDescription () const
 
const Sha1SumgetOriginalSHA1 () const
 
const Sha1SumgetSHA1 () const
 
void addPadding (size_t newSize, byte filler=0xff)
 
void getInfo (TclObject &result) const
 Add dict values with info to result.
 

Detailed Description

Definition at line 25 of file Rom.hh.

Constructor & Destructor Documentation

◆ Rom() [1/2]

openmsx::Rom::Rom ( std::string  name,
static_string_view  description,
const DeviceConfig config,
std::string_view  id = {} 
)

◆ Rom() [2/2]

openmsx::Rom::Rom ( Rom &&  other)
noexcept

Definition at line 330 of file Rom.cc.

◆ ~Rom()

openmsx::Rom::~Rom ( )
default

Member Function Documentation

◆ addPadding()

void openmsx::Rom::addPadding ( size_t  newSize,
byte  filler = 0xff 
)

◆ begin()

auto openmsx::Rom::begin ( ) const
inline

Definition at line 38 of file Rom.hh.

◆ end()

auto openmsx::Rom::end ( ) const
inline

Definition at line 39 of file Rom.hh.

◆ getDescription()

std::string_view openmsx::Rom::getDescription ( ) const
inline

Definition at line 43 of file Rom.hh.

Referenced by openmsx::RomDebuggable::getDescription().

◆ getFilename()

std::string_view openmsx::Rom::getFilename ( ) const

Definition at line 345 of file Rom.cc.

References openmsx::File::getURL(), and openmsx::File::is_open().

Referenced by openmsx::MSXRom::getExtraDeviceInfo(), and getInfo().

◆ getInfo()

void openmsx::Rom::getInfo ( TclObject result) const

◆ getName()

const std::string & openmsx::Rom::getName ( ) const
inline

◆ getOriginalSHA1()

const Sha1Sum & openmsx::Rom::getOriginalSHA1 ( ) const

◆ getSHA1()

const Sha1Sum & openmsx::Rom::getSHA1 ( ) const

◆ operator[]()

const byte & openmsx::Rom::operator[] ( size_t  address) const
inline

Definition at line 33 of file Rom.hh.

◆ size()

auto openmsx::Rom::size ( ) const
inline

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