openMSX
Public Member Functions | List of all members
openmsx::TrackedRam Class Reference

#include <TrackedRam.hh>

Public Member Functions

 TrackedRam (const DeviceConfig &config, const std::string &name, static_string_view description, size_t size)
 
 TrackedRam (const XMLElement &xml, size_t size)
 
size_t size () const
 
const std::string & getName () const
 
byte read (size_t addr) const
 
const byteoperator[] (size_t addr) const
 
auto begin () const
 
auto end () const
 
void write (size_t addr, byte value)
 
void clear (byte c=0xff)
 
std::span< bytegetWriteBackdoor ()
 
template<typename Archive >
void serialize (Archive &ar, unsigned version)
 

Detailed Description

Definition at line 9 of file TrackedRam.hh.

Constructor & Destructor Documentation

◆ TrackedRam() [1/2]

openmsx::TrackedRam::TrackedRam ( const DeviceConfig config,
const std::string &  name,
static_string_view  description,
size_t  size 
)
inline

Definition at line 13 of file TrackedRam.hh.

◆ TrackedRam() [2/2]

openmsx::TrackedRam::TrackedRam ( const XMLElement xml,
size_t  size 
)
inline

Definition at line 17 of file TrackedRam.hh.

Member Function Documentation

◆ begin()

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

Definition at line 37 of file TrackedRam.hh.

References openmsx::Ram::begin().

◆ clear()

void openmsx::TrackedRam::clear ( byte  c = 0xff)
inline

Definition at line 46 of file TrackedRam.hh.

References openmsx::Ram::clear().

Referenced by openmsx::Y8950Adpcm::clearRam(), and openmsx::YMF278::clearRam().

◆ end()

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

Definition at line 38 of file TrackedRam.hh.

References openmsx::Ram::end().

◆ getName()

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

Definition at line 24 of file TrackedRam.hh.

References openmsx::Ram::getName().

◆ getWriteBackdoor()

std::span< byte > openmsx::TrackedRam::getWriteBackdoor ( )
inline

◆ operator[]()

const byte & openmsx::TrackedRam::operator[] ( size_t  addr) const
inline

Definition at line 33 of file TrackedRam.hh.

◆ read()

byte openmsx::TrackedRam::read ( size_t  addr) const
inline

Definition at line 29 of file TrackedRam.hh.

◆ serialize()

template<typename Archive >
void openmsx::TrackedRam::serialize ( Archive &  ar,
unsigned  version 
)

Definition at line 7 of file TrackedRam.cc.

References openmsx::Ram::begin(), and openmsx::Ram::end().

◆ size()

size_t openmsx::TrackedRam::size ( ) const
inline

Definition at line 20 of file TrackedRam.hh.

References openmsx::Ram::size().

Referenced by getWriteBackdoor(), openmsx::SRAM::size(), and openmsx::YMF278::writeMem().

◆ write()

void openmsx::TrackedRam::write ( size_t  addr,
byte  value 
)
inline

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