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 | 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 |
Private Member Functions | |
| DEF_COW_COMMON (List, Value) | |
Wrapper for YCPListRep This class realizes an automatic memory management via YCPElement. Access the functionality of YCPListRep with the arrow operator. See YCPListRep.
| YCPList::YCPList | ( | ) | [inline] |
| YCPList::YCPList | ( | bytecodeistream & | str | ) |
References YCPElement::element, Bytecode::readInt32(), Bytecode::readValue(), reserve(), and value().
| void YCPList::add | ( | const YCPValue & | value | ) | [inline] |
References ELEMENT.
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(), 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().
| const_iterator YCPList::begin | ( | ) | const [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().
| string YCPList::commaList | ( | ) | const [inline] |
References CONST_ELEMENT.
Referenced by YCPTermRep::toString().
| bool YCPList::contains | ( | const YCPValue & | value | ) | const [inline] |
References CONST_ELEMENT.
Referenced by l_contains(), l_unionlist(), and main().
| YCPList::DEF_COW_COMMON | ( | List | , | |
| Value | ||||
| ) | [private] |
| const_iterator YCPList::end | ( | ) | const [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().
| void YCPList::fsortlist | ( | const YCPCodeCompare & | cmp | ) | [inline] |
References CONST_ELEMENT.
Referenced by YCPTermRep::functionalAdd(), l_add(), and l_prepend().
| bool YCPList::isEmpty | ( | ) | const [inline] |
References CONST_ELEMENT.
Referenced by DummyAgent::Dir(), DummyAgent::Execute(), YCPTermRep::isEmpty(), l_isempty(), l_reduce1(), DummyAgent::Read(), s_mergestring(), and DummyAgent::Write().
| void YCPList::lsortlist | ( | ) | [inline] |
References ELEMENT.
Referenced by l_lsortlist().
| void YCPList::remove | ( | const int | n | ) | [inline] |
References ELEMENT.
Referenced by l_remove(), and t_remove().
| void YCPList::reserve | ( | int | size | ) | [inline] |
References ELEMENT.
Referenced by YCPListRep::functionalAdd(), YCPTermRep::reserve(), and YCPList().
| void YCPList::set | ( | const int | n, | |
| const YCPValue & | value | |||
| ) | [inline] |
References ELEMENT, and value().
Referenced by YSBracket::commit(), and YCPTermRep::set().
| int YCPList::size | ( | ) | const [inline] |
References CONST_ELEMENT.
Referenced by 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_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().
| void YCPList::sortlist | ( | ) | [inline] |
References ELEMENT.
Referenced by l_sortlist().
| void YCPList::swap | ( | int | x, | |
| int | y | |||
| ) | [inline] |
References ELEMENT.
Referenced by l_swaplist().
| YCPValue YCPList::value | ( | int | n | ) | const [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(), YEBracket::evaluate(), Y2AgentComp< Agent >::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(), 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().
1.6.3