93 ycVoid, ycBoolean, ycInteger, ycFloat,
177 virtual ykind kind()
const = 0;
200 virtual std::ostream & toStream (std::ostream &
str)
const = 0;
209 virtual std::ostream & toXml (std::ostream &
str,
int indent )
const = 0;
216 std::string commentToXml ()
const;
220 std::ostream & commentToXml (std::ostream &
str )
const;
227 virtual bool isConstant ()
const;
234 bool isError ()
const;
241 virtual bool isStatement ()
const;
248 virtual bool isBlock ()
const;
255 virtual bool isReferenceable ()
const;
264 virtual YCPValue evaluate (
bool cse =
false);
271 virtual constTypePtr
type()
const;
277 void setCommentBefore(
const char *
comment);
283 void setCommentAfter(
const char *
comment);
303 virtual ykind kind()
const;
305 std::ostream & toStream (std::ostream &
str)
const;
306 std::ostream & toXml (std::ostream & str,
int indent )
const;
309 YCPValue evaluate (
bool cse =
false);
310 constTypePtr
type()
const;
313 #include <unordered_map> 334 return strcmp(s1, s2) == 0;
342 static t_uniquedomains::const_iterator setDomainStatus (
const string& domain,
bool status);
343 static void ensureBindDomain (
const string& domain);
344 static void bindDomainDir (
const string& domain,
const string& domain_path);
345 static bool findDomain(
const string& domain);
346 YLocale (
const char *locale,
const char *textdomain);
350 const char *value ()
const;
351 const char *domain ()
const;
353 std::ostream & toStream (std::ostream &
str)
const;
354 std::ostream & toXml (std::ostream & str,
int indent )
const;
355 YCPValue evaluate (
bool cse =
false);
392 YFunction (YBlockPtr parameterblock,
const SymbolEntryPtr entry = 0);
398 unsigned int parameterCount ()
const;
400 SymbolEntryPtr parameter (
unsigned int position)
const;
403 YCodePtr definition ()
const;
404 void setDefinition (YBlockPtr body);
405 void setDefinition (YBreakpointPtr body);
409 string toStringDeclaration ()
const;
411 std::ostream & toStreamDefinition (std::ostream & str )
const;
412 std::ostream & toXmlDefinition (std::ostream & str,
int indent )
const;
413 std::ostream & toStream (std::ostream & str )
const;
414 std::ostream & toXml (std::ostream & str,
int indent )
const;
415 virtual YCPValue evaluate (
bool cse =
false);
416 constTypePtr
type()
const;
YCode for precompiled ycp code.
Definition: YCode.h:75
#define str
Definition: scanner.cc:1003
const char * comment_before
Definition: YCode.h:83
Definition: YExpression.h:158
~YConst()
Definition: YCode.h:301
#define REP_BODY(NAME)
Definition: RepDef.h:38
bool m_is_global
Definition: YCode.h:389
static const constTypePtr Locale
Definition: Type.h:127
virtual ykind kind() const
Definition: YCode.h:395
t_uniquedomains::const_iterator m_domain
Definition: YCode.h:360
ykind m_kind
Definition: YCode.h:296
ykind
Definition: YCode.h:90
#define comment
Definition: scanner.cc:1004
static t_uniquedomains domains
Definition: YCode.h:341
constTypePtr type() const
Definition: YCode.h:356
struct ycodelist * next
Definition: YCode.h:59
bool operator()(const char *s1, const char *s2) const
Definition: YCode.h:332
const char * comment_after
Definition: YCode.h:84
unordered_map< const char *, bool, hash< const char * >, eqstr > t_uniquedomains
Definition: YCode.h:339
YCodePtr code
Definition: YCode.h:60
Definition: StaticDeclaration.h:71
const char * m_locale
Definition: YCode.h:328
YCPValue m_value
Definition: YCode.h:297
YCodePtr m_definition
Definition: YCode.h:387
virtual bool isConstant() const
Definition: YCode.h:308
constTypePtr type
Definition: YCode.h:61
string toString(int d)
Definition: toString.h:38
YBlockPtr m_declaration
Definition: YCode.h:384
Wrapper for YCPValueRep This class realizes an automatic memory management via YCPElement. Access the functionality of YCPValueRep with the arrow operator. See YCPValueRep.
Definition: YCPValue.h:275
Base class for reference counted objects.
Definition: Rep.h:46
YCP Constant.
Definition: YCode.h:293
An istream that remembers some data about the bytecode.
Definition: Bytecode.h:42
Definition: MemUsage.h:37
virtual ykind kind() const
Definition: YCode.h:349