openMSX
Classes | Public Member Functions | List of all members
openmsx::SRAM Class Referencefinal

#include <SRAM.hh>

Classes

struct  DontLoadTag
 

Public Member Functions

 SRAM (int size, const XMLElement &xml, DontLoadTag)
 
 SRAM (const std::string &name, const std::string &description, int size, const DeviceConfig &config, DontLoadTag)
 
 SRAM (const std::string &name, int size, const DeviceConfig &config, const char *header=nullptr, bool *loaded=nullptr)
 
 SRAM (const std::string &name, const std::string &description, int size, const DeviceConfig &config, const char *header=nullptr, bool *loaded=nullptr)
 
 ~SRAM ()
 
const byteoperator[] (unsigned addr) const
 
void write (unsigned addr, byte value)
 
void memset (unsigned addr, byte c, unsigned size)
 
unsigned getSize () const
 
const std::string & getLoadedFilename () const
 
template<typename Archive >
void serialize (Archive &ar, unsigned version)
 

Detailed Description

Definition at line 11 of file SRAM.hh.

Constructor & Destructor Documentation

◆ SRAM() [1/4]

openmsx::SRAM::SRAM ( int  size,
const XMLElement xml,
DontLoadTag   
)

Definition at line 23 of file SRAM.cc.

◆ SRAM() [2/4]

openmsx::SRAM::SRAM ( const std::string &  name,
const std::string &  description,
int  size,
const DeviceConfig config,
DontLoadTag   
)

Definition at line 33 of file SRAM.cc.

◆ SRAM() [3/4]

openmsx::SRAM::SRAM ( const std::string &  name,
int  size,
const DeviceConfig config,
const char *  header = nullptr,
bool *  loaded = nullptr 
)

Definition at line 40 of file SRAM.cc.

◆ SRAM() [4/4]

openmsx::SRAM::SRAM ( const std::string &  name,
const std::string &  description,
int  size,
const DeviceConfig config,
const char *  header = nullptr,
bool *  loaded = nullptr 
)

Definition at line 50 of file SRAM.cc.

◆ ~SRAM()

openmsx::SRAM::~SRAM ( )

Definition at line 60 of file SRAM.cc.

Member Function Documentation

◆ getLoadedFilename()

const std::string& openmsx::SRAM::getLoadedFilename ( ) const
inline

Definition at line 36 of file SRAM.hh.

References serialize().

Referenced by openmsx::AmdFlash::AmdFlash().

◆ getSize()

unsigned openmsx::SRAM::getSize ( ) const
inline

◆ memset()

void openmsx::SRAM::memset ( unsigned  addr,
byte  c,
unsigned  size 
)

◆ operator[]()

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

Definition at line 26 of file SRAM.hh.

References getSize(), memset(), and write().

◆ serialize()

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

Definition at line 146 of file SRAM.cc.

Referenced by getLoadedFilename().

◆ write()

void openmsx::SRAM::write ( unsigned  addr,
byte  value 
)

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