#include <YCPList.h>

Public Member Functions | |
| YCPList () | |
| YCPList (bytecodeistream &str) | |
| int | size () const |
| void | reserve (int size) |
| bool | isEmpty () const |
| void | add (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 |
| YCPListIterator | begin () const |
| YCPListIterator | end () const |
| string | commaList () const |
Private Member Functions | |
| DEF_COW_COMMON (List, Value) | |
| YCPList::YCPList | ( | ) | [inline] |
| YCPList::YCPList | ( | bytecodeistream & | str | ) |
References YCPElement::element, Bytecode::readInt32(), Bytecode::readValue(), reserve(), and value().
| YCPList::DEF_COW_COMMON | ( | List | , | |
| Value | ||||
| ) | [private] |
| int YCPList::size | ( | ) | const [inline] |
References CONST_ELEMENT.
Referenced by DBusMsg::addYCPValueRaw(), YEPropagate::canPropagate(), YSBracket::commit(), YCPListRep::compare(), ScriptingAgent::dirSubagents(), Y2WFMComponent::doActualWork(), Y2SerialComponent::doActualWork(), Y2ProgramComponent::doActualWork(), dump_value(), AnyAgent::evalArg(), YEBracket::evaluate(), Y2AgentComp< Agent >::evaluate(), DummyAgent::Execute(), flushCache(), AnyAgent::getLine(), IniParser::initFiles(), isYCPStringPair(), l_contains(), l_filter(), l_find(), l_flatten(), l_foreach(), l_listmap(), l_maplist(), l_mergelist(), l_reduce1(), l_reduce2(), l_remove(), l_setcontains(), l_sublist1(), l_sublist2(), l_toset(), 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().
| void YCPList::reserve | ( | int | size | ) | [inline] |
References ELEMENT.
Referenced by YCPListRep::functionalAdd(), YCPTermRep::reserve(), and YCPList().
| bool YCPList::isEmpty | ( | ) | const [inline] |
References CONST_ELEMENT.
Referenced by DummyAgent::Dir(), DummyAgent::Execute(), YCPTermRep::isEmpty(), DummyAgent::Read(), s_mergestring(), and DummyAgent::Write().
| void YCPList::add | ( | const YCPValue & | value | ) | [inline] |
References ELEMENT, and value().
Referenced by YCPTermRep::add(), YSBracket::commit(), ResolverAgent::Dir(), IniSection::Dir(), DummyAgent::Dir(), AnyAgent::Dir(), ScriptingAgent::dirSubagents(), Y2WFMComponent::doActualWork(), YEBuiltin::evaluate(), YEList::evaluate(), fillCache(), YCPListRep::functionalAdd(), IniAgent::generateSysConfigTemplate(), IniSection::getAllDoIt(), IniSection::getMyValue(), IniSection::getSectionProp(), DBusMsg::getYCPValueRaw(), l_changelist(), l_filter(), l_flatten(), l_maplist(), l_mergelist(), l_splitstring(), l_sublist1(), l_sublist2(), l_toset(), 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().
| void YCPList::set | ( | const int | n, | |
| const YCPValue & | value | |||
| ) | [inline] |
| void YCPList::remove | ( | const int | n | ) | [inline] |
| void YCPList::swap | ( | int | x, | |
| int | y | |||
| ) | [inline] |
References ELEMENT.
| bool YCPList::contains | ( | const YCPValue & | value | ) | const [inline] |
| void YCPList::sortlist | ( | ) | [inline] |
| void YCPList::lsortlist | ( | ) | [inline] |
| void YCPList::fsortlist | ( | const YCPCodeCompare & | cmp | ) | [inline] |
| YCPValue YCPList::value | ( | int | n | ) | const [inline] |
References CONST_ELEMENT.
Referenced by add(), DBusMsg::addYCPValueRaw(), Y2WFMComponent::Args(), YEPropagate::canPropagate(), YSBracket::commit(), YCPListRep::compare(), DummyAgent::Dir(), ScriptingAgent::dirSubagents(), Y2WFMComponent::doActualWork(), Y2ProgramComponent::doActualWork(), dump_value(), AnyAgent::evalArg(), YEBracket::evaluate(), Y2AgentComp< Agent >::evaluate(), DummyAgent::Execute(), flushCache(), AnyAgent::getLine(), IniParser::initFiles(), IniParser::initMachine(), isYCPStringPair(), l_contains(), l_filter(), l_find(), l_flatten(), l_foreach(), l_listmap(), l_maplist(), l_mergelist(), l_reduce1(), l_reduce2(), l_setcontains(), l_sublist1(), l_sublist2(), l_toset(), l_unionlist(), main(), Type::matchvalue(), AnyAgent::parseChoice(), AnyAgent::parseList(), AnyAgent::parseSequence(), AnyAgent::parseTuple(), DummyAgent::Read(), AnyAgent::Read(), s_mergestring(), s_sformat(), set(), IniSection::setAllDoIt(), IniSection::setMyValue(), IniSection::setSectionProp(), t_select(), t_toterm2(), AnyAgent::unparseList(), AnyAgent::unparseTuple(), YCPTermRep::value(), DummyAgent::Write(), AnyAgent::Write(), YCPList(), and YCPTerm::YCPTerm().
| YCPListIterator YCPList::begin | ( | ) | const [inline] |
References CONST_ELEMENT.
Referenced by map2list(), s_difference(), s_intersection(), s_symmetric_difference(), and s_union().
| YCPListIterator YCPList::end | ( | ) | const [inline] |
References CONST_ELEMENT.
Referenced by s_difference(), s_intersection(), s_symmetric_difference(), and s_union().
| string YCPList::commaList | ( | ) | const [inline] |
1.5.6