53 typedef YCPValueYCPValueMap::iterator
iterator;
153 std::ostream &
toStream (std::ostream &
str)
const;
154 std::ostream &
toXml (std::ostream &
str,
int indent )
const;
175 #define CONST_ELEMENT (static_cast<const YCPMapRep*>(element))
176 #define ELEMENT (const_cast<YCPMapRep*>(static_cast<const YCPMapRep*>(this->writeCopy())))
DEF_COW_COMMON(Map, Value)
YCPValueYCPValueMap stl_map
Definition: YCPMap.h:49
void add(const YCPValue &key, const YCPValue &value)
Definition: YCPMap.cc:50
YCPMap()
Definition: YCPMap.h:196
bool hasKey(const YCPValue &key) const
Definition: YCPMap.cc:141
#define str
Definition: scanner.cc:997
void add(const YCPValue &key, const YCPValue &value)
Definition: YCPMap.h:199
YCPMapRep::value_type value_type
Definition: YCPMap.h:192
~YCPMapRep()
Definition: YCPMap.h:69
YCPValue value(const YCPValue &key) const
Definition: YCPMap.h:205
YCPMapIterator(YCPValueYCPValueMap::const_iterator it)
Definition: YCPMap.h:167
map< YCPValue, YCPValue, ycp_less > YCPValueYCPValueMap
Definition: YCPMap.h:32
A mapping from keys to values. A map is also called assiciative array. It is a mapping from a set of ...
Definition: YCPMap.h:45
YCPValueYCPValueMap::value_type value_type
Definition: YCPMap.h:55
bool isEmpty() const
Definition: YCPMap.h:202
bool hasKey(const YCPValue &key) const
Definition: YCPMap.h:204
YCPMapIterator end() const
Definition: YCPMap.h:207
string toString() const
Definition: YCPMap.cc:202
YCPValueType
Value Type Defines constants for the Value types. The Value type specifies the class the YCPValueRep ...
Definition: YCPValue.h:36
YCPMapRep()
Definition: YCPMap.cc:30
YCPValueType valuetype() const
Definition: YCPMap.cc:219
YCPMap functionalAdd(const YCPValue &key, const YCPValue &value) const
Definition: YCPMap.h:200
Wrapper for YCPMapRep This class realizes an automatic memory management via YCPElement. Access the functionality of YCPMapRep with the arrow operator. See YCPMapRep.
Definition: YCPMap.h:184
static int variable_not_used __attribute__((unused))
std::ostream & toXml(std::ostream &str, int indent) const
Definition: YCPMap.cc:244
YCPValue key() const __attribute__((deprecated))
Definition: YCPMap.h:170
long size() const
Definition: YCPMap.h:203
YCPMapIterator begin() const
Definition: YCPMap.cc:36
virtual const YCPElementRep * shallowCopy() const
Definition: YCPMap.cc:115
YCPMapIterator end() const
Definition: YCPMap.cc:43
YCPMapRep::const_reference const_reference
Definition: YCPMap.h:193
YCPOrder
Definition: YCPValue.h:57
YCPOrder compare(const YCPMap &v) const
Definition: YCPMap.cc:160
YCPMapRep::const_iterator const_iterator
Definition: YCPMap.h:191
YCPValueYCPValueMap::iterator iterator
Definition: YCPMap.h:53
YCPValue value(const YCPValue &key) const
Definition: YCPMap.cc:148
Abstract base class of all YCP values. Abstract base class of all YCP elements that can be used as pr...
Definition: YCPValue.h:71
Abstract base class of all YCP elements.
Definition: YCPElement.h:222
#define CONST_ELEMENT
Definition: YCPMap.h:175
#define ELEMENT
Definition: YCPMap.h:176
YCPMapIterator begin() const
Definition: YCPMap.h:206
YCPMapRep::iterator iterator
Definition: YCPMap.h:190
YCPValueYCPValueMap::const_reference const_reference
Definition: YCPMap.h:56
Wrapper for YCPValueRep This class realizes an automatic memory management via YCPElement. Access the functionality of YCPValueRep with the arrow operator. See YCPValueRep.
Definition: YCPValue.h:275
YCPValue value() const __attribute__((deprecated))
Definition: YCPMap.h:171
std::ostream & toStream(std::ostream &str) const
Definition: YCPMap.cc:229
long size() const
Definition: YCPMap.cc:134
YCPMapRep::key_compare key_compare
Definition: YCPMap.h:194
An istream that remembers some data about the bytecode.
Definition: Bytecode.h:42
bool isEmpty() const
Definition: YCPMap.cc:127
YCPValueYCPValueMap::key_compare key_compare
Definition: YCPMap.h:57
YCPMap functionalAdd(const YCPValue &key, const YCPValue &value) const
Definition: YCPMap.cc:79
YCPValueYCPValueMap::const_iterator const_iterator
Definition: YCPMap.h:54