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

#include <Ram.hh>

Inheritance diagram for openmsx::Ram:
Inheritance graph
[legend]
Collaboration diagram for openmsx::Ram:
Collaboration graph
[legend]

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 16 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 Ram.cc.

References clear().

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

Create Ram object without debuggable.

Definition at line 40 of file Ram.cc.

References clear().

openmsx::Ram::~Ram ( )

Definition at line 47 of file Ram.cc.

Member Function Documentation

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

Definition at line 91 of file Ram.cc.

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

Definition at line 28 of file Ram.hh.

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

Definition at line 31 of file Ram.hh.

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

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