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, 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 
)
inline

Definition at line 13 of file TrackedRam.hh.

◆ TrackedRam() [2/2]

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

Definition at line 17 of file TrackedRam.hh.

Member Function Documentation

◆ clear()

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

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
inline

Definition at line 24 of file TrackedRam.hh.

References openmsx::Ram::getName().

◆ getSize()

unsigned openmsx::TrackedRam::getSize ( ) const
inline

◆ getWriteBackdoor()

byte* openmsx::TrackedRam::getWriteBackdoor ( )
inline

◆ operator[]()

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

Definition at line 33 of file TrackedRam.hh.

◆ read()

byte openmsx::TrackedRam::read ( unsigned  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 getSize().

Referenced by getWriteBackdoor().

◆ write()

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

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