w11 - cpp 0.794
Backend server for Rlink and w11
Loading...
Searching...
No Matches
Retro::RlinkAddrMap Class Reference

FIXME_docs. More...

#include <RlinkAddrMap.hpp>

Collaboration diagram for Retro::RlinkAddrMap:
[legend]

Public Types

typedef std::map< std::string, uint16_t > nmap_t
 
typedef std::map< uint16_t, std::string > amap_t
 

Public Member Functions

 RlinkAddrMap ()
 Default constructor.
 
 ~RlinkAddrMap ()
 Destructor.
 
void Clear ()
 FIXME_docs.
 
bool Insert (const std::string &name, uint16_t addr)
 FIXME_docs.
 
bool Erase (const std::string &name)
 FIXME_docs.
 
bool Erase (uint16_t addr)
 FIXME_docs.
 
bool Find (const std::string &name, uint16_t &addr) const
 FIXME_docs.
 
bool Find (uint16_t addr, std::string &name) const
 FIXME_docs.
 
const nmap_tNmap () const
 FIXME_docs.
 
const amap_tAmap () const
 FIXME_docs.
 
size_t MaxNameLength () const
 FIXME_docs.
 
void Print (std::ostream &os, int ind=0) const
 FIXME_docs.
 
void Dump (std::ostream &os, int ind=0, const char *text=0, int detail=0) const
 FIXME_docs.
 

Protected Attributes

nmap_t fNameMap
 name->addr map
 
amap_t fAddrMap
 addr->name map
 
size_t fMaxLength
 max name length
 

Detailed Description

FIXME_docs.

Definition at line 26 of file RlinkAddrMap.hpp.

Member Typedef Documentation

◆ nmap_t

typedef std::map<std::string, uint16_t> Retro::RlinkAddrMap::nmap_t

Definition at line 28 of file RlinkAddrMap.hpp.

◆ amap_t

typedef std::map<uint16_t, std::string> Retro::RlinkAddrMap::amap_t

Definition at line 29 of file RlinkAddrMap.hpp.

Constructor & Destructor Documentation

◆ RlinkAddrMap()

Retro::RlinkAddrMap::RlinkAddrMap ( )

Default constructor.

Definition at line 40 of file RlinkAddrMap.cpp.

◆ ~RlinkAddrMap()

Retro::RlinkAddrMap::~RlinkAddrMap ( )

Destructor.

Definition at line 49 of file RlinkAddrMap.cpp.

Member Function Documentation

◆ Clear()

void Retro::RlinkAddrMap::Clear ( )

◆ Insert()

bool Retro::RlinkAddrMap::Insert ( const std::string &  name,
uint16_t  addr 
)

◆ Erase() [1/2]

bool Retro::RlinkAddrMap::Erase ( const std::string &  name)

◆ Erase() [2/2]

bool Retro::RlinkAddrMap::Erase ( uint16_t  addr)

FIXME_docs.

Definition at line 99 of file RlinkAddrMap.cpp.

References fAddrMap, fMaxLength, and fNameMap.

◆ Find() [1/2]

bool Retro::RlinkAddrMap::Find ( const std::string &  name,
uint16_t &  addr 
) const

◆ Find() [2/2]

bool Retro::RlinkAddrMap::Find ( uint16_t  addr,
std::string &  name 
) const

FIXME_docs.

Definition at line 131 of file RlinkAddrMap.cpp.

References fAddrMap.

◆ Nmap()

const RlinkAddrMap::nmap_t & Retro::RlinkAddrMap::Nmap ( ) const
inline

FIXME_docs.

Definition at line 20 of file RlinkAddrMap.ipp.

References fNameMap.

◆ Amap()

const RlinkAddrMap::amap_t & Retro::RlinkAddrMap::Amap ( ) const
inline

FIXME_docs.

Definition at line 28 of file RlinkAddrMap.ipp.

References fAddrMap.

Referenced by Retro::RtclRlinkConnect::M_amap(), Retro::RtclRw11Cpu::M_imap(), and Retro::RtclRw11Cpu::M_rmap().

◆ MaxNameLength()

size_t Retro::RlinkAddrMap::MaxNameLength ( ) const

FIXME_docs.

Definition at line 144 of file RlinkAddrMap.cpp.

References fAddrMap, and fMaxLength.

Referenced by Retro::RlinkCommand::Print(), and Print().

◆ Print()

void Retro::RlinkAddrMap::Print ( std::ostream &  os,
int  ind = 0 
) const

◆ Dump()

void Retro::RlinkAddrMap::Dump ( std::ostream &  os,
int  ind = 0,
const char *  text = 0,
int  detail = 0 
) const

FIXME_docs.

Definition at line 174 of file RlinkAddrMap.cpp.

References fAddrMap, and Print().

Referenced by Retro::RlinkConnect::Dump(), and Retro::Rw11Cpu::Dump().

Member Data Documentation

◆ fNameMap

nmap_t Retro::RlinkAddrMap::fNameMap
protected

name->addr map

Definition at line 53 of file RlinkAddrMap.hpp.

Referenced by Clear(), Erase(), Find(), Insert(), and Nmap().

◆ fAddrMap

amap_t Retro::RlinkAddrMap::fAddrMap
protected

addr->name map

Definition at line 54 of file RlinkAddrMap.hpp.

Referenced by Amap(), Clear(), Dump(), Erase(), Find(), Insert(), MaxNameLength(), and Print().

◆ fMaxLength

size_t Retro::RlinkAddrMap::fMaxLength
mutableprotected

max name length

Definition at line 55 of file RlinkAddrMap.hpp.

Referenced by Erase(), Insert(), and MaxNameLength().


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