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, const std::string &description, unsigned size)
 TrackedRam (const XMLElement &xml, unsigned size)
unsigned getSize () const
const std::string & getName () const
byte read (unsigned addr) const
const byteoperator[] (unsigned addr) const
void write (unsigned addr, byte value)
void clear (byte c=0xff)
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,
const std::string &  description,
unsigned  size 

Definition at line 13 of file TrackedRam.hh.

◆ TrackedRam() [2/2]

openmsx::TrackedRam::TrackedRam ( const XMLElement xml,
unsigned  size 

Definition at line 17 of file TrackedRam.hh.

Member Function Documentation

◆ clear()

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

Definition at line 43 of file TrackedRam.hh.

References openmsx::Ram::clear().

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

◆ getName()

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

Definition at line 24 of file TrackedRam.hh.

References openmsx::Ram::getName().

◆ getSize()

unsigned openmsx::TrackedRam::getSize ( ) const

◆ getWriteBackdoor()

byte* openmsx::TrackedRam::getWriteBackdoor ( )

◆ operator[]()

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

Definition at line 33 of file TrackedRam.hh.

◆ read()

byte openmsx::TrackedRam::read ( unsigned  addr) const

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

References getSize().

Referenced by getWriteBackdoor().

◆ write()

void openmsx::TrackedRam::write ( unsigned  addr,
byte  value 

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