|
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) |
virtual | ~SymbolEntry () |
const Y2Namespace * | nameSpace () const |
void | setNamespace (const Y2Namespace *name_space) |
virtual bool | onlyDeclared () const |
unsigned int | position () const |
void | setPosition (unsigned int position) |
bool | isGlobal () const |
void | setGlobal (bool global) |
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 () |
virtual string | toString (bool with_type=true) const |
Static Public Attributes |
static UstringHash * | _nameHash = NULL |
static Ustring | emptyUstring = Ustring ( *( SymbolEntry::_nameHash ? SymbolEntry::_nameHash : (SymbolEntry::_nameHash = new UstringHash)), "") |
Protected Types |
typedef std::stack< YCPValue > | valuestack_t |
Protected Attributes |
bool | m_global |
const Y2Namespace * | m_namespace |
unsigned int | m_position |
Ustring | m_name |
category_t | m_category |
constTypePtr | m_type |
YCPValue | m_value |
valuestack_t * | m_recurse_stack |
Private Member Functions |
| REP_BODY (SymbolEntry) |