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

List of all members.

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 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
YCPListIterator begin () const
YCPListIterator end () const
string commaList () const

Private Member Functions

 DEF_COW_COMMON (List, Value)


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

YCPList::DEF_COW_COMMON ( List  ,
Value   
) [private]

int YCPList::size (  )  const [inline]

void YCPList::reserve ( int  size  )  [inline]

bool YCPList::isEmpty (  )  const [inline]

void YCPList::add ( const YCPValue value  )  [inline]

void YCPList::push_back ( const YCPValue value  )  [inline]

References ELEMENT.

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

References ELEMENT, and value().

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

void YCPList::remove ( const int  n  )  [inline]

References ELEMENT.

Referenced by l_remove(), and t_remove().

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

References ELEMENT.

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

References CONST_ELEMENT.

Referenced by main().

void YCPList::sortlist (  )  [inline]

References ELEMENT.

Referenced by l_sortlist().

void YCPList::lsortlist (  )  [inline]

References ELEMENT.

Referenced by l_lsortlist().

void YCPList::fsortlist ( const YCPCodeCompare cmp  )  [inline]

References ELEMENT.

Referenced by l_sort().

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

YCPValue YCPList::value ( int  n  )  const [inline]

YCPListIterator YCPList::begin (  )  const [inline]

YCPListIterator YCPList::end (  )  const [inline]

string YCPList::commaList (  )  const [inline]

References CONST_ELEMENT.

Referenced by YCPTermRep::toString().


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

Generated on Fri Feb 3 17:26:19 2012 for yast2-core by  doxygen 1.5.6