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, const std::string &description, unsigned size)
 Create Ram object with an associated debuggable. More...
 Ram (const DeviceConfig &config, unsigned size)
 Create Ram object without debuggable. More...
 ~Ram ()
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 15 of file Ram.hh.

Constructor & Destructor Documentation

§ Ram() [1/2]

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

Create Ram object with an associated debuggable.

Definition at line 30 of file

References clear(), and size().

§ Ram() [2/2]

openmsx::Ram::Ram ( const DeviceConfig config,
unsigned  size 

Create Ram object without debuggable.

Definition at line 41 of file

References clear(), and ~Ram().

§ ~Ram()

openmsx::Ram::~Ram ( )

Referenced by Ram().

Member Function Documentation

§ clear()

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

§ getName()

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

Definition at line 91 of file

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

§ getSize()

unsigned openmsx::Ram::getSize ( ) const

§ operator[]() [1/2]

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

Definition at line 27 of file Ram.hh.

§ operator[]() [2/2]

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

Definition at line 30 of file Ram.hh.

§ serialize()

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

Definition at line 116 of file

References size().

Referenced by getSize().

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