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

#include <Ram.hh>

Public Member Functions

 Ram (const DeviceConfig &config, const std::string &name, static_string_view description, unsigned size)
 Create Ram object with an associated debuggable. More...
 Ram (const XMLElement &xml, unsigned size)
 Create Ram object without debuggable. More...
const byteoperator[] (unsigned addr) const
byteoperator[] (unsigned addr)
unsigned getSize () const
const std::string & getName () const
void clear (byte c=0xff)
template<typename Archive >
void serialize (Archive &ar, unsigned version)

Detailed Description

Definition at line 28 of file Ram.hh.

Constructor & Destructor Documentation

◆ Ram() [1/2]

openmsx::Ram::Ram ( const DeviceConfig config,
const std::string &  name,
static_string_view  description,
unsigned  size 

Create Ram object with an associated debuggable.

Definition at line 16 of file

References clear().

◆ Ram() [2/2]

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

Create Ram object without debuggable.

Definition at line 27 of file

References clear().

Member Function Documentation

◆ clear()

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

◆ getName()

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

Definition at line 79 of file

Referenced by openmsx::TrackedRam::getName(), and openmsx::CheckedRam::read().

◆ getSize()

unsigned openmsx::Ram::getSize ( ) const

◆ operator[]() [1/2]

byte& openmsx::Ram::operator[] ( unsigned  addr)

Definition at line 41 of file Ram.hh.

◆ operator[]() [2/2]

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

Definition at line 38 of file Ram.hh.

◆ serialize()

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

Definition at line 104 of file

References openmsx::MemBuffer< T, ALIGNMENT >::data().

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