yast2-core
Public Types | Public Member Functions | Private Member Functions | List of all members
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

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
 
- Public Member Functions inherited from YCPValue
 YCPValue ()
 
- Public Member Functions inherited from YCPElement
 YCPElement ()
 
 YCPElement (const YCPNull &)
 
 YCPElement (const YCPElementRep *e)
 
 YCPElement (const YCPElement &e)
 
 ~YCPElement ()
 
const YCPElementoperator= (const YCPElement &e)
 
bool isNull () const
 
bool refersToSameElementAs (const YCPElement &e) const
 

Private Member Functions

 DEF_COW_COMMON (Map, Value)
 

Additional Inherited Members

- Protected Member Functions inherited from YCPElement
const YCPElementRepwriteCopy ()
 
- Protected Attributes inherited from YCPElement
const YCPElementRepelement
 

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.8.6