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

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().

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

Create Ram object without debuggable.

Definition at line 41 of file

References clear().

openmsx::Ram::~Ram ( )

Definition at line 49 of file

Member Function Documentation

void openmsx::Ram::clear ( byte  c = 0xff)
const string & openmsx::Ram::getName ( ) const

Definition at line 93 of file

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

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

Definition at line 27 of file Ram.hh.

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

Definition at line 30 of file Ram.hh.

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

Definition at line 118 of file

References size().

Referenced by getSize().

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