yast2-core
Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | List of all members
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

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(), 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(), YEVariable::evaluate(), Y2StdioComponent::evaluate(), Y2SerialComponent::evaluate(), YEReference::evaluate(), Y2ProgramComponent::evaluate(), YETerm::evaluate(), YECompare::evaluate(), YBlock::evaluate(), YELocale::evaluate(), YSReturn::evaluate(), YEList::evaluate(), YEMap::evaluate(), YEPropagate::evaluate(), YEUnary::evaluate(), YSAssign::evaluate(), YEBinary::evaluate(), YConst::evaluate(), YSBracket::evaluate(), YETriple::evaluate(), YSIf::evaluate(), YEIs::evaluate(), YSWhile::evaluate(), YEBracket::evaluate(), YSRepeat::evaluate(), YSDo::evaluate(), YEBuiltin::evaluate(), YEFunction::evaluate(), YEFunctionPointer::evaluate(), YSSwitch::evaluate(), Y2YCPFunction::evaluateCall(), YBlock::evaluateFrom(), StdioSCRAgent::Execute(), DummyAgent::Execute(), ScriptingAgent::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_tointeger1(), 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_reverselist(), 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(), YCPDebugger::print_variable(), processfile(), Random(), ResolverAgent::Read(), StdioSCRAgent::Read(), ModulesAgent::Read(), ScriptingAgent::Read(), DummyAgent::Read(), Y2WFMComponent::Read(), AnyAgent::readValueByPath(), Y2StdioComponent::receive(), Y2ProgramComponent::receiveFromExternal(), StdioSCRAgent::RegisterAgent(), run_agent_instance(), s_crypt(), s_cryptblowfish(), s_cryptmd5(), s_cryptsha256(), s_cryptsha512(), s_dgettext(), s_dngettext(), s_dpgettext(), s_filterchars(), s_find(), s_findfirstnotof(), s_findfirstof(), s_findlastnotof(), s_findlastof(), s_issubstring(), 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(), switch(), 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(), ResolverAgent::Write(), StdioSCRAgent::Write(), ModulesAgent::Write(), ScriptingAgent::Write(), DummyAgent::Write(), AnyAgent::Write(), AnyAgent::writeFile(), Bytecode::writeValue(), AnyAgent::writeValueByPath(), xml2ycp(), Y2Log(), Y2UserItem(), Y2UserNote(), YConst::YConst(), YCPTerm::YCPTerm(), YMLParser(), and YSSwitch::YSSwitch().

const YCPElement & YCPElement::operator= ( const YCPElement e)
bool YCPElement::refersToSameElementAs ( const YCPElement e) const
inline

References element.

const YCPElementRep* YCPElement::writeCopy ( )
inlineprotected

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