70 fNameMap.emplace(make_pair(name, addr));
71 fAddrMap.emplace(make_pair(addr, name));
83 if (it ==
fNameMap.end())
return false;
88 "BugCheck: fNameMap erase failed");
91 "BugCheck: fAddrMap erase failed");
102 if (it ==
fAddrMap.end())
return false;
107 "BugCheck: fAddrMap erase failed");
108 if (
fNameMap.erase(it->second) == 0)
110 "BugCheck: fNameMap erase failed");
121 if (it ==
fNameMap.end())
return false;
134 if (it ==
fAddrMap.end())
return false;
163 os << bl <<
RosPrintf(o.second.c_str(),
"-s",maxlen)
165 <<
" " <<
RosPrintf(o.first,
"o0", 6) << endl;
178 os << bl << (text?text:
"--") <<
"RlinkAddrMap @ " <<
this << endl;
180 os << bl <<
" fAddrMap.size: " <<
fAddrMap.size() << endl;
size_t MaxNameLength() const
FIXME_docs.
nmap_t fNameMap
name->addr map
size_t fMaxLength
max name length
amap_t fAddrMap
addr->name map
bool Erase(const std::string &name)
FIXME_docs.
void Dump(std::ostream &os, int ind=0, const char *text=0, int detail=0) const
FIXME_docs.
~RlinkAddrMap()
Destructor.
bool Insert(const std::string &name, uint16_t addr)
FIXME_docs.
bool Find(const std::string &name, uint16_t &addr) const
FIXME_docs.
void Print(std::ostream &os, int ind=0) const
FIXME_docs.
RlinkAddrMap()
Default constructor.
I/O appicator to generate fill characters.
RosPrintfS< bool > RosPrintf(bool value, const char *form=0, int width=0, int prec=0)
Creates a print object for the formatted output of a bool value.
Declaration of class ReventLoop.