yast2-core
Public Member Functions | Private Member Functions
YCPTerm Class Reference

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

#include <YCPTerm.h>

Inheritance diagram for YCPTerm:
YCPValue YCPElement

List of all members.

Public Member Functions

 YCPTerm (const string &s)
 YCPTerm (const string &s, const YCPList &l)
 YCPTerm (bytecodeistream &str)
string name () const
YCPList args () const
YCPTerm functionalAdd (const YCPValue &value) const
bool isEmpty () const
int size () const
void reserve (int size)
YCPValue value (int n) const
void set (const int n, const YCPValue &value)
void add (const YCPValue &value)
- 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 (Term, Value)

Detailed Description

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


Constructor & Destructor Documentation

YCPTerm::YCPTerm ( const string &  s)
inline
YCPTerm::YCPTerm ( const string &  s,
const YCPList l 
)
inline
YCPTerm::YCPTerm ( bytecodeistream str)

Member Function Documentation

void YCPTerm::add ( const YCPValue value)
inline
YCPList YCPTerm::args ( ) const
inline
YCPTerm::DEF_COW_COMMON ( Term  ,
Value   
)
private
YCPTerm YCPTerm::functionalAdd ( const YCPValue value) const
inline

References CONST_ELEMENT.

Referenced by t_add().

bool YCPTerm::isEmpty ( ) const
inline

References CONST_ELEMENT.

string YCPTerm::name ( ) const
inline
void YCPTerm::reserve ( int  size)
inline

References ELEMENT.

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

References ELEMENT, and value().

Referenced by YSBracket::commit().

int YCPTerm::size ( ) const
inline
YCPValue YCPTerm::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.1