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
const_iterator begin () const
const_iterator 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

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]
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 l_remove(), and t_remove().

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

References ELEMENT, and value().

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

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