w11 - cpp 0.794
Backend server for Rlink and w11
|
FIXME_docs. More...
#include <RlinkAddrMap.hpp>
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_t & | Nmap () const |
FIXME_docs. | |
const amap_t & | Amap () 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 | |
FIXME_docs.
Definition at line 26 of file RlinkAddrMap.hpp.
typedef std::map<std::string, uint16_t> Retro::RlinkAddrMap::nmap_t |
Definition at line 28 of file RlinkAddrMap.hpp.
typedef std::map<uint16_t, std::string> Retro::RlinkAddrMap::amap_t |
Definition at line 29 of file RlinkAddrMap.hpp.
Retro::RlinkAddrMap::RlinkAddrMap | ( | ) |
Default constructor.
Definition at line 40 of file RlinkAddrMap.cpp.
Retro::RlinkAddrMap::~RlinkAddrMap | ( | ) |
Destructor.
Definition at line 49 of file RlinkAddrMap.cpp.
void Retro::RlinkAddrMap::Clear | ( | ) |
FIXME_docs.
Definition at line 55 of file RlinkAddrMap.cpp.
References fAddrMap, and fNameMap.
Referenced by Retro::RlinkConnect::AddrMapClear(), Retro::Rw11Cpu::IAddrMapClear(), and Retro::Rw11Cpu::RAddrMapClear().
bool Retro::RlinkAddrMap::Insert | ( | const std::string & | name, |
uint16_t | addr | ||
) |
FIXME_docs.
Definition at line 65 of file RlinkAddrMap.cpp.
References fAddrMap, fMaxLength, and fNameMap.
Referenced by Retro::RlinkConnect::AddrMapInsert(), Retro::Rw11Cpu::IAddrMapInsert(), and Retro::Rw11Cpu::RAddrMapInsert().
bool Retro::RlinkAddrMap::Erase | ( | const std::string & | name | ) |
FIXME_docs.
Definition at line 80 of file RlinkAddrMap.cpp.
References fAddrMap, fMaxLength, and fNameMap.
Referenced by Retro::RlinkConnect::AddrMapErase(), Retro::Rw11Cpu::IAddrMapErase(), and Retro::Rw11Cpu::RAddrMapErase().
bool Retro::RlinkAddrMap::Erase | ( | uint16_t | addr | ) |
FIXME_docs.
Definition at line 99 of file RlinkAddrMap.cpp.
References fAddrMap, fMaxLength, and fNameMap.
bool Retro::RlinkAddrMap::Find | ( | const std::string & | name, |
uint16_t & | addr | ||
) | const |
FIXME_docs.
Definition at line 118 of file RlinkAddrMap.cpp.
References fNameMap.
Referenced by Retro::RtclRlinkConnect::M_amap(), Retro::RtclRw11Cpu::M_imap(), Retro::RtclRw11Cpu::M_rmap(), and Retro::RlinkCommand::Print().
bool Retro::RlinkAddrMap::Find | ( | uint16_t | addr, |
std::string & | name | ||
) | const |
|
inline |
|
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().
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().
void Retro::RlinkAddrMap::Print | ( | std::ostream & | os, |
int | ind = 0 |
||
) | const |
FIXME_docs.
Definition at line 157 of file RlinkAddrMap.cpp.
References fAddrMap, MaxNameLength(), and Retro::RosPrintf().
Referenced by Dump(), Retro::RtclRlinkConnect::M_amap(), Retro::RtclRw11Cpu::M_imap(), and Retro::RtclRw11Cpu::M_rmap().
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().
|
protected |
|
protected |
addr->name map
Definition at line 54 of file RlinkAddrMap.hpp.
Referenced by Amap(), Clear(), Dump(), Erase(), Find(), Insert(), MaxNameLength(), and Print().
|
mutableprotected |
max name length
Definition at line 55 of file RlinkAddrMap.hpp.
Referenced by Erase(), Insert(), and MaxNameLength().