Wrapper for YCPMapRep This class realizes an automatic memory management via YCPElement. Access the functionality of YCPMapRep with the arrow operator. See YCPMapRep. More...
#include <YCPMap.h>
Public Types | |
typedef YCPMapRep::iterator | iterator |
typedef YCPMapRep::const_iterator | const_iterator |
typedef YCPMapRep::value_type | value_type |
typedef YCPMapRep::const_reference | const_reference |
typedef YCPMapRep::key_compare | key_compare |
Public Member Functions | |
YCPMap () | |
YCPMap (bytecodeistream &str) | |
void | add (const YCPValue &key, const YCPValue &value) |
YCPMap | functionalAdd (const YCPValue &key, const YCPValue &value) const |
void | remove (const YCPValue &key) |
bool | isEmpty () const |
long | size () const |
bool | hasKey (const YCPValue &key) const |
YCPValue | value (const YCPValue &key) const |
YCPMapIterator | begin () const |
YCPMapIterator | end () const |
Private Member Functions | |
DEF_COW_COMMON (Map, Value) |
Wrapper for YCPMapRep This class realizes an automatic memory management via YCPElement. Access the functionality of YCPMapRep with the arrow operator. See YCPMapRep.
typedef YCPMapRep::iterator YCPMap::iterator |
YCPMap::YCPMap | ( | ) | [inline] |
YCPMap::YCPMap | ( | bytecodeistream & | str | ) |
References Bytecode::readInt32(), Bytecode::readValue(), and value().
References ELEMENT.
Referenced by YEMap::evaluate(), fillCache(), YCPMapRep::functionalAdd(), IniAgent::generateSysConfigTemplate(), IniEntry::getAllDoIt(), IniBase::getAllDoIt(), IniSection::getAllDoIt(), l_listmap(), m_changemap(), m_filter(), m_mapmap(), m_unionmap(), map2ycpmap(), SCRAgent::SCRAgent(), shellcommand_output(), stat2map(), and ResolverAgent::Write().
YCPMapIterator YCPMap::begin | ( | ) | const [inline] |
References begin(), and CONST_ELEMENT.
Referenced by begin(), YEPropagate::canPropagate(), YCPMapRep::compare(), dump_value(), flushCache(), l_listmap(), m_filter(), m_foreach(), m_maplist(), m_mapmap(), m_unionmap(), map2ycpmap(), Type::matchvalue(), and ycpmap2map().
YCPMap::DEF_COW_COMMON | ( | Map | , | |
Value | ||||
) | [private] |
YCPMapIterator YCPMap::end | ( | ) | const [inline] |
References CONST_ELEMENT, and end().
Referenced by YEPropagate::canPropagate(), YCPMapRep::compare(), dump_value(), end(), flushCache(), m_filter(), m_foreach(), m_maplist(), m_mapmap(), m_unionmap(), Type::matchvalue(), and ycpmap2map().
References CONST_ELEMENT, and functionalAdd().
Referenced by YSBracket::commit(), functionalAdd(), and m_addmap().
bool YCPMap::hasKey | ( | const YCPValue & | key | ) | const [inline] |
References CONST_ELEMENT.
Referenced by m_haskey(), and m_remove().
bool YCPMap::isEmpty | ( | ) | const [inline] |
References CONST_ELEMENT.
Referenced by m_isempty().
void YCPMap::remove | ( | const YCPValue & | key | ) | [inline] |
References ELEMENT.
Referenced by m_remove().
long YCPMap::size | ( | ) | const [inline] |
References CONST_ELEMENT, and size().
Referenced by YCPMapRep::compare(), l_listmap(), SCRAgent::SCRAgent(), and size().
References CONST_ELEMENT, and value().
Referenced by DummyAgent::checkPath(), YSBracket::commit(), YEBracket::evaluate(), fillCache(), flushCache(), getBeginEndType(), IniBase::getMapInteger(), IniBase::getMapString(), getParamsType(), IniParser::initMachine(), ResolverAgent::Read(), IniSection::setAllDoIt(), AnyAgent::unparseTuple(), value(), and YCPMap().