openMSX
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, static_string_view description, size_t size)
 Create Ram object with an associated debuggable.
 
 Ram (const XMLElement &xml, size_t size)
 Create Ram object without debuggable.
 
const byteoperator[] (size_t addr) const
 
byteoperator[] (size_t addr)
 
auto size () const
 
auto data ()
 
auto data () const
 
auto begin ()
 
auto begin () const
 
auto end ()
 
auto end () 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 28 of file Ram.hh.

Constructor & Destructor Documentation

◆ Ram() [1/2]

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

Create Ram object with an associated debuggable.

Definition at line 21 of file Ram.cc.

References clear().

◆ Ram() [2/2]

openmsx::Ram::Ram ( const XMLElement xml,
size_t  size 
)

Create Ram object without debuggable.

Definition at line 32 of file Ram.cc.

References clear().

Member Function Documentation

◆ begin() [1/2]

auto openmsx::Ram::begin ( )
inline

◆ begin() [2/2]

auto openmsx::Ram::begin ( ) const
inline

Definition at line 48 of file Ram.hh.

References openmsx::MemBuffer< T, ALIGNMENT >::data().

◆ clear()

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

◆ data() [1/2]

auto openmsx::Ram::data ( )
inline

◆ data() [2/2]

auto openmsx::Ram::data ( ) const
inline

Definition at line 46 of file Ram.hh.

References openmsx::MemBuffer< T, ALIGNMENT >::data().

◆ end() [1/2]

auto openmsx::Ram::end ( )
inline

◆ end() [2/2]

auto openmsx::Ram::end ( ) const
inline

Definition at line 50 of file Ram.hh.

References openmsx::MemBuffer< T, ALIGNMENT >::data().

◆ getName()

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

Definition at line 83 of file Ram.cc.

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

◆ operator[]() [1/2]

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

Definition at line 41 of file Ram.hh.

◆ operator[]() [2/2]

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

Definition at line 38 of file Ram.hh.

◆ serialize()

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

Definition at line 108 of file Ram.cc.

References begin(), and end().

◆ size()

auto openmsx::Ram::size ( ) const
inline

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