YCPMap Class Reference

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>

Inheritance diagram for YCPMap:
YCPValue YCPElement

List of all members.

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)

Detailed Description

Wrapper for YCPMapRep This class realizes an automatic memory management via YCPElement. Access the functionality of YCPMapRep with the arrow operator. See YCPMapRep.


Member Typedef Documentation


Constructor & Destructor Documentation

YCPMap::YCPMap (  )  [inline]
YCPMap::YCPMap ( bytecodeistream str  ) 

Member Function Documentation

void YCPMap::add ( const YCPValue key,
const YCPValue value 
) [inline]
YCPMapIterator YCPMap::begin (  )  const [inline]
YCPMap::DEF_COW_COMMON ( Map  ,
Value   
) [private]
YCPMapIterator YCPMap::end (  )  const [inline]
YCPMap YCPMap::functionalAdd ( const YCPValue key,
const YCPValue value 
) const [inline]
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]
YCPValue YCPMap::value ( const YCPValue key  )  const [inline]

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

Generated on a sunny day for yast2-core by doxygen 1.6.3