Wrapper for YCPTermRep This class realizes an automatic memory management via YCPElement. Access the functionality of YCPTermRep with the arrow operator. See YCPTermRep. More...
#include <YCPTerm.h>
Public Member Functions | |
YCPTerm (const string &s) | |
YCPTerm (const string &s, const YCPList &l) | |
YCPTerm (bytecodeistream &str) | |
string | name () const |
YCPList | args () const |
YCPTerm | functionalAdd (const YCPValue &value) const |
bool | isEmpty () const |
int | size () const |
void | reserve (int size) |
YCPValue | value (int n) const |
void | set (const int n, const YCPValue &value) |
void | add (const YCPValue &value) |
Private Member Functions | |
DEF_COW_COMMON (Term, Value) |
Wrapper for YCPTermRep This class realizes an automatic memory management via YCPElement. Access the functionality of YCPTermRep with the arrow operator. See YCPTermRep.
YCPTerm::YCPTerm | ( | const string & | s | ) | [inline] |
YCPTerm::YCPTerm | ( | const string & | s, | |
const YCPList & | l | |||
) | [inline] |
YCPTerm::YCPTerm | ( | bytecodeistream & | str | ) |
References add(), YCPElement::element, YCPElement::isNull(), Bytecode::readString(), YCPList::size(), and YCPList::value().
void YCPTerm::add | ( | const YCPValue & | value | ) | [inline] |
References ELEMENT.
Referenced by StdioSCRAgent::Dir(), StdioSCRAgent::Error(), YETerm::evaluate(), StdioSCRAgent::Execute(), ScriptingAgent::executeSubagentCommand(), IniAgent::generateSysConfigTemplate(), StdioSCRAgent::Read(), StdioSCRAgent::RegisterAgent(), Y2StdioComponent::result(), Y2SerialComponent::result(), Y2ProgramComponent::result(), t_toterm2(), StdioSCRAgent::UnregisterAgent(), StdioSCRAgent::Write(), and YCPTerm().
YCPList YCPTerm::args | ( | ) | const [inline] |
References CONST_ELEMENT.
Referenced by YCPTermRep::compare(), Y2AgentComp< Agent >::evaluate(), AnyAgent::parseData(), t_argsof(), t_remove(), and AnyAgent::unparseData().
YCPTerm::DEF_COW_COMMON | ( | Term | , | |
Value | ||||
) | [private] |
References CONST_ELEMENT.
Referenced by t_add().
bool YCPTerm::isEmpty | ( | ) | const [inline] |
References CONST_ELEMENT.
string YCPTerm::name | ( | ) | const [inline] |
References CONST_ELEMENT.
Referenced by YCPTermRep::compare(), AnyAgent::evalArg(), Y2AgentComp< Agent >::evaluate(), AnyAgent::findSyntax(), ScriptingAgent::otherCommand(), ResolverAgent::otherCommand(), ProcessAgent::otherCommand(), ModulesAgent::otherCommand(), IniAgent::otherCommand(), DummyAgent::otherCommand(), AnyAgent::otherCommand(), AnyAgent::parseData(), t_remove(), t_symbolof(), AnyAgent::unparseData(), AnyAgent::unparseList(), and AnyAgent::unparseTuple().
void YCPTerm::reserve | ( | int | size | ) | [inline] |
References ELEMENT.
void YCPTerm::set | ( | const int | n, | |
const YCPValue & | value | |||
) | [inline] |
References ELEMENT, and value().
Referenced by YSBracket::commit().
int YCPTerm::size | ( | ) | const [inline] |
References CONST_ELEMENT.
Referenced by AnyAgent::evalArg(), YEBracket::evaluate(), AnyAgent::findSyntax(), ScriptingAgent::otherCommand(), ResolverAgent::otherCommand(), ModulesAgent::otherCommand(), IniAgent::otherCommand(), DummyAgent::otherCommand(), AnyAgent::otherCommand(), AnyAgent::parseData(), run_agent_instance(), t_size(), and AnyAgent::unparseData().
YCPValue YCPTerm::value | ( | int | n | ) | const [inline] |
References CONST_ELEMENT.
Referenced by YSBracket::commit(), AnyAgent::evalArg(), YEBracket::evaluate(), AnyAgent::findSyntax(), ScriptingAgent::otherCommand(), ResolverAgent::otherCommand(), ModulesAgent::otherCommand(), IniAgent::otherCommand(), DummyAgent::otherCommand(), AnyAgent::otherCommand(), AnyAgent::parseData(), run_agent_instance(), set(), and AnyAgent::unparseData().