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

#include <SRAM.hh>

Classes

struct  DontLoadTag
 

Public Member Functions

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

Detailed Description

Definition at line 13 of file SRAM.hh.

Constructor & Destructor Documentation

◆ SRAM() [1/4]

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

Definition at line 21 of file SRAM.cc.

◆ SRAM() [2/4]

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

Definition at line 30 of file SRAM.cc.

◆ SRAM() [3/4]

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

Definition at line 36 of file SRAM.cc.

◆ SRAM() [4/4]

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

Definition at line 46 of file SRAM.cc.

◆ ~SRAM()

openmsx::SRAM::~SRAM ( )

Definition at line 56 of file SRAM.cc.

Member Function Documentation

◆ memset()

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

Definition at line 73 of file SRAM.cc.

References ranges::fill(), openmsx::TrackedRam::getWriteBackdoor(), and size().

◆ operator[]()

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

Definition at line 28 of file SRAM.hh.

References size().

◆ serialize()

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

Definition at line 139 of file SRAM.cc.

◆ size()

size_t openmsx::SRAM::size ( ) const
inline

◆ write()

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

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