yast2-core
|
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>
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 | reverse () |
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 |
![]() | |
YCPValue () | |
![]() | |
YCPElement () | |
YCPElement (const YCPNull &) | |
YCPElement (const YCPElementRep *e) | |
YCPElement (const YCPElement &e) | |
~YCPElement () | |
const YCPElement & | operator= (const YCPElement &e) |
bool | isNull () const |
bool | refersToSameElementAs (const YCPElement &e) const |
Private Member Functions | |
DEF_COW_COMMON (List, Value) | |
Additional Inherited Members | |
![]() | |
const YCPElementRep * | writeCopy () |
![]() | |
const YCPElementRep * | element |
Wrapper for YCPListRep This class realizes an automatic memory management via YCPElement. Access the functionality of YCPListRep with the arrow operator. See YCPListRep.
|
inline |
YCPList::YCPList | ( | bytecodeistream & | str | ) |
References YCPElement::element, Bytecode::readInt32(), Bytecode::readValue(), reserve(), set(), and value().
|
inline |
References ELEMENT.
Referenced by YCPTermRep::add(), YSBracket::commit(), ResolverAgent::Dir(), DummyAgent::Dir(), AnyAgent::Dir(), IniSection::Dir(), ScriptingAgent::dirSubagents(), Y2WFMComponent::doActualWork(), YEList::evaluate(), YEBuiltin::evaluate(), fillCache(), YCPListRep::functionalAdd(), IniAgent::generateSysConfigTemplate(), IniSection::getAllDoIt(), IniSection::getMyValue(), IniSection::getSectionProp(), l_changelist(), l_filter(), l_flatten(), l_maplist(), l_mergelist(), l_splitstring(), l_sublist1(), l_sublist2(), l_unionlist(), m_maplist(), main(), map2list(), IniSection::myDir(), DummyAgent::otherCommand(), parse_client_and_options(), parse_server_and_options(), AnyAgent::readFile(), s_regexppos(), s_regexptokenize(), IniSection::setMyValue(), IniSection::setSectionProp(), AnyAgent::Write(), and Y2WFMComponent::Y2WFMComponent().
|
inline |
References CONST_ELEMENT.
Referenced by l_filter(), l_find(), l_foreach(), l_listmap(), l_maplist(), l_reduce1(), l_reduce2(), l_setcontains(), l_toset(), map2list(), ms_difference(), ms_includes(), ms_intersection(), ms_merge(), ms_symmetric_difference(), and ms_union().
|
inline |
References CONST_ELEMENT.
Referenced by YCPTermRep::toString().
|
inline |
References CONST_ELEMENT.
Referenced by l_contains(), l_unionlist(), and main().
|
private |
|
inline |
References CONST_ELEMENT.
Referenced by l_filter(), l_find(), l_foreach(), l_listmap(), l_maplist(), l_reduce1(), l_reduce2(), l_setcontains(), l_toset(), ms_difference(), ms_includes(), ms_intersection(), ms_merge(), ms_symmetric_difference(), and ms_union().
|
inline |
References CONST_ELEMENT.
Referenced by YCPTermRep::functionalAdd(), and l_prepend().
|
inline |
References CONST_ELEMENT.
Referenced by DummyAgent::Dir(), DummyAgent::Execute(), YCPTermRep::isEmpty(), l_isempty(), l_reduce1(), DummyAgent::Read(), s_mergestring(), and DummyAgent::Write().
|
inline |
References ELEMENT.
Referenced by l_lsortlist().
|
inline |
References ELEMENT.
Referenced by Y2WFMComponent::doActualWork(), l_remove(), and t_remove().
|
inline |
References ELEMENT.
Referenced by YCPListRep::functionalAdd(), YCPTermRep::reserve(), and YCPList().
|
inline |
References ELEMENT.
Referenced by l_reverselist().
|
inline |
References ELEMENT.
Referenced by YSBracket::commit(), YCPTermRep::set(), and YCPList().
|
inline |
References CONST_ELEMENT.
Referenced by YEPropagate::canPropagate(), YSBracket::commit(), YCPListRep::compare(), ScriptingAgent::dirSubagents(), Y2WFMComponent::doActualWork(), Y2SerialComponent::doActualWork(), Y2ProgramComponent::doActualWork(), dump_value(), AnyAgent::evalArg(), Y2AgentComp< Agent >::evaluate(), YEBracket::evaluate(), DummyAgent::Execute(), flushCache(), AnyAgent::getLine(), IniParser::initFiles(), isYCPStringPair(), l_flatten(), l_mergelist(), l_remove(), l_sublist1(), l_sublist2(), l_swaplist(), l_unionlist(), main(), Type::matchvalue(), AnyAgent::parseChoice(), AnyAgent::parseSequence(), AnyAgent::parseTuple(), DummyAgent::Read(), AnyAgent::Read(), s_mergestring(), s_sformat(), IniSection::setAllDoIt(), IniSection::setMyValue(), IniSection::setSectionProp(), YCPTermRep::size(), t_remove(), t_select(), t_toterm2(), AnyAgent::unparseList(), AnyAgent::unparseTuple(), DummyAgent::Write(), AnyAgent::Write(), and YCPTerm::YCPTerm().
|
inline |
References ELEMENT.
Referenced by l_sortlist().
|
inline |
References ELEMENT.
Referenced by l_swaplist().
|
inline |
References CONST_ELEMENT.
Referenced by Y2WFMComponent::Args(), YEPropagate::canPropagate(), YSBracket::commit(), YCPListRep::compare(), DummyAgent::Dir(), ScriptingAgent::dirSubagents(), Y2WFMComponent::doActualWork(), Y2ProgramComponent::doActualWork(), dump_value(), AnyAgent::evalArg(), Y2AgentComp< Agent >::evaluate(), YEBracket::evaluate(), DummyAgent::Execute(), flushCache(), AnyAgent::getLine(), IniParser::initFiles(), IniParser::initMachine(), isYCPStringPair(), l_flatten(), l_mergelist(), l_sublist1(), l_sublist2(), l_unionlist(), main(), Type::matchvalue(), AnyAgent::parseChoice(), AnyAgent::parseList(), AnyAgent::parseSequence(), AnyAgent::parseTuple(), DummyAgent::Read(), AnyAgent::Read(), s_mergestring(), s_sformat(), IniSection::setAllDoIt(), IniSection::setMyValue(), IniSection::setSectionProp(), t_select(), t_toterm2(), AnyAgent::unparseList(), AnyAgent::unparseTuple(), YCPTermRep::value(), DummyAgent::Write(), AnyAgent::Write(), YCPList(), and YCPTerm::YCPTerm().