openMSX
|
#include <Ram.hh>
Public Member Functions | |
Ram (const DeviceConfig &config, const std::string &name, static_string_view description, size_t size) | |
Create Ram object with an associated debuggable. | |
Ram (const XMLElement &xml, size_t size) | |
Create Ram object without debuggable. | |
const byte & | operator[] (size_t addr) const |
byte & | operator[] (size_t addr) |
auto | size () const |
auto | data () |
auto | data () const |
auto | begin () |
auto | begin () const |
auto | end () |
auto | end () const |
const std::string & | getName () const |
void | clear (byte c=0xff) |
template<typename Archive > | |
void | serialize (Archive &ar, unsigned version) |
openmsx::Ram::Ram | ( | const DeviceConfig & | config, |
const std::string & | name, | ||
static_string_view | description, | ||
size_t | size | ||
) |
openmsx::Ram::Ram | ( | const XMLElement & | xml, |
size_t | size | ||
) |
|
inline |
Definition at line 47 of file Ram.hh.
References openmsx::MemBuffer< T, ALIGNMENT >::data().
Referenced by openmsx::TrackedRam::begin(), openmsx::VDPVRAM::change4k8kMapping(), serialize(), openmsx::TrackedRam::serialize(), and openmsx::MSXSCCPlusCart::serialize().
|
inline |
Definition at line 48 of file Ram.hh.
References openmsx::MemBuffer< T, ALIGNMENT >::data().
void openmsx::Ram::clear | ( | byte | c = 0xff | ) |
Definition at line 40 of file Ram.cc.
References ranges::copy(), openmsx::MemBuffer< T, ALIGNMENT >::data(), ranges::fill(), openmsx::XMLElement::findChild(), and size().
Referenced by openmsx::CheckedRam::clear(), openmsx::VDPVRAM::clear(), openmsx::TrackedRam::clear(), openmsx::MSXMegaRam::powerUp(), openmsx::MSXSCCPlusCart::powerUp(), Ram(), Ram(), and openmsx::PanasonicAudioPeriphery::reset().
|
inline |
Definition at line 45 of file Ram.hh.
References openmsx::MemBuffer< T, ALIGNMENT >::data().
Referenced by openmsx::VDPVRAM::getData(), openmsx::MSXMegaRam::getReadCacheLine(), openmsx::RomMSXtra::getReadCacheLine(), openmsx::TrackedRam::getWriteBackdoor(), openmsx::MSXMegaRam::getWriteCacheLine(), openmsx::RomMitsubishiMLTS2::getWriteCacheLine(), openmsx::RomMSXtra::getWriteCacheLine(), openmsx::PanasonicAudioPeriphery::getWriteCacheLine(), openmsx::PanasonicMemory::registerRam(), and openmsx::VDPVRAM::serialize().
|
inline |
Definition at line 46 of file Ram.hh.
References openmsx::MemBuffer< T, ALIGNMENT >::data().
|
inline |
Definition at line 49 of file Ram.hh.
References openmsx::MemBuffer< T, ALIGNMENT >::data().
Referenced by openmsx::VDPVRAM::change4k8kMapping(), openmsx::TrackedRam::end(), serialize(), openmsx::TrackedRam::serialize(), and openmsx::MSXSCCPlusCart::serialize().
|
inline |
Definition at line 50 of file Ram.hh.
References openmsx::MemBuffer< T, ALIGNMENT >::data().
const std::string & openmsx::Ram::getName | ( | ) | const |
Definition at line 83 of file Ram.cc.
Referenced by openmsx::TrackedRam::getName(), and openmsx::CheckedRam::read().
|
inline |
void openmsx::Ram::serialize | ( | Archive & | ar, |
unsigned | version | ||
) |
|
inline |
Definition at line 44 of file Ram.hh.
Referenced by openmsx::VDPVRAM::clear(), clear(), openmsx::VDPVRAM::getData(), openmsx::MSXSCCPlusCart::MSXSCCPlusCart(), openmsx::PanasonicMemory::registerRam(), openmsx::CheckedRam::size(), and openmsx::TrackedRam::size().