|
Public Types |
enum | category_t {
c_unspec = 0,
c_global,
c_module,
c_variable,
c_reference,
c_function,
c_builtin,
c_typedef,
c_const,
c_namespace,
c_self,
c_predefined,
c_filename
} |
Public Member Functions |
| SymbolEntry (const Y2Namespace *name_space, unsigned int position, const char *name, category_t cat, constTypePtr type, YCodePtr payload=0) |
| SymbolEntry (const char *name, constTypePtr type, declaration_t *payload, const Y2Namespace *name_space=0) |
| SymbolEntry (const char *name, constTypePtr type, SymbolTable *payload) |
| SymbolEntry (const char *filename) |
| SymbolEntry (std::istream &str, const Y2Namespace *name_space=0) |
virtual | ~SymbolEntry () |
const Y2Namespace * | nameSpace () const |
void | setNamespace (const Y2Namespace *name_space) |
bool | onlyDeclared () const |
void | setCode (YCodePtr code) |
YCodePtr | code () const |
void | setDeclaration (declaration_t *decl) |
declaration_t * | declaration () const |
void | setTable (SymbolTable *table) |
SymbolTable * | table () const |
Y2Namespace * | payloadNamespace () const |
void | setPayloadNamespace (Y2Namespace *name_space) |
unsigned int | position () const |
void | setPosition (unsigned int position) |
bool | isGlobal () const |
bool | isModule () const |
bool | isVariable () const |
bool | isReference () const |
bool | isFunction () const |
bool | isBuiltin () const |
bool | isNamespace () const |
bool | isSelf () const |
bool | isFilename () const |
bool | isPredefined () const |
bool | likeNamespace () const |
const char * | name () const |
category_t | category () const |
void | setCategory (category_t cat) |
constTypePtr | type () const |
string | catString () const |
void | setType (constTypePtr type) |
YCPValue | setValue (YCPValue value) |
YCPValue | value () const |
void | push () |
void | pop () |
string | toString (bool with_type=true) const |
std::ostream & | toStream (std::ostream &str) const |
Static Public Attributes |
UstringHash | _nameHash |
Ustring | emptyUstring = Ustring (SymbolEntry::_nameHash, "") |
Private Member Functions |
| REP_BODY (SymbolEntry) |
Private Attributes |
bool | m_global |
const Y2Namespace * | m_namespace |
unsigned int | m_position |
Ustring | m_name |
category_t | m_category |
constTypePtr | m_type |
SymbolEntry::payload | m_payload |
YCodePtr | m_code |
YCPValue | m_value |
stack< YCPValue > | m_recurse_stack |