YCPElement Class Reference

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

#include <YCPElement.h>

Inheritance diagram for YCPElement:

YCPValue YCPBoolean YCPBreak YCPByteblock YCPCode YCPEntry YCPExternal YCPFloat YCPInteger YCPList YCPMap YCPPath YCPReference YCPReturn YCPString YCPSymbol YCPTerm YCPVoid

List of all members.

Public Member Functions

 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

Protected Member Functions

const YCPElementRepwriteCopy ()

Protected Attributes

const YCPElementRepelement

Private Member Functions

 DEF_OPS (Element)


Detailed Description

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

Constructor & Destructor Documentation

YCPElement::YCPElement (  ) 

YCPElement::YCPElement ( const YCPNull  ) 

YCPElement::YCPElement ( const YCPElementRep e  ) 

YCPElement::YCPElement ( const YCPElement e  ) 

YCPElement::~YCPElement (  ) 


Member Function Documentation

YCPElement::DEF_OPS ( Element   )  [private]

bool YCPElement::isNull (  )  const [inline]

References element.

Referenced by Y2YCPFunction::appendParameter(), Y2StdioFunction::appendParameter(), Y2WFMComponent::Args(), b_and(), b_lnot(), b_or(), b_size(), b_tobyteblock(), YEPropagate::canPropagate(), DummyAgent::checkPath(), Y2WFMComponent::ClientExists(), YSBracket::commit(), YCPValueRep::compare(), StdioSCRAgent::Dir(), ScriptingAgent::Dir(), DummyAgent::Dir(), Y2StdioComponent::doActualWork(), Y2ProgramComponent::doActualWork(), dump_value(), StdioSCRAgent::Error(), ScriptingAgent::Error(), Eval(), AnyAgent::evalArg(), YSSwitch::evaluate(), YSDo::evaluate(), YSRepeat::evaluate(), YSWhile::evaluate(), YSIf::evaluate(), YSBracket::evaluate(), YSAssign::evaluate(), YSReturn::evaluate(), YEFunctionPointer::evaluate(), YEFunction::evaluate(), YEBuiltin::evaluate(), YEBracket::evaluate(), YEIs::evaluate(), YETriple::evaluate(), YEBinary::evaluate(), YEUnary::evaluate(), YEPropagate::evaluate(), YEMap::evaluate(), YEList::evaluate(), YELocale::evaluate(), YECompare::evaluate(), YETerm::evaluate(), YEReference::evaluate(), YEVariable::evaluate(), YConst::evaluate(), YBlock::evaluate(), Y2StdioComponent::evaluate(), Y2SerialComponent::evaluate(), Y2ProgramComponent::evaluate(), Y2YCPFunction::evaluateCall(), Y2StdioFunction::evaluateCall(), YBlock::evaluateFrom(), StdioSCRAgent::Execute(), ScriptingAgent::Execute(), DummyAgent::Execute(), ScriptingAgent::executeSubagentCommand(), f_abs(), f_ceil(), f_div(), f_floor(), f_minus(), f_mult(), f_neg(), f_plus(), f_pow(), f_tofloat(), f_tolstring(), f_tostring(), f_trunc(), fillCache(), flushCache(), getBeginEndType(), AnyAgent::getLine(), IniBase::getMapInteger(), IniBase::getMapString(), getParamsType(), i_and(), i_bnot(), i_div(), i_left(), i_minus(), i_mod(), i_mult(), i_neg(), i_or(), i_plus(), i_right(), i_tointeger(), i_xor(), IniParser::initMachine(), l_add(), l_changelist(), l_filter(), l_find(), l_flatten(), l_foreach(), l_listmap(), l_lsortlist(), l_maplist(), l_mergelist(), l_prepend(), l_reduce_helper(), l_remove(), l_select(), l_size(), l_sort(), l_sortlist(), l_splitstring(), l_sublist1(), l_sublist2(), l_swaplist(), l_tolist(), l_unionlist(), m_addmap(), m_changemap(), m_filter(), m_foreach(), m_haskey(), m_maplist(), m_mapmap(), m_remove(), m_size(), m_tomap(), m_unionmap(), main(), Type::matchvalue(), SCRSubAgent::mount(), ScriptingAgent::MountAllAgents(), YCPCodeCompare::operator()(), p_add(), p_plus(), p_size(), p_topath(), parse_client_and_options(), AnyAgent::parseChoice(), AnyAgent::parseData(), AnyAgent::parseList(), AnyAgent::parseSequence(), AnyAgent::parseTuple(), processfile(), Random(), Y2WFMComponent::Read(), StdioSCRAgent::Read(), ScriptingAgent::Read(), ResolverAgent::Read(), ModulesAgent::Read(), DummyAgent::Read(), AnyAgent::readValueByPath(), Y2StdioComponent::receive(), Y2ProgramComponent::receiveFromExternal(), StdioSCRAgent::RegisterAgent(), run_agent_instance(), s_crypt(), s_cryptbigcrypt(), s_cryptblowfish(), s_cryptmd5(), s_dgettext(), s_dngettext(), s_dpgettext(), s_filterchars(), s_find(), s_findfirstnotof(), s_findfirstof(), s_findlastnotof(), s_findlastof(), s_issubstring(), s_lsubstring1(), s_lsubstring2(), s_mergestring(), s_plus1(), s_plus2(), s_plus3(), s_plus4(), s_regexpmatch(), s_regexppos(), s_regexpsub(), s_regexptokenize(), s_removechars(), s_search(), s_sformat(), s_size(), s_substring1(), s_substring2(), s_timestring(), s_toascii(), s_tohexstring1(), s_tohexstring2(), s_tolower(), s_tostring(), s_toupper(), SCRExecute2(), SCRExecute3(), SCRWrite2(), SCRWrite3(), Y2StdioComponent::send(), IniSection::setAllDoIt(), Y2WFMComponent::SetLanguage(), IniSection::setMyValue(), IniSection::setSectionProp(), SymbolEntry::setValue(), Sleep(), Srandom2(), WFMSubAgent::start_and_check(), t_add(), t_argsof(), t_remove(), t_select(), t_size(), t_symbolof(), t_toterm1(), t_toterm2(), YConst::toStream(), YConst::toString(), YConst::toXml(), AnyAgent::unparseBoolean(), AnyAgent::unparseData(), AnyAgent::unparseFloat(), AnyAgent::unparseHexval(), AnyAgent::unparseHostname(), AnyAgent::unparseIp4Number(), AnyAgent::unparseList(), AnyAgent::unparseNumber(), AnyAgent::unparseSeparator(), AnyAgent::unparseString(), AnyAgent::unparseTuple(), AnyAgent::unparseUsername(), AnyAgent::unparseVerbose(), StdioSCRAgent::UnregisterAgent(), AnyAgent::validateCache(), SymbolEntry::value(), StdioSCRAgent::Write(), ScriptingAgent::Write(), ResolverAgent::Write(), ModulesAgent::Write(), DummyAgent::Write(), AnyAgent::Write(), AnyAgent::writeFile(), Bytecode::writeValue(), AnyAgent::writeValueByPath(), Y2Log(), Y2UserItem(), Y2UserNote(), YConst::YConst(), YCPTerm::YCPTerm(), and YSSwitch::YSSwitch().

const YCPElement & YCPElement::operator= ( const YCPElement e  ) 

bool YCPElement::refersToSameElementAs ( const YCPElement e  )  const [inline]

References element.

const YCPElementRep* YCPElement::writeCopy (  )  [inline, protected]

Use this method to get an element which is ready to change. This will ensure copy-on-write semantics

References YCPElementRep::clone(), YCPElementRep::destroy(), element, old(), YCPElementRep::reference_counter, and YCPElementRep::shallowCopy().


Member Data Documentation

const YCPElementRep* YCPElement::element [protected]


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

Generated on a sunny day for yast2-core by doxygen 1.5.9