yast2-core
Public Types | Public Member Functions | Private Member Functions | List of all members
YCPList Class Reference

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

#include <YCPList.h>

Inheritance diagram for YCPList:
YCPValue YCPElement

Public Types

typedef YCPListRep::iterator iterator
 
typedef YCPListRep::const_iterator const_iterator
 
typedef YCPListRep::value_type value_type
 
typedef YCPListRep::const_reference const_reference
 

Public Member Functions

 YCPList ()
 
 YCPList (bytecodeistream &str)
 
int size () const
 
void reserve (int size)
 
bool isEmpty () const
 
void add (const YCPValue &value)
 
void push_back (const YCPValue &value)
 
void set (const int n, const YCPValue &value)
 
void remove (const int n)
 
void reverse ()
 
void swap (int x, int y)
 
bool contains (const YCPValue &value) const
 
void sortlist ()
 
void lsortlist ()
 
void fsortlist (const YCPCodeCompare &cmp)
 
YCPList functionalAdd (const YCPValue &value, bool prepend=false) const
 
YCPValue value (int n) const
 
const_iterator begin () const
 
const_iterator end () const
 
string commaList () 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 (List, Value)
 

Additional Inherited Members

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

Detailed Description

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

Member Typedef Documentation

Constructor & Destructor Documentation

YCPList::YCPList ( )
inline
YCPList::YCPList ( bytecodeistream str)

Member Function Documentation

void YCPList::add ( const YCPValue value)
inline
const_iterator YCPList::begin ( ) const
inline
string YCPList::commaList ( ) const
inline

References CONST_ELEMENT.

Referenced by YCPTermRep::toString().

bool YCPList::contains ( const YCPValue value) const
inline

References CONST_ELEMENT.

Referenced by l_contains(), l_unionlist(), and main().

YCPList::DEF_COW_COMMON ( List  ,
Value   
)
private
const_iterator YCPList::end ( ) const
inline
void YCPList::fsortlist ( const YCPCodeCompare cmp)
inline

References ELEMENT.

Referenced by l_sort().

YCPList YCPList::functionalAdd ( const YCPValue value,
bool  prepend = false 
) const
inline

References CONST_ELEMENT.

Referenced by YCPTermRep::functionalAdd(), and l_prepend().

bool YCPList::isEmpty ( ) const
inline
void YCPList::lsortlist ( )
inline

References ELEMENT.

Referenced by l_lsortlist().

void YCPList::push_back ( const YCPValue value)
inline

References ELEMENT.

void YCPList::remove ( const int  n)
inline

References ELEMENT.

Referenced by Y2WFMComponent::doActualWork(), l_remove(), and t_remove().

void YCPList::reserve ( int  size)
inline
void YCPList::reverse ( )
inline

References ELEMENT.

Referenced by l_reverselist().

void YCPList::set ( const int  n,
const YCPValue value 
)
inline

References ELEMENT.

Referenced by YSBracket::commit(), YCPTermRep::set(), and YCPList().

int YCPList::size ( ) const
inline
void YCPList::sortlist ( )
inline

References ELEMENT.

Referenced by l_sortlist().

void YCPList::swap ( int  x,
int  y 
)
inline

References ELEMENT.

Referenced by l_swaplist().

YCPValue YCPList::value ( int  n) 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.8