#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) |
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] |
bool YCPList::contains | ( | const YCPValue & | value | ) | const [inline] |
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] |
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] |
void YCPList::remove | ( | const int | n | ) | [inline] |
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] |
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] |
void YCPList::swap | ( | int | x, | |
int | y | |||
) | [inline] |
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().